diff --git a/CHANGELOG.rst b/CHANGELOG.rst index dcdf992041..924466123e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -3,6 +3,30 @@ Change Log All notable changes to this project will be documented in this file. The format is based on `Keep a Changelog `_. +==================== +2.136.0 - 2024-10-15 +==================== + +Added +----- +* Support for open id connect discovery in the Oracle Kubernetes Engine service +* Support for DNS security extensions (DNSSEC) in the DNS service +* Support for restoring delta between backups to a new volume in the Block Volume service +* Support for cross region backup copy and replication for volumes encrypted with customer keys in the Block Volume service +* Support for list operation on deployment environments in the GoldenGate service +* Support for defining environment types for deployments in the GoldenGate service + +Fixed +----- +* + +Fixed an issue with decoding UTF-8 characters in response models +* Removed model files which were not accessible programmatically + +Breaking +-------- +* Response type changed to `oci.golden_gate.models.DeploymentBackup` for operations `copy_deployment_backup` and `create_deployment_backup` in the GoldenGate service + ==================== 2.135.2 - 2024-10-08 ==================== diff --git a/docs/api/container_engine.rst b/docs/api/container_engine.rst index 28d5ad94a0..5a7cee27b8 100644 --- a/docs/api/container_engine.rst +++ b/docs/api/container_engine.rst @@ -73,6 +73,8 @@ Container Engine oci.container_engine.models.NodeSourceViaImageOption oci.container_engine.models.OciVcnIpNativeClusterPodNetworkOptionDetails oci.container_engine.models.OciVcnIpNativeNodePoolPodNetworkOptionDetails + oci.container_engine.models.OpenIdConnectDiscovery + oci.container_engine.models.OpenIdConnectTokenAuthenticationConfig oci.container_engine.models.PersistentVolumeConfigDetails oci.container_engine.models.PlacementConfiguration oci.container_engine.models.PodConfiguration diff --git a/docs/api/container_engine/models/oci.container_engine.models.OpenIdConnectDiscovery.rst b/docs/api/container_engine/models/oci.container_engine.models.OpenIdConnectDiscovery.rst new file mode 100644 index 0000000000..550f01a287 --- /dev/null +++ b/docs/api/container_engine/models/oci.container_engine.models.OpenIdConnectDiscovery.rst @@ -0,0 +1,11 @@ +OpenIdConnectDiscovery +====================== + +.. currentmodule:: oci.container_engine.models + +.. autoclass:: OpenIdConnectDiscovery + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/container_engine/models/oci.container_engine.models.OpenIdConnectTokenAuthenticationConfig.rst b/docs/api/container_engine/models/oci.container_engine.models.OpenIdConnectTokenAuthenticationConfig.rst new file mode 100644 index 0000000000..8148ed1065 --- /dev/null +++ b/docs/api/container_engine/models/oci.container_engine.models.OpenIdConnectTokenAuthenticationConfig.rst @@ -0,0 +1,11 @@ +OpenIdConnectTokenAuthenticationConfig +====================================== + +.. currentmodule:: oci.container_engine.models + +.. autoclass:: OpenIdConnectTokenAuthenticationConfig + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/core.rst b/docs/api/core.rst index 4a47bf370d..fcf8152fdf 100644 --- a/docs/api/core.rst +++ b/docs/api/core.rst @@ -80,6 +80,7 @@ Core Services oci.core.models.BootVolumeReplicaDetails oci.core.models.BootVolumeReplicaInfo oci.core.models.BootVolumeSourceDetails + oci.core.models.BootVolumeSourceFromBootVolumeBackupDeltaDetails oci.core.models.BootVolumeSourceFromBootVolumeBackupDetails oci.core.models.BootVolumeSourceFromBootVolumeDetails oci.core.models.BootVolumeSourceFromBootVolumeReplicaDetails @@ -623,6 +624,7 @@ Core Services oci.core.models.VolumeKmsKey oci.core.models.VolumeSourceDetails oci.core.models.VolumeSourceFromBlockVolumeReplicaDetails + oci.core.models.VolumeSourceFromVolumeBackupDeltaDetails oci.core.models.VolumeSourceFromVolumeBackupDetails oci.core.models.VolumeSourceFromVolumeDetails oci.core.models.Vtap diff --git a/docs/api/core/models/oci.core.models.BootVolumeSourceFromBootVolumeBackupDeltaDetails.rst b/docs/api/core/models/oci.core.models.BootVolumeSourceFromBootVolumeBackupDeltaDetails.rst new file mode 100644 index 0000000000..4d9a24a642 --- /dev/null +++ b/docs/api/core/models/oci.core.models.BootVolumeSourceFromBootVolumeBackupDeltaDetails.rst @@ -0,0 +1,11 @@ +BootVolumeSourceFromBootVolumeBackupDeltaDetails +================================================ + +.. currentmodule:: oci.core.models + +.. autoclass:: BootVolumeSourceFromBootVolumeBackupDeltaDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/core/models/oci.core.models.VolumeSourceFromVolumeBackupDeltaDetails.rst b/docs/api/core/models/oci.core.models.VolumeSourceFromVolumeBackupDeltaDetails.rst new file mode 100644 index 0000000000..e011207c7a --- /dev/null +++ b/docs/api/core/models/oci.core.models.VolumeSourceFromVolumeBackupDeltaDetails.rst @@ -0,0 +1,11 @@ +VolumeSourceFromVolumeBackupDeltaDetails +======================================== + +.. currentmodule:: oci.core.models + +.. autoclass:: VolumeSourceFromVolumeBackupDeltaDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns.rst b/docs/api/dns.rst index b4f5a21932..79dc521dbf 100644 --- a/docs/api/dns.rst +++ b/docs/api/dns.rst @@ -34,14 +34,18 @@ DNS oci.dns.models.CreateViewDetails oci.dns.models.CreateZoneBaseDetails oci.dns.models.CreateZoneDetails + oci.dns.models.DnssecConfig + oci.dns.models.DnssecKeyVersionDsData oci.dns.models.DynectMigrationDetails oci.dns.models.ExternalDownstream oci.dns.models.ExternalMaster + oci.dns.models.KskDnssecKeyVersion oci.dns.models.MigrationReplacement oci.dns.models.Nameserver oci.dns.models.PatchDomainRecordsDetails oci.dns.models.PatchRRSetDetails oci.dns.models.PatchZoneRecordsDetails + oci.dns.models.PromoteZoneDnssecKeyVersionDetails oci.dns.models.RRSet oci.dns.models.Record oci.dns.models.RecordCollection @@ -57,6 +61,7 @@ DNS oci.dns.models.ResolverSummary oci.dns.models.ResolverVnicEndpoint oci.dns.models.ResolverVnicEndpointSummary + oci.dns.models.StageZoneDnssecKeyVersionDetails oci.dns.models.SteeringPolicy oci.dns.models.SteeringPolicyAnswer oci.dns.models.SteeringPolicyAttachment @@ -94,3 +99,4 @@ DNS oci.dns.models.Zone oci.dns.models.ZoneSummary oci.dns.models.ZoneTransferServer + oci.dns.models.ZskDnssecKeyVersion diff --git a/docs/api/dns/models/oci.dns.models.DnssecConfig.rst b/docs/api/dns/models/oci.dns.models.DnssecConfig.rst new file mode 100644 index 0000000000..e7ef003aef --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.DnssecConfig.rst @@ -0,0 +1,11 @@ +DnssecConfig +============ + +.. currentmodule:: oci.dns.models + +.. autoclass:: DnssecConfig + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns/models/oci.dns.models.DnssecKeyVersionDsData.rst b/docs/api/dns/models/oci.dns.models.DnssecKeyVersionDsData.rst new file mode 100644 index 0000000000..13c0ec34b4 --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.DnssecKeyVersionDsData.rst @@ -0,0 +1,11 @@ +DnssecKeyVersionDsData +====================== + +.. currentmodule:: oci.dns.models + +.. autoclass:: DnssecKeyVersionDsData + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns/models/oci.dns.models.KskDnssecKeyVersion.rst b/docs/api/dns/models/oci.dns.models.KskDnssecKeyVersion.rst new file mode 100644 index 0000000000..eaed190237 --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.KskDnssecKeyVersion.rst @@ -0,0 +1,11 @@ +KskDnssecKeyVersion +=================== + +.. currentmodule:: oci.dns.models + +.. autoclass:: KskDnssecKeyVersion + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns/models/oci.dns.models.PromoteZoneDnssecKeyVersionDetails.rst b/docs/api/dns/models/oci.dns.models.PromoteZoneDnssecKeyVersionDetails.rst new file mode 100644 index 0000000000..4f2ef66468 --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.PromoteZoneDnssecKeyVersionDetails.rst @@ -0,0 +1,11 @@ +PromoteZoneDnssecKeyVersionDetails +================================== + +.. currentmodule:: oci.dns.models + +.. autoclass:: PromoteZoneDnssecKeyVersionDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns/models/oci.dns.models.StageZoneDnssecKeyVersionDetails.rst b/docs/api/dns/models/oci.dns.models.StageZoneDnssecKeyVersionDetails.rst new file mode 100644 index 0000000000..86380ea532 --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.StageZoneDnssecKeyVersionDetails.rst @@ -0,0 +1,11 @@ +StageZoneDnssecKeyVersionDetails +================================ + +.. currentmodule:: oci.dns.models + +.. autoclass:: StageZoneDnssecKeyVersionDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns/models/oci.dns.models.ZskDnssecKeyVersion.rst b/docs/api/dns/models/oci.dns.models.ZskDnssecKeyVersion.rst new file mode 100644 index 0000000000..eece894b22 --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.ZskDnssecKeyVersion.rst @@ -0,0 +1,11 @@ +ZskDnssecKeyVersion +=================== + +.. currentmodule:: oci.dns.models + +.. autoclass:: ZskDnssecKeyVersion + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/golden_gate.rst b/docs/api/golden_gate.rst index 90000e4e61..a20643e5fc 100644 --- a/docs/api/golden_gate.rst +++ b/docs/api/golden_gate.rst @@ -102,6 +102,8 @@ Golden Gate oci.golden_gate.models.DeploymentBackupSummary oci.golden_gate.models.DeploymentCollection oci.golden_gate.models.DeploymentDiagnosticData + oci.golden_gate.models.DeploymentEnvironmentCollection + oci.golden_gate.models.DeploymentEnvironmentSummary oci.golden_gate.models.DeploymentMessageCollection oci.golden_gate.models.DeploymentSummary oci.golden_gate.models.DeploymentTypeCollection @@ -128,6 +130,7 @@ Golden Gate oci.golden_gate.models.GoogleBigQueryConnectionSummary oci.golden_gate.models.GoogleCloudStorageConnection oci.golden_gate.models.GoogleCloudStorageConnectionSummary + oci.golden_gate.models.GroupToRolesMappingDetails oci.golden_gate.models.HdfsConnection oci.golden_gate.models.HdfsConnectionSummary oci.golden_gate.models.ImportDeploymentWalletDetails @@ -194,6 +197,7 @@ Golden Gate oci.golden_gate.models.UpdateGoldenGateConnectionDetails oci.golden_gate.models.UpdateGoogleBigQueryConnectionDetails oci.golden_gate.models.UpdateGoogleCloudStorageConnectionDetails + oci.golden_gate.models.UpdateGroupToRolesMappingDetails oci.golden_gate.models.UpdateHdfsConnectionDetails oci.golden_gate.models.UpdateJavaMessageServiceConnectionDetails oci.golden_gate.models.UpdateKafkaConnectionDetails diff --git a/docs/api/golden_gate/models/oci.golden_gate.models.DeploymentEnvironmentCollection.rst b/docs/api/golden_gate/models/oci.golden_gate.models.DeploymentEnvironmentCollection.rst new file mode 100644 index 0000000000..1a5a20eca1 --- /dev/null +++ b/docs/api/golden_gate/models/oci.golden_gate.models.DeploymentEnvironmentCollection.rst @@ -0,0 +1,11 @@ +DeploymentEnvironmentCollection +=============================== + +.. currentmodule:: oci.golden_gate.models + +.. autoclass:: DeploymentEnvironmentCollection + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/golden_gate/models/oci.golden_gate.models.DeploymentEnvironmentSummary.rst b/docs/api/golden_gate/models/oci.golden_gate.models.DeploymentEnvironmentSummary.rst new file mode 100644 index 0000000000..45ec94af16 --- /dev/null +++ b/docs/api/golden_gate/models/oci.golden_gate.models.DeploymentEnvironmentSummary.rst @@ -0,0 +1,11 @@ +DeploymentEnvironmentSummary +============================ + +.. currentmodule:: oci.golden_gate.models + +.. autoclass:: DeploymentEnvironmentSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/golden_gate/models/oci.golden_gate.models.GroupToRolesMappingDetails.rst b/docs/api/golden_gate/models/oci.golden_gate.models.GroupToRolesMappingDetails.rst new file mode 100644 index 0000000000..4d0b79fd08 --- /dev/null +++ b/docs/api/golden_gate/models/oci.golden_gate.models.GroupToRolesMappingDetails.rst @@ -0,0 +1,11 @@ +GroupToRolesMappingDetails +========================== + +.. currentmodule:: oci.golden_gate.models + +.. autoclass:: GroupToRolesMappingDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/golden_gate/models/oci.golden_gate.models.UpdateGroupToRolesMappingDetails.rst b/docs/api/golden_gate/models/oci.golden_gate.models.UpdateGroupToRolesMappingDetails.rst new file mode 100644 index 0000000000..b2e50dbb69 --- /dev/null +++ b/docs/api/golden_gate/models/oci.golden_gate.models.UpdateGroupToRolesMappingDetails.rst @@ -0,0 +1,11 @@ +UpdateGroupToRolesMappingDetails +================================ + +.. currentmodule:: oci.golden_gate.models + +.. autoclass:: UpdateGroupToRolesMappingDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/src/oci/ai_language/models/entity_document.py b/src/oci/ai_language/models/entity_document.py deleted file mode 100644 index ce8703071d..0000000000 --- a/src/oci/ai_language/models/entity_document.py +++ /dev/null @@ -1,136 +0,0 @@ -# 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. - - -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 EntityDocument(object): - """ - The document details for entities detect call. - """ - - def __init__(self, **kwargs): - """ - Initializes a new EntityDocument object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param key: - The value to assign to the key property of this EntityDocument. - :type key: str - - :param text: - The value to assign to the text property of this EntityDocument. - :type text: str - - :param language_code: - The value to assign to the language_code property of this EntityDocument. - :type language_code: str - - """ - self.swagger_types = { - 'key': 'str', - 'text': 'str', - 'language_code': 'str' - } - - self.attribute_map = { - 'key': 'key', - 'text': 'text', - 'language_code': 'languageCode' - } - - self._key = None - self._text = None - self._language_code = None - - @property - def key(self): - """ - **[Required]** Gets the key of this EntityDocument. - Document unique identifier defined by the user. - - - :return: The key of this EntityDocument. - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """ - Sets the key of this EntityDocument. - Document unique identifier defined by the user. - - - :param key: The key of this EntityDocument. - :type: str - """ - self._key = key - - @property - def text(self): - """ - **[Required]** Gets the text of this EntityDocument. - Document text for detect entities. - - - :return: The text of this EntityDocument. - :rtype: str - """ - return self._text - - @text.setter - def text(self, text): - """ - Sets the text of this EntityDocument. - Document text for detect entities. - - - :param text: The text of this EntityDocument. - :type: str - """ - self._text = text - - @property - def language_code(self): - """ - Gets the language_code of this EntityDocument. - Language code as per `ISO 639-1`__ standard. - - __ https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes - - - :return: The language_code of this EntityDocument. - :rtype: str - """ - return self._language_code - - @language_code.setter - def language_code(self, language_code): - """ - Sets the language_code of this EntityDocument. - Language code as per `ISO 639-1`__ standard. - - __ https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes - - - :param language_code: The language_code of this EntityDocument. - :type: str - """ - self._language_code = language_code - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/ai_language/models/key_phrase_document.py b/src/oci/ai_language/models/key_phrase_document.py deleted file mode 100644 index cc77c31ecb..0000000000 --- a/src/oci/ai_language/models/key_phrase_document.py +++ /dev/null @@ -1,136 +0,0 @@ -# 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. - - -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 KeyPhraseDocument(object): - """ - The document details for keyPhrases detect call. - """ - - def __init__(self, **kwargs): - """ - Initializes a new KeyPhraseDocument object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param key: - The value to assign to the key property of this KeyPhraseDocument. - :type key: str - - :param text: - The value to assign to the text property of this KeyPhraseDocument. - :type text: str - - :param language_code: - The value to assign to the language_code property of this KeyPhraseDocument. - :type language_code: str - - """ - self.swagger_types = { - 'key': 'str', - 'text': 'str', - 'language_code': 'str' - } - - self.attribute_map = { - 'key': 'key', - 'text': 'text', - 'language_code': 'languageCode' - } - - self._key = None - self._text = None - self._language_code = None - - @property - def key(self): - """ - **[Required]** Gets the key of this KeyPhraseDocument. - Document Unique Identifier. - - - :return: The key of this KeyPhraseDocument. - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """ - Sets the key of this KeyPhraseDocument. - Document Unique Identifier. - - - :param key: The key of this KeyPhraseDocument. - :type: str - """ - self._key = key - - @property - def text(self): - """ - **[Required]** Gets the text of this KeyPhraseDocument. - Document text for detect keyPhrases. - - - :return: The text of this KeyPhraseDocument. - :rtype: str - """ - return self._text - - @text.setter - def text(self, text): - """ - Sets the text of this KeyPhraseDocument. - Document text for detect keyPhrases. - - - :param text: The text of this KeyPhraseDocument. - :type: str - """ - self._text = text - - @property - def language_code(self): - """ - Gets the language_code of this KeyPhraseDocument. - Language code as per `ISO 639-1`__ standard.. - - __ https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes - - - :return: The language_code of this KeyPhraseDocument. - :rtype: str - """ - return self._language_code - - @language_code.setter - def language_code(self, language_code): - """ - Sets the language_code of this KeyPhraseDocument. - Language code as per `ISO 639-1`__ standard.. - - __ https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes - - - :param language_code: The language_code of this KeyPhraseDocument. - :type: str - """ - self._language_code = language_code - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/ai_language/models/pre_trained_phi_model_details.py b/src/oci/ai_language/models/pre_trained_phi_model_details.py deleted file mode 100644 index 40d49d6c3c..0000000000 --- a/src/oci/ai_language/models/pre_trained_phi_model_details.py +++ /dev/null @@ -1,91 +0,0 @@ -# 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: 20221001 - -from .model_details import ModelDetails -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 PreTrainedPhiModelDetails(ModelDetails): - """ - Possible pre trained PHI model information - """ - - def __init__(self, **kwargs): - """ - Initializes a new PreTrainedPhiModelDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.ai_language.models.PreTrainedPhiModelDetails.model_type` attribute - of this class is ``PRE_TRAINED_PHI`` and it should not be changed. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param language_code: - The value to assign to the language_code property of this PreTrainedPhiModelDetails. - :type language_code: str - - :param model_type: - The value to assign to the model_type property of this PreTrainedPhiModelDetails. - Allowed values for this property are: "NAMED_ENTITY_RECOGNITION", "TEXT_CLASSIFICATION", "PRE_TRAINED_NAMED_ENTITY_RECOGNITION", "PRE_TRAINED_TEXT_CLASSIFICATION", "PRE_TRAINED_SENTIMENT_ANALYSIS", "PRE_TRAINED_KEYPHRASE_EXTRACTION", "PRE_TRAINED_LANGUAGE_DETECTION", "PRE_TRAINED_PII", "PRE_TRAINED_TRANSLATION", "PRE_TRAINED_HEALTH_NLU", "PRE_TRAINED_SUMMARIZATION", "PRE_TRAINED_UNIVERSAL" - :type model_type: str - - :param version: - The value to assign to the version property of this PreTrainedPhiModelDetails. - :type version: str - - """ - self.swagger_types = { - 'language_code': 'str', - 'model_type': 'str', - 'version': 'str' - } - - self.attribute_map = { - 'language_code': 'languageCode', - 'model_type': 'modelType', - 'version': 'version' - } - - self._language_code = None - self._model_type = None - self._version = None - self._model_type = 'PRE_TRAINED_PHI' - - @property - def version(self): - """ - Gets the version of this PreTrainedPhiModelDetails. - Optional pre trained model version. if nothing specified latest pre trained model will be used. - Supported versions can be found at /modelTypes/{modelType} - - - :return: The version of this PreTrainedPhiModelDetails. - :rtype: str - """ - return self._version - - @version.setter - def version(self, version): - """ - Sets the version of this PreTrainedPhiModelDetails. - Optional pre trained model version. if nothing specified latest pre trained model will be used. - Supported versions can be found at /modelTypes/{modelType} - - - :param version: The version of this PreTrainedPhiModelDetails. - :type: str - """ - self._version = version - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/ai_language/models/sentiments_document.py b/src/oci/ai_language/models/sentiments_document.py deleted file mode 100644 index 60ffa0ce48..0000000000 --- a/src/oci/ai_language/models/sentiments_document.py +++ /dev/null @@ -1,136 +0,0 @@ -# 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. - - -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 SentimentsDocument(object): - """ - The document details for sentiments detect call. - """ - - def __init__(self, **kwargs): - """ - Initializes a new SentimentsDocument object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param key: - The value to assign to the key property of this SentimentsDocument. - :type key: str - - :param text: - The value to assign to the text property of this SentimentsDocument. - :type text: str - - :param language_code: - The value to assign to the language_code property of this SentimentsDocument. - :type language_code: str - - """ - self.swagger_types = { - 'key': 'str', - 'text': 'str', - 'language_code': 'str' - } - - self.attribute_map = { - 'key': 'key', - 'text': 'text', - 'language_code': 'languageCode' - } - - self._key = None - self._text = None - self._language_code = None - - @property - def key(self): - """ - **[Required]** Gets the key of this SentimentsDocument. - Document Unique Identifier. - - - :return: The key of this SentimentsDocument. - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """ - Sets the key of this SentimentsDocument. - Document Unique Identifier. - - - :param key: The key of this SentimentsDocument. - :type: str - """ - self._key = key - - @property - def text(self): - """ - **[Required]** Gets the text of this SentimentsDocument. - Document text for detect sentiments. - - - :return: The text of this SentimentsDocument. - :rtype: str - """ - return self._text - - @text.setter - def text(self, text): - """ - Sets the text of this SentimentsDocument. - Document text for detect sentiments. - - - :param text: The text of this SentimentsDocument. - :type: str - """ - self._text = text - - @property - def language_code(self): - """ - Gets the language_code of this SentimentsDocument. - Language code as per `ISO 639-1`__ standard. - - __ https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes - - - :return: The language_code of this SentimentsDocument. - :rtype: str - """ - return self._language_code - - @language_code.setter - def language_code(self, language_code): - """ - Sets the language_code of this SentimentsDocument. - Language code as per `ISO 639-1`__ standard. - - __ https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes - - - :param language_code: The language_code of this SentimentsDocument. - :type: str - """ - self._language_code = language_code - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/ai_language/models/text_classification_document.py b/src/oci/ai_language/models/text_classification_document.py deleted file mode 100644 index 7a91782a9e..0000000000 --- a/src/oci/ai_language/models/text_classification_document.py +++ /dev/null @@ -1,136 +0,0 @@ -# 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. - - -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 TextClassificationDocument(object): - """ - The document details for test classification detect call. - """ - - def __init__(self, **kwargs): - """ - Initializes a new TextClassificationDocument object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param key: - The value to assign to the key property of this TextClassificationDocument. - :type key: str - - :param text: - The value to assign to the text property of this TextClassificationDocument. - :type text: str - - :param language_code: - The value to assign to the language_code property of this TextClassificationDocument. - :type language_code: str - - """ - self.swagger_types = { - 'key': 'str', - 'text': 'str', - 'language_code': 'str' - } - - self.attribute_map = { - 'key': 'key', - 'text': 'text', - 'language_code': 'languageCode' - } - - self._key = None - self._text = None - self._language_code = None - - @property - def key(self): - """ - **[Required]** Gets the key of this TextClassificationDocument. - Document Unique Identifier. - - - :return: The key of this TextClassificationDocument. - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """ - Sets the key of this TextClassificationDocument. - Document Unique Identifier. - - - :param key: The key of this TextClassificationDocument. - :type: str - """ - self._key = key - - @property - def text(self): - """ - **[Required]** Gets the text of this TextClassificationDocument. - Document text for detect text classification. - - - :return: The text of this TextClassificationDocument. - :rtype: str - """ - return self._text - - @text.setter - def text(self, text): - """ - Sets the text of this TextClassificationDocument. - Document text for detect text classification. - - - :param text: The text of this TextClassificationDocument. - :type: str - """ - self._text = text - - @property - def language_code(self): - """ - Gets the language_code of this TextClassificationDocument. - Language code as per `ISO 639-1`__ standard. - - __ https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes - - - :return: The language_code of this TextClassificationDocument. - :rtype: str - """ - return self._language_code - - @language_code.setter - def language_code(self, language_code): - """ - Sets the language_code of this TextClassificationDocument. - Language code as per `ISO 639-1`__ standard. - - __ https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes - - - :param language_code: The language_code of this TextClassificationDocument. - :type: str - """ - self._language_code = language_code - - 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/capacity_management/models/occ_capacity_request_compute_details.py b/src/oci/capacity_management/models/occ_capacity_request_compute_details.py deleted file mode 100644 index 6389b7442b..0000000000 --- a/src/oci/capacity_management/models/occ_capacity_request_compute_details.py +++ /dev/null @@ -1,148 +0,0 @@ -# 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: 20231107 - -from .occ_capacity_request_base_details import OccCapacityRequestBaseDetails -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 OccCapacityRequestComputeDetails(OccCapacityRequestBaseDetails): - """ - The details about the compute servers required for creating a capacity request. - """ - - def __init__(self, **kwargs): - """ - Initializes a new OccCapacityRequestComputeDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.capacity_management.models.OccCapacityRequestComputeDetails.resource_type` attribute - of this class is ``SERVER_HW`` and it should not be changed. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param resource_type: - The value to assign to the resource_type property of this OccCapacityRequestComputeDetails. - Allowed values for this property are: "SERVER_HW" - :type resource_type: str - - :param workload_type: - The value to assign to the workload_type property of this OccCapacityRequestComputeDetails. - :type workload_type: str - - :param expected_handover_quantity: - The value to assign to the expected_handover_quantity property of this OccCapacityRequestComputeDetails. - :type expected_handover_quantity: int - - :param date_expected_handover: - The value to assign to the date_expected_handover property of this OccCapacityRequestComputeDetails. - :type date_expected_handover: datetime - - :param actual_handover_quantity: - The value to assign to the actual_handover_quantity property of this OccCapacityRequestComputeDetails. - :type actual_handover_quantity: int - - :param date_actual_handover: - The value to assign to the date_actual_handover property of this OccCapacityRequestComputeDetails. - :type date_actual_handover: datetime - - :param resource_name: - The value to assign to the resource_name property of this OccCapacityRequestComputeDetails. - :type resource_name: str - - :param demand_quantity: - The value to assign to the demand_quantity property of this OccCapacityRequestComputeDetails. - :type demand_quantity: int - - """ - self.swagger_types = { - 'resource_type': 'str', - 'workload_type': 'str', - 'expected_handover_quantity': 'int', - 'date_expected_handover': 'datetime', - 'actual_handover_quantity': 'int', - 'date_actual_handover': 'datetime', - 'resource_name': 'str', - 'demand_quantity': 'int' - } - - self.attribute_map = { - 'resource_type': 'resourceType', - 'workload_type': 'workloadType', - 'expected_handover_quantity': 'expectedHandoverQuantity', - 'date_expected_handover': 'dateExpectedHandover', - 'actual_handover_quantity': 'actualHandoverQuantity', - 'date_actual_handover': 'dateActualHandover', - 'resource_name': 'resourceName', - 'demand_quantity': 'demandQuantity' - } - - self._resource_type = None - self._workload_type = None - self._expected_handover_quantity = None - self._date_expected_handover = None - self._actual_handover_quantity = None - self._date_actual_handover = None - self._resource_name = None - self._demand_quantity = None - self._resource_type = 'SERVER_HW' - - @property - def resource_name(self): - """ - **[Required]** Gets the resource_name of this OccCapacityRequestComputeDetails. - The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name. - - - :return: The resource_name of this OccCapacityRequestComputeDetails. - :rtype: str - """ - return self._resource_name - - @resource_name.setter - def resource_name(self, resource_name): - """ - Sets the resource_name of this OccCapacityRequestComputeDetails. - The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name. - - - :param resource_name: The resource_name of this OccCapacityRequestComputeDetails. - :type: str - """ - self._resource_name = resource_name - - @property - def demand_quantity(self): - """ - **[Required]** Gets the demand_quantity of this OccCapacityRequestComputeDetails. - The number of compute server's with name required by the user. - - - :return: The demand_quantity of this OccCapacityRequestComputeDetails. - :rtype: int - """ - return self._demand_quantity - - @demand_quantity.setter - def demand_quantity(self, demand_quantity): - """ - Sets the demand_quantity of this OccCapacityRequestComputeDetails. - The number of compute server's with name required by the user. - - - :param demand_quantity: The demand_quantity of this OccCapacityRequestComputeDetails. - :type: int - """ - self._demand_quantity = demand_quantity - - 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/cims/user_client.py b/src/oci/cims/user_client.py deleted file mode 100644 index 07b3fd9d2e..0000000000 --- a/src/oci/cims/user_client.py +++ /dev/null @@ -1,207 +0,0 @@ -# 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: 20181231 - -from __future__ import absolute_import - -from oci._vendor import requests # noqa: F401 -from oci._vendor import six - -from oci import retry, circuit_breaker # noqa: F401 -from oci.base_client import BaseClient -from oci.config import get_config_value_or_default, validate_config -from oci.signer import Signer -from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME -from .models import cims_type_mapping -missing = Sentinel("Missing") - - -class UserClient(object): - """ - Use the Support Management API to manage support requests. For more information, see [Getting Help and Contacting Support](/iaas/Content/GSG/Tasks/contactingsupport.htm). **Note**: Before you can create service requests with this API, you need to have an Oracle Single Sign On (SSO) account, and you need to register your Customer Support Identifier (CSI) with My Oracle Support. - """ - - def __init__(self, config, **kwargs): - """ - Creates a new service client - - :param dict config: - Configuration keys and values as per `SDK and Tool Configuration `__. - The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config - the dict using :py:meth:`~oci.config.validate_config` - - :param str service_endpoint: (optional) - The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is - not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit - need to specify a service endpoint. - - :param timeout: (optional) - The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided - as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If - a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout. - :type timeout: float or tuple(float, float) - - :param signer: (optional) - The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values - provided in the config parameter. - - One use case for this parameter is for `Instance Principals authentication `__ - by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument - :type signer: :py:class:`~oci.signer.AbstractBaseSigner` - - :param obj retry_strategy: (optional) - A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default. - Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation. - Any value provided at the operation level will override whatever is specified at the client level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` - is also available. The specifics of the default retry strategy are described `here `__. - - :param obj circuit_breaker_strategy: (optional) - A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level). - This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided. - The specifics of circuit breaker strategy are described `here `__. - - :param function circuit_breaker_callback: (optional) - Callback function to receive any exceptions triggerred by the circuit breaker. - - :param bool client_level_realm_specific_endpoint_template_enabled: (optional) - A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None. - - :param allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not - allow control characters to be in the response object. - """ - validate_config(config, signer=kwargs.get('signer')) - if 'signer' in kwargs: - signer = kwargs['signer'] - - elif AUTHENTICATION_TYPE_FIELD_NAME in config: - signer = get_signer_from_authentication_type(config) - - else: - signer = Signer( - tenancy=config["tenancy"], - user=config["user"], - fingerprint=config["fingerprint"], - private_key_file_location=config.get("key_file"), - pass_phrase=get_config_value_or_default(config, "pass_phrase"), - private_key_content=config.get("key_content") - ) - - base_client_init_kwargs = { - 'regional_client': True, - 'service_endpoint': kwargs.get('service_endpoint'), - 'base_path': '/20181231', - 'service_endpoint_template': 'https://incidentmanagement.{region}.{secondLevelDomain}', - 'service_endpoint_template_per_realm': { }, # noqa: E201 E202 - 'skip_deserialization': kwargs.get('skip_deserialization', False), - 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY), - 'client_level_realm_specific_endpoint_template_enabled': kwargs.get('client_level_realm_specific_endpoint_template_enabled') - } - if 'timeout' in kwargs: - base_client_init_kwargs['timeout'] = kwargs.get('timeout') - if base_client_init_kwargs.get('circuit_breaker_strategy') is None: - base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY - if 'allow_control_chars' in kwargs: - base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars') - self.base_client = BaseClient("user", config, signer, cims_type_mapping, **base_client_init_kwargs) - self.retry_strategy = kwargs.get('retry_strategy') - self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback') - - def create_user(self, create_user_details, ocid, **kwargs): - """ - Create user to request Customer Support Identifier(CSI) to Customer User Administrator(CUA). - - - :param oci.cims.models.CreateUserDetails create_user_details: (required) - User information - - :param str ocid: (required) - User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle Cloud Infrastructure account. - - :param str opc_request_id: (optional) - Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. - - :param str homeregion: (optional) - The region of the tenancy. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.cims.models.User` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use create_user API. - """ - # Required path and query arguments. These are in camelCase to replace values in service endpoints. - required_arguments = [] - resource_path = "/v2/users" - method = "POST" - operation_name = "create_user" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/incidentmanagement/20181231/User/CreateUser" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_request_id", - "homeregion" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "create_user got unknown kwargs: {!r}".format(extra_kwargs)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing), - "ocid": ocid, - "homeregion": kwargs.get("homeregion", 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, - header_params=header_params, - body=create_user_details, - response_type="User", - 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_user_details, - response_type="User", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link, - required_arguments=required_arguments) diff --git a/src/oci/cims/user_client_composite_operations.py b/src/oci/cims/user_client_composite_operations.py deleted file mode 100644 index cc2b553f55..0000000000 --- a/src/oci/cims/user_client_composite_operations.py +++ /dev/null @@ -1,26 +0,0 @@ -# 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: 20181231 - -import oci # noqa: F401 -from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401 - - -class UserClientCompositeOperations(object): - """ - This class provides a wrapper around :py:class:`~oci.cims.UserClient` and offers convenience methods - for operations that would otherwise need to be chained together. For example, instead of performing an action - on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource - to enter a given state, you can call a single method in this class to accomplish the same functionality - """ - - def __init__(self, client, **kwargs): - """ - Creates a new UserClientCompositeOperations object - - :param UserClient client: - The service client which will be wrapped by this object - """ - self.client = client diff --git a/src/oci/compute_instance_agent/models/instance_agent_command_content_info.py b/src/oci/compute_instance_agent/models/instance_agent_command_content_info.py deleted file mode 100644 index bc8aaad65e..0000000000 --- a/src/oci/compute_instance_agent/models/instance_agent_command_content_info.py +++ /dev/null @@ -1,252 +0,0 @@ -# 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. - - -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 InstanceAgentCommandContentInfo(object): - """ - The command content. - """ - - def __init__(self, **kwargs): - """ - Initializes a new InstanceAgentCommandContentInfo object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param instance_agent_command_id: - The value to assign to the instance_agent_command_id property of this InstanceAgentCommandContentInfo. - :type instance_agent_command_id: str - - :param compartment_id: - The value to assign to the compartment_id property of this InstanceAgentCommandContentInfo. - :type compartment_id: str - - :param time_created: - The value to assign to the time_created property of this InstanceAgentCommandContentInfo. - :type time_created: datetime - - :param time_updated: - The value to assign to the time_updated property of this InstanceAgentCommandContentInfo. - :type time_updated: datetime - - :param is_canceled: - The value to assign to the is_canceled property of this InstanceAgentCommandContentInfo. - :type is_canceled: bool - - :param execution_time_out_in_seconds: - The value to assign to the execution_time_out_in_seconds property of this InstanceAgentCommandContentInfo. - :type execution_time_out_in_seconds: int - - :param content: - The value to assign to the content property of this InstanceAgentCommandContentInfo. - :type content: oci.compute_instance_agent.models.InstanceAgentCommandContent - - """ - self.swagger_types = { - 'instance_agent_command_id': 'str', - 'compartment_id': 'str', - 'time_created': 'datetime', - 'time_updated': 'datetime', - 'is_canceled': 'bool', - 'execution_time_out_in_seconds': 'int', - 'content': 'InstanceAgentCommandContent' - } - - self.attribute_map = { - 'instance_agent_command_id': 'instanceAgentCommandId', - 'compartment_id': 'compartmentId', - 'time_created': 'timeCreated', - 'time_updated': 'timeUpdated', - 'is_canceled': 'isCanceled', - 'execution_time_out_in_seconds': 'executionTimeOutInSeconds', - 'content': 'content' - } - - self._instance_agent_command_id = None - self._compartment_id = None - self._time_created = None - self._time_updated = None - self._is_canceled = None - self._execution_time_out_in_seconds = None - self._content = None - - @property - def instance_agent_command_id(self): - """ - **[Required]** Gets the instance_agent_command_id of this InstanceAgentCommandContentInfo. - The command ocid - - - :return: The instance_agent_command_id of this InstanceAgentCommandContentInfo. - :rtype: str - """ - return self._instance_agent_command_id - - @instance_agent_command_id.setter - def instance_agent_command_id(self, instance_agent_command_id): - """ - Sets the instance_agent_command_id of this InstanceAgentCommandContentInfo. - The command ocid - - - :param instance_agent_command_id: The instance_agent_command_id of this InstanceAgentCommandContentInfo. - :type: str - """ - self._instance_agent_command_id = instance_agent_command_id - - @property - def compartment_id(self): - """ - **[Required]** Gets the compartment_id of this InstanceAgentCommandContentInfo. - The OCID of the compartment the command is created in. - - - :return: The compartment_id of this InstanceAgentCommandContentInfo. - :rtype: str - """ - return self._compartment_id - - @compartment_id.setter - def compartment_id(self, compartment_id): - """ - Sets the compartment_id of this InstanceAgentCommandContentInfo. - The OCID of the compartment the command is created in. - - - :param compartment_id: The compartment_id of this InstanceAgentCommandContentInfo. - :type: str - """ - self._compartment_id = compartment_id - - @property - def time_created(self): - """ - Gets the time_created of this InstanceAgentCommandContentInfo. - created at time of command. - - - :return: The time_created of this InstanceAgentCommandContentInfo. - :rtype: datetime - """ - return self._time_created - - @time_created.setter - def time_created(self, time_created): - """ - Sets the time_created of this InstanceAgentCommandContentInfo. - created at time of command. - - - :param time_created: The time_created of this InstanceAgentCommandContentInfo. - :type: datetime - """ - self._time_created = time_created - - @property - def time_updated(self): - """ - Gets the time_updated of this InstanceAgentCommandContentInfo. - updated time of command. - - - :return: The time_updated of this InstanceAgentCommandContentInfo. - :rtype: datetime - """ - return self._time_updated - - @time_updated.setter - def time_updated(self, time_updated): - """ - Sets the time_updated of this InstanceAgentCommandContentInfo. - updated time of command. - - - :param time_updated: The time_updated of this InstanceAgentCommandContentInfo. - :type: datetime - """ - self._time_updated = time_updated - - @property - def is_canceled(self): - """ - Gets the is_canceled of this InstanceAgentCommandContentInfo. - Whether the command has been canceled. - - - :return: The is_canceled of this InstanceAgentCommandContentInfo. - :rtype: bool - """ - return self._is_canceled - - @is_canceled.setter - def is_canceled(self, is_canceled): - """ - Sets the is_canceled of this InstanceAgentCommandContentInfo. - Whether the command has been canceled. - - - :param is_canceled: The is_canceled of this InstanceAgentCommandContentInfo. - :type: bool - """ - self._is_canceled = is_canceled - - @property - def execution_time_out_in_seconds(self): - """ - Gets the execution_time_out_in_seconds of this InstanceAgentCommandContentInfo. - The last command time. - - - :return: The execution_time_out_in_seconds of this InstanceAgentCommandContentInfo. - :rtype: int - """ - return self._execution_time_out_in_seconds - - @execution_time_out_in_seconds.setter - def execution_time_out_in_seconds(self, execution_time_out_in_seconds): - """ - Sets the execution_time_out_in_seconds of this InstanceAgentCommandContentInfo. - The last command time. - - - :param execution_time_out_in_seconds: The execution_time_out_in_seconds of this InstanceAgentCommandContentInfo. - :type: int - """ - self._execution_time_out_in_seconds = execution_time_out_in_seconds - - @property - def content(self): - """ - **[Required]** Gets the content of this InstanceAgentCommandContentInfo. - - :return: The content of this InstanceAgentCommandContentInfo. - :rtype: oci.compute_instance_agent.models.InstanceAgentCommandContent - """ - return self._content - - @content.setter - def content(self, content): - """ - Sets the content of this InstanceAgentCommandContentInfo. - - :param content: The content of this InstanceAgentCommandContentInfo. - :type: oci.compute_instance_agent.models.InstanceAgentCommandContent - """ - self._content = content - - 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/container_engine/models/__init__.py b/src/oci/container_engine/models/__init__.py index e7997aa9cd..6cc0fe9f9d 100644 --- a/src/oci/container_engine/models/__init__.py +++ b/src/oci/container_engine/models/__init__.py @@ -61,6 +61,8 @@ from .node_source_via_image_option import NodeSourceViaImageOption from .oci_vcn_ip_native_cluster_pod_network_option_details import OciVcnIpNativeClusterPodNetworkOptionDetails from .oci_vcn_ip_native_node_pool_pod_network_option_details import OciVcnIpNativeNodePoolPodNetworkOptionDetails +from .open_id_connect_discovery import OpenIdConnectDiscovery +from .open_id_connect_token_authentication_config import OpenIdConnectTokenAuthenticationConfig from .persistent_volume_config_details import PersistentVolumeConfigDetails from .placement_configuration import PlacementConfiguration from .pod_configuration import PodConfiguration @@ -155,6 +157,8 @@ "NodeSourceViaImageOption": NodeSourceViaImageOption, "OciVcnIpNativeClusterPodNetworkOptionDetails": OciVcnIpNativeClusterPodNetworkOptionDetails, "OciVcnIpNativeNodePoolPodNetworkOptionDetails": OciVcnIpNativeNodePoolPodNetworkOptionDetails, + "OpenIdConnectDiscovery": OpenIdConnectDiscovery, + "OpenIdConnectTokenAuthenticationConfig": OpenIdConnectTokenAuthenticationConfig, "PersistentVolumeConfigDetails": PersistentVolumeConfigDetails, "PlacementConfiguration": PlacementConfiguration, "PodConfiguration": PodConfiguration, diff --git a/src/oci/container_engine/models/cluster.py b/src/oci/container_engine/models/cluster.py index 2e83a99c71..f1d0121976 100644 --- a/src/oci/container_engine/models/cluster.py +++ b/src/oci/container_engine/models/cluster.py @@ -132,6 +132,10 @@ def __init__(self, **kwargs): Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str + :param open_id_connect_discovery_endpoint: + The value to assign to the open_id_connect_discovery_endpoint property of this Cluster. + :type open_id_connect_discovery_endpoint: str + """ self.swagger_types = { 'id': 'str', @@ -152,7 +156,8 @@ def __init__(self, **kwargs): 'available_kubernetes_upgrades': 'list[str]', 'image_policy_config': 'ImagePolicyConfig', 'cluster_pod_network_options': 'list[ClusterPodNetworkOptionDetails]', - 'type': 'str' + 'type': 'str', + 'open_id_connect_discovery_endpoint': 'str' } self.attribute_map = { @@ -174,7 +179,8 @@ def __init__(self, **kwargs): 'available_kubernetes_upgrades': 'availableKubernetesUpgrades', 'image_policy_config': 'imagePolicyConfig', 'cluster_pod_network_options': 'clusterPodNetworkOptions', - 'type': 'type' + 'type': 'type', + 'open_id_connect_discovery_endpoint': 'openIdConnectDiscoveryEndpoint' } self._id = None @@ -196,6 +202,7 @@ def __init__(self, **kwargs): self._image_policy_config = None self._cluster_pod_network_options = None self._type = None + self._open_id_connect_discovery_endpoint = None @property def id(self): @@ -687,6 +694,30 @@ def type(self, type): type = 'UNKNOWN_ENUM_VALUE' self._type = type + @property + def open_id_connect_discovery_endpoint(self): + """ + Gets the open_id_connect_discovery_endpoint of this Cluster. + The cluster-specific OpenID Connect Discovery endpoint + + + :return: The open_id_connect_discovery_endpoint of this Cluster. + :rtype: str + """ + return self._open_id_connect_discovery_endpoint + + @open_id_connect_discovery_endpoint.setter + def open_id_connect_discovery_endpoint(self, open_id_connect_discovery_endpoint): + """ + Sets the open_id_connect_discovery_endpoint of this Cluster. + The cluster-specific OpenID Connect Discovery endpoint + + + :param open_id_connect_discovery_endpoint: The open_id_connect_discovery_endpoint of this Cluster. + :type: str + """ + self._open_id_connect_discovery_endpoint = open_id_connect_discovery_endpoint + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/container_engine/models/cluster_create_options.py b/src/oci/container_engine/models/cluster_create_options.py index d893eec9e7..50eccb26fa 100644 --- a/src/oci/container_engine/models/cluster_create_options.py +++ b/src/oci/container_engine/models/cluster_create_options.py @@ -44,6 +44,14 @@ def __init__(self, **kwargs): The value to assign to the service_lb_config property of this ClusterCreateOptions. :type service_lb_config: oci.container_engine.models.ServiceLbConfigDetails + :param open_id_connect_token_authentication_config: + The value to assign to the open_id_connect_token_authentication_config property of this ClusterCreateOptions. + :type open_id_connect_token_authentication_config: oci.container_engine.models.OpenIdConnectTokenAuthenticationConfig + + :param open_id_connect_discovery: + The value to assign to the open_id_connect_discovery property of this ClusterCreateOptions. + :type open_id_connect_discovery: oci.container_engine.models.OpenIdConnectDiscovery + """ self.swagger_types = { 'service_lb_subnet_ids': 'list[str]', @@ -51,7 +59,9 @@ def __init__(self, **kwargs): 'add_ons': 'AddOnOptions', 'admission_controller_options': 'AdmissionControllerOptions', 'persistent_volume_config': 'PersistentVolumeConfigDetails', - 'service_lb_config': 'ServiceLbConfigDetails' + 'service_lb_config': 'ServiceLbConfigDetails', + 'open_id_connect_token_authentication_config': 'OpenIdConnectTokenAuthenticationConfig', + 'open_id_connect_discovery': 'OpenIdConnectDiscovery' } self.attribute_map = { @@ -60,7 +70,9 @@ def __init__(self, **kwargs): 'add_ons': 'addOns', 'admission_controller_options': 'admissionControllerOptions', 'persistent_volume_config': 'persistentVolumeConfig', - 'service_lb_config': 'serviceLbConfig' + 'service_lb_config': 'serviceLbConfig', + 'open_id_connect_token_authentication_config': 'openIdConnectTokenAuthenticationConfig', + 'open_id_connect_discovery': 'openIdConnectDiscovery' } self._service_lb_subnet_ids = None @@ -69,6 +81,8 @@ def __init__(self, **kwargs): self._admission_controller_options = None self._persistent_volume_config = None self._service_lb_config = None + self._open_id_connect_token_authentication_config = None + self._open_id_connect_discovery = None @property def service_lb_subnet_ids(self): @@ -206,6 +220,46 @@ def service_lb_config(self, service_lb_config): """ self._service_lb_config = service_lb_config + @property + def open_id_connect_token_authentication_config(self): + """ + Gets the open_id_connect_token_authentication_config of this ClusterCreateOptions. + + :return: The open_id_connect_token_authentication_config of this ClusterCreateOptions. + :rtype: oci.container_engine.models.OpenIdConnectTokenAuthenticationConfig + """ + return self._open_id_connect_token_authentication_config + + @open_id_connect_token_authentication_config.setter + def open_id_connect_token_authentication_config(self, open_id_connect_token_authentication_config): + """ + Sets the open_id_connect_token_authentication_config of this ClusterCreateOptions. + + :param open_id_connect_token_authentication_config: The open_id_connect_token_authentication_config of this ClusterCreateOptions. + :type: oci.container_engine.models.OpenIdConnectTokenAuthenticationConfig + """ + self._open_id_connect_token_authentication_config = open_id_connect_token_authentication_config + + @property + def open_id_connect_discovery(self): + """ + Gets the open_id_connect_discovery of this ClusterCreateOptions. + + :return: The open_id_connect_discovery of this ClusterCreateOptions. + :rtype: oci.container_engine.models.OpenIdConnectDiscovery + """ + return self._open_id_connect_discovery + + @open_id_connect_discovery.setter + def open_id_connect_discovery(self, open_id_connect_discovery): + """ + Sets the open_id_connect_discovery of this ClusterCreateOptions. + + :param open_id_connect_discovery: The open_id_connect_discovery of this ClusterCreateOptions. + :type: oci.container_engine.models.OpenIdConnectDiscovery + """ + self._open_id_connect_discovery = open_id_connect_discovery + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/container_engine/models/open_id_connect_discovery.py b/src/oci/container_engine/models/open_id_connect_discovery.py new file mode 100644 index 0000000000..04cdb075e4 --- /dev/null +++ b/src/oci/container_engine/models/open_id_connect_discovery.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: 20180222 + + +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 OpenIdConnectDiscovery(object): + """ + The property that define the status of the OIDC Discovery feature for a cluster. + """ + + def __init__(self, **kwargs): + """ + Initializes a new OpenIdConnectDiscovery object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param is_open_id_connect_discovery_enabled: + The value to assign to the is_open_id_connect_discovery_enabled property of this OpenIdConnectDiscovery. + :type is_open_id_connect_discovery_enabled: bool + + """ + self.swagger_types = { + 'is_open_id_connect_discovery_enabled': 'bool' + } + + self.attribute_map = { + 'is_open_id_connect_discovery_enabled': 'isOpenIdConnectDiscoveryEnabled' + } + + self._is_open_id_connect_discovery_enabled = None + + @property + def is_open_id_connect_discovery_enabled(self): + """ + Gets the is_open_id_connect_discovery_enabled of this OpenIdConnectDiscovery. + Whether the cluster has OIDC Discovery enabled. Defaults to false. If set to true, the cluster will be assigned a public OIDC Discovery endpoint. + + + :return: The is_open_id_connect_discovery_enabled of this OpenIdConnectDiscovery. + :rtype: bool + """ + return self._is_open_id_connect_discovery_enabled + + @is_open_id_connect_discovery_enabled.setter + def is_open_id_connect_discovery_enabled(self, is_open_id_connect_discovery_enabled): + """ + Sets the is_open_id_connect_discovery_enabled of this OpenIdConnectDiscovery. + Whether the cluster has OIDC Discovery enabled. Defaults to false. If set to true, the cluster will be assigned a public OIDC Discovery endpoint. + + + :param is_open_id_connect_discovery_enabled: The is_open_id_connect_discovery_enabled of this OpenIdConnectDiscovery. + :type: bool + """ + self._is_open_id_connect_discovery_enabled = is_open_id_connect_discovery_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/container_engine/models/open_id_connect_token_authentication_config.py b/src/oci/container_engine/models/open_id_connect_token_authentication_config.py new file mode 100644 index 0000000000..511ac35279 --- /dev/null +++ b/src/oci/container_engine/models/open_id_connect_token_authentication_config.py @@ -0,0 +1,370 @@ +# 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: 20180222 + + +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 OpenIdConnectTokenAuthenticationConfig(object): + """ + The properties that configure OIDC token authentication in kube-apiserver. + For more information, see `Configuring the API Server`__. + + __ https://kubernetes.io/docs/reference/access-authn-authz/authentication/#using-flags + """ + + def __init__(self, **kwargs): + """ + Initializes a new OpenIdConnectTokenAuthenticationConfig object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param issuer_url: + The value to assign to the issuer_url property of this OpenIdConnectTokenAuthenticationConfig. + :type issuer_url: str + + :param client_id: + The value to assign to the client_id property of this OpenIdConnectTokenAuthenticationConfig. + :type client_id: str + + :param username_claim: + The value to assign to the username_claim property of this OpenIdConnectTokenAuthenticationConfig. + :type username_claim: str + + :param username_prefix: + The value to assign to the username_prefix property of this OpenIdConnectTokenAuthenticationConfig. + :type username_prefix: str + + :param groups_claim: + The value to assign to the groups_claim property of this OpenIdConnectTokenAuthenticationConfig. + :type groups_claim: str + + :param groups_prefix: + The value to assign to the groups_prefix property of this OpenIdConnectTokenAuthenticationConfig. + :type groups_prefix: str + + :param required_claims: + The value to assign to the required_claims property of this OpenIdConnectTokenAuthenticationConfig. + :type required_claims: list[oci.container_engine.models.KeyValue] + + :param ca_certificate: + The value to assign to the ca_certificate property of this OpenIdConnectTokenAuthenticationConfig. + :type ca_certificate: str + + :param signing_algorithms: + The value to assign to the signing_algorithms property of this OpenIdConnectTokenAuthenticationConfig. + :type signing_algorithms: list[str] + + :param is_open_id_connect_auth_enabled: + The value to assign to the is_open_id_connect_auth_enabled property of this OpenIdConnectTokenAuthenticationConfig. + :type is_open_id_connect_auth_enabled: bool + + """ + self.swagger_types = { + 'issuer_url': 'str', + 'client_id': 'str', + 'username_claim': 'str', + 'username_prefix': 'str', + 'groups_claim': 'str', + 'groups_prefix': 'str', + 'required_claims': 'list[KeyValue]', + 'ca_certificate': 'str', + 'signing_algorithms': 'list[str]', + 'is_open_id_connect_auth_enabled': 'bool' + } + + self.attribute_map = { + 'issuer_url': 'issuerUrl', + 'client_id': 'clientId', + 'username_claim': 'usernameClaim', + 'username_prefix': 'usernamePrefix', + 'groups_claim': 'groupsClaim', + 'groups_prefix': 'groupsPrefix', + 'required_claims': 'requiredClaims', + 'ca_certificate': 'caCertificate', + 'signing_algorithms': 'signingAlgorithms', + 'is_open_id_connect_auth_enabled': 'isOpenIdConnectAuthEnabled' + } + + self._issuer_url = None + self._client_id = None + self._username_claim = None + self._username_prefix = None + self._groups_claim = None + self._groups_prefix = None + self._required_claims = None + self._ca_certificate = None + self._signing_algorithms = None + self._is_open_id_connect_auth_enabled = None + + @property + def issuer_url(self): + """ + Gets the issuer_url of this OpenIdConnectTokenAuthenticationConfig. + URL of the provider that allows the API server to discover public signing keys. + Only URLs that use the https:// scheme are accepted. This is typically the provider's discovery URL, + changed to have an empty path. + + + :return: The issuer_url of this OpenIdConnectTokenAuthenticationConfig. + :rtype: str + """ + return self._issuer_url + + @issuer_url.setter + def issuer_url(self, issuer_url): + """ + Sets the issuer_url of this OpenIdConnectTokenAuthenticationConfig. + URL of the provider that allows the API server to discover public signing keys. + Only URLs that use the https:// scheme are accepted. This is typically the provider's discovery URL, + changed to have an empty path. + + + :param issuer_url: The issuer_url of this OpenIdConnectTokenAuthenticationConfig. + :type: str + """ + self._issuer_url = issuer_url + + @property + def client_id(self): + """ + Gets the client_id of this OpenIdConnectTokenAuthenticationConfig. + A client id that all tokens must be issued for. + + + :return: The client_id of this OpenIdConnectTokenAuthenticationConfig. + :rtype: str + """ + return self._client_id + + @client_id.setter + def client_id(self, client_id): + """ + Sets the client_id of this OpenIdConnectTokenAuthenticationConfig. + A client id that all tokens must be issued for. + + + :param client_id: The client_id of this OpenIdConnectTokenAuthenticationConfig. + :type: str + """ + self._client_id = client_id + + @property + def username_claim(self): + """ + Gets the username_claim of this OpenIdConnectTokenAuthenticationConfig. + JWT claim to use as the user name. By default sub, which is expected to be a unique identifier of the end + user. Admins can choose other claims, such as email or name, depending on their provider. However, claims + other than email will be prefixed with the issuer URL to prevent naming clashes with other plugins. + + + :return: The username_claim of this OpenIdConnectTokenAuthenticationConfig. + :rtype: str + """ + return self._username_claim + + @username_claim.setter + def username_claim(self, username_claim): + """ + Sets the username_claim of this OpenIdConnectTokenAuthenticationConfig. + JWT claim to use as the user name. By default sub, which is expected to be a unique identifier of the end + user. Admins can choose other claims, such as email or name, depending on their provider. However, claims + other than email will be prefixed with the issuer URL to prevent naming clashes with other plugins. + + + :param username_claim: The username_claim of this OpenIdConnectTokenAuthenticationConfig. + :type: str + """ + self._username_claim = username_claim + + @property + def username_prefix(self): + """ + Gets the username_prefix of this OpenIdConnectTokenAuthenticationConfig. + Prefix prepended to username claims to prevent clashes with existing names (such as system:users). + For example, the value oidc: will create usernames like oidc:jane.doe. If this flag isn't provided and + --oidc-username-claim is a value other than email the prefix defaults to ( Issuer URL )# where + ( Issuer URL ) is the value of --oidc-issuer-url. The value - can be used to disable all prefixing. + + + :return: The username_prefix of this OpenIdConnectTokenAuthenticationConfig. + :rtype: str + """ + return self._username_prefix + + @username_prefix.setter + def username_prefix(self, username_prefix): + """ + Sets the username_prefix of this OpenIdConnectTokenAuthenticationConfig. + Prefix prepended to username claims to prevent clashes with existing names (such as system:users). + For example, the value oidc: will create usernames like oidc:jane.doe. If this flag isn't provided and + --oidc-username-claim is a value other than email the prefix defaults to ( Issuer URL )# where + ( Issuer URL ) is the value of --oidc-issuer-url. The value - can be used to disable all prefixing. + + + :param username_prefix: The username_prefix of this OpenIdConnectTokenAuthenticationConfig. + :type: str + """ + self._username_prefix = username_prefix + + @property + def groups_claim(self): + """ + Gets the groups_claim of this OpenIdConnectTokenAuthenticationConfig. + JWT claim to use as the user's group. If the claim is present it must be an array of strings. + + + :return: The groups_claim of this OpenIdConnectTokenAuthenticationConfig. + :rtype: str + """ + return self._groups_claim + + @groups_claim.setter + def groups_claim(self, groups_claim): + """ + Sets the groups_claim of this OpenIdConnectTokenAuthenticationConfig. + JWT claim to use as the user's group. If the claim is present it must be an array of strings. + + + :param groups_claim: The groups_claim of this OpenIdConnectTokenAuthenticationConfig. + :type: str + """ + self._groups_claim = groups_claim + + @property + def groups_prefix(self): + """ + Gets the groups_prefix of this OpenIdConnectTokenAuthenticationConfig. + Prefix prepended to group claims to prevent clashes with existing names (such as system:groups). + + + :return: The groups_prefix of this OpenIdConnectTokenAuthenticationConfig. + :rtype: str + """ + return self._groups_prefix + + @groups_prefix.setter + def groups_prefix(self, groups_prefix): + """ + Sets the groups_prefix of this OpenIdConnectTokenAuthenticationConfig. + Prefix prepended to group claims to prevent clashes with existing names (such as system:groups). + + + :param groups_prefix: The groups_prefix of this OpenIdConnectTokenAuthenticationConfig. + :type: str + """ + self._groups_prefix = groups_prefix + + @property + def required_claims(self): + """ + Gets the required_claims of this OpenIdConnectTokenAuthenticationConfig. + A key=value pair that describes a required claim in the ID Token. If set, the claim is verified to be present + in the ID Token with a matching value. Repeat this flag to specify multiple claims. + + + :return: The required_claims of this OpenIdConnectTokenAuthenticationConfig. + :rtype: list[oci.container_engine.models.KeyValue] + """ + return self._required_claims + + @required_claims.setter + def required_claims(self, required_claims): + """ + Sets the required_claims of this OpenIdConnectTokenAuthenticationConfig. + A key=value pair that describes a required claim in the ID Token. If set, the claim is verified to be present + in the ID Token with a matching value. Repeat this flag to specify multiple claims. + + + :param required_claims: The required_claims of this OpenIdConnectTokenAuthenticationConfig. + :type: list[oci.container_engine.models.KeyValue] + """ + self._required_claims = required_claims + + @property + def ca_certificate(self): + """ + Gets the ca_certificate of this OpenIdConnectTokenAuthenticationConfig. + A Base64 encoded public RSA or ECDSA certificates used to signed your identity provider's web certificate. + + + :return: The ca_certificate of this OpenIdConnectTokenAuthenticationConfig. + :rtype: str + """ + return self._ca_certificate + + @ca_certificate.setter + def ca_certificate(self, ca_certificate): + """ + Sets the ca_certificate of this OpenIdConnectTokenAuthenticationConfig. + A Base64 encoded public RSA or ECDSA certificates used to signed your identity provider's web certificate. + + + :param ca_certificate: The ca_certificate of this OpenIdConnectTokenAuthenticationConfig. + :type: str + """ + self._ca_certificate = ca_certificate + + @property + def signing_algorithms(self): + """ + Gets the signing_algorithms of this OpenIdConnectTokenAuthenticationConfig. + The signing algorithms accepted. Default is [\"RS256\"]. + + + :return: The signing_algorithms of this OpenIdConnectTokenAuthenticationConfig. + :rtype: list[str] + """ + return self._signing_algorithms + + @signing_algorithms.setter + def signing_algorithms(self, signing_algorithms): + """ + Sets the signing_algorithms of this OpenIdConnectTokenAuthenticationConfig. + The signing algorithms accepted. Default is [\"RS256\"]. + + + :param signing_algorithms: The signing_algorithms of this OpenIdConnectTokenAuthenticationConfig. + :type: list[str] + """ + self._signing_algorithms = signing_algorithms + + @property + def is_open_id_connect_auth_enabled(self): + """ + **[Required]** Gets the is_open_id_connect_auth_enabled of this OpenIdConnectTokenAuthenticationConfig. + Whether the cluster has OIDC Auth Config enabled. Defaults to false. + + + :return: The is_open_id_connect_auth_enabled of this OpenIdConnectTokenAuthenticationConfig. + :rtype: bool + """ + return self._is_open_id_connect_auth_enabled + + @is_open_id_connect_auth_enabled.setter + def is_open_id_connect_auth_enabled(self, is_open_id_connect_auth_enabled): + """ + Sets the is_open_id_connect_auth_enabled of this OpenIdConnectTokenAuthenticationConfig. + Whether the cluster has OIDC Auth Config enabled. Defaults to false. + + + :param is_open_id_connect_auth_enabled: The is_open_id_connect_auth_enabled of this OpenIdConnectTokenAuthenticationConfig. + :type: bool + """ + self._is_open_id_connect_auth_enabled = is_open_id_connect_auth_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/container_engine/models/update_cluster_options_details.py b/src/oci/container_engine/models/update_cluster_options_details.py index 30bc1b377d..0a1e11f88b 100644 --- a/src/oci/container_engine/models/update_cluster_options_details.py +++ b/src/oci/container_engine/models/update_cluster_options_details.py @@ -32,22 +32,36 @@ def __init__(self, **kwargs): The value to assign to the service_lb_config property of this UpdateClusterOptionsDetails. :type service_lb_config: oci.container_engine.models.ServiceLbConfigDetails + :param open_id_connect_token_authentication_config: + The value to assign to the open_id_connect_token_authentication_config property of this UpdateClusterOptionsDetails. + :type open_id_connect_token_authentication_config: oci.container_engine.models.OpenIdConnectTokenAuthenticationConfig + + :param open_id_connect_discovery: + The value to assign to the open_id_connect_discovery property of this UpdateClusterOptionsDetails. + :type open_id_connect_discovery: oci.container_engine.models.OpenIdConnectDiscovery + """ self.swagger_types = { 'admission_controller_options': 'AdmissionControllerOptions', 'persistent_volume_config': 'PersistentVolumeConfigDetails', - 'service_lb_config': 'ServiceLbConfigDetails' + 'service_lb_config': 'ServiceLbConfigDetails', + 'open_id_connect_token_authentication_config': 'OpenIdConnectTokenAuthenticationConfig', + 'open_id_connect_discovery': 'OpenIdConnectDiscovery' } self.attribute_map = { 'admission_controller_options': 'admissionControllerOptions', 'persistent_volume_config': 'persistentVolumeConfig', - 'service_lb_config': 'serviceLbConfig' + 'service_lb_config': 'serviceLbConfig', + 'open_id_connect_token_authentication_config': 'openIdConnectTokenAuthenticationConfig', + 'open_id_connect_discovery': 'openIdConnectDiscovery' } self._admission_controller_options = None self._persistent_volume_config = None self._service_lb_config = None + self._open_id_connect_token_authentication_config = None + self._open_id_connect_discovery = None @property def admission_controller_options(self): @@ -113,6 +127,46 @@ def service_lb_config(self, service_lb_config): """ self._service_lb_config = service_lb_config + @property + def open_id_connect_token_authentication_config(self): + """ + Gets the open_id_connect_token_authentication_config of this UpdateClusterOptionsDetails. + + :return: The open_id_connect_token_authentication_config of this UpdateClusterOptionsDetails. + :rtype: oci.container_engine.models.OpenIdConnectTokenAuthenticationConfig + """ + return self._open_id_connect_token_authentication_config + + @open_id_connect_token_authentication_config.setter + def open_id_connect_token_authentication_config(self, open_id_connect_token_authentication_config): + """ + Sets the open_id_connect_token_authentication_config of this UpdateClusterOptionsDetails. + + :param open_id_connect_token_authentication_config: The open_id_connect_token_authentication_config of this UpdateClusterOptionsDetails. + :type: oci.container_engine.models.OpenIdConnectTokenAuthenticationConfig + """ + self._open_id_connect_token_authentication_config = open_id_connect_token_authentication_config + + @property + def open_id_connect_discovery(self): + """ + Gets the open_id_connect_discovery of this UpdateClusterOptionsDetails. + + :return: The open_id_connect_discovery of this UpdateClusterOptionsDetails. + :rtype: oci.container_engine.models.OpenIdConnectDiscovery + """ + return self._open_id_connect_discovery + + @open_id_connect_discovery.setter + def open_id_connect_discovery(self, open_id_connect_discovery): + """ + Sets the open_id_connect_discovery of this UpdateClusterOptionsDetails. + + :param open_id_connect_discovery: The open_id_connect_discovery of this UpdateClusterOptionsDetails. + :type: oci.container_engine.models.OpenIdConnectDiscovery + """ + self._open_id_connect_discovery = open_id_connect_discovery + 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 e69006f2a5..d01ca352ae 100644 --- a/src/oci/core/models/__init__.py +++ b/src/oci/core/models/__init__.py @@ -62,6 +62,7 @@ from .boot_volume_replica_details import BootVolumeReplicaDetails from .boot_volume_replica_info import BootVolumeReplicaInfo from .boot_volume_source_details import BootVolumeSourceDetails +from .boot_volume_source_from_boot_volume_backup_delta_details import BootVolumeSourceFromBootVolumeBackupDeltaDetails from .boot_volume_source_from_boot_volume_backup_details import BootVolumeSourceFromBootVolumeBackupDetails from .boot_volume_source_from_boot_volume_details import BootVolumeSourceFromBootVolumeDetails from .boot_volume_source_from_boot_volume_replica_details import BootVolumeSourceFromBootVolumeReplicaDetails @@ -605,6 +606,7 @@ from .volume_kms_key import VolumeKmsKey from .volume_source_details import VolumeSourceDetails from .volume_source_from_block_volume_replica_details import VolumeSourceFromBlockVolumeReplicaDetails +from .volume_source_from_volume_backup_delta_details import VolumeSourceFromVolumeBackupDeltaDetails from .volume_source_from_volume_backup_details import VolumeSourceFromVolumeBackupDetails from .volume_source_from_volume_details import VolumeSourceFromVolumeDetails from .vtap import Vtap @@ -668,6 +670,7 @@ "BootVolumeReplicaDetails": BootVolumeReplicaDetails, "BootVolumeReplicaInfo": BootVolumeReplicaInfo, "BootVolumeSourceDetails": BootVolumeSourceDetails, + "BootVolumeSourceFromBootVolumeBackupDeltaDetails": BootVolumeSourceFromBootVolumeBackupDeltaDetails, "BootVolumeSourceFromBootVolumeBackupDetails": BootVolumeSourceFromBootVolumeBackupDetails, "BootVolumeSourceFromBootVolumeDetails": BootVolumeSourceFromBootVolumeDetails, "BootVolumeSourceFromBootVolumeReplicaDetails": BootVolumeSourceFromBootVolumeReplicaDetails, @@ -1211,6 +1214,7 @@ "VolumeKmsKey": VolumeKmsKey, "VolumeSourceDetails": VolumeSourceDetails, "VolumeSourceFromBlockVolumeReplicaDetails": VolumeSourceFromBlockVolumeReplicaDetails, + "VolumeSourceFromVolumeBackupDeltaDetails": VolumeSourceFromVolumeBackupDeltaDetails, "VolumeSourceFromVolumeBackupDetails": VolumeSourceFromVolumeBackupDetails, "VolumeSourceFromVolumeDetails": VolumeSourceFromVolumeDetails, "Vtap": Vtap, diff --git a/src/oci/core/models/block_volume_replica.py b/src/oci/core/models/block_volume_replica.py index a7eb3f7d3d..d94403d4b0 100644 --- a/src/oci/core/models/block_volume_replica.py +++ b/src/oci/core/models/block_volume_replica.py @@ -110,6 +110,10 @@ def __init__(self, **kwargs): The value to assign to the volume_group_replica_id property of this BlockVolumeReplica. :type volume_group_replica_id: str + :param kms_key_id: + The value to assign to the kms_key_id property of this BlockVolumeReplica. + :type kms_key_id: str + """ self.swagger_types = { 'availability_domain': 'str', @@ -124,7 +128,8 @@ def __init__(self, **kwargs): 'time_last_synced': 'datetime', 'block_volume_id': 'str', 'total_data_transferred_in_gbs': 'int', - 'volume_group_replica_id': 'str' + 'volume_group_replica_id': 'str', + 'kms_key_id': 'str' } self.attribute_map = { @@ -140,7 +145,8 @@ def __init__(self, **kwargs): 'time_last_synced': 'timeLastSynced', 'block_volume_id': 'blockVolumeId', 'total_data_transferred_in_gbs': 'totalDataTransferredInGBs', - 'volume_group_replica_id': 'volumeGroupReplicaId' + 'volume_group_replica_id': 'volumeGroupReplicaId', + 'kms_key_id': 'kmsKeyId' } self._availability_domain = None @@ -156,6 +162,7 @@ def __init__(self, **kwargs): self._block_volume_id = None self._total_data_transferred_in_gbs = None self._volume_group_replica_id = None + self._kms_key_id = None @property def availability_domain(self): @@ -513,6 +520,40 @@ def volume_group_replica_id(self, volume_group_replica_id): """ self._volume_group_replica_id = volume_group_replica_id + @property + def kms_key_id(self): + """ + Gets the kms_key_id of this BlockVolumeReplica. + The OCID of the Vault service key to assign as the master encryption key for the block volume replica, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :return: The kms_key_id of this BlockVolumeReplica. + :rtype: str + """ + return self._kms_key_id + + @kms_key_id.setter + def kms_key_id(self, kms_key_id): + """ + Sets the kms_key_id of this BlockVolumeReplica. + The OCID of the Vault service key to assign as the master encryption key for the block volume replica, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :param kms_key_id: The kms_key_id of this BlockVolumeReplica. + :type: str + """ + self._kms_key_id = kms_key_id + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/core/models/block_volume_replica_details.py b/src/oci/core/models/block_volume_replica_details.py index 9addab5908..fabe02c372 100644 --- a/src/oci/core/models/block_volume_replica_details.py +++ b/src/oci/core/models/block_volume_replica_details.py @@ -28,19 +28,26 @@ def __init__(self, **kwargs): The value to assign to the availability_domain property of this BlockVolumeReplicaDetails. :type availability_domain: str + :param xrr_kms_key_id: + The value to assign to the xrr_kms_key_id property of this BlockVolumeReplicaDetails. + :type xrr_kms_key_id: str + """ self.swagger_types = { 'display_name': 'str', - 'availability_domain': 'str' + 'availability_domain': 'str', + 'xrr_kms_key_id': 'str' } self.attribute_map = { 'display_name': 'displayName', - 'availability_domain': 'availabilityDomain' + 'availability_domain': 'availabilityDomain', + 'xrr_kms_key_id': 'xrrKmsKeyId' } self._display_name = None self._availability_domain = None + self._xrr_kms_key_id = None @property def display_name(self): @@ -96,6 +103,42 @@ def availability_domain(self, availability_domain): """ self._availability_domain = availability_domain + @property + def xrr_kms_key_id(self): + """ + Gets the xrr_kms_key_id of this BlockVolumeReplicaDetails. + The OCID of the Vault service key which is the master encryption key for the cross region block volume replicas, which will be used in the destination region to encrypt the block volume replica's encryption keys. + For more information about the Vault service and encryption keys, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :return: The xrr_kms_key_id of this BlockVolumeReplicaDetails. + :rtype: str + """ + return self._xrr_kms_key_id + + @xrr_kms_key_id.setter + def xrr_kms_key_id(self, xrr_kms_key_id): + """ + Sets the xrr_kms_key_id of this BlockVolumeReplicaDetails. + The OCID of the Vault service key which is the master encryption key for the cross region block volume replicas, which will be used in the destination region to encrypt the block volume replica's encryption keys. + For more information about the Vault service and encryption keys, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :param xrr_kms_key_id: The xrr_kms_key_id of this BlockVolumeReplicaDetails. + :type: str + """ + self._xrr_kms_key_id = xrr_kms_key_id + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/core/models/block_volume_replica_info.py b/src/oci/core/models/block_volume_replica_info.py index 6779ce05d9..da08b4588a 100644 --- a/src/oci/core/models/block_volume_replica_info.py +++ b/src/oci/core/models/block_volume_replica_info.py @@ -32,22 +32,29 @@ def __init__(self, **kwargs): The value to assign to the availability_domain property of this BlockVolumeReplicaInfo. :type availability_domain: str + :param kms_key_id: + The value to assign to the kms_key_id property of this BlockVolumeReplicaInfo. + :type kms_key_id: str + """ self.swagger_types = { 'display_name': 'str', 'block_volume_replica_id': 'str', - 'availability_domain': 'str' + 'availability_domain': 'str', + 'kms_key_id': 'str' } self.attribute_map = { 'display_name': 'displayName', 'block_volume_replica_id': 'blockVolumeReplicaId', - 'availability_domain': 'availabilityDomain' + 'availability_domain': 'availabilityDomain', + 'kms_key_id': 'kmsKeyId' } self._display_name = None self._block_volume_replica_id = None self._availability_domain = None + self._kms_key_id = None @property def display_name(self): @@ -127,6 +134,40 @@ def availability_domain(self, availability_domain): """ self._availability_domain = availability_domain + @property + def kms_key_id(self): + """ + Gets the kms_key_id of this BlockVolumeReplicaInfo. + The OCID of the Vault service key to assign as the master encryption key for the block volume replica, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :return: The kms_key_id of this BlockVolumeReplicaInfo. + :rtype: str + """ + return self._kms_key_id + + @kms_key_id.setter + def kms_key_id(self, kms_key_id): + """ + Sets the kms_key_id of this BlockVolumeReplicaInfo. + The OCID of the Vault service key to assign as the master encryption key for the block volume replica, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :param kms_key_id: The kms_key_id of this BlockVolumeReplicaInfo. + :type: str + """ + self._kms_key_id = kms_key_id + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/core/models/boot_volume_replica.py b/src/oci/core/models/boot_volume_replica.py index f7b99d940f..413b1e47cc 100644 --- a/src/oci/core/models/boot_volume_replica.py +++ b/src/oci/core/models/boot_volume_replica.py @@ -114,6 +114,10 @@ def __init__(self, **kwargs): The value to assign to the volume_group_replica_id property of this BootVolumeReplica. :type volume_group_replica_id: str + :param kms_key_id: + The value to assign to the kms_key_id property of this BootVolumeReplica. + :type kms_key_id: str + """ self.swagger_types = { 'availability_domain': 'str', @@ -129,7 +133,8 @@ def __init__(self, **kwargs): 'boot_volume_id': 'str', 'image_id': 'str', 'total_data_transferred_in_gbs': 'int', - 'volume_group_replica_id': 'str' + 'volume_group_replica_id': 'str', + 'kms_key_id': 'str' } self.attribute_map = { @@ -146,7 +151,8 @@ def __init__(self, **kwargs): 'boot_volume_id': 'bootVolumeId', 'image_id': 'imageId', 'total_data_transferred_in_gbs': 'totalDataTransferredInGBs', - 'volume_group_replica_id': 'volumeGroupReplicaId' + 'volume_group_replica_id': 'volumeGroupReplicaId', + 'kms_key_id': 'kmsKeyId' } self._availability_domain = None @@ -163,6 +169,7 @@ def __init__(self, **kwargs): self._image_id = None self._total_data_transferred_in_gbs = None self._volume_group_replica_id = None + self._kms_key_id = None @property def availability_domain(self): @@ -544,6 +551,40 @@ def volume_group_replica_id(self, volume_group_replica_id): """ self._volume_group_replica_id = volume_group_replica_id + @property + def kms_key_id(self): + """ + Gets the kms_key_id of this BootVolumeReplica. + The OCID of the Vault service key to assign as the master encryption key for the boot volume replica, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :return: The kms_key_id of this BootVolumeReplica. + :rtype: str + """ + return self._kms_key_id + + @kms_key_id.setter + def kms_key_id(self, kms_key_id): + """ + Sets the kms_key_id of this BootVolumeReplica. + The OCID of the Vault service key to assign as the master encryption key for the boot volume replica, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :param kms_key_id: The kms_key_id of this BootVolumeReplica. + :type: str + """ + self._kms_key_id = kms_key_id + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/core/models/boot_volume_replica_details.py b/src/oci/core/models/boot_volume_replica_details.py index df32bc79c1..dd55e0bb11 100644 --- a/src/oci/core/models/boot_volume_replica_details.py +++ b/src/oci/core/models/boot_volume_replica_details.py @@ -28,19 +28,26 @@ def __init__(self, **kwargs): The value to assign to the availability_domain property of this BootVolumeReplicaDetails. :type availability_domain: str + :param xrr_kms_key_id: + The value to assign to the xrr_kms_key_id property of this BootVolumeReplicaDetails. + :type xrr_kms_key_id: str + """ self.swagger_types = { 'display_name': 'str', - 'availability_domain': 'str' + 'availability_domain': 'str', + 'xrr_kms_key_id': 'str' } self.attribute_map = { 'display_name': 'displayName', - 'availability_domain': 'availabilityDomain' + 'availability_domain': 'availabilityDomain', + 'xrr_kms_key_id': 'xrrKmsKeyId' } self._display_name = None self._availability_domain = None + self._xrr_kms_key_id = None @property def display_name(self): @@ -96,6 +103,42 @@ def availability_domain(self, availability_domain): """ self._availability_domain = availability_domain + @property + def xrr_kms_key_id(self): + """ + Gets the xrr_kms_key_id of this BootVolumeReplicaDetails. + The OCID of the Vault service key which is the master encryption key for the cross region boot volume replicas, which will be used in the destination region to encrypt the boot volume replica's encryption keys. + For more information about the Vault service and encryption keys, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :return: The xrr_kms_key_id of this BootVolumeReplicaDetails. + :rtype: str + """ + return self._xrr_kms_key_id + + @xrr_kms_key_id.setter + def xrr_kms_key_id(self, xrr_kms_key_id): + """ + Sets the xrr_kms_key_id of this BootVolumeReplicaDetails. + The OCID of the Vault service key which is the master encryption key for the cross region boot volume replicas, which will be used in the destination region to encrypt the boot volume replica's encryption keys. + For more information about the Vault service and encryption keys, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :param xrr_kms_key_id: The xrr_kms_key_id of this BootVolumeReplicaDetails. + :type: str + """ + self._xrr_kms_key_id = xrr_kms_key_id + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/core/models/boot_volume_replica_info.py b/src/oci/core/models/boot_volume_replica_info.py index de7876e74c..0edec59fe5 100644 --- a/src/oci/core/models/boot_volume_replica_info.py +++ b/src/oci/core/models/boot_volume_replica_info.py @@ -32,22 +32,29 @@ def __init__(self, **kwargs): The value to assign to the availability_domain property of this BootVolumeReplicaInfo. :type availability_domain: str + :param kms_key_id: + The value to assign to the kms_key_id property of this BootVolumeReplicaInfo. + :type kms_key_id: str + """ self.swagger_types = { 'display_name': 'str', 'boot_volume_replica_id': 'str', - 'availability_domain': 'str' + 'availability_domain': 'str', + 'kms_key_id': 'str' } self.attribute_map = { 'display_name': 'displayName', 'boot_volume_replica_id': 'bootVolumeReplicaId', - 'availability_domain': 'availabilityDomain' + 'availability_domain': 'availabilityDomain', + 'kms_key_id': 'kmsKeyId' } self._display_name = None self._boot_volume_replica_id = None self._availability_domain = None + self._kms_key_id = None @property def display_name(self): @@ -127,6 +134,40 @@ def availability_domain(self, availability_domain): """ self._availability_domain = availability_domain + @property + def kms_key_id(self): + """ + Gets the kms_key_id of this BootVolumeReplicaInfo. + The OCID of the Vault service key to assign as the master encryption key for the block volume replica, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :return: The kms_key_id of this BootVolumeReplicaInfo. + :rtype: str + """ + return self._kms_key_id + + @kms_key_id.setter + def kms_key_id(self, kms_key_id): + """ + Sets the kms_key_id of this BootVolumeReplicaInfo. + The OCID of the Vault service key to assign as the master encryption key for the block volume replica, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :param kms_key_id: The kms_key_id of this BootVolumeReplicaInfo. + :type: str + """ + self._kms_key_id = kms_key_id + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/core/models/boot_volume_source_details.py b/src/oci/core/models/boot_volume_source_details.py index 0e37e36842..24f116ba3c 100644 --- a/src/oci/core/models/boot_volume_source_details.py +++ b/src/oci/core/models/boot_volume_source_details.py @@ -23,6 +23,7 @@ def __init__(self, **kwargs): * :class:`~oci.core.models.BootVolumeSourceFromBootVolumeBackupDetails` * :class:`~oci.core.models.BootVolumeSourceFromBootVolumeDetails` * :class:`~oci.core.models.BootVolumeSourceFromBootVolumeReplicaDetails` + * :class:`~oci.core.models.BootVolumeSourceFromBootVolumeBackupDeltaDetails` The following keyword arguments are supported (corresponding to the getters/setters of this class): @@ -57,6 +58,9 @@ def get_subtype(object_dictionary): if type == 'bootVolumeReplica': return 'BootVolumeSourceFromBootVolumeReplicaDetails' + + if type == 'bootVolumeBackupDelta': + return 'BootVolumeSourceFromBootVolumeBackupDeltaDetails' else: return 'BootVolumeSourceDetails' diff --git a/src/oci/core/models/boot_volume_source_from_boot_volume_backup_delta_details.py b/src/oci/core/models/boot_volume_source_from_boot_volume_backup_delta_details.py new file mode 100644 index 0000000000..71aa186f2c --- /dev/null +++ b/src/oci/core/models/boot_volume_source_from_boot_volume_backup_delta_details.py @@ -0,0 +1,143 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20160918 + +from .boot_volume_source_details import BootVolumeSourceDetails +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 BootVolumeSourceFromBootVolumeBackupDeltaDetails(BootVolumeSourceDetails): + """ + Specifies the boot volume backups (first & second) and block size in bytes. + """ + + def __init__(self, **kwargs): + """ + Initializes a new BootVolumeSourceFromBootVolumeBackupDeltaDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.core.models.BootVolumeSourceFromBootVolumeBackupDeltaDetails.type` attribute + of this class is ``bootVolumeBackupDelta`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param type: + The value to assign to the type property of this BootVolumeSourceFromBootVolumeBackupDeltaDetails. + :type type: str + + :param first_backup_id: + The value to assign to the first_backup_id property of this BootVolumeSourceFromBootVolumeBackupDeltaDetails. + :type first_backup_id: str + + :param second_backup_id: + The value to assign to the second_backup_id property of this BootVolumeSourceFromBootVolumeBackupDeltaDetails. + :type second_backup_id: str + + :param change_block_size_in_bytes: + The value to assign to the change_block_size_in_bytes property of this BootVolumeSourceFromBootVolumeBackupDeltaDetails. + :type change_block_size_in_bytes: int + + """ + self.swagger_types = { + 'type': 'str', + 'first_backup_id': 'str', + 'second_backup_id': 'str', + 'change_block_size_in_bytes': 'int' + } + + self.attribute_map = { + 'type': 'type', + 'first_backup_id': 'firstBackupId', + 'second_backup_id': 'secondBackupId', + 'change_block_size_in_bytes': 'changeBlockSizeInBytes' + } + + self._type = None + self._first_backup_id = None + self._second_backup_id = None + self._change_block_size_in_bytes = None + self._type = 'bootVolumeBackupDelta' + + @property + def first_backup_id(self): + """ + **[Required]** Gets the first_backup_id of this BootVolumeSourceFromBootVolumeBackupDeltaDetails. + The OCID of the first boot volume backup. + + + :return: The first_backup_id of this BootVolumeSourceFromBootVolumeBackupDeltaDetails. + :rtype: str + """ + return self._first_backup_id + + @first_backup_id.setter + def first_backup_id(self, first_backup_id): + """ + Sets the first_backup_id of this BootVolumeSourceFromBootVolumeBackupDeltaDetails. + The OCID of the first boot volume backup. + + + :param first_backup_id: The first_backup_id of this BootVolumeSourceFromBootVolumeBackupDeltaDetails. + :type: str + """ + self._first_backup_id = first_backup_id + + @property + def second_backup_id(self): + """ + **[Required]** Gets the second_backup_id of this BootVolumeSourceFromBootVolumeBackupDeltaDetails. + The OCID of the second boot volume backup. + + + :return: The second_backup_id of this BootVolumeSourceFromBootVolumeBackupDeltaDetails. + :rtype: str + """ + return self._second_backup_id + + @second_backup_id.setter + def second_backup_id(self, second_backup_id): + """ + Sets the second_backup_id of this BootVolumeSourceFromBootVolumeBackupDeltaDetails. + The OCID of the second boot volume backup. + + + :param second_backup_id: The second_backup_id of this BootVolumeSourceFromBootVolumeBackupDeltaDetails. + :type: str + """ + self._second_backup_id = second_backup_id + + @property + def change_block_size_in_bytes(self): + """ + Gets the change_block_size_in_bytes of this BootVolumeSourceFromBootVolumeBackupDeltaDetails. + Block size in bytes to be considered while performing volume restore. The value must be a power of 2; ranging from 4KB (4096 bytes) to 1MB (1048576 bytes). If omitted, defaults to 4,096 bytes (4 KiB). + + + :return: The change_block_size_in_bytes of this BootVolumeSourceFromBootVolumeBackupDeltaDetails. + :rtype: int + """ + return self._change_block_size_in_bytes + + @change_block_size_in_bytes.setter + def change_block_size_in_bytes(self, change_block_size_in_bytes): + """ + Sets the change_block_size_in_bytes of this BootVolumeSourceFromBootVolumeBackupDeltaDetails. + Block size in bytes to be considered while performing volume restore. The value must be a power of 2; ranging from 4KB (4096 bytes) to 1MB (1048576 bytes). If omitted, defaults to 4,096 bytes (4 KiB). + + + :param change_block_size_in_bytes: The change_block_size_in_bytes of this BootVolumeSourceFromBootVolumeBackupDeltaDetails. + :type: int + """ + self._change_block_size_in_bytes = change_block_size_in_bytes + + 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/create_boot_volume_details.py b/src/oci/core/models/create_boot_volume_details.py index 11988a1733..e11c58a720 100644 --- a/src/oci/core/models/create_boot_volume_details.py +++ b/src/oci/core/models/create_boot_volume_details.py @@ -76,6 +76,10 @@ def __init__(self, **kwargs): The value to assign to the autotune_policies property of this CreateBootVolumeDetails. :type autotune_policies: list[oci.core.models.AutotunePolicy] + :param xrc_kms_key_id: + The value to assign to the xrc_kms_key_id property of this CreateBootVolumeDetails. + :type xrc_kms_key_id: str + """ self.swagger_types = { 'availability_domain': 'str', @@ -91,7 +95,8 @@ def __init__(self, **kwargs): 'source_details': 'BootVolumeSourceDetails', 'is_auto_tune_enabled': 'bool', 'boot_volume_replicas': 'list[BootVolumeReplicaDetails]', - 'autotune_policies': 'list[AutotunePolicy]' + 'autotune_policies': 'list[AutotunePolicy]', + 'xrc_kms_key_id': 'str' } self.attribute_map = { @@ -108,7 +113,8 @@ def __init__(self, **kwargs): 'source_details': 'sourceDetails', 'is_auto_tune_enabled': 'isAutoTuneEnabled', 'boot_volume_replicas': 'bootVolumeReplicas', - 'autotune_policies': 'autotunePolicies' + 'autotune_policies': 'autotunePolicies', + 'xrc_kms_key_id': 'xrcKmsKeyId' } self._availability_domain = None @@ -125,6 +131,7 @@ def __init__(self, **kwargs): self._is_auto_tune_enabled = None self._boot_volume_replicas = None self._autotune_policies = None + self._xrc_kms_key_id = None @property def availability_domain(self): @@ -520,6 +527,42 @@ def autotune_policies(self, autotune_policies): """ self._autotune_policies = autotune_policies + @property + def xrc_kms_key_id(self): + """ + Gets the xrc_kms_key_id of this CreateBootVolumeDetails. + The OCID of the Vault service key which is the master encryption key for the boot volume cross region backups, which will be used in the destination region to encrypt the backup's encryption keys. + For more information about the Vault service and encryption keys, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :return: The xrc_kms_key_id of this CreateBootVolumeDetails. + :rtype: str + """ + return self._xrc_kms_key_id + + @xrc_kms_key_id.setter + def xrc_kms_key_id(self, xrc_kms_key_id): + """ + Sets the xrc_kms_key_id of this CreateBootVolumeDetails. + The OCID of the Vault service key which is the master encryption key for the boot volume cross region backups, which will be used in the destination region to encrypt the backup's encryption keys. + For more information about the Vault service and encryption keys, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :param xrc_kms_key_id: The xrc_kms_key_id of this CreateBootVolumeDetails. + :type: str + """ + self._xrc_kms_key_id = xrc_kms_key_id + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/core/models/create_volume_backup_policy_assignment_details.py b/src/oci/core/models/create_volume_backup_policy_assignment_details.py index 7b521beffb..ff320555e0 100644 --- a/src/oci/core/models/create_volume_backup_policy_assignment_details.py +++ b/src/oci/core/models/create_volume_backup_policy_assignment_details.py @@ -28,19 +28,26 @@ def __init__(self, **kwargs): The value to assign to the policy_id property of this CreateVolumeBackupPolicyAssignmentDetails. :type policy_id: str + :param xrc_kms_key_id: + The value to assign to the xrc_kms_key_id property of this CreateVolumeBackupPolicyAssignmentDetails. + :type xrc_kms_key_id: str + """ self.swagger_types = { 'asset_id': 'str', - 'policy_id': 'str' + 'policy_id': 'str', + 'xrc_kms_key_id': 'str' } self.attribute_map = { 'asset_id': 'assetId', - 'policy_id': 'policyId' + 'policy_id': 'policyId', + 'xrc_kms_key_id': 'xrcKmsKeyId' } self._asset_id = None self._policy_id = None + self._xrc_kms_key_id = None @property def asset_id(self): @@ -90,6 +97,42 @@ def policy_id(self, policy_id): """ self._policy_id = policy_id + @property + def xrc_kms_key_id(self): + """ + Gets the xrc_kms_key_id of this CreateVolumeBackupPolicyAssignmentDetails. + The OCID of the Vault service key which is the master encryption key for the block / boot volume cross region backups, which will be used in the destination region to encrypt the backup's encryption keys. + For more information about the Vault service and encryption keys, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :return: The xrc_kms_key_id of this CreateVolumeBackupPolicyAssignmentDetails. + :rtype: str + """ + return self._xrc_kms_key_id + + @xrc_kms_key_id.setter + def xrc_kms_key_id(self, xrc_kms_key_id): + """ + Sets the xrc_kms_key_id of this CreateVolumeBackupPolicyAssignmentDetails. + The OCID of the Vault service key which is the master encryption key for the block / boot volume cross region backups, which will be used in the destination region to encrypt the backup's encryption keys. + For more information about the Vault service and encryption keys, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :param xrc_kms_key_id: The xrc_kms_key_id of this CreateVolumeBackupPolicyAssignmentDetails. + :type: str + """ + self._xrc_kms_key_id = xrc_kms_key_id + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/core/models/create_volume_details.py b/src/oci/core/models/create_volume_details.py index 5d8e68d020..d50beba26c 100644 --- a/src/oci/core/models/create_volume_details.py +++ b/src/oci/core/models/create_volume_details.py @@ -85,6 +85,10 @@ def __init__(self, **kwargs): The value to assign to the autotune_policies property of this CreateVolumeDetails. :type autotune_policies: list[oci.core.models.AutotunePolicy] + :param xrc_kms_key_id: + The value to assign to the xrc_kms_key_id property of this CreateVolumeDetails. + :type xrc_kms_key_id: str + """ self.swagger_types = { 'availability_domain': 'str', @@ -102,7 +106,8 @@ def __init__(self, **kwargs): 'volume_backup_id': 'str', 'is_auto_tune_enabled': 'bool', 'block_volume_replicas': 'list[BlockVolumeReplicaDetails]', - 'autotune_policies': 'list[AutotunePolicy]' + 'autotune_policies': 'list[AutotunePolicy]', + 'xrc_kms_key_id': 'str' } self.attribute_map = { @@ -121,7 +126,8 @@ def __init__(self, **kwargs): 'volume_backup_id': 'volumeBackupId', 'is_auto_tune_enabled': 'isAutoTuneEnabled', 'block_volume_replicas': 'blockVolumeReplicas', - 'autotune_policies': 'autotunePolicies' + 'autotune_policies': 'autotunePolicies', + 'xrc_kms_key_id': 'xrcKmsKeyId' } self._availability_domain = None @@ -140,6 +146,7 @@ def __init__(self, **kwargs): self._is_auto_tune_enabled = None self._block_volume_replicas = None self._autotune_policies = None + self._xrc_kms_key_id = None @property def availability_domain(self): @@ -593,6 +600,42 @@ def autotune_policies(self, autotune_policies): """ self._autotune_policies = autotune_policies + @property + def xrc_kms_key_id(self): + """ + Gets the xrc_kms_key_id of this CreateVolumeDetails. + The OCID of the Vault service key which is the master encryption key for the block volume cross region backups, which will be used in the destination region to encrypt the backup's encryption keys. + For more information about the Vault service and encryption keys, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :return: The xrc_kms_key_id of this CreateVolumeDetails. + :rtype: str + """ + return self._xrc_kms_key_id + + @xrc_kms_key_id.setter + def xrc_kms_key_id(self, xrc_kms_key_id): + """ + Sets the xrc_kms_key_id of this CreateVolumeDetails. + The OCID of the Vault service key which is the master encryption key for the block volume cross region backups, which will be used in the destination region to encrypt the backup's encryption keys. + For more information about the Vault service and encryption keys, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :param xrc_kms_key_id: The xrc_kms_key_id of this CreateVolumeDetails. + :type: str + """ + self._xrc_kms_key_id = xrc_kms_key_id + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/core/models/create_volume_group_details.py b/src/oci/core/models/create_volume_group_details.py index 4030342e2c..9efbcd76ee 100644 --- a/src/oci/core/models/create_volume_group_details.py +++ b/src/oci/core/models/create_volume_group_details.py @@ -56,6 +56,10 @@ def __init__(self, **kwargs): The value to assign to the cluster_placement_group_id property of this CreateVolumeGroupDetails. :type cluster_placement_group_id: str + :param xrc_kms_key_id: + The value to assign to the xrc_kms_key_id property of this CreateVolumeGroupDetails. + :type xrc_kms_key_id: str + """ self.swagger_types = { 'availability_domain': 'str', @@ -66,7 +70,8 @@ def __init__(self, **kwargs): 'freeform_tags': 'dict(str, str)', 'source_details': 'VolumeGroupSourceDetails', 'volume_group_replicas': 'list[VolumeGroupReplicaDetails]', - 'cluster_placement_group_id': 'str' + 'cluster_placement_group_id': 'str', + 'xrc_kms_key_id': 'str' } self.attribute_map = { @@ -78,7 +83,8 @@ def __init__(self, **kwargs): 'freeform_tags': 'freeformTags', 'source_details': 'sourceDetails', 'volume_group_replicas': 'volumeGroupReplicas', - 'cluster_placement_group_id': 'clusterPlacementGroupId' + 'cluster_placement_group_id': 'clusterPlacementGroupId', + 'xrc_kms_key_id': 'xrcKmsKeyId' } self._availability_domain = None @@ -90,6 +96,7 @@ def __init__(self, **kwargs): self._source_details = None self._volume_group_replicas = None self._cluster_placement_group_id = None + self._xrc_kms_key_id = None @property def availability_domain(self): @@ -329,6 +336,42 @@ def cluster_placement_group_id(self, cluster_placement_group_id): """ self._cluster_placement_group_id = cluster_placement_group_id + @property + def xrc_kms_key_id(self): + """ + Gets the xrc_kms_key_id of this CreateVolumeGroupDetails. + The OCID of the Vault service key which is the master encryption key for the volume's cross region backups, which will be used in the destination region to encrypt the backup's encryption keys. + For more information about the Vault service and encryption keys, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :return: The xrc_kms_key_id of this CreateVolumeGroupDetails. + :rtype: str + """ + return self._xrc_kms_key_id + + @xrc_kms_key_id.setter + def xrc_kms_key_id(self, xrc_kms_key_id): + """ + Sets the xrc_kms_key_id of this CreateVolumeGroupDetails. + The OCID of the Vault service key which is the master encryption key for the volume's cross region backups, which will be used in the destination region to encrypt the backup's encryption keys. + For more information about the Vault service and encryption keys, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :param xrc_kms_key_id: The xrc_kms_key_id of this CreateVolumeGroupDetails. + :type: str + """ + self._xrc_kms_key_id = xrc_kms_key_id + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/core/models/instance_configuration_create_volume_details.py b/src/oci/core/models/instance_configuration_create_volume_details.py index a79cdb7be7..e01765b0bc 100644 --- a/src/oci/core/models/instance_configuration_create_volume_details.py +++ b/src/oci/core/models/instance_configuration_create_volume_details.py @@ -76,6 +76,10 @@ def __init__(self, **kwargs): The value to assign to the autotune_policies property of this InstanceConfigurationCreateVolumeDetails. :type autotune_policies: list[oci.core.models.InstanceConfigurationAutotunePolicy] + :param xrc_kms_key_id: + The value to assign to the xrc_kms_key_id property of this InstanceConfigurationCreateVolumeDetails. + :type xrc_kms_key_id: str + """ self.swagger_types = { 'availability_domain': 'str', @@ -91,7 +95,8 @@ def __init__(self, **kwargs): 'cluster_placement_group_id': 'str', 'size_in_gbs': 'int', 'source_details': 'InstanceConfigurationVolumeSourceDetails', - 'autotune_policies': 'list[InstanceConfigurationAutotunePolicy]' + 'autotune_policies': 'list[InstanceConfigurationAutotunePolicy]', + 'xrc_kms_key_id': 'str' } self.attribute_map = { @@ -108,7 +113,8 @@ def __init__(self, **kwargs): 'cluster_placement_group_id': 'clusterPlacementGroupId', 'size_in_gbs': 'sizeInGBs', 'source_details': 'sourceDetails', - 'autotune_policies': 'autotunePolicies' + 'autotune_policies': 'autotunePolicies', + 'xrc_kms_key_id': 'xrcKmsKeyId' } self._availability_domain = None @@ -125,6 +131,7 @@ def __init__(self, **kwargs): self._size_in_gbs = None self._source_details = None self._autotune_policies = None + self._xrc_kms_key_id = None @property def availability_domain(self): @@ -524,6 +531,42 @@ def autotune_policies(self, autotune_policies): """ self._autotune_policies = autotune_policies + @property + def xrc_kms_key_id(self): + """ + Gets the xrc_kms_key_id of this InstanceConfigurationCreateVolumeDetails. + The OCID of the Vault service key which is the master encryption key for the block volume cross region backups, which will be used in the destination region to encrypt the backup's encryption keys. + For more information about the Vault service and encryption keys, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :return: The xrc_kms_key_id of this InstanceConfigurationCreateVolumeDetails. + :rtype: str + """ + return self._xrc_kms_key_id + + @xrc_kms_key_id.setter + def xrc_kms_key_id(self, xrc_kms_key_id): + """ + Sets the xrc_kms_key_id of this InstanceConfigurationCreateVolumeDetails. + The OCID of the Vault service key which is the master encryption key for the block volume cross region backups, which will be used in the destination region to encrypt the backup's encryption keys. + For more information about the Vault service and encryption keys, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :param xrc_kms_key_id: The xrc_kms_key_id of this InstanceConfigurationCreateVolumeDetails. + :type: str + """ + self._xrc_kms_key_id = xrc_kms_key_id + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/core/models/volume_backup_policy_assignment.py b/src/oci/core/models/volume_backup_policy_assignment.py index 11eaa6c254..4e8f5f6d23 100644 --- a/src/oci/core/models/volume_backup_policy_assignment.py +++ b/src/oci/core/models/volume_backup_policy_assignment.py @@ -41,25 +41,32 @@ def __init__(self, **kwargs): The value to assign to the time_created property of this VolumeBackupPolicyAssignment. :type time_created: datetime + :param xrc_kms_key_id: + The value to assign to the xrc_kms_key_id property of this VolumeBackupPolicyAssignment. + :type xrc_kms_key_id: str + """ self.swagger_types = { 'asset_id': 'str', 'id': 'str', 'policy_id': 'str', - 'time_created': 'datetime' + 'time_created': 'datetime', + 'xrc_kms_key_id': 'str' } self.attribute_map = { 'asset_id': 'assetId', 'id': 'id', 'policy_id': 'policyId', - 'time_created': 'timeCreated' + 'time_created': 'timeCreated', + 'xrc_kms_key_id': 'xrcKmsKeyId' } self._asset_id = None self._id = None self._policy_id = None self._time_created = None + self._xrc_kms_key_id = None @property def asset_id(self): @@ -163,6 +170,42 @@ def time_created(self, time_created): """ self._time_created = time_created + @property + def xrc_kms_key_id(self): + """ + Gets the xrc_kms_key_id of this VolumeBackupPolicyAssignment. + The OCID of the Vault service key which is the master encryption key for the block / boot volume cross region backups, which will be used in the destination region to encrypt the backup's encryption keys. + For more information about the Vault service and encryption keys, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :return: The xrc_kms_key_id of this VolumeBackupPolicyAssignment. + :rtype: str + """ + return self._xrc_kms_key_id + + @xrc_kms_key_id.setter + def xrc_kms_key_id(self, xrc_kms_key_id): + """ + Sets the xrc_kms_key_id of this VolumeBackupPolicyAssignment. + The OCID of the Vault service key which is the master encryption key for the block / boot volume cross region backups, which will be used in the destination region to encrypt the backup's encryption keys. + For more information about the Vault service and encryption keys, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :param xrc_kms_key_id: The xrc_kms_key_id of this VolumeBackupPolicyAssignment. + :type: str + """ + self._xrc_kms_key_id = xrc_kms_key_id + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/core/models/volume_group_replica_details.py b/src/oci/core/models/volume_group_replica_details.py index c5226edc66..0e424da810 100644 --- a/src/oci/core/models/volume_group_replica_details.py +++ b/src/oci/core/models/volume_group_replica_details.py @@ -28,19 +28,26 @@ def __init__(self, **kwargs): The value to assign to the availability_domain property of this VolumeGroupReplicaDetails. :type availability_domain: str + :param xrr_kms_key_id: + The value to assign to the xrr_kms_key_id property of this VolumeGroupReplicaDetails. + :type xrr_kms_key_id: str + """ self.swagger_types = { 'display_name': 'str', - 'availability_domain': 'str' + 'availability_domain': 'str', + 'xrr_kms_key_id': 'str' } self.attribute_map = { 'display_name': 'displayName', - 'availability_domain': 'availabilityDomain' + 'availability_domain': 'availabilityDomain', + 'xrr_kms_key_id': 'xrrKmsKeyId' } self._display_name = None self._availability_domain = None + self._xrr_kms_key_id = None @property def display_name(self): @@ -96,6 +103,42 @@ def availability_domain(self, availability_domain): """ self._availability_domain = availability_domain + @property + def xrr_kms_key_id(self): + """ + Gets the xrr_kms_key_id of this VolumeGroupReplicaDetails. + The OCID of the Vault service key which is the master encryption key for the cross region volume group's replicas, which will be used in the destination region to encrypt the volume group's replicas encryption keys. + For more information about the Vault service and encryption keys, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :return: The xrr_kms_key_id of this VolumeGroupReplicaDetails. + :rtype: str + """ + return self._xrr_kms_key_id + + @xrr_kms_key_id.setter + def xrr_kms_key_id(self, xrr_kms_key_id): + """ + Sets the xrr_kms_key_id of this VolumeGroupReplicaDetails. + The OCID of the Vault service key which is the master encryption key for the cross region volume group's replicas, which will be used in the destination region to encrypt the volume group's replicas encryption keys. + For more information about the Vault service and encryption keys, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :param xrr_kms_key_id: The xrr_kms_key_id of this VolumeGroupReplicaDetails. + :type: str + """ + self._xrr_kms_key_id = xrr_kms_key_id + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/core/models/volume_group_replica_info.py b/src/oci/core/models/volume_group_replica_info.py index 7bff9df2e8..743cb954af 100644 --- a/src/oci/core/models/volume_group_replica_info.py +++ b/src/oci/core/models/volume_group_replica_info.py @@ -32,22 +32,29 @@ def __init__(self, **kwargs): The value to assign to the availability_domain property of this VolumeGroupReplicaInfo. :type availability_domain: str + :param kms_key_id: + The value to assign to the kms_key_id property of this VolumeGroupReplicaInfo. + :type kms_key_id: str + """ self.swagger_types = { 'display_name': 'str', 'volume_group_replica_id': 'str', - 'availability_domain': 'str' + 'availability_domain': 'str', + 'kms_key_id': 'str' } self.attribute_map = { 'display_name': 'displayName', 'volume_group_replica_id': 'volumeGroupReplicaId', - 'availability_domain': 'availabilityDomain' + 'availability_domain': 'availabilityDomain', + 'kms_key_id': 'kmsKeyId' } self._display_name = None self._volume_group_replica_id = None self._availability_domain = None + self._kms_key_id = None @property def display_name(self): @@ -127,6 +134,40 @@ def availability_domain(self, availability_domain): """ self._availability_domain = availability_domain + @property + def kms_key_id(self): + """ + Gets the kms_key_id of this VolumeGroupReplicaInfo. + The OCID of the Vault service key to assign as the master encryption key for the block volume replica, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :return: The kms_key_id of this VolumeGroupReplicaInfo. + :rtype: str + """ + return self._kms_key_id + + @kms_key_id.setter + def kms_key_id(self, kms_key_id): + """ + Sets the kms_key_id of this VolumeGroupReplicaInfo. + The OCID of the Vault service key to assign as the master encryption key for the block volume replica, see + `Overview of Vault service`__ and + `Using Keys`__. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm + + + :param kms_key_id: The kms_key_id of this VolumeGroupReplicaInfo. + :type: str + """ + self._kms_key_id = kms_key_id + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/core/models/volume_source_details.py b/src/oci/core/models/volume_source_details.py index 5400855fa7..be2f1cee7a 100644 --- a/src/oci/core/models/volume_source_details.py +++ b/src/oci/core/models/volume_source_details.py @@ -25,6 +25,7 @@ def __init__(self, **kwargs): * :class:`~oci.core.models.VolumeSourceFromBlockVolumeReplicaDetails` * :class:`~oci.core.models.VolumeSourceFromVolumeDetails` * :class:`~oci.core.models.VolumeSourceFromVolumeBackupDetails` + * :class:`~oci.core.models.VolumeSourceFromVolumeBackupDeltaDetails` The following keyword arguments are supported (corresponding to the getters/setters of this class): @@ -59,6 +60,9 @@ def get_subtype(object_dictionary): if type == 'volumeBackup': return 'VolumeSourceFromVolumeBackupDetails' + + if type == 'volumeBackupDelta': + return 'VolumeSourceFromVolumeBackupDeltaDetails' else: return 'VolumeSourceDetails' diff --git a/src/oci/core/models/volume_source_from_volume_backup_delta_details.py b/src/oci/core/models/volume_source_from_volume_backup_delta_details.py new file mode 100644 index 0000000000..d70cd439be --- /dev/null +++ b/src/oci/core/models/volume_source_from_volume_backup_delta_details.py @@ -0,0 +1,143 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20160918 + +from .volume_source_details import VolumeSourceDetails +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 VolumeSourceFromVolumeBackupDeltaDetails(VolumeSourceDetails): + """ + Specifies the volume backups (first & second) and block size in bytes. + """ + + def __init__(self, **kwargs): + """ + Initializes a new VolumeSourceFromVolumeBackupDeltaDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.core.models.VolumeSourceFromVolumeBackupDeltaDetails.type` attribute + of this class is ``volumeBackupDelta`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param type: + The value to assign to the type property of this VolumeSourceFromVolumeBackupDeltaDetails. + :type type: str + + :param first_backup_id: + The value to assign to the first_backup_id property of this VolumeSourceFromVolumeBackupDeltaDetails. + :type first_backup_id: str + + :param second_backup_id: + The value to assign to the second_backup_id property of this VolumeSourceFromVolumeBackupDeltaDetails. + :type second_backup_id: str + + :param change_block_size_in_bytes: + The value to assign to the change_block_size_in_bytes property of this VolumeSourceFromVolumeBackupDeltaDetails. + :type change_block_size_in_bytes: int + + """ + self.swagger_types = { + 'type': 'str', + 'first_backup_id': 'str', + 'second_backup_id': 'str', + 'change_block_size_in_bytes': 'int' + } + + self.attribute_map = { + 'type': 'type', + 'first_backup_id': 'firstBackupId', + 'second_backup_id': 'secondBackupId', + 'change_block_size_in_bytes': 'changeBlockSizeInBytes' + } + + self._type = None + self._first_backup_id = None + self._second_backup_id = None + self._change_block_size_in_bytes = None + self._type = 'volumeBackupDelta' + + @property + def first_backup_id(self): + """ + **[Required]** Gets the first_backup_id of this VolumeSourceFromVolumeBackupDeltaDetails. + The OCID of the first volume backup. + + + :return: The first_backup_id of this VolumeSourceFromVolumeBackupDeltaDetails. + :rtype: str + """ + return self._first_backup_id + + @first_backup_id.setter + def first_backup_id(self, first_backup_id): + """ + Sets the first_backup_id of this VolumeSourceFromVolumeBackupDeltaDetails. + The OCID of the first volume backup. + + + :param first_backup_id: The first_backup_id of this VolumeSourceFromVolumeBackupDeltaDetails. + :type: str + """ + self._first_backup_id = first_backup_id + + @property + def second_backup_id(self): + """ + **[Required]** Gets the second_backup_id of this VolumeSourceFromVolumeBackupDeltaDetails. + The OCID of the second volume backup. + + + :return: The second_backup_id of this VolumeSourceFromVolumeBackupDeltaDetails. + :rtype: str + """ + return self._second_backup_id + + @second_backup_id.setter + def second_backup_id(self, second_backup_id): + """ + Sets the second_backup_id of this VolumeSourceFromVolumeBackupDeltaDetails. + The OCID of the second volume backup. + + + :param second_backup_id: The second_backup_id of this VolumeSourceFromVolumeBackupDeltaDetails. + :type: str + """ + self._second_backup_id = second_backup_id + + @property + def change_block_size_in_bytes(self): + """ + Gets the change_block_size_in_bytes of this VolumeSourceFromVolumeBackupDeltaDetails. + Block size in bytes to be considered while performing volume restore. The value must be a power of 2; ranging from 4KB (4096 bytes) to 1MB (1048576 bytes). If omitted, defaults to 4,096 bytes (4 KiB). + + + :return: The change_block_size_in_bytes of this VolumeSourceFromVolumeBackupDeltaDetails. + :rtype: int + """ + return self._change_block_size_in_bytes + + @change_block_size_in_bytes.setter + def change_block_size_in_bytes(self, change_block_size_in_bytes): + """ + Sets the change_block_size_in_bytes of this VolumeSourceFromVolumeBackupDeltaDetails. + Block size in bytes to be considered while performing volume restore. The value must be a power of 2; ranging from 4KB (4096 bytes) to 1MB (1048576 bytes). If omitted, defaults to 4,096 bytes (4 KiB). + + + :param change_block_size_in_bytes: The change_block_size_in_bytes of this VolumeSourceFromVolumeBackupDeltaDetails. + :type: int + """ + self._change_block_size_in_bytes = change_block_size_in_bytes + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/data_integration/models/connection_from_lakehouse.py b/src/oci/data_integration/models/connection_from_lakehouse.py deleted file mode 100644 index a646980fae..0000000000 --- a/src/oci/data_integration/models/connection_from_lakehouse.py +++ /dev/null @@ -1,140 +0,0 @@ -# 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. - -from .connection import Connection -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 ConnectionFromLakehouse(Connection): - """ - The connection details for a Lakehouse connection. - """ - - def __init__(self, **kwargs): - """ - Initializes a new ConnectionFromLakehouse object with values from keyword arguments. The default value of the :py:attr:`~oci.data_integration.models.ConnectionFromLakehouse.model_type` attribute - of this class is ``LAKE_HOUSE_CONNECTION`` and it should not be changed. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param model_type: - The value to assign to the model_type property of this ConnectionFromLakehouse. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_HOUSE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" - :type model_type: str - - :param key: - The value to assign to the key property of this ConnectionFromLakehouse. - :type key: str - - :param model_version: - The value to assign to the model_version property of this ConnectionFromLakehouse. - :type model_version: str - - :param parent_ref: - The value to assign to the parent_ref property of this ConnectionFromLakehouse. - :type parent_ref: oci.data_integration.models.ParentReference - - :param name: - The value to assign to the name property of this ConnectionFromLakehouse. - :type name: str - - :param description: - The value to assign to the description property of this ConnectionFromLakehouse. - :type description: str - - :param object_version: - The value to assign to the object_version property of this ConnectionFromLakehouse. - :type object_version: int - - :param object_status: - The value to assign to the object_status property of this ConnectionFromLakehouse. - :type object_status: int - - :param identifier: - The value to assign to the identifier property of this ConnectionFromLakehouse. - :type identifier: str - - :param primary_schema: - The value to assign to the primary_schema property of this ConnectionFromLakehouse. - :type primary_schema: oci.data_integration.models.Schema - - :param connection_properties: - The value to assign to the connection_properties property of this ConnectionFromLakehouse. - :type connection_properties: list[oci.data_integration.models.ConnectionProperty] - - :param is_default: - The value to assign to the is_default property of this ConnectionFromLakehouse. - :type is_default: bool - - :param metadata: - The value to assign to the metadata property of this ConnectionFromLakehouse. - :type metadata: oci.data_integration.models.ObjectMetadata - - :param key_map: - The value to assign to the key_map property of this ConnectionFromLakehouse. - :type key_map: dict(str, str) - - """ - self.swagger_types = { - 'model_type': 'str', - 'key': 'str', - 'model_version': 'str', - 'parent_ref': 'ParentReference', - 'name': 'str', - 'description': 'str', - 'object_version': 'int', - 'object_status': 'int', - 'identifier': 'str', - 'primary_schema': 'Schema', - 'connection_properties': 'list[ConnectionProperty]', - 'is_default': 'bool', - 'metadata': 'ObjectMetadata', - 'key_map': 'dict(str, str)' - } - - self.attribute_map = { - 'model_type': 'modelType', - 'key': 'key', - 'model_version': 'modelVersion', - 'parent_ref': 'parentRef', - 'name': 'name', - 'description': 'description', - 'object_version': 'objectVersion', - 'object_status': 'objectStatus', - 'identifier': 'identifier', - 'primary_schema': 'primarySchema', - 'connection_properties': 'connectionProperties', - 'is_default': 'isDefault', - 'metadata': 'metadata', - 'key_map': 'keyMap' - } - - self._model_type = None - self._key = None - self._model_version = None - self._parent_ref = None - self._name = None - self._description = None - self._object_version = None - self._object_status = None - self._identifier = None - self._primary_schema = None - self._connection_properties = None - self._is_default = None - self._metadata = None - self._key_map = None - self._model_type = 'LAKE_HOUSE_CONNECTION' - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/data_integration/models/connection_from_lakehouse_details.py b/src/oci/data_integration/models/connection_from_lakehouse_details.py deleted file mode 100644 index e19a426062..0000000000 --- a/src/oci/data_integration/models/connection_from_lakehouse_details.py +++ /dev/null @@ -1,133 +0,0 @@ -# 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. - -from .connection_details import ConnectionDetails -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 ConnectionFromLakehouseDetails(ConnectionDetails): - """ - The connection details for a Lakehouse connection. - """ - - def __init__(self, **kwargs): - """ - Initializes a new ConnectionFromLakehouseDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.data_integration.models.ConnectionFromLakehouseDetails.model_type` attribute - of this class is ``LAKE_HOUSE_CONNECTION`` and it should not be changed. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param model_type: - The value to assign to the model_type property of this ConnectionFromLakehouseDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_HOUSE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" - :type model_type: str - - :param key: - The value to assign to the key property of this ConnectionFromLakehouseDetails. - :type key: str - - :param model_version: - The value to assign to the model_version property of this ConnectionFromLakehouseDetails. - :type model_version: str - - :param parent_ref: - The value to assign to the parent_ref property of this ConnectionFromLakehouseDetails. - :type parent_ref: oci.data_integration.models.ParentReference - - :param name: - The value to assign to the name property of this ConnectionFromLakehouseDetails. - :type name: str - - :param description: - The value to assign to the description property of this ConnectionFromLakehouseDetails. - :type description: str - - :param object_version: - The value to assign to the object_version property of this ConnectionFromLakehouseDetails. - :type object_version: int - - :param object_status: - The value to assign to the object_status property of this ConnectionFromLakehouseDetails. - :type object_status: int - - :param identifier: - The value to assign to the identifier property of this ConnectionFromLakehouseDetails. - :type identifier: str - - :param primary_schema: - The value to assign to the primary_schema property of this ConnectionFromLakehouseDetails. - :type primary_schema: oci.data_integration.models.Schema - - :param connection_properties: - The value to assign to the connection_properties property of this ConnectionFromLakehouseDetails. - :type connection_properties: list[oci.data_integration.models.ConnectionProperty] - - :param is_default: - The value to assign to the is_default property of this ConnectionFromLakehouseDetails. - :type is_default: bool - - :param metadata: - The value to assign to the metadata property of this ConnectionFromLakehouseDetails. - :type metadata: oci.data_integration.models.ObjectMetadata - - """ - self.swagger_types = { - 'model_type': 'str', - 'key': 'str', - 'model_version': 'str', - 'parent_ref': 'ParentReference', - 'name': 'str', - 'description': 'str', - 'object_version': 'int', - 'object_status': 'int', - 'identifier': 'str', - 'primary_schema': 'Schema', - 'connection_properties': 'list[ConnectionProperty]', - 'is_default': 'bool', - 'metadata': 'ObjectMetadata' - } - - self.attribute_map = { - 'model_type': 'modelType', - 'key': 'key', - 'model_version': 'modelVersion', - 'parent_ref': 'parentRef', - 'name': 'name', - 'description': 'description', - 'object_version': 'objectVersion', - 'object_status': 'objectStatus', - 'identifier': 'identifier', - 'primary_schema': 'primarySchema', - 'connection_properties': 'connectionProperties', - 'is_default': 'isDefault', - 'metadata': 'metadata' - } - - self._model_type = None - self._key = None - self._model_version = None - self._parent_ref = None - self._name = None - self._description = None - self._object_version = None - self._object_status = None - self._identifier = None - self._primary_schema = None - self._connection_properties = None - self._is_default = None - self._metadata = None - self._model_type = 'LAKE_HOUSE_CONNECTION' - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/data_integration/models/connection_summary_from_lakehouse.py b/src/oci/data_integration/models/connection_summary_from_lakehouse.py deleted file mode 100644 index 2ee23e5f76..0000000000 --- a/src/oci/data_integration/models/connection_summary_from_lakehouse.py +++ /dev/null @@ -1,140 +0,0 @@ -# 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. - -from .connection_summary import ConnectionSummary -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 ConnectionSummaryFromLakehouse(ConnectionSummary): - """ - The connection summary details for a Lakehouse connection. - """ - - def __init__(self, **kwargs): - """ - Initializes a new ConnectionSummaryFromLakehouse object with values from keyword arguments. The default value of the :py:attr:`~oci.data_integration.models.ConnectionSummaryFromLakehouse.model_type` attribute - of this class is ``LAKE_HOUSE_CONNECTION`` and it should not be changed. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param model_type: - The value to assign to the model_type property of this ConnectionSummaryFromLakehouse. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_HOUSE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" - :type model_type: str - - :param key: - The value to assign to the key property of this ConnectionSummaryFromLakehouse. - :type key: str - - :param model_version: - The value to assign to the model_version property of this ConnectionSummaryFromLakehouse. - :type model_version: str - - :param parent_ref: - The value to assign to the parent_ref property of this ConnectionSummaryFromLakehouse. - :type parent_ref: oci.data_integration.models.ParentReference - - :param name: - The value to assign to the name property of this ConnectionSummaryFromLakehouse. - :type name: str - - :param description: - The value to assign to the description property of this ConnectionSummaryFromLakehouse. - :type description: str - - :param object_version: - The value to assign to the object_version property of this ConnectionSummaryFromLakehouse. - :type object_version: int - - :param object_status: - The value to assign to the object_status property of this ConnectionSummaryFromLakehouse. - :type object_status: int - - :param identifier: - The value to assign to the identifier property of this ConnectionSummaryFromLakehouse. - :type identifier: str - - :param primary_schema: - The value to assign to the primary_schema property of this ConnectionSummaryFromLakehouse. - :type primary_schema: oci.data_integration.models.Schema - - :param connection_properties: - The value to assign to the connection_properties property of this ConnectionSummaryFromLakehouse. - :type connection_properties: list[oci.data_integration.models.ConnectionProperty] - - :param is_default: - The value to assign to the is_default property of this ConnectionSummaryFromLakehouse. - :type is_default: bool - - :param metadata: - The value to assign to the metadata property of this ConnectionSummaryFromLakehouse. - :type metadata: oci.data_integration.models.ObjectMetadata - - :param key_map: - The value to assign to the key_map property of this ConnectionSummaryFromLakehouse. - :type key_map: dict(str, str) - - """ - self.swagger_types = { - 'model_type': 'str', - 'key': 'str', - 'model_version': 'str', - 'parent_ref': 'ParentReference', - 'name': 'str', - 'description': 'str', - 'object_version': 'int', - 'object_status': 'int', - 'identifier': 'str', - 'primary_schema': 'Schema', - 'connection_properties': 'list[ConnectionProperty]', - 'is_default': 'bool', - 'metadata': 'ObjectMetadata', - 'key_map': 'dict(str, str)' - } - - self.attribute_map = { - 'model_type': 'modelType', - 'key': 'key', - 'model_version': 'modelVersion', - 'parent_ref': 'parentRef', - 'name': 'name', - 'description': 'description', - 'object_version': 'objectVersion', - 'object_status': 'objectStatus', - 'identifier': 'identifier', - 'primary_schema': 'primarySchema', - 'connection_properties': 'connectionProperties', - 'is_default': 'isDefault', - 'metadata': 'metadata', - 'key_map': 'keyMap' - } - - self._model_type = None - self._key = None - self._model_version = None - self._parent_ref = None - self._name = None - self._description = None - self._object_version = None - self._object_status = None - self._identifier = None - self._primary_schema = None - self._connection_properties = None - self._is_default = None - self._metadata = None - self._key_map = None - self._model_type = 'LAKE_HOUSE_CONNECTION' - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/data_integration/models/create_connection_from_lakehouse.py b/src/oci/data_integration/models/create_connection_from_lakehouse.py deleted file mode 100644 index 00363339c2..0000000000 --- a/src/oci/data_integration/models/create_connection_from_lakehouse.py +++ /dev/null @@ -1,112 +0,0 @@ -# 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. - -from .create_connection_details import CreateConnectionDetails -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 CreateConnectionFromLakehouse(CreateConnectionDetails): - """ - The details to create a Lakehouse connection. - """ - - def __init__(self, **kwargs): - """ - Initializes a new CreateConnectionFromLakehouse object with values from keyword arguments. The default value of the :py:attr:`~oci.data_integration.models.CreateConnectionFromLakehouse.model_type` attribute - of this class is ``LAKE_HOUSE_CONNECTION`` and it should not be changed. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param model_type: - The value to assign to the model_type property of this CreateConnectionFromLakehouse. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_HOUSE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" - :type model_type: str - - :param key: - The value to assign to the key property of this CreateConnectionFromLakehouse. - :type key: str - - :param model_version: - The value to assign to the model_version property of this CreateConnectionFromLakehouse. - :type model_version: str - - :param parent_ref: - The value to assign to the parent_ref property of this CreateConnectionFromLakehouse. - :type parent_ref: oci.data_integration.models.ParentReference - - :param name: - The value to assign to the name property of this CreateConnectionFromLakehouse. - :type name: str - - :param description: - The value to assign to the description property of this CreateConnectionFromLakehouse. - :type description: str - - :param object_status: - The value to assign to the object_status property of this CreateConnectionFromLakehouse. - :type object_status: int - - :param identifier: - The value to assign to the identifier property of this CreateConnectionFromLakehouse. - :type identifier: str - - :param connection_properties: - The value to assign to the connection_properties property of this CreateConnectionFromLakehouse. - :type connection_properties: list[oci.data_integration.models.ConnectionProperty] - - :param registry_metadata: - The value to assign to the registry_metadata property of this CreateConnectionFromLakehouse. - :type registry_metadata: oci.data_integration.models.RegistryMetadata - - """ - self.swagger_types = { - 'model_type': 'str', - 'key': 'str', - 'model_version': 'str', - 'parent_ref': 'ParentReference', - 'name': 'str', - 'description': 'str', - 'object_status': 'int', - 'identifier': 'str', - 'connection_properties': 'list[ConnectionProperty]', - 'registry_metadata': 'RegistryMetadata' - } - - self.attribute_map = { - 'model_type': 'modelType', - 'key': 'key', - 'model_version': 'modelVersion', - 'parent_ref': 'parentRef', - 'name': 'name', - 'description': 'description', - 'object_status': 'objectStatus', - 'identifier': 'identifier', - 'connection_properties': 'connectionProperties', - 'registry_metadata': 'registryMetadata' - } - - self._model_type = None - self._key = None - self._model_version = None - self._parent_ref = None - self._name = None - self._description = None - self._object_status = None - self._identifier = None - self._connection_properties = None - self._registry_metadata = None - self._model_type = 'LAKE_HOUSE_CONNECTION' - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/data_integration/models/create_data_asset_from_lakehouse.py b/src/oci/data_integration/models/create_data_asset_from_lakehouse.py deleted file mode 100644 index 96777672b6..0000000000 --- a/src/oci/data_integration/models/create_data_asset_from_lakehouse.py +++ /dev/null @@ -1,232 +0,0 @@ -# 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. - -from .create_data_asset_details import CreateDataAssetDetails -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 CreateDataAssetFromLakehouse(CreateDataAssetDetails): - """ - Details for the Lakehouse data asset type. - """ - - def __init__(self, **kwargs): - """ - Initializes a new CreateDataAssetFromLakehouse object with values from keyword arguments. The default value of the :py:attr:`~oci.data_integration.models.CreateDataAssetFromLakehouse.model_type` attribute - of this class is ``LAKE_HOUSE_DATA_ASSET`` and it should not be changed. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param model_type: - The value to assign to the model_type property of this CreateDataAssetFromLakehouse. - Allowed values for this property are: "ORACLE_DATA_ASSET", "ORACLE_OBJECT_STORAGE_DATA_ASSET", "ORACLE_ATP_DATA_ASSET", "ORACLE_ADWC_DATA_ASSET", "MYSQL_DATA_ASSET", "GENERIC_JDBC_DATA_ASSET", "FUSION_APP_DATA_ASSET", "AMAZON_S3_DATA_ASSET", "LAKE_HOUSE_DATA_ASSET", "REST_DATA_ASSET" - :type model_type: str - - :param key: - The value to assign to the key property of this CreateDataAssetFromLakehouse. - :type key: str - - :param model_version: - The value to assign to the model_version property of this CreateDataAssetFromLakehouse. - :type model_version: str - - :param name: - The value to assign to the name property of this CreateDataAssetFromLakehouse. - :type name: str - - :param description: - The value to assign to the description property of this CreateDataAssetFromLakehouse. - :type description: str - - :param object_status: - The value to assign to the object_status property of this CreateDataAssetFromLakehouse. - :type object_status: int - - :param identifier: - The value to assign to the identifier property of this CreateDataAssetFromLakehouse. - :type identifier: str - - :param external_key: - The value to assign to the external_key property of this CreateDataAssetFromLakehouse. - :type external_key: str - - :param asset_properties: - The value to assign to the asset_properties property of this CreateDataAssetFromLakehouse. - :type asset_properties: dict(str, str) - - :param registry_metadata: - The value to assign to the registry_metadata property of this CreateDataAssetFromLakehouse. - :type registry_metadata: oci.data_integration.models.RegistryMetadata - - :param lakehouse_ocid: - The value to assign to the lakehouse_ocid property of this CreateDataAssetFromLakehouse. - :type lakehouse_ocid: str - - :param metastore_id: - The value to assign to the metastore_id property of this CreateDataAssetFromLakehouse. - :type metastore_id: str - - :param ranger_endpoint: - The value to assign to the ranger_endpoint property of this CreateDataAssetFromLakehouse. - :type ranger_endpoint: str - - :param default_connection: - The value to assign to the default_connection property of this CreateDataAssetFromLakehouse. - :type default_connection: oci.data_integration.models.CreateConnectionFromLakehouse - - """ - self.swagger_types = { - 'model_type': 'str', - 'key': 'str', - 'model_version': 'str', - 'name': 'str', - 'description': 'str', - 'object_status': 'int', - 'identifier': 'str', - 'external_key': 'str', - 'asset_properties': 'dict(str, str)', - 'registry_metadata': 'RegistryMetadata', - 'lakehouse_ocid': 'str', - 'metastore_id': 'str', - 'ranger_endpoint': 'str', - 'default_connection': 'CreateConnectionFromLakehouse' - } - - self.attribute_map = { - 'model_type': 'modelType', - 'key': 'key', - 'model_version': 'modelVersion', - 'name': 'name', - 'description': 'description', - 'object_status': 'objectStatus', - 'identifier': 'identifier', - 'external_key': 'externalKey', - 'asset_properties': 'assetProperties', - 'registry_metadata': 'registryMetadata', - 'lakehouse_ocid': 'lakehouseOcid', - 'metastore_id': 'metastoreId', - 'ranger_endpoint': 'rangerEndpoint', - 'default_connection': 'defaultConnection' - } - - self._model_type = None - self._key = None - self._model_version = None - self._name = None - self._description = None - self._object_status = None - self._identifier = None - self._external_key = None - self._asset_properties = None - self._registry_metadata = None - self._lakehouse_ocid = None - self._metastore_id = None - self._ranger_endpoint = None - self._default_connection = None - self._model_type = 'LAKE_HOUSE_DATA_ASSET' - - @property - def lakehouse_ocid(self): - """ - **[Required]** Gets the lakehouse_ocid of this CreateDataAssetFromLakehouse. - The Lakehouse Ocid. - - - :return: The lakehouse_ocid of this CreateDataAssetFromLakehouse. - :rtype: str - """ - return self._lakehouse_ocid - - @lakehouse_ocid.setter - def lakehouse_ocid(self, lakehouse_ocid): - """ - Sets the lakehouse_ocid of this CreateDataAssetFromLakehouse. - The Lakehouse Ocid. - - - :param lakehouse_ocid: The lakehouse_ocid of this CreateDataAssetFromLakehouse. - :type: str - """ - self._lakehouse_ocid = lakehouse_ocid - - @property - def metastore_id(self): - """ - Gets the metastore_id of this CreateDataAssetFromLakehouse. - The metastoreId for the specified Lakehouse Resource. - - - :return: The metastore_id of this CreateDataAssetFromLakehouse. - :rtype: str - """ - return self._metastore_id - - @metastore_id.setter - def metastore_id(self, metastore_id): - """ - Sets the metastore_id of this CreateDataAssetFromLakehouse. - The metastoreId for the specified Lakehouse Resource. - - - :param metastore_id: The metastore_id of this CreateDataAssetFromLakehouse. - :type: str - """ - self._metastore_id = metastore_id - - @property - def ranger_endpoint(self): - """ - Gets the ranger_endpoint of this CreateDataAssetFromLakehouse. - The rangerEndpoint for the specified Lakehouse Resource. - - - :return: The ranger_endpoint of this CreateDataAssetFromLakehouse. - :rtype: str - """ - return self._ranger_endpoint - - @ranger_endpoint.setter - def ranger_endpoint(self, ranger_endpoint): - """ - Sets the ranger_endpoint of this CreateDataAssetFromLakehouse. - The rangerEndpoint for the specified Lakehouse Resource. - - - :param ranger_endpoint: The ranger_endpoint of this CreateDataAssetFromLakehouse. - :type: str - """ - self._ranger_endpoint = ranger_endpoint - - @property - def default_connection(self): - """ - **[Required]** Gets the default_connection of this CreateDataAssetFromLakehouse. - - :return: The default_connection of this CreateDataAssetFromLakehouse. - :rtype: oci.data_integration.models.CreateConnectionFromLakehouse - """ - return self._default_connection - - @default_connection.setter - def default_connection(self, default_connection): - """ - Sets the default_connection of this CreateDataAssetFromLakehouse. - - :param default_connection: The default_connection of this CreateDataAssetFromLakehouse. - :type: oci.data_integration.models.CreateConnectionFromLakehouse - """ - self._default_connection = default_connection - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/data_integration/models/data_asset_from_lakehouse_details.py b/src/oci/data_integration/models/data_asset_from_lakehouse_details.py deleted file mode 100644 index a4c4671512..0000000000 --- a/src/oci/data_integration/models/data_asset_from_lakehouse_details.py +++ /dev/null @@ -1,260 +0,0 @@ -# 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. - -from .data_asset import DataAsset -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 DataAssetFromLakehouseDetails(DataAsset): - """ - Details for the Lakehouse data asset type. - """ - - def __init__(self, **kwargs): - """ - Initializes a new DataAssetFromLakehouseDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.data_integration.models.DataAssetFromLakehouseDetails.model_type` attribute - of this class is ``LAKE_HOUSE_DATA_ASSET`` and it should not be changed. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param model_type: - The value to assign to the model_type property of this DataAssetFromLakehouseDetails. - Allowed values for this property are: "ORACLE_DATA_ASSET", "ORACLE_OBJECT_STORAGE_DATA_ASSET", "ORACLE_ATP_DATA_ASSET", "ORACLE_ADWC_DATA_ASSET", "MYSQL_DATA_ASSET", "GENERIC_JDBC_DATA_ASSET", "FUSION_APP_DATA_ASSET", "AMAZON_S3_DATA_ASSET", "LAKE_HOUSE_DATA_ASSET", "REST_DATA_ASSET" - :type model_type: str - - :param key: - The value to assign to the key property of this DataAssetFromLakehouseDetails. - :type key: str - - :param model_version: - The value to assign to the model_version property of this DataAssetFromLakehouseDetails. - :type model_version: str - - :param name: - The value to assign to the name property of this DataAssetFromLakehouseDetails. - :type name: str - - :param description: - The value to assign to the description property of this DataAssetFromLakehouseDetails. - :type description: str - - :param object_status: - The value to assign to the object_status property of this DataAssetFromLakehouseDetails. - :type object_status: int - - :param identifier: - The value to assign to the identifier property of this DataAssetFromLakehouseDetails. - :type identifier: str - - :param external_key: - The value to assign to the external_key property of this DataAssetFromLakehouseDetails. - :type external_key: str - - :param asset_properties: - The value to assign to the asset_properties property of this DataAssetFromLakehouseDetails. - :type asset_properties: dict(str, str) - - :param native_type_system: - The value to assign to the native_type_system property of this DataAssetFromLakehouseDetails. - :type native_type_system: oci.data_integration.models.TypeSystem - - :param object_version: - The value to assign to the object_version property of this DataAssetFromLakehouseDetails. - :type object_version: int - - :param parent_ref: - The value to assign to the parent_ref property of this DataAssetFromLakehouseDetails. - :type parent_ref: oci.data_integration.models.ParentReference - - :param metadata: - The value to assign to the metadata property of this DataAssetFromLakehouseDetails. - :type metadata: oci.data_integration.models.ObjectMetadata - - :param key_map: - The value to assign to the key_map property of this DataAssetFromLakehouseDetails. - :type key_map: dict(str, str) - - :param lakehouse_ocid: - The value to assign to the lakehouse_ocid property of this DataAssetFromLakehouseDetails. - :type lakehouse_ocid: str - - :param metastore_id: - The value to assign to the metastore_id property of this DataAssetFromLakehouseDetails. - :type metastore_id: str - - :param ranger_endpoint: - The value to assign to the ranger_endpoint property of this DataAssetFromLakehouseDetails. - :type ranger_endpoint: str - - :param default_connection: - The value to assign to the default_connection property of this DataAssetFromLakehouseDetails. - :type default_connection: oci.data_integration.models.ConnectionFromLakehouseDetails - - """ - self.swagger_types = { - 'model_type': 'str', - 'key': 'str', - 'model_version': 'str', - 'name': 'str', - 'description': 'str', - 'object_status': 'int', - 'identifier': 'str', - 'external_key': 'str', - 'asset_properties': 'dict(str, str)', - 'native_type_system': 'TypeSystem', - 'object_version': 'int', - 'parent_ref': 'ParentReference', - 'metadata': 'ObjectMetadata', - 'key_map': 'dict(str, str)', - 'lakehouse_ocid': 'str', - 'metastore_id': 'str', - 'ranger_endpoint': 'str', - 'default_connection': 'ConnectionFromLakehouseDetails' - } - - self.attribute_map = { - 'model_type': 'modelType', - 'key': 'key', - 'model_version': 'modelVersion', - 'name': 'name', - 'description': 'description', - 'object_status': 'objectStatus', - 'identifier': 'identifier', - 'external_key': 'externalKey', - 'asset_properties': 'assetProperties', - 'native_type_system': 'nativeTypeSystem', - 'object_version': 'objectVersion', - 'parent_ref': 'parentRef', - 'metadata': 'metadata', - 'key_map': 'keyMap', - 'lakehouse_ocid': 'lakehouseOcid', - 'metastore_id': 'metastoreId', - 'ranger_endpoint': 'rangerEndpoint', - 'default_connection': 'defaultConnection' - } - - self._model_type = None - self._key = None - self._model_version = None - self._name = None - self._description = None - self._object_status = None - self._identifier = None - self._external_key = None - self._asset_properties = None - self._native_type_system = None - self._object_version = None - self._parent_ref = None - self._metadata = None - self._key_map = None - self._lakehouse_ocid = None - self._metastore_id = None - self._ranger_endpoint = None - self._default_connection = None - self._model_type = 'LAKE_HOUSE_DATA_ASSET' - - @property - def lakehouse_ocid(self): - """ - **[Required]** Gets the lakehouse_ocid of this DataAssetFromLakehouseDetails. - The Lakehouse Ocid. - - - :return: The lakehouse_ocid of this DataAssetFromLakehouseDetails. - :rtype: str - """ - return self._lakehouse_ocid - - @lakehouse_ocid.setter - def lakehouse_ocid(self, lakehouse_ocid): - """ - Sets the lakehouse_ocid of this DataAssetFromLakehouseDetails. - The Lakehouse Ocid. - - - :param lakehouse_ocid: The lakehouse_ocid of this DataAssetFromLakehouseDetails. - :type: str - """ - self._lakehouse_ocid = lakehouse_ocid - - @property - def metastore_id(self): - """ - Gets the metastore_id of this DataAssetFromLakehouseDetails. - The metastoreId for the specified Lakehouse Resource. - - - :return: The metastore_id of this DataAssetFromLakehouseDetails. - :rtype: str - """ - return self._metastore_id - - @metastore_id.setter - def metastore_id(self, metastore_id): - """ - Sets the metastore_id of this DataAssetFromLakehouseDetails. - The metastoreId for the specified Lakehouse Resource. - - - :param metastore_id: The metastore_id of this DataAssetFromLakehouseDetails. - :type: str - """ - self._metastore_id = metastore_id - - @property - def ranger_endpoint(self): - """ - Gets the ranger_endpoint of this DataAssetFromLakehouseDetails. - The rangerEndpoint for the specified Lakehouse Resource. - - - :return: The ranger_endpoint of this DataAssetFromLakehouseDetails. - :rtype: str - """ - return self._ranger_endpoint - - @ranger_endpoint.setter - def ranger_endpoint(self, ranger_endpoint): - """ - Sets the ranger_endpoint of this DataAssetFromLakehouseDetails. - The rangerEndpoint for the specified Lakehouse Resource. - - - :param ranger_endpoint: The ranger_endpoint of this DataAssetFromLakehouseDetails. - :type: str - """ - self._ranger_endpoint = ranger_endpoint - - @property - def default_connection(self): - """ - **[Required]** Gets the default_connection of this DataAssetFromLakehouseDetails. - - :return: The default_connection of this DataAssetFromLakehouseDetails. - :rtype: oci.data_integration.models.ConnectionFromLakehouseDetails - """ - return self._default_connection - - @default_connection.setter - def default_connection(self, default_connection): - """ - Sets the default_connection of this DataAssetFromLakehouseDetails. - - :param default_connection: The default_connection of this DataAssetFromLakehouseDetails. - :type: oci.data_integration.models.ConnectionFromLakehouseDetails - """ - self._default_connection = default_connection - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/data_integration/models/data_asset_summary_from_lakehouse.py b/src/oci/data_integration/models/data_asset_summary_from_lakehouse.py deleted file mode 100644 index f1e47bc4ed..0000000000 --- a/src/oci/data_integration/models/data_asset_summary_from_lakehouse.py +++ /dev/null @@ -1,253 +0,0 @@ -# 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. - -from .data_asset_summary import DataAssetSummary -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 DataAssetSummaryFromLakehouse(DataAssetSummary): - """ - Summary details for the Lakehouse data asset type. - """ - - def __init__(self, **kwargs): - """ - Initializes a new DataAssetSummaryFromLakehouse object with values from keyword arguments. The default value of the :py:attr:`~oci.data_integration.models.DataAssetSummaryFromLakehouse.model_type` attribute - of this class is ``LAKE_HOUSE_DATA_ASSET`` and it should not be changed. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param model_type: - The value to assign to the model_type property of this DataAssetSummaryFromLakehouse. - Allowed values for this property are: "ORACLE_DATA_ASSET", "ORACLE_OBJECT_STORAGE_DATA_ASSET", "ORACLE_ATP_DATA_ASSET", "ORACLE_ADWC_DATA_ASSET", "MYSQL_DATA_ASSET", "GENERIC_JDBC_DATA_ASSET", "FUSION_APP_DATA_ASSET", "AMAZON_S3_DATA_ASSET", "LAKE_HOUSE_DATA_ASSET", "REST_DATA_ASSET" - :type model_type: str - - :param key: - The value to assign to the key property of this DataAssetSummaryFromLakehouse. - :type key: str - - :param model_version: - The value to assign to the model_version property of this DataAssetSummaryFromLakehouse. - :type model_version: str - - :param name: - The value to assign to the name property of this DataAssetSummaryFromLakehouse. - :type name: str - - :param description: - The value to assign to the description property of this DataAssetSummaryFromLakehouse. - :type description: str - - :param object_status: - The value to assign to the object_status property of this DataAssetSummaryFromLakehouse. - :type object_status: int - - :param identifier: - The value to assign to the identifier property of this DataAssetSummaryFromLakehouse. - :type identifier: str - - :param external_key: - The value to assign to the external_key property of this DataAssetSummaryFromLakehouse. - :type external_key: str - - :param asset_properties: - The value to assign to the asset_properties property of this DataAssetSummaryFromLakehouse. - :type asset_properties: dict(str, str) - - :param native_type_system: - The value to assign to the native_type_system property of this DataAssetSummaryFromLakehouse. - :type native_type_system: oci.data_integration.models.TypeSystem - - :param object_version: - The value to assign to the object_version property of this DataAssetSummaryFromLakehouse. - :type object_version: int - - :param parent_ref: - The value to assign to the parent_ref property of this DataAssetSummaryFromLakehouse. - :type parent_ref: oci.data_integration.models.ParentReference - - :param metadata: - The value to assign to the metadata property of this DataAssetSummaryFromLakehouse. - :type metadata: oci.data_integration.models.ObjectMetadata - - :param lakehouse_ocid: - The value to assign to the lakehouse_ocid property of this DataAssetSummaryFromLakehouse. - :type lakehouse_ocid: str - - :param metastore_id: - The value to assign to the metastore_id property of this DataAssetSummaryFromLakehouse. - :type metastore_id: str - - :param ranger_endpoint: - The value to assign to the ranger_endpoint property of this DataAssetSummaryFromLakehouse. - :type ranger_endpoint: str - - :param default_connection: - The value to assign to the default_connection property of this DataAssetSummaryFromLakehouse. - :type default_connection: oci.data_integration.models.ConnectionSummaryFromLakehouse - - """ - self.swagger_types = { - 'model_type': 'str', - 'key': 'str', - 'model_version': 'str', - 'name': 'str', - 'description': 'str', - 'object_status': 'int', - 'identifier': 'str', - 'external_key': 'str', - 'asset_properties': 'dict(str, str)', - 'native_type_system': 'TypeSystem', - 'object_version': 'int', - 'parent_ref': 'ParentReference', - 'metadata': 'ObjectMetadata', - 'lakehouse_ocid': 'str', - 'metastore_id': 'str', - 'ranger_endpoint': 'str', - 'default_connection': 'ConnectionSummaryFromLakehouse' - } - - self.attribute_map = { - 'model_type': 'modelType', - 'key': 'key', - 'model_version': 'modelVersion', - 'name': 'name', - 'description': 'description', - 'object_status': 'objectStatus', - 'identifier': 'identifier', - 'external_key': 'externalKey', - 'asset_properties': 'assetProperties', - 'native_type_system': 'nativeTypeSystem', - 'object_version': 'objectVersion', - 'parent_ref': 'parentRef', - 'metadata': 'metadata', - 'lakehouse_ocid': 'lakehouseOcid', - 'metastore_id': 'metastoreId', - 'ranger_endpoint': 'rangerEndpoint', - 'default_connection': 'defaultConnection' - } - - self._model_type = None - self._key = None - self._model_version = None - self._name = None - self._description = None - self._object_status = None - self._identifier = None - self._external_key = None - self._asset_properties = None - self._native_type_system = None - self._object_version = None - self._parent_ref = None - self._metadata = None - self._lakehouse_ocid = None - self._metastore_id = None - self._ranger_endpoint = None - self._default_connection = None - self._model_type = 'LAKE_HOUSE_DATA_ASSET' - - @property - def lakehouse_ocid(self): - """ - **[Required]** Gets the lakehouse_ocid of this DataAssetSummaryFromLakehouse. - The Lakehouse Ocid. - - - :return: The lakehouse_ocid of this DataAssetSummaryFromLakehouse. - :rtype: str - """ - return self._lakehouse_ocid - - @lakehouse_ocid.setter - def lakehouse_ocid(self, lakehouse_ocid): - """ - Sets the lakehouse_ocid of this DataAssetSummaryFromLakehouse. - The Lakehouse Ocid. - - - :param lakehouse_ocid: The lakehouse_ocid of this DataAssetSummaryFromLakehouse. - :type: str - """ - self._lakehouse_ocid = lakehouse_ocid - - @property - def metastore_id(self): - """ - Gets the metastore_id of this DataAssetSummaryFromLakehouse. - The metastoreId for the specified Lakehouse Resource. - - - :return: The metastore_id of this DataAssetSummaryFromLakehouse. - :rtype: str - """ - return self._metastore_id - - @metastore_id.setter - def metastore_id(self, metastore_id): - """ - Sets the metastore_id of this DataAssetSummaryFromLakehouse. - The metastoreId for the specified Lakehouse Resource. - - - :param metastore_id: The metastore_id of this DataAssetSummaryFromLakehouse. - :type: str - """ - self._metastore_id = metastore_id - - @property - def ranger_endpoint(self): - """ - Gets the ranger_endpoint of this DataAssetSummaryFromLakehouse. - The rangerEndpoint for the specified Lakehouse Resource. - - - :return: The ranger_endpoint of this DataAssetSummaryFromLakehouse. - :rtype: str - """ - return self._ranger_endpoint - - @ranger_endpoint.setter - def ranger_endpoint(self, ranger_endpoint): - """ - Sets the ranger_endpoint of this DataAssetSummaryFromLakehouse. - The rangerEndpoint for the specified Lakehouse Resource. - - - :param ranger_endpoint: The ranger_endpoint of this DataAssetSummaryFromLakehouse. - :type: str - """ - self._ranger_endpoint = ranger_endpoint - - @property - def default_connection(self): - """ - **[Required]** Gets the default_connection of this DataAssetSummaryFromLakehouse. - - :return: The default_connection of this DataAssetSummaryFromLakehouse. - :rtype: oci.data_integration.models.ConnectionSummaryFromLakehouse - """ - return self._default_connection - - @default_connection.setter - def default_connection(self, default_connection): - """ - Sets the default_connection of this DataAssetSummaryFromLakehouse. - - :param default_connection: The default_connection of this DataAssetSummaryFromLakehouse. - :type: oci.data_integration.models.ConnectionSummaryFromLakehouse - """ - self._default_connection = default_connection - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/data_integration/models/update_connection_from_lakehouse.py b/src/oci/data_integration/models/update_connection_from_lakehouse.py deleted file mode 100644 index 3f55623d51..0000000000 --- a/src/oci/data_integration/models/update_connection_from_lakehouse.py +++ /dev/null @@ -1,119 +0,0 @@ -# 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. - -from .update_connection_details import UpdateConnectionDetails -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 UpdateConnectionFromLakehouse(UpdateConnectionDetails): - """ - The details to update a Lakehouse connection. - """ - - def __init__(self, **kwargs): - """ - Initializes a new UpdateConnectionFromLakehouse object with values from keyword arguments. The default value of the :py:attr:`~oci.data_integration.models.UpdateConnectionFromLakehouse.model_type` attribute - of this class is ``LAKE_HOUSE_CONNECTION`` and it should not be changed. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param model_type: - The value to assign to the model_type property of this UpdateConnectionFromLakehouse. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_HOUSE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" - :type model_type: str - - :param key: - The value to assign to the key property of this UpdateConnectionFromLakehouse. - :type key: str - - :param model_version: - The value to assign to the model_version property of this UpdateConnectionFromLakehouse. - :type model_version: str - - :param parent_ref: - The value to assign to the parent_ref property of this UpdateConnectionFromLakehouse. - :type parent_ref: oci.data_integration.models.ParentReference - - :param name: - The value to assign to the name property of this UpdateConnectionFromLakehouse. - :type name: str - - :param description: - The value to assign to the description property of this UpdateConnectionFromLakehouse. - :type description: str - - :param object_status: - The value to assign to the object_status property of this UpdateConnectionFromLakehouse. - :type object_status: int - - :param object_version: - The value to assign to the object_version property of this UpdateConnectionFromLakehouse. - :type object_version: int - - :param identifier: - The value to assign to the identifier property of this UpdateConnectionFromLakehouse. - :type identifier: str - - :param connection_properties: - The value to assign to the connection_properties property of this UpdateConnectionFromLakehouse. - :type connection_properties: list[oci.data_integration.models.ConnectionProperty] - - :param registry_metadata: - The value to assign to the registry_metadata property of this UpdateConnectionFromLakehouse. - :type registry_metadata: oci.data_integration.models.RegistryMetadata - - """ - self.swagger_types = { - 'model_type': 'str', - 'key': 'str', - 'model_version': 'str', - 'parent_ref': 'ParentReference', - 'name': 'str', - 'description': 'str', - 'object_status': 'int', - 'object_version': 'int', - 'identifier': 'str', - 'connection_properties': 'list[ConnectionProperty]', - 'registry_metadata': 'RegistryMetadata' - } - - self.attribute_map = { - 'model_type': 'modelType', - 'key': 'key', - 'model_version': 'modelVersion', - 'parent_ref': 'parentRef', - 'name': 'name', - 'description': 'description', - 'object_status': 'objectStatus', - 'object_version': 'objectVersion', - 'identifier': 'identifier', - 'connection_properties': 'connectionProperties', - 'registry_metadata': 'registryMetadata' - } - - self._model_type = None - self._key = None - self._model_version = None - self._parent_ref = None - self._name = None - self._description = None - self._object_status = None - self._object_version = None - self._identifier = None - self._connection_properties = None - self._registry_metadata = None - self._model_type = 'LAKE_HOUSE_CONNECTION' - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/data_integration/models/update_data_asset_from_lakehouse.py b/src/oci/data_integration/models/update_data_asset_from_lakehouse.py deleted file mode 100644 index 1d6f346363..0000000000 --- a/src/oci/data_integration/models/update_data_asset_from_lakehouse.py +++ /dev/null @@ -1,239 +0,0 @@ -# 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. - -from .update_data_asset_details import UpdateDataAssetDetails -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 UpdateDataAssetFromLakehouse(UpdateDataAssetDetails): - """ - Details for the Lakehouse data asset type. - """ - - def __init__(self, **kwargs): - """ - Initializes a new UpdateDataAssetFromLakehouse object with values from keyword arguments. The default value of the :py:attr:`~oci.data_integration.models.UpdateDataAssetFromLakehouse.model_type` attribute - of this class is ``LAKE_HOUSE_DATA_ASSET`` and it should not be changed. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param model_type: - The value to assign to the model_type property of this UpdateDataAssetFromLakehouse. - Allowed values for this property are: "ORACLE_DATA_ASSET", "ORACLE_OBJECT_STORAGE_DATA_ASSET", "ORACLE_ATP_DATA_ASSET", "ORACLE_ADWC_DATA_ASSET", "MYSQL_DATA_ASSET", "GENERIC_JDBC_DATA_ASSET", "FUSION_APP_DATA_ASSET", "AMAZON_S3_DATA_ASSET", "LAKE_HOUSE_DATA_ASSET", "REST_DATA_ASSET" - :type model_type: str - - :param key: - The value to assign to the key property of this UpdateDataAssetFromLakehouse. - :type key: str - - :param model_version: - The value to assign to the model_version property of this UpdateDataAssetFromLakehouse. - :type model_version: str - - :param name: - The value to assign to the name property of this UpdateDataAssetFromLakehouse. - :type name: str - - :param description: - The value to assign to the description property of this UpdateDataAssetFromLakehouse. - :type description: str - - :param object_status: - The value to assign to the object_status property of this UpdateDataAssetFromLakehouse. - :type object_status: int - - :param object_version: - The value to assign to the object_version property of this UpdateDataAssetFromLakehouse. - :type object_version: int - - :param identifier: - The value to assign to the identifier property of this UpdateDataAssetFromLakehouse. - :type identifier: str - - :param external_key: - The value to assign to the external_key property of this UpdateDataAssetFromLakehouse. - :type external_key: str - - :param asset_properties: - The value to assign to the asset_properties property of this UpdateDataAssetFromLakehouse. - :type asset_properties: dict(str, str) - - :param registry_metadata: - The value to assign to the registry_metadata property of this UpdateDataAssetFromLakehouse. - :type registry_metadata: oci.data_integration.models.RegistryMetadata - - :param lakehouse_ocid: - The value to assign to the lakehouse_ocid property of this UpdateDataAssetFromLakehouse. - :type lakehouse_ocid: str - - :param metastore_id: - The value to assign to the metastore_id property of this UpdateDataAssetFromLakehouse. - :type metastore_id: str - - :param ranger_endpoint: - The value to assign to the ranger_endpoint property of this UpdateDataAssetFromLakehouse. - :type ranger_endpoint: str - - :param default_connection: - The value to assign to the default_connection property of this UpdateDataAssetFromLakehouse. - :type default_connection: oci.data_integration.models.UpdateConnectionFromLakehouse - - """ - self.swagger_types = { - 'model_type': 'str', - 'key': 'str', - 'model_version': 'str', - 'name': 'str', - 'description': 'str', - 'object_status': 'int', - 'object_version': 'int', - 'identifier': 'str', - 'external_key': 'str', - 'asset_properties': 'dict(str, str)', - 'registry_metadata': 'RegistryMetadata', - 'lakehouse_ocid': 'str', - 'metastore_id': 'str', - 'ranger_endpoint': 'str', - 'default_connection': 'UpdateConnectionFromLakehouse' - } - - self.attribute_map = { - 'model_type': 'modelType', - 'key': 'key', - 'model_version': 'modelVersion', - 'name': 'name', - 'description': 'description', - 'object_status': 'objectStatus', - 'object_version': 'objectVersion', - 'identifier': 'identifier', - 'external_key': 'externalKey', - 'asset_properties': 'assetProperties', - 'registry_metadata': 'registryMetadata', - 'lakehouse_ocid': 'lakehouseOcid', - 'metastore_id': 'metastoreId', - 'ranger_endpoint': 'rangerEndpoint', - 'default_connection': 'defaultConnection' - } - - self._model_type = None - self._key = None - self._model_version = None - self._name = None - self._description = None - self._object_status = None - self._object_version = None - self._identifier = None - self._external_key = None - self._asset_properties = None - self._registry_metadata = None - self._lakehouse_ocid = None - self._metastore_id = None - self._ranger_endpoint = None - self._default_connection = None - self._model_type = 'LAKE_HOUSE_DATA_ASSET' - - @property - def lakehouse_ocid(self): - """ - **[Required]** Gets the lakehouse_ocid of this UpdateDataAssetFromLakehouse. - The Lakehouse Ocid. - - - :return: The lakehouse_ocid of this UpdateDataAssetFromLakehouse. - :rtype: str - """ - return self._lakehouse_ocid - - @lakehouse_ocid.setter - def lakehouse_ocid(self, lakehouse_ocid): - """ - Sets the lakehouse_ocid of this UpdateDataAssetFromLakehouse. - The Lakehouse Ocid. - - - :param lakehouse_ocid: The lakehouse_ocid of this UpdateDataAssetFromLakehouse. - :type: str - """ - self._lakehouse_ocid = lakehouse_ocid - - @property - def metastore_id(self): - """ - Gets the metastore_id of this UpdateDataAssetFromLakehouse. - The metastoreId for the specified Lakehouse Resource. - - - :return: The metastore_id of this UpdateDataAssetFromLakehouse. - :rtype: str - """ - return self._metastore_id - - @metastore_id.setter - def metastore_id(self, metastore_id): - """ - Sets the metastore_id of this UpdateDataAssetFromLakehouse. - The metastoreId for the specified Lakehouse Resource. - - - :param metastore_id: The metastore_id of this UpdateDataAssetFromLakehouse. - :type: str - """ - self._metastore_id = metastore_id - - @property - def ranger_endpoint(self): - """ - Gets the ranger_endpoint of this UpdateDataAssetFromLakehouse. - The rangerEndpoint for the specified Lakehouse Resource. - - - :return: The ranger_endpoint of this UpdateDataAssetFromLakehouse. - :rtype: str - """ - return self._ranger_endpoint - - @ranger_endpoint.setter - def ranger_endpoint(self, ranger_endpoint): - """ - Sets the ranger_endpoint of this UpdateDataAssetFromLakehouse. - The rangerEndpoint for the specified Lakehouse Resource. - - - :param ranger_endpoint: The ranger_endpoint of this UpdateDataAssetFromLakehouse. - :type: str - """ - self._ranger_endpoint = ranger_endpoint - - @property - def default_connection(self): - """ - **[Required]** Gets the default_connection of this UpdateDataAssetFromLakehouse. - - :return: The default_connection of this UpdateDataAssetFromLakehouse. - :rtype: oci.data_integration.models.UpdateConnectionFromLakehouse - """ - return self._default_connection - - @default_connection.setter - def default_connection(self, default_connection): - """ - Sets the default_connection of this UpdateDataAssetFromLakehouse. - - :param default_connection: The default_connection of this UpdateDataAssetFromLakehouse. - :type: oci.data_integration.models.UpdateConnectionFromLakehouse - """ - self._default_connection = default_connection - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/advisor_settings.py b/src/oci/database_migration/models/advisor_settings.py deleted file mode 100644 index 78cd327d9e..0000000000 --- a/src/oci/database_migration/models/advisor_settings.py +++ /dev/null @@ -1,103 +0,0 @@ -# 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: 20210929 - - -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 AdvisorSettings(object): - """ - Optional Pre-Migration advisor settings. - """ - - def __init__(self, **kwargs): - """ - Initializes a new AdvisorSettings object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param is_skip_advisor: - The value to assign to the is_skip_advisor property of this AdvisorSettings. - :type is_skip_advisor: bool - - :param is_ignore_errors: - The value to assign to the is_ignore_errors property of this AdvisorSettings. - :type is_ignore_errors: bool - - """ - self.swagger_types = { - 'is_skip_advisor': 'bool', - 'is_ignore_errors': 'bool' - } - - self.attribute_map = { - 'is_skip_advisor': 'isSkipAdvisor', - 'is_ignore_errors': 'isIgnoreErrors' - } - - self._is_skip_advisor = None - self._is_ignore_errors = None - - @property - def is_skip_advisor(self): - """ - Gets the is_skip_advisor of this AdvisorSettings. - True to skip the Pre-Migration Advisor execution. Default is false. - - - :return: The is_skip_advisor of this AdvisorSettings. - :rtype: bool - """ - return self._is_skip_advisor - - @is_skip_advisor.setter - def is_skip_advisor(self, is_skip_advisor): - """ - Sets the is_skip_advisor of this AdvisorSettings. - True to skip the Pre-Migration Advisor execution. Default is false. - - - :param is_skip_advisor: The is_skip_advisor of this AdvisorSettings. - :type: bool - """ - self._is_skip_advisor = is_skip_advisor - - @property - def is_ignore_errors(self): - """ - Gets the is_ignore_errors of this AdvisorSettings. - True to not interrupt migration execution due to Pre-Migration Advisor errors. Default is false. - - - :return: The is_ignore_errors of this AdvisorSettings. - :rtype: bool - """ - return self._is_ignore_errors - - @is_ignore_errors.setter - def is_ignore_errors(self, is_ignore_errors): - """ - Sets the is_ignore_errors of this AdvisorSettings. - True to not interrupt migration execution due to Pre-Migration Advisor errors. Default is false. - - - :param is_ignore_errors: The is_ignore_errors of this AdvisorSettings. - :type: bool - """ - self._is_ignore_errors = is_ignore_errors - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/agent.py b/src/oci/database_migration/models/agent.py deleted file mode 100644 index 61a69d49b0..0000000000 --- a/src/oci/database_migration/models/agent.py +++ /dev/null @@ -1,486 +0,0 @@ -# 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: 20210929 - - -from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from oci.decorators import init_model_state_from_kwargs - - -@init_model_state_from_kwargs -class Agent(object): - """ - ODMS Agent Details - """ - - #: A constant which can be used with the lifecycle_state property of a Agent. - #: This constant has a value of "CREATING" - LIFECYCLE_STATE_CREATING = "CREATING" - - #: A constant which can be used with the lifecycle_state property of a Agent. - #: This constant has a value of "UPDATING" - LIFECYCLE_STATE_UPDATING = "UPDATING" - - #: A constant which can be used with the lifecycle_state property of a Agent. - #: This constant has a value of "ACTIVE" - LIFECYCLE_STATE_ACTIVE = "ACTIVE" - - #: A constant which can be used with the lifecycle_state property of a Agent. - #: This constant has a value of "INACTIVE" - LIFECYCLE_STATE_INACTIVE = "INACTIVE" - - #: A constant which can be used with the lifecycle_state property of a Agent. - #: This constant has a value of "DELETING" - LIFECYCLE_STATE_DELETING = "DELETING" - - #: A constant which can be used with the lifecycle_state property of a Agent. - #: This constant has a value of "DELETED" - LIFECYCLE_STATE_DELETED = "DELETED" - - #: A constant which can be used with the lifecycle_state property of a Agent. - #: This constant has a value of "FAILED" - LIFECYCLE_STATE_FAILED = "FAILED" - - def __init__(self, **kwargs): - """ - Initializes a new Agent object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param id: - The value to assign to the id property of this Agent. - :type id: str - - :param display_name: - The value to assign to the display_name property of this Agent. - :type display_name: str - - :param compartment_id: - The value to assign to the compartment_id property of this Agent. - :type compartment_id: str - - :param stream_id: - The value to assign to the stream_id property of this Agent. - :type stream_id: str - - :param public_key: - The value to assign to the public_key property of this Agent. - :type public_key: str - - :param version: - The value to assign to the version property of this Agent. - :type version: str - - :param time_created: - The value to assign to the time_created property of this Agent. - :type time_created: datetime - - :param time_updated: - The value to assign to the time_updated property of this Agent. - :type time_updated: datetime - - :param lifecycle_state: - The value to assign to the lifecycle_state property of this Agent. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. - Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. - :type lifecycle_state: str - - :param lifecycle_details: - The value to assign to the lifecycle_details property of this Agent. - :type lifecycle_details: str - - :param freeform_tags: - The value to assign to the freeform_tags property of this Agent. - :type freeform_tags: dict(str, str) - - :param defined_tags: - The value to assign to the defined_tags property of this Agent. - :type defined_tags: dict(str, dict(str, object)) - - :param system_tags: - The value to assign to the system_tags property of this Agent. - :type system_tags: dict(str, dict(str, object)) - - """ - self.swagger_types = { - 'id': 'str', - 'display_name': 'str', - 'compartment_id': 'str', - 'stream_id': 'str', - 'public_key': 'str', - 'version': 'str', - 'time_created': 'datetime', - 'time_updated': 'datetime', - 'lifecycle_state': 'str', - 'lifecycle_details': 'str', - 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))', - 'system_tags': 'dict(str, dict(str, object))' - } - - self.attribute_map = { - 'id': 'id', - 'display_name': 'displayName', - 'compartment_id': 'compartmentId', - 'stream_id': 'streamId', - 'public_key': 'publicKey', - 'version': 'version', - 'time_created': 'timeCreated', - 'time_updated': 'timeUpdated', - 'lifecycle_state': 'lifecycleState', - 'lifecycle_details': 'lifecycleDetails', - 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags', - 'system_tags': 'systemTags' - } - - self._id = None - self._display_name = None - self._compartment_id = None - self._stream_id = None - self._public_key = None - self._version = None - self._time_created = None - self._time_updated = None - self._lifecycle_state = None - self._lifecycle_details = None - self._freeform_tags = None - self._defined_tags = None - self._system_tags = None - - @property - def id(self): - """ - **[Required]** Gets the id of this Agent. - The OCID of the resource - - - :return: The id of this Agent. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this Agent. - The OCID of the resource - - - :param id: The id of this Agent. - :type: str - """ - self._id = id - - @property - def display_name(self): - """ - **[Required]** Gets the display_name of this Agent. - ODMS Agent name - - - :return: The display_name of this Agent. - :rtype: str - """ - return self._display_name - - @display_name.setter - def display_name(self, display_name): - """ - Sets the display_name of this Agent. - ODMS Agent name - - - :param display_name: The display_name of this Agent. - :type: str - """ - self._display_name = display_name - - @property - def compartment_id(self): - """ - **[Required]** Gets the compartment_id of this Agent. - OCID of the compartment - - - :return: The compartment_id of this Agent. - :rtype: str - """ - return self._compartment_id - - @compartment_id.setter - def compartment_id(self, compartment_id): - """ - Sets the compartment_id of this Agent. - OCID of the compartment - - - :param compartment_id: The compartment_id of this Agent. - :type: str - """ - self._compartment_id = compartment_id - - @property - def stream_id(self): - """ - **[Required]** Gets the stream_id of this Agent. - The OCID of the Stream - - - :return: The stream_id of this Agent. - :rtype: str - """ - return self._stream_id - - @stream_id.setter - def stream_id(self, stream_id): - """ - Sets the stream_id of this Agent. - The OCID of the Stream - - - :param stream_id: The stream_id of this Agent. - :type: str - """ - self._stream_id = stream_id - - @property - def public_key(self): - """ - Gets the public_key of this Agent. - ODMS Agent public key. - - - :return: The public_key of this Agent. - :rtype: str - """ - return self._public_key - - @public_key.setter - def public_key(self, public_key): - """ - Sets the public_key of this Agent. - ODMS Agent public key. - - - :param public_key: The public_key of this Agent. - :type: str - """ - self._public_key = public_key - - @property - def version(self): - """ - **[Required]** Gets the version of this Agent. - ODMS Agent version - - - :return: The version of this Agent. - :rtype: str - """ - return self._version - - @version.setter - def version(self, version): - """ - Sets the version of this Agent. - ODMS Agent version - - - :param version: The version of this Agent. - :type: str - """ - self._version = version - - @property - def time_created(self): - """ - **[Required]** Gets the time_created of this Agent. - The time the Agent was created. An RFC3339 formatted datetime string. - - - :return: The time_created of this Agent. - :rtype: datetime - """ - return self._time_created - - @time_created.setter - def time_created(self, time_created): - """ - Sets the time_created of this Agent. - The time the Agent was created. An RFC3339 formatted datetime string. - - - :param time_created: The time_created of this Agent. - :type: datetime - """ - self._time_created = time_created - - @property - def time_updated(self): - """ - **[Required]** Gets the time_updated of this Agent. - The time of the last Agent details update. An RFC3339 formatted datetime string. - - - :return: The time_updated of this Agent. - :rtype: datetime - """ - return self._time_updated - - @time_updated.setter - def time_updated(self, time_updated): - """ - Sets the time_updated of this Agent. - The time of the last Agent details update. An RFC3339 formatted datetime string. - - - :param time_updated: The time_updated of this Agent. - :type: datetime - """ - self._time_updated = time_updated - - @property - def lifecycle_state(self): - """ - **[Required]** Gets the lifecycle_state of this Agent. - The current state of the ODMS on-premises Agent. - - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. - Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. - - - :return: The lifecycle_state of this Agent. - :rtype: str - """ - return self._lifecycle_state - - @lifecycle_state.setter - def lifecycle_state(self, lifecycle_state): - """ - Sets the lifecycle_state of this Agent. - The current state of the ODMS on-premises Agent. - - - :param lifecycle_state: The lifecycle_state of this Agent. - :type: str - """ - allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"] - if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): - lifecycle_state = 'UNKNOWN_ENUM_VALUE' - self._lifecycle_state = lifecycle_state - - @property - def lifecycle_details(self): - """ - Gets the lifecycle_details of this Agent. - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. - - - :return: The lifecycle_details of this Agent. - :rtype: str - """ - return self._lifecycle_details - - @lifecycle_details.setter - def lifecycle_details(self, lifecycle_details): - """ - Sets the lifecycle_details of this Agent. - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. - - - :param lifecycle_details: The lifecycle_details of this Agent. - :type: str - """ - self._lifecycle_details = lifecycle_details - - @property - def freeform_tags(self): - """ - Gets the freeform_tags of this Agent. - 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 Agent. - :rtype: dict(str, str) - """ - return self._freeform_tags - - @freeform_tags.setter - def freeform_tags(self, freeform_tags): - """ - Sets the freeform_tags of this Agent. - 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 Agent. - :type: dict(str, str) - """ - self._freeform_tags = freeform_tags - - @property - def defined_tags(self): - """ - Gets the defined_tags of this Agent. - Defined tags for this resource. Each key is predefined and scoped to a namespace. - Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` - - - :return: The defined_tags of this Agent. - :rtype: dict(str, dict(str, object)) - """ - return self._defined_tags - - @defined_tags.setter - def defined_tags(self, defined_tags): - """ - Sets the defined_tags of this Agent. - Defined tags for this resource. Each key is predefined and scoped to a namespace. - Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` - - - :param defined_tags: The defined_tags of this Agent. - :type: dict(str, dict(str, object)) - """ - self._defined_tags = defined_tags - - @property - def system_tags(self): - """ - Gets the system_tags of this Agent. - 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 Agent. - :rtype: dict(str, dict(str, object)) - """ - return self._system_tags - - @system_tags.setter - def system_tags(self, system_tags): - """ - Sets the system_tags of this Agent. - 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 Agent. - :type: dict(str, dict(str, object)) - """ - self._system_tags = system_tags - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/agent_image_collection.py b/src/oci/database_migration/models/agent_image_collection.py deleted file mode 100644 index feb37426ac..0000000000 --- a/src/oci/database_migration/models/agent_image_collection.py +++ /dev/null @@ -1,72 +0,0 @@ -# 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: 20210929 - - -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 AgentImageCollection(object): - """ - Results of an ODMS Agent Image search. Contains AgentImageSummary items. - """ - - def __init__(self, **kwargs): - """ - Initializes a new AgentImageCollection 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 AgentImageCollection. - :type items: list[oci.database_migration.models.AgentImageSummary] - - """ - self.swagger_types = { - 'items': 'list[AgentImageSummary]' - } - - self.attribute_map = { - 'items': 'items' - } - - self._items = None - - @property - def items(self): - """ - **[Required]** Gets the items of this AgentImageCollection. - Items in collection. - - - :return: The items of this AgentImageCollection. - :rtype: list[oci.database_migration.models.AgentImageSummary] - """ - return self._items - - @items.setter - def items(self, items): - """ - Sets the items of this AgentImageCollection. - Items in collection. - - - :param items: The items of this AgentImageCollection. - :type: list[oci.database_migration.models.AgentImageSummary] - """ - 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/database_migration/models/agent_image_summary.py b/src/oci/database_migration/models/agent_image_summary.py deleted file mode 100644 index 74eee04341..0000000000 --- a/src/oci/database_migration/models/agent_image_summary.py +++ /dev/null @@ -1,103 +0,0 @@ -# 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: 20210929 - - -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 AgentImageSummary(object): - """ - Available ODMS Agent Images. - """ - - def __init__(self, **kwargs): - """ - Initializes a new AgentImageSummary object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param version: - The value to assign to the version property of this AgentImageSummary. - :type version: str - - :param download_url: - The value to assign to the download_url property of this AgentImageSummary. - :type download_url: str - - """ - self.swagger_types = { - 'version': 'str', - 'download_url': 'str' - } - - self.attribute_map = { - 'version': 'version', - 'download_url': 'downloadUrl' - } - - self._version = None - self._download_url = None - - @property - def version(self): - """ - **[Required]** Gets the version of this AgentImageSummary. - ODMS Agent Image version. - - - :return: The version of this AgentImageSummary. - :rtype: str - """ - return self._version - - @version.setter - def version(self, version): - """ - Sets the version of this AgentImageSummary. - ODMS Agent Image version. - - - :param version: The version of this AgentImageSummary. - :type: str - """ - self._version = version - - @property - def download_url(self): - """ - **[Required]** Gets the download_url of this AgentImageSummary. - URL to download Agent Image of the ODMS Agent. - - - :return: The download_url of this AgentImageSummary. - :rtype: str - """ - return self._download_url - - @download_url.setter - def download_url(self, download_url): - """ - Sets the download_url of this AgentImageSummary. - URL to download Agent Image of the ODMS Agent. - - - :param download_url: The download_url of this AgentImageSummary. - :type: str - """ - self._download_url = download_url - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/agent_summary.py b/src/oci/database_migration/models/agent_summary.py deleted file mode 100644 index 427b4d03b9..0000000000 --- a/src/oci/database_migration/models/agent_summary.py +++ /dev/null @@ -1,455 +0,0 @@ -# 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: 20210929 - - -from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from oci.decorators import init_model_state_from_kwargs - - -@init_model_state_from_kwargs -class AgentSummary(object): - """ - ODMS Agent Details - """ - - #: A constant which can be used with the lifecycle_state property of a AgentSummary. - #: This constant has a value of "CREATING" - LIFECYCLE_STATE_CREATING = "CREATING" - - #: A constant which can be used with the lifecycle_state property of a AgentSummary. - #: This constant has a value of "UPDATING" - LIFECYCLE_STATE_UPDATING = "UPDATING" - - #: A constant which can be used with the lifecycle_state property of a AgentSummary. - #: This constant has a value of "ACTIVE" - LIFECYCLE_STATE_ACTIVE = "ACTIVE" - - #: A constant which can be used with the lifecycle_state property of a AgentSummary. - #: This constant has a value of "INACTIVE" - LIFECYCLE_STATE_INACTIVE = "INACTIVE" - - #: A constant which can be used with the lifecycle_state property of a AgentSummary. - #: This constant has a value of "DELETING" - LIFECYCLE_STATE_DELETING = "DELETING" - - #: A constant which can be used with the lifecycle_state property of a AgentSummary. - #: This constant has a value of "DELETED" - LIFECYCLE_STATE_DELETED = "DELETED" - - #: A constant which can be used with the lifecycle_state property of a AgentSummary. - #: This constant has a value of "FAILED" - LIFECYCLE_STATE_FAILED = "FAILED" - - def __init__(self, **kwargs): - """ - Initializes a new AgentSummary object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param id: - The value to assign to the id property of this AgentSummary. - :type id: str - - :param display_name: - The value to assign to the display_name property of this AgentSummary. - :type display_name: str - - :param compartment_id: - The value to assign to the compartment_id property of this AgentSummary. - :type compartment_id: str - - :param stream_id: - The value to assign to the stream_id property of this AgentSummary. - :type stream_id: str - - :param version: - The value to assign to the version property of this AgentSummary. - :type version: str - - :param time_created: - The value to assign to the time_created property of this AgentSummary. - :type time_created: datetime - - :param time_updated: - The value to assign to the time_updated property of this AgentSummary. - :type time_updated: datetime - - :param lifecycle_state: - The value to assign to the lifecycle_state property of this AgentSummary. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. - Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. - :type lifecycle_state: str - - :param lifecycle_details: - The value to assign to the lifecycle_details property of this AgentSummary. - :type lifecycle_details: str - - :param freeform_tags: - The value to assign to the freeform_tags property of this AgentSummary. - :type freeform_tags: dict(str, str) - - :param defined_tags: - The value to assign to the defined_tags property of this AgentSummary. - :type defined_tags: dict(str, dict(str, object)) - - :param system_tags: - The value to assign to the system_tags property of this AgentSummary. - :type system_tags: dict(str, dict(str, object)) - - """ - self.swagger_types = { - 'id': 'str', - 'display_name': 'str', - 'compartment_id': 'str', - 'stream_id': 'str', - 'version': 'str', - 'time_created': 'datetime', - 'time_updated': 'datetime', - 'lifecycle_state': 'str', - 'lifecycle_details': 'str', - 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))', - 'system_tags': 'dict(str, dict(str, object))' - } - - self.attribute_map = { - 'id': 'id', - 'display_name': 'displayName', - 'compartment_id': 'compartmentId', - 'stream_id': 'streamId', - 'version': 'version', - 'time_created': 'timeCreated', - 'time_updated': 'timeUpdated', - 'lifecycle_state': 'lifecycleState', - 'lifecycle_details': 'lifecycleDetails', - 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags', - 'system_tags': 'systemTags' - } - - self._id = None - self._display_name = None - self._compartment_id = None - self._stream_id = None - self._version = None - self._time_created = None - self._time_updated = None - self._lifecycle_state = None - self._lifecycle_details = None - self._freeform_tags = None - self._defined_tags = None - self._system_tags = None - - @property - def id(self): - """ - **[Required]** Gets the id of this AgentSummary. - The OCID of the resource - - - :return: The id of this AgentSummary. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this AgentSummary. - The OCID of the resource - - - :param id: The id of this AgentSummary. - :type: str - """ - self._id = id - - @property - def display_name(self): - """ - **[Required]** Gets the display_name of this AgentSummary. - ODMS Agent name - - - :return: The display_name of this AgentSummary. - :rtype: str - """ - return self._display_name - - @display_name.setter - def display_name(self, display_name): - """ - Sets the display_name of this AgentSummary. - ODMS Agent name - - - :param display_name: The display_name of this AgentSummary. - :type: str - """ - self._display_name = display_name - - @property - def compartment_id(self): - """ - **[Required]** Gets the compartment_id of this AgentSummary. - OCID of the compartment - - - :return: The compartment_id of this AgentSummary. - :rtype: str - """ - return self._compartment_id - - @compartment_id.setter - def compartment_id(self, compartment_id): - """ - Sets the compartment_id of this AgentSummary. - OCID of the compartment - - - :param compartment_id: The compartment_id of this AgentSummary. - :type: str - """ - self._compartment_id = compartment_id - - @property - def stream_id(self): - """ - Gets the stream_id of this AgentSummary. - The OCID of the Stream - - - :return: The stream_id of this AgentSummary. - :rtype: str - """ - return self._stream_id - - @stream_id.setter - def stream_id(self, stream_id): - """ - Sets the stream_id of this AgentSummary. - The OCID of the Stream - - - :param stream_id: The stream_id of this AgentSummary. - :type: str - """ - self._stream_id = stream_id - - @property - def version(self): - """ - **[Required]** Gets the version of this AgentSummary. - ODMS Agent version - - - :return: The version of this AgentSummary. - :rtype: str - """ - return self._version - - @version.setter - def version(self, version): - """ - Sets the version of this AgentSummary. - ODMS Agent version - - - :param version: The version of this AgentSummary. - :type: str - """ - self._version = version - - @property - def time_created(self): - """ - **[Required]** Gets the time_created of this AgentSummary. - The time the Agent was created. An RFC3339 formatted datetime string. - - - :return: The time_created of this AgentSummary. - :rtype: datetime - """ - return self._time_created - - @time_created.setter - def time_created(self, time_created): - """ - Sets the time_created of this AgentSummary. - The time the Agent was created. An RFC3339 formatted datetime string. - - - :param time_created: The time_created of this AgentSummary. - :type: datetime - """ - self._time_created = time_created - - @property - def time_updated(self): - """ - Gets the time_updated of this AgentSummary. - The time of the last Agent details update. An RFC3339 formatted datetime string. - - - :return: The time_updated of this AgentSummary. - :rtype: datetime - """ - return self._time_updated - - @time_updated.setter - def time_updated(self, time_updated): - """ - Sets the time_updated of this AgentSummary. - The time of the last Agent details update. An RFC3339 formatted datetime string. - - - :param time_updated: The time_updated of this AgentSummary. - :type: datetime - """ - self._time_updated = time_updated - - @property - def lifecycle_state(self): - """ - **[Required]** Gets the lifecycle_state of this AgentSummary. - The current state of the ODMS on-premises Agent. - - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. - Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. - - - :return: The lifecycle_state of this AgentSummary. - :rtype: str - """ - return self._lifecycle_state - - @lifecycle_state.setter - def lifecycle_state(self, lifecycle_state): - """ - Sets the lifecycle_state of this AgentSummary. - The current state of the ODMS on-premises Agent. - - - :param lifecycle_state: The lifecycle_state of this AgentSummary. - :type: str - """ - allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"] - if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): - lifecycle_state = 'UNKNOWN_ENUM_VALUE' - self._lifecycle_state = lifecycle_state - - @property - def lifecycle_details(self): - """ - Gets the lifecycle_details of this AgentSummary. - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. - - - :return: The lifecycle_details of this AgentSummary. - :rtype: str - """ - return self._lifecycle_details - - @lifecycle_details.setter - def lifecycle_details(self, lifecycle_details): - """ - Sets the lifecycle_details of this AgentSummary. - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. - - - :param lifecycle_details: The lifecycle_details of this AgentSummary. - :type: str - """ - self._lifecycle_details = lifecycle_details - - @property - def freeform_tags(self): - """ - Gets the freeform_tags of this AgentSummary. - 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 AgentSummary. - :rtype: dict(str, str) - """ - return self._freeform_tags - - @freeform_tags.setter - def freeform_tags(self, freeform_tags): - """ - Sets the freeform_tags of this AgentSummary. - 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 AgentSummary. - :type: dict(str, str) - """ - self._freeform_tags = freeform_tags - - @property - def defined_tags(self): - """ - Gets the defined_tags of this AgentSummary. - Defined tags for this resource. Each key is predefined and scoped to a namespace. - Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` - - - :return: The defined_tags of this AgentSummary. - :rtype: dict(str, dict(str, object)) - """ - return self._defined_tags - - @defined_tags.setter - def defined_tags(self, defined_tags): - """ - Sets the defined_tags of this AgentSummary. - Defined tags for this resource. Each key is predefined and scoped to a namespace. - Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` - - - :param defined_tags: The defined_tags of this AgentSummary. - :type: dict(str, dict(str, object)) - """ - self._defined_tags = defined_tags - - @property - def system_tags(self): - """ - Gets the system_tags of this AgentSummary. - 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 AgentSummary. - :rtype: dict(str, dict(str, object)) - """ - return self._system_tags - - @system_tags.setter - def system_tags(self, system_tags): - """ - Sets the system_tags of this AgentSummary. - 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 AgentSummary. - :type: dict(str, dict(str, object)) - """ - self._system_tags = system_tags - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/aws_s3_data_transfer_medium_details.py b/src/oci/database_migration/models/aws_s3_data_transfer_medium_details.py deleted file mode 100644 index a1bcf36644..0000000000 --- a/src/oci/database_migration/models/aws_s3_data_transfer_medium_details.py +++ /dev/null @@ -1,211 +0,0 @@ -# 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: 20210929 - -from .data_transfer_medium_details_v2 import DataTransferMediumDetailsV2 -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 AwsS3DataTransferMediumDetails(DataTransferMediumDetailsV2): - """ - AWS S3 bucket details used for source Connection resources with RDS_ORACLE type. - Only supported for source Connection resources with RDS_ORACLE type. - """ - - def __init__(self, **kwargs): - """ - Initializes a new AwsS3DataTransferMediumDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.database_migration.models.AwsS3DataTransferMediumDetails.type` attribute - of this class is ``AWS_S3`` and it should not be changed. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param type: - The value to assign to the type property of this AwsS3DataTransferMediumDetails. - Allowed values for this property are: "DBLINK", "OBJECT_STORAGE", "AWS_S3", "NFS" - :type type: str - - :param name: - The value to assign to the name property of this AwsS3DataTransferMediumDetails. - :type name: str - - :param region: - The value to assign to the region property of this AwsS3DataTransferMediumDetails. - :type region: str - - :param access_key_id: - The value to assign to the access_key_id property of this AwsS3DataTransferMediumDetails. - :type access_key_id: str - - :param secret_access_key: - The value to assign to the secret_access_key property of this AwsS3DataTransferMediumDetails. - :type secret_access_key: str - - :param object_storage_bucket: - The value to assign to the object_storage_bucket property of this AwsS3DataTransferMediumDetails. - :type object_storage_bucket: oci.database_migration.models.ObjectStoreBucket - - """ - self.swagger_types = { - 'type': 'str', - 'name': 'str', - 'region': 'str', - 'access_key_id': 'str', - 'secret_access_key': 'str', - 'object_storage_bucket': 'ObjectStoreBucket' - } - - self.attribute_map = { - 'type': 'type', - 'name': 'name', - 'region': 'region', - 'access_key_id': 'accessKeyId', - 'secret_access_key': 'secretAccessKey', - 'object_storage_bucket': 'objectStorageBucket' - } - - self._type = None - self._name = None - self._region = None - self._access_key_id = None - self._secret_access_key = None - self._object_storage_bucket = None - self._type = 'AWS_S3' - - @property - def name(self): - """ - Gets the name of this AwsS3DataTransferMediumDetails. - S3 bucket name. - - - :return: The name of this AwsS3DataTransferMediumDetails. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this AwsS3DataTransferMediumDetails. - S3 bucket name. - - - :param name: The name of this AwsS3DataTransferMediumDetails. - :type: str - """ - self._name = name - - @property - def region(self): - """ - Gets the region of this AwsS3DataTransferMediumDetails. - AWS region code where the S3 bucket is located. - Region code should match the documented available regions: - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions - - - :return: The region of this AwsS3DataTransferMediumDetails. - :rtype: str - """ - return self._region - - @region.setter - def region(self, region): - """ - Sets the region of this AwsS3DataTransferMediumDetails. - AWS region code where the S3 bucket is located. - Region code should match the documented available regions: - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions - - - :param region: The region of this AwsS3DataTransferMediumDetails. - :type: str - """ - self._region = region - - @property - def access_key_id(self): - """ - Gets the access_key_id of this AwsS3DataTransferMediumDetails. - AWS access key credentials identifier - Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys - - - :return: The access_key_id of this AwsS3DataTransferMediumDetails. - :rtype: str - """ - return self._access_key_id - - @access_key_id.setter - def access_key_id(self, access_key_id): - """ - Sets the access_key_id of this AwsS3DataTransferMediumDetails. - AWS access key credentials identifier - Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys - - - :param access_key_id: The access_key_id of this AwsS3DataTransferMediumDetails. - :type: str - """ - self._access_key_id = access_key_id - - @property - def secret_access_key(self): - """ - Gets the secret_access_key of this AwsS3DataTransferMediumDetails. - AWS secret access key credentials - Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys - - - :return: The secret_access_key of this AwsS3DataTransferMediumDetails. - :rtype: str - """ - return self._secret_access_key - - @secret_access_key.setter - def secret_access_key(self, secret_access_key): - """ - Sets the secret_access_key of this AwsS3DataTransferMediumDetails. - AWS secret access key credentials - Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys - - - :param secret_access_key: The secret_access_key of this AwsS3DataTransferMediumDetails. - :type: str - """ - self._secret_access_key = secret_access_key - - @property - def object_storage_bucket(self): - """ - Gets the object_storage_bucket of this AwsS3DataTransferMediumDetails. - - :return: The object_storage_bucket of this AwsS3DataTransferMediumDetails. - :rtype: oci.database_migration.models.ObjectStoreBucket - """ - return self._object_storage_bucket - - @object_storage_bucket.setter - def object_storage_bucket(self, object_storage_bucket): - """ - Sets the object_storage_bucket of this AwsS3DataTransferMediumDetails. - - :param object_storage_bucket: The object_storage_bucket of this AwsS3DataTransferMediumDetails. - :type: oci.database_migration.models.ObjectStoreBucket - """ - self._object_storage_bucket = object_storage_bucket - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/aws_s3_details.py b/src/oci/database_migration/models/aws_s3_details.py deleted file mode 100644 index 9e385d0d5c..0000000000 --- a/src/oci/database_migration/models/aws_s3_details.py +++ /dev/null @@ -1,108 +0,0 @@ -# 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: 20210929 - - -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 AwsS3Details(object): - """ - AWS S3 bucket details used for source Connection resources with RDS_ORACLE type. - Only supported for source Connection resources with RDS_ORACLE type. - """ - - def __init__(self, **kwargs): - """ - Initializes a new AwsS3Details 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 AwsS3Details. - :type name: str - - :param region: - The value to assign to the region property of this AwsS3Details. - :type region: str - - """ - self.swagger_types = { - 'name': 'str', - 'region': 'str' - } - - self.attribute_map = { - 'name': 'name', - 'region': 'region' - } - - self._name = None - self._region = None - - @property - def name(self): - """ - **[Required]** Gets the name of this AwsS3Details. - S3 bucket name. - - - :return: The name of this AwsS3Details. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this AwsS3Details. - S3 bucket name. - - - :param name: The name of this AwsS3Details. - :type: str - """ - self._name = name - - @property - def region(self): - """ - **[Required]** Gets the region of this AwsS3Details. - AWS region code where the S3 bucket is located. - Region code should match the documented available regions: - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions - - - :return: The region of this AwsS3Details. - :rtype: str - """ - return self._region - - @region.setter - def region(self, region): - """ - Sets the region of this AwsS3Details. - AWS region code where the S3 bucket is located. - Region code should match the documented available regions: - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions - - - :param region: The region of this AwsS3Details. - :type: str - """ - self._region = region - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/change_agent_compartment_details.py b/src/oci/database_migration/models/change_agent_compartment_details.py deleted file mode 100644 index 6ec2024cb4..0000000000 --- a/src/oci/database_migration/models/change_agent_compartment_details.py +++ /dev/null @@ -1,72 +0,0 @@ -# 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: 20210929 - - -from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from oci.decorators import init_model_state_from_kwargs - - -@init_model_state_from_kwargs -class ChangeAgentCompartmentDetails(object): - """ - Change Agent compartment details - """ - - def __init__(self, **kwargs): - """ - Initializes a new ChangeAgentCompartmentDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param compartment_id: - The value to assign to the compartment_id property of this ChangeAgentCompartmentDetails. - :type compartment_id: str - - """ - self.swagger_types = { - 'compartment_id': 'str' - } - - self.attribute_map = { - 'compartment_id': 'compartmentId' - } - - self._compartment_id = None - - @property - def compartment_id(self): - """ - **[Required]** Gets the compartment_id of this ChangeAgentCompartmentDetails. - The OCID of the compartment to move the resource to. - - - :return: The compartment_id of this ChangeAgentCompartmentDetails. - :rtype: str - """ - return self._compartment_id - - @compartment_id.setter - def compartment_id(self, compartment_id): - """ - Sets the compartment_id of this ChangeAgentCompartmentDetails. - The OCID of the compartment to move the resource to. - - - :param compartment_id: The compartment_id of this ChangeAgentCompartmentDetails. - :type: str - """ - self._compartment_id = compartment_id - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/connect_descriptor.py b/src/oci/database_migration/models/connect_descriptor.py deleted file mode 100644 index 4eaa49afdb..0000000000 --- a/src/oci/database_migration/models/connect_descriptor.py +++ /dev/null @@ -1,165 +0,0 @@ -# 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: 20210929 - - -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 ConnectDescriptor(object): - """ - Connect Descriptor details. - """ - - def __init__(self, **kwargs): - """ - Initializes a new ConnectDescriptor object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param host: - The value to assign to the host property of this ConnectDescriptor. - :type host: str - - :param port: - The value to assign to the port property of this ConnectDescriptor. - :type port: int - - :param database_service_name: - The value to assign to the database_service_name property of this ConnectDescriptor. - :type database_service_name: str - - :param connect_string: - The value to assign to the connect_string property of this ConnectDescriptor. - :type connect_string: str - - """ - self.swagger_types = { - 'host': 'str', - 'port': 'int', - 'database_service_name': 'str', - 'connect_string': 'str' - } - - self.attribute_map = { - 'host': 'host', - 'port': 'port', - 'database_service_name': 'databaseServiceName', - 'connect_string': 'connectString' - } - - self._host = None - self._port = None - self._database_service_name = None - self._connect_string = None - - @property - def host(self): - """ - Gets the host of this ConnectDescriptor. - Host of the connect descriptor. - - - :return: The host of this ConnectDescriptor. - :rtype: str - """ - return self._host - - @host.setter - def host(self, host): - """ - Sets the host of this ConnectDescriptor. - Host of the connect descriptor. - - - :param host: The host of this ConnectDescriptor. - :type: str - """ - self._host = host - - @property - def port(self): - """ - Gets the port of this ConnectDescriptor. - Port of the connect descriptor. - - - :return: The port of this ConnectDescriptor. - :rtype: int - """ - return self._port - - @port.setter - def port(self, port): - """ - Sets the port of this ConnectDescriptor. - Port of the connect descriptor. - - - :param port: The port of this ConnectDescriptor. - :type: int - """ - self._port = port - - @property - def database_service_name(self): - """ - Gets the database_service_name of this ConnectDescriptor. - Database service name. - - - :return: The database_service_name of this ConnectDescriptor. - :rtype: str - """ - return self._database_service_name - - @database_service_name.setter - def database_service_name(self, database_service_name): - """ - Sets the database_service_name of this ConnectDescriptor. - Database service name. - - - :param database_service_name: The database_service_name of this ConnectDescriptor. - :type: str - """ - self._database_service_name = database_service_name - - @property - def connect_string(self): - """ - Gets the connect_string of this ConnectDescriptor. - Connect string. - - - :return: The connect_string of this ConnectDescriptor. - :rtype: str - """ - return self._connect_string - - @connect_string.setter - def connect_string(self, connect_string): - """ - Sets the connect_string of this ConnectDescriptor. - Connect string. - - - :param connect_string: The connect_string of this ConnectDescriptor. - :type: str - """ - self._connect_string = connect_string - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/create_advisor_settings.py b/src/oci/database_migration/models/create_advisor_settings.py deleted file mode 100644 index 08b688dfe5..0000000000 --- a/src/oci/database_migration/models/create_advisor_settings.py +++ /dev/null @@ -1,103 +0,0 @@ -# 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: 20210929 - - -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 CreateAdvisorSettings(object): - """ - Optional Pre-Migration advisor settings. - """ - - def __init__(self, **kwargs): - """ - Initializes a new CreateAdvisorSettings object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param is_skip_advisor: - The value to assign to the is_skip_advisor property of this CreateAdvisorSettings. - :type is_skip_advisor: bool - - :param is_ignore_errors: - The value to assign to the is_ignore_errors property of this CreateAdvisorSettings. - :type is_ignore_errors: bool - - """ - self.swagger_types = { - 'is_skip_advisor': 'bool', - 'is_ignore_errors': 'bool' - } - - self.attribute_map = { - 'is_skip_advisor': 'isSkipAdvisor', - 'is_ignore_errors': 'isIgnoreErrors' - } - - self._is_skip_advisor = None - self._is_ignore_errors = None - - @property - def is_skip_advisor(self): - """ - Gets the is_skip_advisor of this CreateAdvisorSettings. - True to skip the Pre-Migration Advisor execution. Default is false. - - - :return: The is_skip_advisor of this CreateAdvisorSettings. - :rtype: bool - """ - return self._is_skip_advisor - - @is_skip_advisor.setter - def is_skip_advisor(self, is_skip_advisor): - """ - Sets the is_skip_advisor of this CreateAdvisorSettings. - True to skip the Pre-Migration Advisor execution. Default is false. - - - :param is_skip_advisor: The is_skip_advisor of this CreateAdvisorSettings. - :type: bool - """ - self._is_skip_advisor = is_skip_advisor - - @property - def is_ignore_errors(self): - """ - Gets the is_ignore_errors of this CreateAdvisorSettings. - True to not interrupt migration execution due to Pre-Migration Advisor errors. Default is false. - - - :return: The is_ignore_errors of this CreateAdvisorSettings. - :rtype: bool - """ - return self._is_ignore_errors - - @is_ignore_errors.setter - def is_ignore_errors(self, is_ignore_errors): - """ - Sets the is_ignore_errors of this CreateAdvisorSettings. - True to not interrupt migration execution due to Pre-Migration Advisor errors. Default is false. - - - :param is_ignore_errors: The is_ignore_errors of this CreateAdvisorSettings. - :type: bool - """ - self._is_ignore_errors = is_ignore_errors - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/create_agent_details.py b/src/oci/database_migration/models/create_agent_details.py deleted file mode 100644 index 407456cdf8..0000000000 --- a/src/oci/database_migration/models/create_agent_details.py +++ /dev/null @@ -1,260 +0,0 @@ -# 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. - - -from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from oci.decorators import init_model_state_from_kwargs - - -@init_model_state_from_kwargs -class CreateAgentDetails(object): - """ - ODMS Agent Details - """ - - def __init__(self, **kwargs): - """ - Initializes a new CreateAgentDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param compartment_id: - The value to assign to the compartment_id property of this CreateAgentDetails. - :type compartment_id: str - - :param display_name: - The value to assign to the display_name property of this CreateAgentDetails. - :type display_name: str - - :param stream_id: - The value to assign to the stream_id property of this CreateAgentDetails. - :type stream_id: str - - :param public_key: - The value to assign to the public_key property of this CreateAgentDetails. - :type public_key: str - - :param version: - The value to assign to the version property of this CreateAgentDetails. - :type version: str - - :param freeform_tags: - The value to assign to the freeform_tags property of this CreateAgentDetails. - :type freeform_tags: dict(str, str) - - :param defined_tags: - The value to assign to the defined_tags property of this CreateAgentDetails. - :type defined_tags: dict(str, dict(str, object)) - - """ - self.swagger_types = { - 'compartment_id': 'str', - 'display_name': 'str', - 'stream_id': 'str', - 'public_key': 'str', - 'version': 'str', - 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' - } - - self.attribute_map = { - 'compartment_id': 'compartmentId', - 'display_name': 'displayName', - 'stream_id': 'streamId', - 'public_key': 'publicKey', - 'version': 'version', - 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' - } - - self._compartment_id = None - self._display_name = None - self._stream_id = None - self._public_key = None - self._version = None - self._freeform_tags = None - self._defined_tags = None - - @property - def compartment_id(self): - """ - **[Required]** Gets the compartment_id of this CreateAgentDetails. - The OCID of the compartment. - - - :return: The compartment_id of this CreateAgentDetails. - :rtype: str - """ - return self._compartment_id - - @compartment_id.setter - def compartment_id(self, compartment_id): - """ - Sets the compartment_id of this CreateAgentDetails. - The OCID of the compartment. - - - :param compartment_id: The compartment_id of this CreateAgentDetails. - :type: str - """ - self._compartment_id = compartment_id - - @property - def display_name(self): - """ - **[Required]** Gets the display_name of this CreateAgentDetails. - ODMS Agent name - - - :return: The display_name of this CreateAgentDetails. - :rtype: str - """ - return self._display_name - - @display_name.setter - def display_name(self, display_name): - """ - Sets the display_name of this CreateAgentDetails. - ODMS Agent name - - - :param display_name: The display_name of this CreateAgentDetails. - :type: str - """ - self._display_name = display_name - - @property - def stream_id(self): - """ - **[Required]** Gets the stream_id of this CreateAgentDetails. - The OCID of the Stream - - - :return: The stream_id of this CreateAgentDetails. - :rtype: str - """ - return self._stream_id - - @stream_id.setter - def stream_id(self, stream_id): - """ - Sets the stream_id of this CreateAgentDetails. - The OCID of the Stream - - - :param stream_id: The stream_id of this CreateAgentDetails. - :type: str - """ - self._stream_id = stream_id - - @property - def public_key(self): - """ - **[Required]** Gets the public_key of this CreateAgentDetails. - ODMS Agent public key as a Base64 Encoded string. - - - :return: The public_key of this CreateAgentDetails. - :rtype: str - """ - return self._public_key - - @public_key.setter - def public_key(self, public_key): - """ - Sets the public_key of this CreateAgentDetails. - ODMS Agent public key as a Base64 Encoded string. - - - :param public_key: The public_key of this CreateAgentDetails. - :type: str - """ - self._public_key = public_key - - @property - def version(self): - """ - **[Required]** Gets the version of this CreateAgentDetails. - ODMS Agent version - - - :return: The version of this CreateAgentDetails. - :rtype: str - """ - return self._version - - @version.setter - def version(self, version): - """ - Sets the version of this CreateAgentDetails. - ODMS Agent version - - - :param version: The version of this CreateAgentDetails. - :type: str - """ - self._version = version - - @property - def freeform_tags(self): - """ - Gets the freeform_tags of this CreateAgentDetails. - 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 CreateAgentDetails. - :rtype: dict(str, str) - """ - return self._freeform_tags - - @freeform_tags.setter - def freeform_tags(self, freeform_tags): - """ - Sets the freeform_tags of this CreateAgentDetails. - 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 CreateAgentDetails. - :type: dict(str, str) - """ - self._freeform_tags = freeform_tags - - @property - def defined_tags(self): - """ - Gets the defined_tags of this CreateAgentDetails. - Defined tags for this resource. Each key is predefined and scoped to a namespace. - Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` - - - :return: The defined_tags of this CreateAgentDetails. - :rtype: dict(str, dict(str, object)) - """ - return self._defined_tags - - @defined_tags.setter - def defined_tags(self, defined_tags): - """ - Sets the defined_tags of this CreateAgentDetails. - Defined tags for this resource. Each key is predefined and scoped to a namespace. - Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` - - - :param defined_tags: The defined_tags of this CreateAgentDetails. - :type: dict(str, dict(str, object)) - """ - self._defined_tags = defined_tags - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/create_aws_s3_details.py b/src/oci/database_migration/models/create_aws_s3_details.py deleted file mode 100644 index 181d21753b..0000000000 --- a/src/oci/database_migration/models/create_aws_s3_details.py +++ /dev/null @@ -1,174 +0,0 @@ -# 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: 20210929 - - -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 CreateAwsS3Details(object): - """ - AWS S3 bucket details used for source Connection resources with RDS_ORACLE type. - Only supported for source Connection resources with RDS_ORACLE type. - """ - - def __init__(self, **kwargs): - """ - Initializes a new CreateAwsS3Details 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 CreateAwsS3Details. - :type name: str - - :param region: - The value to assign to the region property of this CreateAwsS3Details. - :type region: str - - :param access_key_id: - The value to assign to the access_key_id property of this CreateAwsS3Details. - :type access_key_id: str - - :param secret_access_key: - The value to assign to the secret_access_key property of this CreateAwsS3Details. - :type secret_access_key: str - - """ - self.swagger_types = { - 'name': 'str', - 'region': 'str', - 'access_key_id': 'str', - 'secret_access_key': 'str' - } - - self.attribute_map = { - 'name': 'name', - 'region': 'region', - 'access_key_id': 'accessKeyId', - 'secret_access_key': 'secretAccessKey' - } - - self._name = None - self._region = None - self._access_key_id = None - self._secret_access_key = None - - @property - def name(self): - """ - **[Required]** Gets the name of this CreateAwsS3Details. - S3 bucket name. - - - :return: The name of this CreateAwsS3Details. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this CreateAwsS3Details. - S3 bucket name. - - - :param name: The name of this CreateAwsS3Details. - :type: str - """ - self._name = name - - @property - def region(self): - """ - **[Required]** Gets the region of this CreateAwsS3Details. - AWS region code where the S3 bucket is located. - Region code should match the documented available regions: - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions - - - :return: The region of this CreateAwsS3Details. - :rtype: str - """ - return self._region - - @region.setter - def region(self, region): - """ - Sets the region of this CreateAwsS3Details. - AWS region code where the S3 bucket is located. - Region code should match the documented available regions: - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions - - - :param region: The region of this CreateAwsS3Details. - :type: str - """ - self._region = region - - @property - def access_key_id(self): - """ - **[Required]** Gets the access_key_id of this CreateAwsS3Details. - AWS access key credentials identifier - Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys - - - :return: The access_key_id of this CreateAwsS3Details. - :rtype: str - """ - return self._access_key_id - - @access_key_id.setter - def access_key_id(self, access_key_id): - """ - Sets the access_key_id of this CreateAwsS3Details. - AWS access key credentials identifier - Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys - - - :param access_key_id: The access_key_id of this CreateAwsS3Details. - :type: str - """ - self._access_key_id = access_key_id - - @property - def secret_access_key(self): - """ - **[Required]** Gets the secret_access_key of this CreateAwsS3Details. - AWS secret access key credentials - Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys - - - :return: The secret_access_key of this CreateAwsS3Details. - :rtype: str - """ - return self._secret_access_key - - @secret_access_key.setter - def secret_access_key(self, secret_access_key): - """ - Sets the secret_access_key of this CreateAwsS3Details. - AWS secret access key credentials - Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys - - - :param secret_access_key: The secret_access_key of this CreateAwsS3Details. - :type: str - """ - self._secret_access_key = secret_access_key - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/create_connect_descriptor.py b/src/oci/database_migration/models/create_connect_descriptor.py deleted file mode 100644 index b8f70b55cf..0000000000 --- a/src/oci/database_migration/models/create_connect_descriptor.py +++ /dev/null @@ -1,174 +0,0 @@ -# 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: 20210929 - - -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 CreateConnectDescriptor(object): - """ - Connect Descriptor details. Required for Manual and UserManagerOci connection types. - If a Private Endpoint was specified for the Connection, the host should contain a valid IP address. - """ - - def __init__(self, **kwargs): - """ - Initializes a new CreateConnectDescriptor object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param host: - The value to assign to the host property of this CreateConnectDescriptor. - :type host: str - - :param port: - The value to assign to the port property of this CreateConnectDescriptor. - :type port: int - - :param database_service_name: - The value to assign to the database_service_name property of this CreateConnectDescriptor. - :type database_service_name: str - - :param connect_string: - The value to assign to the connect_string property of this CreateConnectDescriptor. - :type connect_string: str - - """ - self.swagger_types = { - 'host': 'str', - 'port': 'int', - 'database_service_name': 'str', - 'connect_string': 'str' - } - - self.attribute_map = { - 'host': 'host', - 'port': 'port', - 'database_service_name': 'databaseServiceName', - 'connect_string': 'connectString' - } - - self._host = None - self._port = None - self._database_service_name = None - self._connect_string = None - - @property - def host(self): - """ - Gets the host of this CreateConnectDescriptor. - Host or IP address of the connect descriptor. Required if no connectString was specified. - - - :return: The host of this CreateConnectDescriptor. - :rtype: str - """ - return self._host - - @host.setter - def host(self, host): - """ - Sets the host of this CreateConnectDescriptor. - Host or IP address of the connect descriptor. Required if no connectString was specified. - - - :param host: The host of this CreateConnectDescriptor. - :type: str - """ - self._host = host - - @property - def port(self): - """ - Gets the port of this CreateConnectDescriptor. - Port of the connect descriptor. Required if no connectString was specified. - - - :return: The port of this CreateConnectDescriptor. - :rtype: int - """ - return self._port - - @port.setter - def port(self, port): - """ - Sets the port of this CreateConnectDescriptor. - Port of the connect descriptor. Required if no connectString was specified. - - - :param port: The port of this CreateConnectDescriptor. - :type: int - """ - self._port = port - - @property - def database_service_name(self): - """ - Gets the database_service_name of this CreateConnectDescriptor. - Database service name. Required if no connectString was specified. - - - :return: The database_service_name of this CreateConnectDescriptor. - :rtype: str - """ - return self._database_service_name - - @database_service_name.setter - def database_service_name(self, database_service_name): - """ - Sets the database_service_name of this CreateConnectDescriptor. - Database service name. Required if no connectString was specified. - - - :param database_service_name: The database_service_name of this CreateConnectDescriptor. - :type: str - """ - self._database_service_name = database_service_name - - @property - def connect_string(self): - """ - Gets the connect_string of this CreateConnectDescriptor. - Connect String. Required if no host, port nor databaseServiceName were specified. - If a Private Endpoint was specified in the Connection, the host entry should be a valid IP address. - Supported formats: - Easy connect: :/ - Long format: (description= (address=(port=)(host=))(connect_data=(service_name=))) - - - :return: The connect_string of this CreateConnectDescriptor. - :rtype: str - """ - return self._connect_string - - @connect_string.setter - def connect_string(self, connect_string): - """ - Sets the connect_string of this CreateConnectDescriptor. - Connect String. Required if no host, port nor databaseServiceName were specified. - If a Private Endpoint was specified in the Connection, the host entry should be a valid IP address. - Supported formats: - Easy connect: :/ - Long format: (description= (address=(port=)(host=))(connect_data=(service_name=))) - - - :param connect_string: The connect_string of this CreateConnectDescriptor. - :type: str - """ - self._connect_string = connect_string - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/create_data_pump_settings.py b/src/oci/database_migration/models/create_data_pump_settings.py deleted file mode 100644 index 34165a1595..0000000000 --- a/src/oci/database_migration/models/create_data_pump_settings.py +++ /dev/null @@ -1,251 +0,0 @@ -# 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: 20210929 - - -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 CreateDataPumpSettings(object): - """ - Optional settings for Data Pump Export and Import jobs - """ - - #: A constant which can be used with the job_mode property of a CreateDataPumpSettings. - #: This constant has a value of "FULL" - JOB_MODE_FULL = "FULL" - - #: A constant which can be used with the job_mode property of a CreateDataPumpSettings. - #: This constant has a value of "SCHEMA" - JOB_MODE_SCHEMA = "SCHEMA" - - #: A constant which can be used with the job_mode property of a CreateDataPumpSettings. - #: This constant has a value of "TABLE" - JOB_MODE_TABLE = "TABLE" - - #: A constant which can be used with the job_mode property of a CreateDataPumpSettings. - #: This constant has a value of "TABLESPACE" - JOB_MODE_TABLESPACE = "TABLESPACE" - - #: A constant which can be used with the job_mode property of a CreateDataPumpSettings. - #: This constant has a value of "TRANSPORTABLE" - JOB_MODE_TRANSPORTABLE = "TRANSPORTABLE" - - def __init__(self, **kwargs): - """ - Initializes a new CreateDataPumpSettings object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param job_mode: - The value to assign to the job_mode property of this CreateDataPumpSettings. - Allowed values for this property are: "FULL", "SCHEMA", "TABLE", "TABLESPACE", "TRANSPORTABLE" - :type job_mode: str - - :param data_pump_parameters: - The value to assign to the data_pump_parameters property of this CreateDataPumpSettings. - :type data_pump_parameters: oci.database_migration.models.CreateDataPumpParameters - - :param metadata_remaps: - The value to assign to the metadata_remaps property of this CreateDataPumpSettings. - :type metadata_remaps: list[oci.database_migration.models.MetadataRemap] - - :param tablespace_details: - The value to assign to the tablespace_details property of this CreateDataPumpSettings. - :type tablespace_details: oci.database_migration.models.CreateTargetTypeTablespaceDetails - - :param export_directory_object: - The value to assign to the export_directory_object property of this CreateDataPumpSettings. - :type export_directory_object: oci.database_migration.models.CreateDirectoryObject - - :param import_directory_object: - The value to assign to the import_directory_object property of this CreateDataPumpSettings. - :type import_directory_object: oci.database_migration.models.CreateDirectoryObject - - """ - self.swagger_types = { - 'job_mode': 'str', - 'data_pump_parameters': 'CreateDataPumpParameters', - 'metadata_remaps': 'list[MetadataRemap]', - 'tablespace_details': 'CreateTargetTypeTablespaceDetails', - 'export_directory_object': 'CreateDirectoryObject', - 'import_directory_object': 'CreateDirectoryObject' - } - - self.attribute_map = { - 'job_mode': 'jobMode', - 'data_pump_parameters': 'dataPumpParameters', - 'metadata_remaps': 'metadataRemaps', - 'tablespace_details': 'tablespaceDetails', - 'export_directory_object': 'exportDirectoryObject', - 'import_directory_object': 'importDirectoryObject' - } - - self._job_mode = None - self._data_pump_parameters = None - self._metadata_remaps = None - self._tablespace_details = None - self._export_directory_object = None - self._import_directory_object = None - - @property - def job_mode(self): - """ - Gets the job_mode of this CreateDataPumpSettings. - Data Pump job mode. - Refer to `link text`__ - - __ https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-export-utility.html#GUID-8E497131-6B9B-4CC8-AA50-35F480CAC2C4 - - Allowed values for this property are: "FULL", "SCHEMA", "TABLE", "TABLESPACE", "TRANSPORTABLE" - - - :return: The job_mode of this CreateDataPumpSettings. - :rtype: str - """ - return self._job_mode - - @job_mode.setter - def job_mode(self, job_mode): - """ - Sets the job_mode of this CreateDataPumpSettings. - Data Pump job mode. - Refer to `link text`__ - - __ https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-export-utility.html#GUID-8E497131-6B9B-4CC8-AA50-35F480CAC2C4 - - - :param job_mode: The job_mode of this CreateDataPumpSettings. - :type: str - """ - allowed_values = ["FULL", "SCHEMA", "TABLE", "TABLESPACE", "TRANSPORTABLE"] - if not value_allowed_none_or_none_sentinel(job_mode, allowed_values): - raise ValueError( - f"Invalid value for `job_mode`, must be None or one of {allowed_values}" - ) - self._job_mode = job_mode - - @property - def data_pump_parameters(self): - """ - Gets the data_pump_parameters of this CreateDataPumpSettings. - - :return: The data_pump_parameters of this CreateDataPumpSettings. - :rtype: oci.database_migration.models.CreateDataPumpParameters - """ - return self._data_pump_parameters - - @data_pump_parameters.setter - def data_pump_parameters(self, data_pump_parameters): - """ - Sets the data_pump_parameters of this CreateDataPumpSettings. - - :param data_pump_parameters: The data_pump_parameters of this CreateDataPumpSettings. - :type: oci.database_migration.models.CreateDataPumpParameters - """ - self._data_pump_parameters = data_pump_parameters - - @property - def metadata_remaps(self): - """ - Gets the metadata_remaps of this CreateDataPumpSettings. - Defines remapping to be applied to objects as they are processed. - Refer to `DATA_REMAP`__ - - __ https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATAPUMP.html#GUID-E75AAE6F-4EA6-4737-A752-6B62F5E9D460 - - - :return: The metadata_remaps of this CreateDataPumpSettings. - :rtype: list[oci.database_migration.models.MetadataRemap] - """ - return self._metadata_remaps - - @metadata_remaps.setter - def metadata_remaps(self, metadata_remaps): - """ - Sets the metadata_remaps of this CreateDataPumpSettings. - Defines remapping to be applied to objects as they are processed. - Refer to `DATA_REMAP`__ - - __ https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATAPUMP.html#GUID-E75AAE6F-4EA6-4737-A752-6B62F5E9D460 - - - :param metadata_remaps: The metadata_remaps of this CreateDataPumpSettings. - :type: list[oci.database_migration.models.MetadataRemap] - """ - self._metadata_remaps = metadata_remaps - - @property - def tablespace_details(self): - """ - Gets the tablespace_details of this CreateDataPumpSettings. - - :return: The tablespace_details of this CreateDataPumpSettings. - :rtype: oci.database_migration.models.CreateTargetTypeTablespaceDetails - """ - return self._tablespace_details - - @tablespace_details.setter - def tablespace_details(self, tablespace_details): - """ - Sets the tablespace_details of this CreateDataPumpSettings. - - :param tablespace_details: The tablespace_details of this CreateDataPumpSettings. - :type: oci.database_migration.models.CreateTargetTypeTablespaceDetails - """ - self._tablespace_details = tablespace_details - - @property - def export_directory_object(self): - """ - Gets the export_directory_object of this CreateDataPumpSettings. - - :return: The export_directory_object of this CreateDataPumpSettings. - :rtype: oci.database_migration.models.CreateDirectoryObject - """ - return self._export_directory_object - - @export_directory_object.setter - def export_directory_object(self, export_directory_object): - """ - Sets the export_directory_object of this CreateDataPumpSettings. - - :param export_directory_object: The export_directory_object of this CreateDataPumpSettings. - :type: oci.database_migration.models.CreateDirectoryObject - """ - self._export_directory_object = export_directory_object - - @property - def import_directory_object(self): - """ - Gets the import_directory_object of this CreateDataPumpSettings. - - :return: The import_directory_object of this CreateDataPumpSettings. - :rtype: oci.database_migration.models.CreateDirectoryObject - """ - return self._import_directory_object - - @import_directory_object.setter - def import_directory_object(self, import_directory_object): - """ - Sets the import_directory_object of this CreateDataPumpSettings. - - :param import_directory_object: The import_directory_object of this CreateDataPumpSettings. - :type: oci.database_migration.models.CreateDirectoryObject - """ - self._import_directory_object = import_directory_object - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/create_data_transfer_medium_details.py b/src/oci/database_migration/models/create_data_transfer_medium_details.py deleted file mode 100644 index 61105018f7..0000000000 --- a/src/oci/database_migration/models/create_data_transfer_medium_details.py +++ /dev/null @@ -1,124 +0,0 @@ -# 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: 20210929 - - -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 CreateDataTransferMediumDetails(object): - """ - Data Transfer Medium details for the Migration. If not specified, it will default to Database Link. Only one type - of data transfer medium can be specified, except for the case of Amazon RDS Oracle as source, where Object Storage - Details along with AwsS3Details are required. - """ - - def __init__(self, **kwargs): - """ - Initializes a new CreateDataTransferMediumDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param database_link_details: - The value to assign to the database_link_details property of this CreateDataTransferMediumDetails. - :type database_link_details: oci.database_migration.models.CreateDatabaseLinkDetails - - :param object_storage_details: - The value to assign to the object_storage_details property of this CreateDataTransferMediumDetails. - :type object_storage_details: oci.database_migration.models.CreateObjectStoreBucket - - :param aws_s3_details: - The value to assign to the aws_s3_details property of this CreateDataTransferMediumDetails. - :type aws_s3_details: oci.database_migration.models.CreateAwsS3Details - - """ - self.swagger_types = { - 'database_link_details': 'CreateDatabaseLinkDetails', - 'object_storage_details': 'CreateObjectStoreBucket', - 'aws_s3_details': 'CreateAwsS3Details' - } - - self.attribute_map = { - 'database_link_details': 'databaseLinkDetails', - 'object_storage_details': 'objectStorageDetails', - 'aws_s3_details': 'awsS3Details' - } - - self._database_link_details = None - self._object_storage_details = None - self._aws_s3_details = None - - @property - def database_link_details(self): - """ - Gets the database_link_details of this CreateDataTransferMediumDetails. - - :return: The database_link_details of this CreateDataTransferMediumDetails. - :rtype: oci.database_migration.models.CreateDatabaseLinkDetails - """ - return self._database_link_details - - @database_link_details.setter - def database_link_details(self, database_link_details): - """ - Sets the database_link_details of this CreateDataTransferMediumDetails. - - :param database_link_details: The database_link_details of this CreateDataTransferMediumDetails. - :type: oci.database_migration.models.CreateDatabaseLinkDetails - """ - self._database_link_details = database_link_details - - @property - def object_storage_details(self): - """ - Gets the object_storage_details of this CreateDataTransferMediumDetails. - - :return: The object_storage_details of this CreateDataTransferMediumDetails. - :rtype: oci.database_migration.models.CreateObjectStoreBucket - """ - return self._object_storage_details - - @object_storage_details.setter - def object_storage_details(self, object_storage_details): - """ - Sets the object_storage_details of this CreateDataTransferMediumDetails. - - :param object_storage_details: The object_storage_details of this CreateDataTransferMediumDetails. - :type: oci.database_migration.models.CreateObjectStoreBucket - """ - self._object_storage_details = object_storage_details - - @property - def aws_s3_details(self): - """ - Gets the aws_s3_details of this CreateDataTransferMediumDetails. - - :return: The aws_s3_details of this CreateDataTransferMediumDetails. - :rtype: oci.database_migration.models.CreateAwsS3Details - """ - return self._aws_s3_details - - @aws_s3_details.setter - def aws_s3_details(self, aws_s3_details): - """ - Sets the aws_s3_details of this CreateDataTransferMediumDetails. - - :param aws_s3_details: The aws_s3_details of this CreateDataTransferMediumDetails. - :type: oci.database_migration.models.CreateAwsS3Details - """ - self._aws_s3_details = aws_s3_details - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/create_database_link_details.py b/src/oci/database_migration/models/create_database_link_details.py deleted file mode 100644 index 1e78421c6a..0000000000 --- a/src/oci/database_migration/models/create_database_link_details.py +++ /dev/null @@ -1,99 +0,0 @@ -# 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: 20210929 - - -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 CreateDatabaseLinkDetails(object): - """ - Optional details for creating a network database link from OCI database to on-premise database. - """ - - def __init__(self, **kwargs): - """ - Initializes a new CreateDatabaseLinkDetails 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 CreateDatabaseLinkDetails. - :type name: str - - :param wallet_bucket: - The value to assign to the wallet_bucket property of this CreateDatabaseLinkDetails. - :type wallet_bucket: oci.database_migration.models.CreateObjectStoreBucket - - """ - self.swagger_types = { - 'name': 'str', - 'wallet_bucket': 'CreateObjectStoreBucket' - } - - self.attribute_map = { - 'name': 'name', - 'wallet_bucket': 'walletBucket' - } - - self._name = None - self._wallet_bucket = None - - @property - def name(self): - """ - Gets the name of this CreateDatabaseLinkDetails. - Name of database link from OCI database to on-premise database. ODMS will create link, if the link does not already exist. - - - :return: The name of this CreateDatabaseLinkDetails. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this CreateDatabaseLinkDetails. - Name of database link from OCI database to on-premise database. ODMS will create link, if the link does not already exist. - - - :param name: The name of this CreateDatabaseLinkDetails. - :type: str - """ - self._name = name - - @property - def wallet_bucket(self): - """ - Gets the wallet_bucket of this CreateDatabaseLinkDetails. - - :return: The wallet_bucket of this CreateDatabaseLinkDetails. - :rtype: oci.database_migration.models.CreateObjectStoreBucket - """ - return self._wallet_bucket - - @wallet_bucket.setter - def wallet_bucket(self, wallet_bucket): - """ - Sets the wallet_bucket of this CreateDatabaseLinkDetails. - - :param wallet_bucket: The wallet_bucket of this CreateDatabaseLinkDetails. - :type: oci.database_migration.models.CreateObjectStoreBucket - """ - self._wallet_bucket = wallet_bucket - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/create_dump_transfer_details.py b/src/oci/database_migration/models/create_dump_transfer_details.py deleted file mode 100644 index 704f1a9ea0..0000000000 --- a/src/oci/database_migration/models/create_dump_transfer_details.py +++ /dev/null @@ -1,126 +0,0 @@ -# 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: 20210929 - - -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 CreateDumpTransferDetails(object): - """ - Optional additional properties for dump transfer. - """ - - def __init__(self, **kwargs): - """ - Initializes a new CreateDumpTransferDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param source: - The value to assign to the source property of this CreateDumpTransferDetails. - :type source: oci.database_migration.models.CreateHostDumpTransferDetails - - :param target: - The value to assign to the target property of this CreateDumpTransferDetails. - :type target: oci.database_migration.models.CreateHostDumpTransferDetails - - :param shared_storage_mount_target_id: - The value to assign to the shared_storage_mount_target_id property of this CreateDumpTransferDetails. - :type shared_storage_mount_target_id: str - - """ - self.swagger_types = { - 'source': 'CreateHostDumpTransferDetails', - 'target': 'CreateHostDumpTransferDetails', - 'shared_storage_mount_target_id': 'str' - } - - self.attribute_map = { - 'source': 'source', - 'target': 'target', - 'shared_storage_mount_target_id': 'sharedStorageMountTargetId' - } - - self._source = None - self._target = None - self._shared_storage_mount_target_id = None - - @property - def source(self): - """ - Gets the source of this CreateDumpTransferDetails. - - :return: The source of this CreateDumpTransferDetails. - :rtype: oci.database_migration.models.CreateHostDumpTransferDetails - """ - return self._source - - @source.setter - def source(self, source): - """ - Sets the source of this CreateDumpTransferDetails. - - :param source: The source of this CreateDumpTransferDetails. - :type: oci.database_migration.models.CreateHostDumpTransferDetails - """ - self._source = source - - @property - def target(self): - """ - Gets the target of this CreateDumpTransferDetails. - - :return: The target of this CreateDumpTransferDetails. - :rtype: oci.database_migration.models.CreateHostDumpTransferDetails - """ - return self._target - - @target.setter - def target(self, target): - """ - Sets the target of this CreateDumpTransferDetails. - - :param target: The target of this CreateDumpTransferDetails. - :type: oci.database_migration.models.CreateHostDumpTransferDetails - """ - self._target = target - - @property - def shared_storage_mount_target_id(self): - """ - Gets the shared_storage_mount_target_id of this CreateDumpTransferDetails. - OCID of the shared storage mount target - - - :return: The shared_storage_mount_target_id of this CreateDumpTransferDetails. - :rtype: str - """ - return self._shared_storage_mount_target_id - - @shared_storage_mount_target_id.setter - def shared_storage_mount_target_id(self, shared_storage_mount_target_id): - """ - Sets the shared_storage_mount_target_id of this CreateDumpTransferDetails. - OCID of the shared storage mount target - - - :param shared_storage_mount_target_id: The shared_storage_mount_target_id of this CreateDumpTransferDetails. - :type: str - """ - self._shared_storage_mount_target_id = shared_storage_mount_target_id - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/create_golden_gate_details.py b/src/oci/database_migration/models/create_golden_gate_details.py deleted file mode 100644 index b2d676bff8..0000000000 --- a/src/oci/database_migration/models/create_golden_gate_details.py +++ /dev/null @@ -1,95 +0,0 @@ -# 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: 20210929 - - -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 CreateGoldenGateDetails(object): - """ - Details about Oracle GoldenGate Microservices. Required for online logical migration. - """ - - def __init__(self, **kwargs): - """ - Initializes a new CreateGoldenGateDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param hub: - The value to assign to the hub property of this CreateGoldenGateDetails. - :type hub: oci.database_migration.models.CreateGoldenGateHub - - :param settings: - The value to assign to the settings property of this CreateGoldenGateDetails. - :type settings: oci.database_migration.models.CreateGoldenGateSettings - - """ - self.swagger_types = { - 'hub': 'CreateGoldenGateHub', - 'settings': 'CreateGoldenGateSettings' - } - - self.attribute_map = { - 'hub': 'hub', - 'settings': 'settings' - } - - self._hub = None - self._settings = None - - @property - def hub(self): - """ - **[Required]** Gets the hub of this CreateGoldenGateDetails. - - :return: The hub of this CreateGoldenGateDetails. - :rtype: oci.database_migration.models.CreateGoldenGateHub - """ - return self._hub - - @hub.setter - def hub(self, hub): - """ - Sets the hub of this CreateGoldenGateDetails. - - :param hub: The hub of this CreateGoldenGateDetails. - :type: oci.database_migration.models.CreateGoldenGateHub - """ - self._hub = hub - - @property - def settings(self): - """ - Gets the settings of this CreateGoldenGateDetails. - - :return: The settings of this CreateGoldenGateDetails. - :rtype: oci.database_migration.models.CreateGoldenGateSettings - """ - return self._settings - - @settings.setter - def settings(self, settings): - """ - Sets the settings of this CreateGoldenGateDetails. - - :param settings: The settings of this CreateGoldenGateDetails. - :type: oci.database_migration.models.CreateGoldenGateSettings - """ - self._settings = settings - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/create_golden_gate_hub.py b/src/oci/database_migration/models/create_golden_gate_hub.py deleted file mode 100644 index a0b1aa24ca..0000000000 --- a/src/oci/database_migration/models/create_golden_gate_hub.py +++ /dev/null @@ -1,275 +0,0 @@ -# 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: 20210929 - - -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 CreateGoldenGateHub(object): - """ - Details about Oracle GoldenGate Microservices. Required for online logical migration. - """ - - def __init__(self, **kwargs): - """ - Initializes a new CreateGoldenGateHub object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param rest_admin_credentials: - The value to assign to the rest_admin_credentials property of this CreateGoldenGateHub. - :type rest_admin_credentials: oci.database_migration.models.CreateAdminCredentials - - :param source_db_admin_credentials: - The value to assign to the source_db_admin_credentials property of this CreateGoldenGateHub. - :type source_db_admin_credentials: oci.database_migration.models.CreateAdminCredentials - - :param source_container_db_admin_credentials: - The value to assign to the source_container_db_admin_credentials property of this CreateGoldenGateHub. - :type source_container_db_admin_credentials: oci.database_migration.models.CreateAdminCredentials - - :param target_db_admin_credentials: - The value to assign to the target_db_admin_credentials property of this CreateGoldenGateHub. - :type target_db_admin_credentials: oci.database_migration.models.CreateAdminCredentials - - :param url: - The value to assign to the url property of this CreateGoldenGateHub. - :type url: str - - :param source_microservices_deployment_name: - The value to assign to the source_microservices_deployment_name property of this CreateGoldenGateHub. - :type source_microservices_deployment_name: str - - :param target_microservices_deployment_name: - The value to assign to the target_microservices_deployment_name property of this CreateGoldenGateHub. - :type target_microservices_deployment_name: str - - :param compute_id: - The value to assign to the compute_id property of this CreateGoldenGateHub. - :type compute_id: str - - """ - self.swagger_types = { - 'rest_admin_credentials': 'CreateAdminCredentials', - 'source_db_admin_credentials': 'CreateAdminCredentials', - 'source_container_db_admin_credentials': 'CreateAdminCredentials', - 'target_db_admin_credentials': 'CreateAdminCredentials', - 'url': 'str', - 'source_microservices_deployment_name': 'str', - 'target_microservices_deployment_name': 'str', - 'compute_id': 'str' - } - - self.attribute_map = { - 'rest_admin_credentials': 'restAdminCredentials', - 'source_db_admin_credentials': 'sourceDbAdminCredentials', - 'source_container_db_admin_credentials': 'sourceContainerDbAdminCredentials', - 'target_db_admin_credentials': 'targetDbAdminCredentials', - 'url': 'url', - 'source_microservices_deployment_name': 'sourceMicroservicesDeploymentName', - 'target_microservices_deployment_name': 'targetMicroservicesDeploymentName', - 'compute_id': 'computeId' - } - - self._rest_admin_credentials = None - self._source_db_admin_credentials = None - self._source_container_db_admin_credentials = None - self._target_db_admin_credentials = None - self._url = None - self._source_microservices_deployment_name = None - self._target_microservices_deployment_name = None - self._compute_id = None - - @property - def rest_admin_credentials(self): - """ - **[Required]** Gets the rest_admin_credentials of this CreateGoldenGateHub. - - :return: The rest_admin_credentials of this CreateGoldenGateHub. - :rtype: oci.database_migration.models.CreateAdminCredentials - """ - return self._rest_admin_credentials - - @rest_admin_credentials.setter - def rest_admin_credentials(self, rest_admin_credentials): - """ - Sets the rest_admin_credentials of this CreateGoldenGateHub. - - :param rest_admin_credentials: The rest_admin_credentials of this CreateGoldenGateHub. - :type: oci.database_migration.models.CreateAdminCredentials - """ - self._rest_admin_credentials = rest_admin_credentials - - @property - def source_db_admin_credentials(self): - """ - Gets the source_db_admin_credentials of this CreateGoldenGateHub. - - :return: The source_db_admin_credentials of this CreateGoldenGateHub. - :rtype: oci.database_migration.models.CreateAdminCredentials - """ - return self._source_db_admin_credentials - - @source_db_admin_credentials.setter - def source_db_admin_credentials(self, source_db_admin_credentials): - """ - Sets the source_db_admin_credentials of this CreateGoldenGateHub. - - :param source_db_admin_credentials: The source_db_admin_credentials of this CreateGoldenGateHub. - :type: oci.database_migration.models.CreateAdminCredentials - """ - self._source_db_admin_credentials = source_db_admin_credentials - - @property - def source_container_db_admin_credentials(self): - """ - Gets the source_container_db_admin_credentials of this CreateGoldenGateHub. - - :return: The source_container_db_admin_credentials of this CreateGoldenGateHub. - :rtype: oci.database_migration.models.CreateAdminCredentials - """ - return self._source_container_db_admin_credentials - - @source_container_db_admin_credentials.setter - def source_container_db_admin_credentials(self, source_container_db_admin_credentials): - """ - Sets the source_container_db_admin_credentials of this CreateGoldenGateHub. - - :param source_container_db_admin_credentials: The source_container_db_admin_credentials of this CreateGoldenGateHub. - :type: oci.database_migration.models.CreateAdminCredentials - """ - self._source_container_db_admin_credentials = source_container_db_admin_credentials - - @property - def target_db_admin_credentials(self): - """ - Gets the target_db_admin_credentials of this CreateGoldenGateHub. - - :return: The target_db_admin_credentials of this CreateGoldenGateHub. - :rtype: oci.database_migration.models.CreateAdminCredentials - """ - return self._target_db_admin_credentials - - @target_db_admin_credentials.setter - def target_db_admin_credentials(self, target_db_admin_credentials): - """ - Sets the target_db_admin_credentials of this CreateGoldenGateHub. - - :param target_db_admin_credentials: The target_db_admin_credentials of this CreateGoldenGateHub. - :type: oci.database_migration.models.CreateAdminCredentials - """ - self._target_db_admin_credentials = target_db_admin_credentials - - @property - def url(self): - """ - **[Required]** Gets the url of this CreateGoldenGateHub. - Oracle GoldenGate Microservices hub's REST endpoint. - Refer to https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA - - - :return: The url of this CreateGoldenGateHub. - :rtype: str - """ - return self._url - - @url.setter - def url(self, url): - """ - Sets the url of this CreateGoldenGateHub. - Oracle GoldenGate Microservices hub's REST endpoint. - Refer to https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA - - - :param url: The url of this CreateGoldenGateHub. - :type: str - """ - self._url = url - - @property - def source_microservices_deployment_name(self): - """ - Gets the source_microservices_deployment_name of this CreateGoldenGateHub. - Name of GoldenGate Microservices deployment to operate on source database - - - :return: The source_microservices_deployment_name of this CreateGoldenGateHub. - :rtype: str - """ - return self._source_microservices_deployment_name - - @source_microservices_deployment_name.setter - def source_microservices_deployment_name(self, source_microservices_deployment_name): - """ - Sets the source_microservices_deployment_name of this CreateGoldenGateHub. - Name of GoldenGate Microservices deployment to operate on source database - - - :param source_microservices_deployment_name: The source_microservices_deployment_name of this CreateGoldenGateHub. - :type: str - """ - self._source_microservices_deployment_name = source_microservices_deployment_name - - @property - def target_microservices_deployment_name(self): - """ - Gets the target_microservices_deployment_name of this CreateGoldenGateHub. - Name of GoldenGate Microservices deployment to operate on target database - - - :return: The target_microservices_deployment_name of this CreateGoldenGateHub. - :rtype: str - """ - return self._target_microservices_deployment_name - - @target_microservices_deployment_name.setter - def target_microservices_deployment_name(self, target_microservices_deployment_name): - """ - Sets the target_microservices_deployment_name of this CreateGoldenGateHub. - Name of GoldenGate Microservices deployment to operate on target database - - - :param target_microservices_deployment_name: The target_microservices_deployment_name of this CreateGoldenGateHub. - :type: str - """ - self._target_microservices_deployment_name = target_microservices_deployment_name - - @property - def compute_id(self): - """ - Gets the compute_id of this CreateGoldenGateHub. - OCID of GoldenGate Microservices compute instance. - - - :return: The compute_id of this CreateGoldenGateHub. - :rtype: str - """ - return self._compute_id - - @compute_id.setter - def compute_id(self, compute_id): - """ - Sets the compute_id of this CreateGoldenGateHub. - OCID of GoldenGate Microservices compute instance. - - - :param compute_id: The compute_id of this CreateGoldenGateHub. - :type: str - """ - self._compute_id = compute_id - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/create_golden_gate_service_details.py b/src/oci/database_migration/models/create_golden_gate_service_details.py deleted file mode 100644 index cca43a063c..0000000000 --- a/src/oci/database_migration/models/create_golden_gate_service_details.py +++ /dev/null @@ -1,149 +0,0 @@ -# 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: 20210929 - - -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 CreateGoldenGateServiceDetails(object): - """ - Details about Oracle GoldenGate GGS Deployment. - """ - - def __init__(self, **kwargs): - """ - Initializes a new CreateGoldenGateServiceDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param source_db_credentials: - The value to assign to the source_db_credentials property of this CreateGoldenGateServiceDetails. - :type source_db_credentials: oci.database_migration.models.DatabaseCredentials - - :param source_container_db_credentials: - The value to assign to the source_container_db_credentials property of this CreateGoldenGateServiceDetails. - :type source_container_db_credentials: oci.database_migration.models.DatabaseCredentials - - :param target_db_credentials: - The value to assign to the target_db_credentials property of this CreateGoldenGateServiceDetails. - :type target_db_credentials: oci.database_migration.models.DatabaseCredentials - - :param settings: - The value to assign to the settings property of this CreateGoldenGateServiceDetails. - :type settings: oci.database_migration.models.CreateGoldenGateSettings - - """ - self.swagger_types = { - 'source_db_credentials': 'DatabaseCredentials', - 'source_container_db_credentials': 'DatabaseCredentials', - 'target_db_credentials': 'DatabaseCredentials', - 'settings': 'CreateGoldenGateSettings' - } - - self.attribute_map = { - 'source_db_credentials': 'sourceDbCredentials', - 'source_container_db_credentials': 'sourceContainerDbCredentials', - 'target_db_credentials': 'targetDbCredentials', - 'settings': 'settings' - } - - self._source_db_credentials = None - self._source_container_db_credentials = None - self._target_db_credentials = None - self._settings = None - - @property - def source_db_credentials(self): - """ - Gets the source_db_credentials of this CreateGoldenGateServiceDetails. - - :return: The source_db_credentials of this CreateGoldenGateServiceDetails. - :rtype: oci.database_migration.models.DatabaseCredentials - """ - return self._source_db_credentials - - @source_db_credentials.setter - def source_db_credentials(self, source_db_credentials): - """ - Sets the source_db_credentials of this CreateGoldenGateServiceDetails. - - :param source_db_credentials: The source_db_credentials of this CreateGoldenGateServiceDetails. - :type: oci.database_migration.models.DatabaseCredentials - """ - self._source_db_credentials = source_db_credentials - - @property - def source_container_db_credentials(self): - """ - Gets the source_container_db_credentials of this CreateGoldenGateServiceDetails. - - :return: The source_container_db_credentials of this CreateGoldenGateServiceDetails. - :rtype: oci.database_migration.models.DatabaseCredentials - """ - return self._source_container_db_credentials - - @source_container_db_credentials.setter - def source_container_db_credentials(self, source_container_db_credentials): - """ - Sets the source_container_db_credentials of this CreateGoldenGateServiceDetails. - - :param source_container_db_credentials: The source_container_db_credentials of this CreateGoldenGateServiceDetails. - :type: oci.database_migration.models.DatabaseCredentials - """ - self._source_container_db_credentials = source_container_db_credentials - - @property - def target_db_credentials(self): - """ - Gets the target_db_credentials of this CreateGoldenGateServiceDetails. - - :return: The target_db_credentials of this CreateGoldenGateServiceDetails. - :rtype: oci.database_migration.models.DatabaseCredentials - """ - return self._target_db_credentials - - @target_db_credentials.setter - def target_db_credentials(self, target_db_credentials): - """ - Sets the target_db_credentials of this CreateGoldenGateServiceDetails. - - :param target_db_credentials: The target_db_credentials of this CreateGoldenGateServiceDetails. - :type: oci.database_migration.models.DatabaseCredentials - """ - self._target_db_credentials = target_db_credentials - - @property - def settings(self): - """ - Gets the settings of this CreateGoldenGateServiceDetails. - - :return: The settings of this CreateGoldenGateServiceDetails. - :rtype: oci.database_migration.models.CreateGoldenGateSettings - """ - return self._settings - - @settings.setter - def settings(self, settings): - """ - Sets the settings of this CreateGoldenGateServiceDetails. - - :param settings: The settings of this CreateGoldenGateServiceDetails. - :type: oci.database_migration.models.CreateGoldenGateSettings - """ - self._settings = settings - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/create_golden_gate_settings.py b/src/oci/database_migration/models/create_golden_gate_settings.py deleted file mode 100644 index d2d784341b..0000000000 --- a/src/oci/database_migration/models/create_golden_gate_settings.py +++ /dev/null @@ -1,126 +0,0 @@ -# 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: 20210929 - - -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 CreateGoldenGateSettings(object): - """ - Optional settings for GoldenGate Microservices processes - """ - - def __init__(self, **kwargs): - """ - Initializes a new CreateGoldenGateSettings object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param extract: - The value to assign to the extract property of this CreateGoldenGateSettings. - :type extract: oci.database_migration.models.CreateExtract - - :param replicat: - The value to assign to the replicat property of this CreateGoldenGateSettings. - :type replicat: oci.database_migration.models.CreateReplicat - - :param acceptable_lag: - The value to assign to the acceptable_lag property of this CreateGoldenGateSettings. - :type acceptable_lag: int - - """ - self.swagger_types = { - 'extract': 'CreateExtract', - 'replicat': 'CreateReplicat', - 'acceptable_lag': 'int' - } - - self.attribute_map = { - 'extract': 'extract', - 'replicat': 'replicat', - 'acceptable_lag': 'acceptableLag' - } - - self._extract = None - self._replicat = None - self._acceptable_lag = None - - @property - def extract(self): - """ - Gets the extract of this CreateGoldenGateSettings. - - :return: The extract of this CreateGoldenGateSettings. - :rtype: oci.database_migration.models.CreateExtract - """ - return self._extract - - @extract.setter - def extract(self, extract): - """ - Sets the extract of this CreateGoldenGateSettings. - - :param extract: The extract of this CreateGoldenGateSettings. - :type: oci.database_migration.models.CreateExtract - """ - self._extract = extract - - @property - def replicat(self): - """ - Gets the replicat of this CreateGoldenGateSettings. - - :return: The replicat of this CreateGoldenGateSettings. - :rtype: oci.database_migration.models.CreateReplicat - """ - return self._replicat - - @replicat.setter - def replicat(self, replicat): - """ - Sets the replicat of this CreateGoldenGateSettings. - - :param replicat: The replicat of this CreateGoldenGateSettings. - :type: oci.database_migration.models.CreateReplicat - """ - self._replicat = replicat - - @property - def acceptable_lag(self): - """ - Gets the acceptable_lag of this CreateGoldenGateSettings. - ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the specified value in seconds. - - - :return: The acceptable_lag of this CreateGoldenGateSettings. - :rtype: int - """ - return self._acceptable_lag - - @acceptable_lag.setter - def acceptable_lag(self, acceptable_lag): - """ - Sets the acceptable_lag of this CreateGoldenGateSettings. - ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the specified value in seconds. - - - :param acceptable_lag: The acceptable_lag of this CreateGoldenGateSettings. - :type: int - """ - self._acceptable_lag = acceptable_lag - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/create_private_endpoint.py b/src/oci/database_migration/models/create_private_endpoint.py deleted file mode 100644 index f4cfc0f2bd..0000000000 --- a/src/oci/database_migration/models/create_private_endpoint.py +++ /dev/null @@ -1,151 +0,0 @@ -# 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: 20210929 - - -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 CreatePrivateEndpoint(object): - """ - OCI Private Endpoint configuration details. - Not required for source container database connections, it will default to the specified Source Database Connection Private Endpoint. - """ - - def __init__(self, **kwargs): - """ - Initializes a new CreatePrivateEndpoint object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param compartment_id: - The value to assign to the compartment_id property of this CreatePrivateEndpoint. - :type compartment_id: str - - :param vcn_id: - The value to assign to the vcn_id property of this CreatePrivateEndpoint. - :type vcn_id: str - - :param subnet_id: - The value to assign to the subnet_id property of this CreatePrivateEndpoint. - :type subnet_id: str - - """ - self.swagger_types = { - 'compartment_id': 'str', - 'vcn_id': 'str', - 'subnet_id': 'str' - } - - self.attribute_map = { - 'compartment_id': 'compartmentId', - 'vcn_id': 'vcnId', - 'subnet_id': 'subnetId' - } - - self._compartment_id = None - self._vcn_id = None - self._subnet_id = None - - @property - def compartment_id(self): - """ - **[Required]** Gets the compartment_id of this CreatePrivateEndpoint. - The `OCID`__ of the compartment to contain the - private endpoint. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :return: The compartment_id of this CreatePrivateEndpoint. - :rtype: str - """ - return self._compartment_id - - @compartment_id.setter - def compartment_id(self, compartment_id): - """ - Sets the compartment_id of this CreatePrivateEndpoint. - The `OCID`__ of the compartment to contain the - private endpoint. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :param compartment_id: The compartment_id of this CreatePrivateEndpoint. - :type: str - """ - self._compartment_id = compartment_id - - @property - def vcn_id(self): - """ - **[Required]** Gets the vcn_id of this CreatePrivateEndpoint. - The `OCID`__ of the VCN where the Private Endpoint will be bound to. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :return: The vcn_id of this CreatePrivateEndpoint. - :rtype: str - """ - return self._vcn_id - - @vcn_id.setter - def vcn_id(self, vcn_id): - """ - Sets the vcn_id of this CreatePrivateEndpoint. - The `OCID`__ of the VCN where the Private Endpoint will be bound to. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :param vcn_id: The vcn_id of this CreatePrivateEndpoint. - :type: str - """ - self._vcn_id = vcn_id - - @property - def subnet_id(self): - """ - **[Required]** Gets the subnet_id of this CreatePrivateEndpoint. - The `OCID`__ of the customer's subnet where the private endpoint VNIC - will reside. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :return: The subnet_id of this CreatePrivateEndpoint. - :rtype: str - """ - return self._subnet_id - - @subnet_id.setter - def subnet_id(self, subnet_id): - """ - Sets the subnet_id of this CreatePrivateEndpoint. - The `OCID`__ of the customer's subnet where the private endpoint VNIC - will reside. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :param subnet_id: The subnet_id of this CreatePrivateEndpoint. - :type: str - """ - self._subnet_id = subnet_id - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/create_ssh_details.py b/src/oci/database_migration/models/create_ssh_details.py deleted file mode 100644 index 43dbf809ea..0000000000 --- a/src/oci/database_migration/models/create_ssh_details.py +++ /dev/null @@ -1,166 +0,0 @@ -# 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: 20210929 - - -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 CreateSshDetails(object): - """ - Details of the SSH key that will be used. Required for source database Manual and UserManagerOci connection types. - Not required for source container database connections. - """ - - def __init__(self, **kwargs): - """ - Initializes a new CreateSshDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param host: - The value to assign to the host property of this CreateSshDetails. - :type host: str - - :param sshkey: - The value to assign to the sshkey property of this CreateSshDetails. - :type sshkey: str - - :param user: - The value to assign to the user property of this CreateSshDetails. - :type user: str - - :param sudo_location: - The value to assign to the sudo_location property of this CreateSshDetails. - :type sudo_location: str - - """ - self.swagger_types = { - 'host': 'str', - 'sshkey': 'str', - 'user': 'str', - 'sudo_location': 'str' - } - - self.attribute_map = { - 'host': 'host', - 'sshkey': 'sshkey', - 'user': 'user', - 'sudo_location': 'sudoLocation' - } - - self._host = None - self._sshkey = None - self._user = None - self._sudo_location = None - - @property - def host(self): - """ - **[Required]** Gets the host of this CreateSshDetails. - Name of the host the SSH key is valid for. - - - :return: The host of this CreateSshDetails. - :rtype: str - """ - return self._host - - @host.setter - def host(self, host): - """ - Sets the host of this CreateSshDetails. - Name of the host the SSH key is valid for. - - - :param host: The host of this CreateSshDetails. - :type: str - """ - self._host = host - - @property - def sshkey(self): - """ - **[Required]** Gets the sshkey of this CreateSshDetails. - Private SSH key string. - - - :return: The sshkey of this CreateSshDetails. - :rtype: str - """ - return self._sshkey - - @sshkey.setter - def sshkey(self, sshkey): - """ - Sets the sshkey of this CreateSshDetails. - Private SSH key string. - - - :param sshkey: The sshkey of this CreateSshDetails. - :type: str - """ - self._sshkey = sshkey - - @property - def user(self): - """ - **[Required]** Gets the user of this CreateSshDetails. - SSH user - - - :return: The user of this CreateSshDetails. - :rtype: str - """ - return self._user - - @user.setter - def user(self, user): - """ - Sets the user of this CreateSshDetails. - SSH user - - - :param user: The user of this CreateSshDetails. - :type: str - """ - self._user = user - - @property - def sudo_location(self): - """ - Gets the sudo_location of this CreateSshDetails. - Sudo location - - - :return: The sudo_location of this CreateSshDetails. - :rtype: str - """ - return self._sudo_location - - @sudo_location.setter - def sudo_location(self, sudo_location): - """ - Sets the sudo_location of this CreateSshDetails. - Sudo location - - - :param sudo_location: The sudo_location of this CreateSshDetails. - :type: str - """ - self._sudo_location = sudo_location - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/create_vault_details.py b/src/oci/database_migration/models/create_vault_details.py deleted file mode 100644 index 09e0140b9f..0000000000 --- a/src/oci/database_migration/models/create_vault_details.py +++ /dev/null @@ -1,134 +0,0 @@ -# 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: 20210929 - - -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 CreateVaultDetails(object): - """ - OCI Vault details to store migration and connection credentials secrets - """ - - def __init__(self, **kwargs): - """ - Initializes a new CreateVaultDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param compartment_id: - The value to assign to the compartment_id property of this CreateVaultDetails. - :type compartment_id: str - - :param vault_id: - The value to assign to the vault_id property of this CreateVaultDetails. - :type vault_id: str - - :param key_id: - The value to assign to the key_id property of this CreateVaultDetails. - :type key_id: str - - """ - self.swagger_types = { - 'compartment_id': 'str', - 'vault_id': 'str', - 'key_id': 'str' - } - - self.attribute_map = { - 'compartment_id': 'compartmentId', - 'vault_id': 'vaultId', - 'key_id': 'keyId' - } - - self._compartment_id = None - self._vault_id = None - self._key_id = None - - @property - def compartment_id(self): - """ - **[Required]** Gets the compartment_id of this CreateVaultDetails. - OCID of the compartment where the secret containing the credentials will be created. - - - :return: The compartment_id of this CreateVaultDetails. - :rtype: str - """ - return self._compartment_id - - @compartment_id.setter - def compartment_id(self, compartment_id): - """ - Sets the compartment_id of this CreateVaultDetails. - OCID of the compartment where the secret containing the credentials will be created. - - - :param compartment_id: The compartment_id of this CreateVaultDetails. - :type: str - """ - self._compartment_id = compartment_id - - @property - def vault_id(self): - """ - **[Required]** Gets the vault_id of this CreateVaultDetails. - OCID of the vault - - - :return: The vault_id of this CreateVaultDetails. - :rtype: str - """ - return self._vault_id - - @vault_id.setter - def vault_id(self, vault_id): - """ - Sets the vault_id of this CreateVaultDetails. - OCID of the vault - - - :param vault_id: The vault_id of this CreateVaultDetails. - :type: str - """ - self._vault_id = vault_id - - @property - def key_id(self): - """ - **[Required]** Gets the key_id of this CreateVaultDetails. - OCID of the vault encryption key - - - :return: The key_id of this CreateVaultDetails. - :rtype: str - """ - return self._key_id - - @key_id.setter - def key_id(self, key_id): - """ - Sets the key_id of this CreateVaultDetails. - OCID of the vault encryption key - - - :param key_id: The key_id of this CreateVaultDetails. - :type: str - """ - self._key_id = key_id - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/data_pump_settings.py b/src/oci/database_migration/models/data_pump_settings.py deleted file mode 100644 index dfc70ecdf6..0000000000 --- a/src/oci/database_migration/models/data_pump_settings.py +++ /dev/null @@ -1,251 +0,0 @@ -# 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: 20210929 - - -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 DataPumpSettings(object): - """ - Optional settings for Data Pump Export and Import jobs - """ - - #: A constant which can be used with the job_mode property of a DataPumpSettings. - #: This constant has a value of "FULL" - JOB_MODE_FULL = "FULL" - - #: A constant which can be used with the job_mode property of a DataPumpSettings. - #: This constant has a value of "SCHEMA" - JOB_MODE_SCHEMA = "SCHEMA" - - #: A constant which can be used with the job_mode property of a DataPumpSettings. - #: This constant has a value of "TABLE" - JOB_MODE_TABLE = "TABLE" - - #: A constant which can be used with the job_mode property of a DataPumpSettings. - #: This constant has a value of "TABLESPACE" - JOB_MODE_TABLESPACE = "TABLESPACE" - - #: A constant which can be used with the job_mode property of a DataPumpSettings. - #: This constant has a value of "TRANSPORTABLE" - JOB_MODE_TRANSPORTABLE = "TRANSPORTABLE" - - def __init__(self, **kwargs): - """ - Initializes a new DataPumpSettings object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param job_mode: - The value to assign to the job_mode property of this DataPumpSettings. - Allowed values for this property are: "FULL", "SCHEMA", "TABLE", "TABLESPACE", "TRANSPORTABLE", 'UNKNOWN_ENUM_VALUE'. - Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. - :type job_mode: str - - :param data_pump_parameters: - The value to assign to the data_pump_parameters property of this DataPumpSettings. - :type data_pump_parameters: oci.database_migration.models.DataPumpParameters - - :param metadata_remaps: - The value to assign to the metadata_remaps property of this DataPumpSettings. - :type metadata_remaps: list[oci.database_migration.models.MetadataRemap] - - :param tablespace_details: - The value to assign to the tablespace_details property of this DataPumpSettings. - :type tablespace_details: oci.database_migration.models.TargetTypeTablespaceDetails - - :param export_directory_object: - The value to assign to the export_directory_object property of this DataPumpSettings. - :type export_directory_object: oci.database_migration.models.DirectoryObject - - :param import_directory_object: - The value to assign to the import_directory_object property of this DataPumpSettings. - :type import_directory_object: oci.database_migration.models.DirectoryObject - - """ - self.swagger_types = { - 'job_mode': 'str', - 'data_pump_parameters': 'DataPumpParameters', - 'metadata_remaps': 'list[MetadataRemap]', - 'tablespace_details': 'TargetTypeTablespaceDetails', - 'export_directory_object': 'DirectoryObject', - 'import_directory_object': 'DirectoryObject' - } - - self.attribute_map = { - 'job_mode': 'jobMode', - 'data_pump_parameters': 'dataPumpParameters', - 'metadata_remaps': 'metadataRemaps', - 'tablespace_details': 'tablespaceDetails', - 'export_directory_object': 'exportDirectoryObject', - 'import_directory_object': 'importDirectoryObject' - } - - self._job_mode = None - self._data_pump_parameters = None - self._metadata_remaps = None - self._tablespace_details = None - self._export_directory_object = None - self._import_directory_object = None - - @property - def job_mode(self): - """ - Gets the job_mode of this DataPumpSettings. - Data Pump job mode. - Refer to `Data Pump Export Modes `__ - - __ https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-export-utility.html#GUID-8E497131-6B9B-4CC8-AA50-35F480CAC2C4 - - Allowed values for this property are: "FULL", "SCHEMA", "TABLE", "TABLESPACE", "TRANSPORTABLE", 'UNKNOWN_ENUM_VALUE'. - Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. - - - :return: The job_mode of this DataPumpSettings. - :rtype: str - """ - return self._job_mode - - @job_mode.setter - def job_mode(self, job_mode): - """ - Sets the job_mode of this DataPumpSettings. - Data Pump job mode. - Refer to `Data Pump Export Modes `__ - - __ https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-export-utility.html#GUID-8E497131-6B9B-4CC8-AA50-35F480CAC2C4 - - - :param job_mode: The job_mode of this DataPumpSettings. - :type: str - """ - allowed_values = ["FULL", "SCHEMA", "TABLE", "TABLESPACE", "TRANSPORTABLE"] - if not value_allowed_none_or_none_sentinel(job_mode, allowed_values): - job_mode = 'UNKNOWN_ENUM_VALUE' - self._job_mode = job_mode - - @property - def data_pump_parameters(self): - """ - Gets the data_pump_parameters of this DataPumpSettings. - - :return: The data_pump_parameters of this DataPumpSettings. - :rtype: oci.database_migration.models.DataPumpParameters - """ - return self._data_pump_parameters - - @data_pump_parameters.setter - def data_pump_parameters(self, data_pump_parameters): - """ - Sets the data_pump_parameters of this DataPumpSettings. - - :param data_pump_parameters: The data_pump_parameters of this DataPumpSettings. - :type: oci.database_migration.models.DataPumpParameters - """ - self._data_pump_parameters = data_pump_parameters - - @property - def metadata_remaps(self): - """ - Gets the metadata_remaps of this DataPumpSettings. - Defines remapping to be applied to objects as they are processed. - Refer to `METADATA_REMAP Procedure `__ - - __ https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D - - - :return: The metadata_remaps of this DataPumpSettings. - :rtype: list[oci.database_migration.models.MetadataRemap] - """ - return self._metadata_remaps - - @metadata_remaps.setter - def metadata_remaps(self, metadata_remaps): - """ - Sets the metadata_remaps of this DataPumpSettings. - Defines remapping to be applied to objects as they are processed. - Refer to `METADATA_REMAP Procedure `__ - - __ https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D - - - :param metadata_remaps: The metadata_remaps of this DataPumpSettings. - :type: list[oci.database_migration.models.MetadataRemap] - """ - self._metadata_remaps = metadata_remaps - - @property - def tablespace_details(self): - """ - Gets the tablespace_details of this DataPumpSettings. - - :return: The tablespace_details of this DataPumpSettings. - :rtype: oci.database_migration.models.TargetTypeTablespaceDetails - """ - return self._tablespace_details - - @tablespace_details.setter - def tablespace_details(self, tablespace_details): - """ - Sets the tablespace_details of this DataPumpSettings. - - :param tablespace_details: The tablespace_details of this DataPumpSettings. - :type: oci.database_migration.models.TargetTypeTablespaceDetails - """ - self._tablespace_details = tablespace_details - - @property - def export_directory_object(self): - """ - Gets the export_directory_object of this DataPumpSettings. - - :return: The export_directory_object of this DataPumpSettings. - :rtype: oci.database_migration.models.DirectoryObject - """ - return self._export_directory_object - - @export_directory_object.setter - def export_directory_object(self, export_directory_object): - """ - Sets the export_directory_object of this DataPumpSettings. - - :param export_directory_object: The export_directory_object of this DataPumpSettings. - :type: oci.database_migration.models.DirectoryObject - """ - self._export_directory_object = export_directory_object - - @property - def import_directory_object(self): - """ - Gets the import_directory_object of this DataPumpSettings. - - :return: The import_directory_object of this DataPumpSettings. - :rtype: oci.database_migration.models.DirectoryObject - """ - return self._import_directory_object - - @import_directory_object.setter - def import_directory_object(self, import_directory_object): - """ - Sets the import_directory_object of this DataPumpSettings. - - :param import_directory_object: The import_directory_object of this DataPumpSettings. - :type: oci.database_migration.models.DirectoryObject - """ - self._import_directory_object = import_directory_object - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/data_transfer_medium_details.py b/src/oci/database_migration/models/data_transfer_medium_details.py deleted file mode 100644 index 8146d605a4..0000000000 --- a/src/oci/database_migration/models/data_transfer_medium_details.py +++ /dev/null @@ -1,122 +0,0 @@ -# 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: 20210929 - - -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 DataTransferMediumDetails(object): - """ - Data Transfer Medium details for the Migration. - """ - - def __init__(self, **kwargs): - """ - Initializes a new DataTransferMediumDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param database_link_details: - The value to assign to the database_link_details property of this DataTransferMediumDetails. - :type database_link_details: oci.database_migration.models.DatabaseLinkDetails - - :param object_storage_details: - The value to assign to the object_storage_details property of this DataTransferMediumDetails. - :type object_storage_details: oci.database_migration.models.ObjectStoreBucket - - :param aws_s3_details: - The value to assign to the aws_s3_details property of this DataTransferMediumDetails. - :type aws_s3_details: oci.database_migration.models.AwsS3Details - - """ - self.swagger_types = { - 'database_link_details': 'DatabaseLinkDetails', - 'object_storage_details': 'ObjectStoreBucket', - 'aws_s3_details': 'AwsS3Details' - } - - self.attribute_map = { - 'database_link_details': 'databaseLinkDetails', - 'object_storage_details': 'objectStorageDetails', - 'aws_s3_details': 'awsS3Details' - } - - self._database_link_details = None - self._object_storage_details = None - self._aws_s3_details = None - - @property - def database_link_details(self): - """ - Gets the database_link_details of this DataTransferMediumDetails. - - :return: The database_link_details of this DataTransferMediumDetails. - :rtype: oci.database_migration.models.DatabaseLinkDetails - """ - return self._database_link_details - - @database_link_details.setter - def database_link_details(self, database_link_details): - """ - Sets the database_link_details of this DataTransferMediumDetails. - - :param database_link_details: The database_link_details of this DataTransferMediumDetails. - :type: oci.database_migration.models.DatabaseLinkDetails - """ - self._database_link_details = database_link_details - - @property - def object_storage_details(self): - """ - Gets the object_storage_details of this DataTransferMediumDetails. - - :return: The object_storage_details of this DataTransferMediumDetails. - :rtype: oci.database_migration.models.ObjectStoreBucket - """ - return self._object_storage_details - - @object_storage_details.setter - def object_storage_details(self, object_storage_details): - """ - Sets the object_storage_details of this DataTransferMediumDetails. - - :param object_storage_details: The object_storage_details of this DataTransferMediumDetails. - :type: oci.database_migration.models.ObjectStoreBucket - """ - self._object_storage_details = object_storage_details - - @property - def aws_s3_details(self): - """ - Gets the aws_s3_details of this DataTransferMediumDetails. - - :return: The aws_s3_details of this DataTransferMediumDetails. - :rtype: oci.database_migration.models.AwsS3Details - """ - return self._aws_s3_details - - @aws_s3_details.setter - def aws_s3_details(self, aws_s3_details): - """ - Sets the aws_s3_details of this DataTransferMediumDetails. - - :param aws_s3_details: The aws_s3_details of this DataTransferMediumDetails. - :type: oci.database_migration.models.AwsS3Details - """ - self._aws_s3_details = aws_s3_details - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/data_transfer_medium_details_v2.py b/src/oci/database_migration/models/data_transfer_medium_details_v2.py deleted file mode 100644 index 5f6e258d53..0000000000 --- a/src/oci/database_migration/models/data_transfer_medium_details_v2.py +++ /dev/null @@ -1,125 +0,0 @@ -# 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: 20210929 - - -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 DataTransferMediumDetailsV2(object): - """ - Optional additional properties for dump transfer in source or target host. - """ - - #: A constant which can be used with the type property of a DataTransferMediumDetailsV2. - #: This constant has a value of "DBLINK" - TYPE_DBLINK = "DBLINK" - - #: A constant which can be used with the type property of a DataTransferMediumDetailsV2. - #: This constant has a value of "OBJECT_STORAGE" - TYPE_OBJECT_STORAGE = "OBJECT_STORAGE" - - #: A constant which can be used with the type property of a DataTransferMediumDetailsV2. - #: This constant has a value of "AWS_S3" - TYPE_AWS_S3 = "AWS_S3" - - #: A constant which can be used with the type property of a DataTransferMediumDetailsV2. - #: This constant has a value of "NFS" - TYPE_NFS = "NFS" - - def __init__(self, **kwargs): - """ - Initializes a new DataTransferMediumDetailsV2 object with values from keyword arguments. This class has the following subclasses and if you are using this class as input - to a service operations then you should favor using a subclass over the base class: - - * :class:`~oci.database_migration.models.NfsDataTransferMediumDetails` - * :class:`~oci.database_migration.models.ObjectStorageDataTransferMediumDetails` - * :class:`~oci.database_migration.models.DbLinkDataTransferMediumDetails` - * :class:`~oci.database_migration.models.AwsS3DataTransferMediumDetails` - - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param type: - The value to assign to the type property of this DataTransferMediumDetailsV2. - Allowed values for this property are: "DBLINK", "OBJECT_STORAGE", "AWS_S3", "NFS", 'UNKNOWN_ENUM_VALUE'. - Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. - :type type: str - - """ - self.swagger_types = { - 'type': 'str' - } - - self.attribute_map = { - 'type': 'type' - } - - self._type = None - - @staticmethod - def get_subtype(object_dictionary): - """ - Given the hash representation of a subtype of this class, - use the info in the hash to return the class of the subtype. - """ - type = object_dictionary['type'] - - if type == 'NFS': - return 'NfsDataTransferMediumDetails' - - if type == 'OBJECT_STORAGE': - return 'ObjectStorageDataTransferMediumDetails' - - if type == 'DBLINK': - return 'DbLinkDataTransferMediumDetails' - - if type == 'AWS_S3': - return 'AwsS3DataTransferMediumDetails' - else: - return 'DataTransferMediumDetailsV2' - - @property - def type(self): - """ - **[Required]** Gets the type of this DataTransferMediumDetailsV2. - Type of the data transfer medium to use for the datapump - - Allowed values for this property are: "DBLINK", "OBJECT_STORAGE", "AWS_S3", "NFS", 'UNKNOWN_ENUM_VALUE'. - Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. - - - :return: The type of this DataTransferMediumDetailsV2. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this DataTransferMediumDetailsV2. - Type of the data transfer medium to use for the datapump - - - :param type: The type of this DataTransferMediumDetailsV2. - :type: str - """ - allowed_values = ["DBLINK", "OBJECT_STORAGE", "AWS_S3", "NFS"] - if not value_allowed_none_or_none_sentinel(type, allowed_values): - type = 'UNKNOWN_ENUM_VALUE' - self._type = type - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/database_credentials.py b/src/oci/database_migration/models/database_credentials.py deleted file mode 100644 index 5f07cae317..0000000000 --- a/src/oci/database_migration/models/database_credentials.py +++ /dev/null @@ -1,103 +0,0 @@ -# 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: 20210929 - - -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 DatabaseCredentials(object): - """ - Database Credentials details. - """ - - def __init__(self, **kwargs): - """ - Initializes a new DatabaseCredentials object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param username: - The value to assign to the username property of this DatabaseCredentials. - :type username: str - - :param password: - The value to assign to the password property of this DatabaseCredentials. - :type password: str - - """ - self.swagger_types = { - 'username': 'str', - 'password': 'str' - } - - self.attribute_map = { - 'username': 'username', - 'password': 'password' - } - - self._username = None - self._password = None - - @property - def username(self): - """ - **[Required]** Gets the username of this DatabaseCredentials. - Database username - - - :return: The username of this DatabaseCredentials. - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """ - Sets the username of this DatabaseCredentials. - Database username - - - :param username: The username of this DatabaseCredentials. - :type: str - """ - self._username = username - - @property - def password(self): - """ - **[Required]** Gets the password of this DatabaseCredentials. - Database password - - - :return: The password of this DatabaseCredentials. - :rtype: str - """ - return self._password - - @password.setter - def password(self, password): - """ - Sets the password of this DatabaseCredentials. - Database password - - - :param password: The password of this DatabaseCredentials. - :type: str - """ - self._password = password - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/database_link_details.py b/src/oci/database_migration/models/database_link_details.py deleted file mode 100644 index d8500b3286..0000000000 --- a/src/oci/database_migration/models/database_link_details.py +++ /dev/null @@ -1,99 +0,0 @@ -# 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: 20210929 - - -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 DatabaseLinkDetails(object): - """ - Optional details for creating a network database link from OCI database to on-premise database. - """ - - def __init__(self, **kwargs): - """ - Initializes a new DatabaseLinkDetails 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 DatabaseLinkDetails. - :type name: str - - :param wallet_bucket: - The value to assign to the wallet_bucket property of this DatabaseLinkDetails. - :type wallet_bucket: oci.database_migration.models.ObjectStoreBucket - - """ - self.swagger_types = { - 'name': 'str', - 'wallet_bucket': 'ObjectStoreBucket' - } - - self.attribute_map = { - 'name': 'name', - 'wallet_bucket': 'walletBucket' - } - - self._name = None - self._wallet_bucket = None - - @property - def name(self): - """ - Gets the name of this DatabaseLinkDetails. - Name of database link from OCI database to on-premise database. ODMS will create link, if the link does not already exist. - - - :return: The name of this DatabaseLinkDetails. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this DatabaseLinkDetails. - Name of database link from OCI database to on-premise database. ODMS will create link, if the link does not already exist. - - - :param name: The name of this DatabaseLinkDetails. - :type: str - """ - self._name = name - - @property - def wallet_bucket(self): - """ - Gets the wallet_bucket of this DatabaseLinkDetails. - - :return: The wallet_bucket of this DatabaseLinkDetails. - :rtype: oci.database_migration.models.ObjectStoreBucket - """ - return self._wallet_bucket - - @wallet_bucket.setter - def wallet_bucket(self, wallet_bucket): - """ - Sets the wallet_bucket of this DatabaseLinkDetails. - - :param wallet_bucket: The wallet_bucket of this DatabaseLinkDetails. - :type: oci.database_migration.models.ObjectStoreBucket - """ - self._wallet_bucket = wallet_bucket - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/database_object.py b/src/oci/database_migration/models/database_object.py deleted file mode 100644 index a8f1a57674..0000000000 --- a/src/oci/database_migration/models/database_object.py +++ /dev/null @@ -1,167 +0,0 @@ -# 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: 20210929 - - -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 DatabaseObject(object): - """ - Database objects to include or exclude from migration - """ - - def __init__(self, **kwargs): - """ - Initializes a new DatabaseObject object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param owner: - The value to assign to the owner property of this DatabaseObject. - :type owner: str - - :param object_name: - The value to assign to the object_name property of this DatabaseObject. - :type object_name: str - - :param type: - The value to assign to the type property of this DatabaseObject. - :type type: str - - :param is_omit_excluded_table_from_replication: - The value to assign to the is_omit_excluded_table_from_replication property of this DatabaseObject. - :type is_omit_excluded_table_from_replication: bool - - """ - self.swagger_types = { - 'owner': 'str', - 'object_name': 'str', - 'type': 'str', - 'is_omit_excluded_table_from_replication': 'bool' - } - - self.attribute_map = { - 'owner': 'owner', - 'object_name': 'objectName', - 'type': 'type', - 'is_omit_excluded_table_from_replication': 'isOmitExcludedTableFromReplication' - } - - self._owner = None - self._object_name = None - self._type = None - self._is_omit_excluded_table_from_replication = None - - @property - def owner(self): - """ - **[Required]** Gets the owner of this DatabaseObject. - Owner of the object (regular expression is allowed) - - - :return: The owner of this DatabaseObject. - :rtype: str - """ - return self._owner - - @owner.setter - def owner(self, owner): - """ - Sets the owner of this DatabaseObject. - Owner of the object (regular expression is allowed) - - - :param owner: The owner of this DatabaseObject. - :type: str - """ - self._owner = owner - - @property - def object_name(self): - """ - **[Required]** Gets the object_name of this DatabaseObject. - Name of the object (regular expression is allowed) - - - :return: The object_name of this DatabaseObject. - :rtype: str - """ - return self._object_name - - @object_name.setter - def object_name(self, object_name): - """ - Sets the object_name of this DatabaseObject. - Name of the object (regular expression is allowed) - - - :param object_name: The object_name of this DatabaseObject. - :type: str - """ - self._object_name = object_name - - @property - def type(self): - """ - Gets the type of this DatabaseObject. - Type of object to exclude. - If not specified, matching owners and object names of type TABLE would be excluded. - - - :return: The type of this DatabaseObject. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this DatabaseObject. - Type of object to exclude. - If not specified, matching owners and object names of type TABLE would be excluded. - - - :param type: The type of this DatabaseObject. - :type: str - """ - self._type = type - - @property - def is_omit_excluded_table_from_replication(self): - """ - Gets the is_omit_excluded_table_from_replication of this DatabaseObject. - Whether an excluded table should be omitted from replication. Only valid for database objects that have are of type TABLE and that are included in the exludeObjects. - - - :return: The is_omit_excluded_table_from_replication of this DatabaseObject. - :rtype: bool - """ - return self._is_omit_excluded_table_from_replication - - @is_omit_excluded_table_from_replication.setter - def is_omit_excluded_table_from_replication(self, is_omit_excluded_table_from_replication): - """ - Sets the is_omit_excluded_table_from_replication of this DatabaseObject. - Whether an excluded table should be omitted from replication. Only valid for database objects that have are of type TABLE and that are included in the exludeObjects. - - - :param is_omit_excluded_table_from_replication: The is_omit_excluded_table_from_replication of this DatabaseObject. - :type: bool - """ - self._is_omit_excluded_table_from_replication = is_omit_excluded_table_from_replication - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/db_link_data_transfer_medium_details.py b/src/oci/database_migration/models/db_link_data_transfer_medium_details.py deleted file mode 100644 index 3384ee8a87..0000000000 --- a/src/oci/database_migration/models/db_link_data_transfer_medium_details.py +++ /dev/null @@ -1,109 +0,0 @@ -# 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: 20210929 - -from .data_transfer_medium_details_v2 import DataTransferMediumDetailsV2 -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 DbLinkDataTransferMediumDetails(DataTransferMediumDetailsV2): - """ - Optional details for creating a network database link from OCI database to on-premise database. - """ - - def __init__(self, **kwargs): - """ - Initializes a new DbLinkDataTransferMediumDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.database_migration.models.DbLinkDataTransferMediumDetails.type` attribute - of this class is ``DBLINK`` and it should not be changed. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param type: - The value to assign to the type property of this DbLinkDataTransferMediumDetails. - Allowed values for this property are: "DBLINK", "OBJECT_STORAGE", "AWS_S3", "NFS" - :type type: str - - :param object_storage_bucket: - The value to assign to the object_storage_bucket property of this DbLinkDataTransferMediumDetails. - :type object_storage_bucket: oci.database_migration.models.ObjectStoreBucket - - :param name: - The value to assign to the name property of this DbLinkDataTransferMediumDetails. - :type name: str - - """ - self.swagger_types = { - 'type': 'str', - 'object_storage_bucket': 'ObjectStoreBucket', - 'name': 'str' - } - - self.attribute_map = { - 'type': 'type', - 'object_storage_bucket': 'objectStorageBucket', - 'name': 'name' - } - - self._type = None - self._object_storage_bucket = None - self._name = None - self._type = 'DBLINK' - - @property - def object_storage_bucket(self): - """ - Gets the object_storage_bucket of this DbLinkDataTransferMediumDetails. - - :return: The object_storage_bucket of this DbLinkDataTransferMediumDetails. - :rtype: oci.database_migration.models.ObjectStoreBucket - """ - return self._object_storage_bucket - - @object_storage_bucket.setter - def object_storage_bucket(self, object_storage_bucket): - """ - Sets the object_storage_bucket of this DbLinkDataTransferMediumDetails. - - :param object_storage_bucket: The object_storage_bucket of this DbLinkDataTransferMediumDetails. - :type: oci.database_migration.models.ObjectStoreBucket - """ - self._object_storage_bucket = object_storage_bucket - - @property - def name(self): - """ - Gets the name of this DbLinkDataTransferMediumDetails. - Name of database link from OCI database to on-premise database. ODMS will create link, if the link does not already exist. - - - :return: The name of this DbLinkDataTransferMediumDetails. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this DbLinkDataTransferMediumDetails. - Name of database link from OCI database to on-premise database. ODMS will create link, if the link does not already exist. - - - :param name: The name of this DbLinkDataTransferMediumDetails. - :type: str - """ - self._name = name - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/dump_transfer_details.py b/src/oci/database_migration/models/dump_transfer_details.py deleted file mode 100644 index 80d65bb0f3..0000000000 --- a/src/oci/database_migration/models/dump_transfer_details.py +++ /dev/null @@ -1,126 +0,0 @@ -# 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: 20210929 - - -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 DumpTransferDetails(object): - """ - Optional additional properties for dump transfer. - """ - - def __init__(self, **kwargs): - """ - Initializes a new DumpTransferDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param source: - The value to assign to the source property of this DumpTransferDetails. - :type source: oci.database_migration.models.HostDumpTransferDetails - - :param target: - The value to assign to the target property of this DumpTransferDetails. - :type target: oci.database_migration.models.HostDumpTransferDetails - - :param shared_storage_mount_target_id: - The value to assign to the shared_storage_mount_target_id property of this DumpTransferDetails. - :type shared_storage_mount_target_id: str - - """ - self.swagger_types = { - 'source': 'HostDumpTransferDetails', - 'target': 'HostDumpTransferDetails', - 'shared_storage_mount_target_id': 'str' - } - - self.attribute_map = { - 'source': 'source', - 'target': 'target', - 'shared_storage_mount_target_id': 'sharedStorageMountTargetId' - } - - self._source = None - self._target = None - self._shared_storage_mount_target_id = None - - @property - def source(self): - """ - Gets the source of this DumpTransferDetails. - - :return: The source of this DumpTransferDetails. - :rtype: oci.database_migration.models.HostDumpTransferDetails - """ - return self._source - - @source.setter - def source(self, source): - """ - Sets the source of this DumpTransferDetails. - - :param source: The source of this DumpTransferDetails. - :type: oci.database_migration.models.HostDumpTransferDetails - """ - self._source = source - - @property - def target(self): - """ - Gets the target of this DumpTransferDetails. - - :return: The target of this DumpTransferDetails. - :rtype: oci.database_migration.models.HostDumpTransferDetails - """ - return self._target - - @target.setter - def target(self, target): - """ - Sets the target of this DumpTransferDetails. - - :param target: The target of this DumpTransferDetails. - :type: oci.database_migration.models.HostDumpTransferDetails - """ - self._target = target - - @property - def shared_storage_mount_target_id(self): - """ - Gets the shared_storage_mount_target_id of this DumpTransferDetails. - OCID of the shared storage mount target - - - :return: The shared_storage_mount_target_id of this DumpTransferDetails. - :rtype: str - """ - return self._shared_storage_mount_target_id - - @shared_storage_mount_target_id.setter - def shared_storage_mount_target_id(self, shared_storage_mount_target_id): - """ - Sets the shared_storage_mount_target_id of this DumpTransferDetails. - OCID of the shared storage mount target - - - :param shared_storage_mount_target_id: The shared_storage_mount_target_id of this DumpTransferDetails. - :type: str - """ - self._shared_storage_mount_target_id = shared_storage_mount_target_id - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/generate_token.py b/src/oci/database_migration/models/generate_token.py deleted file mode 100644 index c24a3d08c7..0000000000 --- a/src/oci/database_migration/models/generate_token.py +++ /dev/null @@ -1,70 +0,0 @@ -# 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. - - -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 GenerateToken(object): - """ - ODMS Agent token details. - """ - - def __init__(self, **kwargs): - """ - Initializes a new GenerateToken object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param rpt_blob: - The value to assign to the rpt_blob property of this GenerateToken. - :type rpt_blob: str - - """ - self.swagger_types = { - 'rpt_blob': 'str' - } - - self.attribute_map = { - 'rpt_blob': 'rptBlob' - } - - self._rpt_blob = None - - @property - def rpt_blob(self): - """ - **[Required]** Gets the rpt_blob of this GenerateToken. - Resource Principals Token in serialized form. - - - :return: The rpt_blob of this GenerateToken. - :rtype: str - """ - return self._rpt_blob - - @rpt_blob.setter - def rpt_blob(self, rpt_blob): - """ - Sets the rpt_blob of this GenerateToken. - Resource Principals Token in serialized form. - - - :param rpt_blob: The rpt_blob of this GenerateToken. - :type: str - """ - self._rpt_blob = rpt_blob - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/golden_gate_details.py b/src/oci/database_migration/models/golden_gate_details.py deleted file mode 100644 index e4694deb94..0000000000 --- a/src/oci/database_migration/models/golden_gate_details.py +++ /dev/null @@ -1,95 +0,0 @@ -# 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: 20210929 - - -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 GoldenGateDetails(object): - """ - Details about Oracle GoldenGate Microservices. - """ - - def __init__(self, **kwargs): - """ - Initializes a new GoldenGateDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param hub: - The value to assign to the hub property of this GoldenGateDetails. - :type hub: oci.database_migration.models.GoldenGateHub - - :param settings: - The value to assign to the settings property of this GoldenGateDetails. - :type settings: oci.database_migration.models.GoldenGateSettings - - """ - self.swagger_types = { - 'hub': 'GoldenGateHub', - 'settings': 'GoldenGateSettings' - } - - self.attribute_map = { - 'hub': 'hub', - 'settings': 'settings' - } - - self._hub = None - self._settings = None - - @property - def hub(self): - """ - **[Required]** Gets the hub of this GoldenGateDetails. - - :return: The hub of this GoldenGateDetails. - :rtype: oci.database_migration.models.GoldenGateHub - """ - return self._hub - - @hub.setter - def hub(self, hub): - """ - Sets the hub of this GoldenGateDetails. - - :param hub: The hub of this GoldenGateDetails. - :type: oci.database_migration.models.GoldenGateHub - """ - self._hub = hub - - @property - def settings(self): - """ - Gets the settings of this GoldenGateDetails. - - :return: The settings of this GoldenGateDetails. - :rtype: oci.database_migration.models.GoldenGateSettings - """ - return self._settings - - @settings.setter - def settings(self, settings): - """ - Sets the settings of this GoldenGateDetails. - - :param settings: The settings of this GoldenGateDetails. - :type: oci.database_migration.models.GoldenGateSettings - """ - self._settings = settings - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/golden_gate_hub.py b/src/oci/database_migration/models/golden_gate_hub.py deleted file mode 100644 index 08ca6c1a8b..0000000000 --- a/src/oci/database_migration/models/golden_gate_hub.py +++ /dev/null @@ -1,275 +0,0 @@ -# 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: 20210929 - - -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 GoldenGateHub(object): - """ - Details about Oracle GoldenGate Microservices. - """ - - def __init__(self, **kwargs): - """ - Initializes a new GoldenGateHub object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param rest_admin_credentials: - The value to assign to the rest_admin_credentials property of this GoldenGateHub. - :type rest_admin_credentials: oci.database_migration.models.AdminCredentials - - :param source_db_admin_credentials: - The value to assign to the source_db_admin_credentials property of this GoldenGateHub. - :type source_db_admin_credentials: oci.database_migration.models.AdminCredentials - - :param source_container_db_admin_credentials: - The value to assign to the source_container_db_admin_credentials property of this GoldenGateHub. - :type source_container_db_admin_credentials: oci.database_migration.models.AdminCredentials - - :param target_db_admin_credentials: - The value to assign to the target_db_admin_credentials property of this GoldenGateHub. - :type target_db_admin_credentials: oci.database_migration.models.AdminCredentials - - :param url: - The value to assign to the url property of this GoldenGateHub. - :type url: str - - :param source_microservices_deployment_name: - The value to assign to the source_microservices_deployment_name property of this GoldenGateHub. - :type source_microservices_deployment_name: str - - :param target_microservices_deployment_name: - The value to assign to the target_microservices_deployment_name property of this GoldenGateHub. - :type target_microservices_deployment_name: str - - :param compute_id: - The value to assign to the compute_id property of this GoldenGateHub. - :type compute_id: str - - """ - self.swagger_types = { - 'rest_admin_credentials': 'AdminCredentials', - 'source_db_admin_credentials': 'AdminCredentials', - 'source_container_db_admin_credentials': 'AdminCredentials', - 'target_db_admin_credentials': 'AdminCredentials', - 'url': 'str', - 'source_microservices_deployment_name': 'str', - 'target_microservices_deployment_name': 'str', - 'compute_id': 'str' - } - - self.attribute_map = { - 'rest_admin_credentials': 'restAdminCredentials', - 'source_db_admin_credentials': 'sourceDbAdminCredentials', - 'source_container_db_admin_credentials': 'sourceContainerDbAdminCredentials', - 'target_db_admin_credentials': 'targetDbAdminCredentials', - 'url': 'url', - 'source_microservices_deployment_name': 'sourceMicroservicesDeploymentName', - 'target_microservices_deployment_name': 'targetMicroservicesDeploymentName', - 'compute_id': 'computeId' - } - - self._rest_admin_credentials = None - self._source_db_admin_credentials = None - self._source_container_db_admin_credentials = None - self._target_db_admin_credentials = None - self._url = None - self._source_microservices_deployment_name = None - self._target_microservices_deployment_name = None - self._compute_id = None - - @property - def rest_admin_credentials(self): - """ - **[Required]** Gets the rest_admin_credentials of this GoldenGateHub. - - :return: The rest_admin_credentials of this GoldenGateHub. - :rtype: oci.database_migration.models.AdminCredentials - """ - return self._rest_admin_credentials - - @rest_admin_credentials.setter - def rest_admin_credentials(self, rest_admin_credentials): - """ - Sets the rest_admin_credentials of this GoldenGateHub. - - :param rest_admin_credentials: The rest_admin_credentials of this GoldenGateHub. - :type: oci.database_migration.models.AdminCredentials - """ - self._rest_admin_credentials = rest_admin_credentials - - @property - def source_db_admin_credentials(self): - """ - **[Required]** Gets the source_db_admin_credentials of this GoldenGateHub. - - :return: The source_db_admin_credentials of this GoldenGateHub. - :rtype: oci.database_migration.models.AdminCredentials - """ - return self._source_db_admin_credentials - - @source_db_admin_credentials.setter - def source_db_admin_credentials(self, source_db_admin_credentials): - """ - Sets the source_db_admin_credentials of this GoldenGateHub. - - :param source_db_admin_credentials: The source_db_admin_credentials of this GoldenGateHub. - :type: oci.database_migration.models.AdminCredentials - """ - self._source_db_admin_credentials = source_db_admin_credentials - - @property - def source_container_db_admin_credentials(self): - """ - Gets the source_container_db_admin_credentials of this GoldenGateHub. - - :return: The source_container_db_admin_credentials of this GoldenGateHub. - :rtype: oci.database_migration.models.AdminCredentials - """ - return self._source_container_db_admin_credentials - - @source_container_db_admin_credentials.setter - def source_container_db_admin_credentials(self, source_container_db_admin_credentials): - """ - Sets the source_container_db_admin_credentials of this GoldenGateHub. - - :param source_container_db_admin_credentials: The source_container_db_admin_credentials of this GoldenGateHub. - :type: oci.database_migration.models.AdminCredentials - """ - self._source_container_db_admin_credentials = source_container_db_admin_credentials - - @property - def target_db_admin_credentials(self): - """ - **[Required]** Gets the target_db_admin_credentials of this GoldenGateHub. - - :return: The target_db_admin_credentials of this GoldenGateHub. - :rtype: oci.database_migration.models.AdminCredentials - """ - return self._target_db_admin_credentials - - @target_db_admin_credentials.setter - def target_db_admin_credentials(self, target_db_admin_credentials): - """ - Sets the target_db_admin_credentials of this GoldenGateHub. - - :param target_db_admin_credentials: The target_db_admin_credentials of this GoldenGateHub. - :type: oci.database_migration.models.AdminCredentials - """ - self._target_db_admin_credentials = target_db_admin_credentials - - @property - def url(self): - """ - **[Required]** Gets the url of this GoldenGateHub. - Oracle GoldenGate hub's REST endpoint. - Refer to https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA - - - :return: The url of this GoldenGateHub. - :rtype: str - """ - return self._url - - @url.setter - def url(self, url): - """ - Sets the url of this GoldenGateHub. - Oracle GoldenGate hub's REST endpoint. - Refer to https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA - - - :param url: The url of this GoldenGateHub. - :type: str - """ - self._url = url - - @property - def source_microservices_deployment_name(self): - """ - **[Required]** Gets the source_microservices_deployment_name of this GoldenGateHub. - Name of GoldenGate deployment to operate on source database - - - :return: The source_microservices_deployment_name of this GoldenGateHub. - :rtype: str - """ - return self._source_microservices_deployment_name - - @source_microservices_deployment_name.setter - def source_microservices_deployment_name(self, source_microservices_deployment_name): - """ - Sets the source_microservices_deployment_name of this GoldenGateHub. - Name of GoldenGate deployment to operate on source database - - - :param source_microservices_deployment_name: The source_microservices_deployment_name of this GoldenGateHub. - :type: str - """ - self._source_microservices_deployment_name = source_microservices_deployment_name - - @property - def target_microservices_deployment_name(self): - """ - **[Required]** Gets the target_microservices_deployment_name of this GoldenGateHub. - Name of GoldenGate deployment to operate on target database - - - :return: The target_microservices_deployment_name of this GoldenGateHub. - :rtype: str - """ - return self._target_microservices_deployment_name - - @target_microservices_deployment_name.setter - def target_microservices_deployment_name(self, target_microservices_deployment_name): - """ - Sets the target_microservices_deployment_name of this GoldenGateHub. - Name of GoldenGate deployment to operate on target database - - - :param target_microservices_deployment_name: The target_microservices_deployment_name of this GoldenGateHub. - :type: str - """ - self._target_microservices_deployment_name = target_microservices_deployment_name - - @property - def compute_id(self): - """ - Gets the compute_id of this GoldenGateHub. - OCID of GoldenGate compute instance. - - - :return: The compute_id of this GoldenGateHub. - :rtype: str - """ - return self._compute_id - - @compute_id.setter - def compute_id(self, compute_id): - """ - Sets the compute_id of this GoldenGateHub. - OCID of GoldenGate compute instance. - - - :param compute_id: The compute_id of this GoldenGateHub. - :type: str - """ - self._compute_id = compute_id - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/golden_gate_service_details.py b/src/oci/database_migration/models/golden_gate_service_details.py deleted file mode 100644 index 058def7eda..0000000000 --- a/src/oci/database_migration/models/golden_gate_service_details.py +++ /dev/null @@ -1,95 +0,0 @@ -# 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: 20210929 - - -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 GoldenGateServiceDetails(object): - """ - Details about Oracle GoldenGate GGS Deployment. - """ - - def __init__(self, **kwargs): - """ - Initializes a new GoldenGateServiceDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param ggs_deployment: - The value to assign to the ggs_deployment property of this GoldenGateServiceDetails. - :type ggs_deployment: oci.database_migration.models.GgsDeployment - - :param settings: - The value to assign to the settings property of this GoldenGateServiceDetails. - :type settings: oci.database_migration.models.GoldenGateSettings - - """ - self.swagger_types = { - 'ggs_deployment': 'GgsDeployment', - 'settings': 'GoldenGateSettings' - } - - self.attribute_map = { - 'ggs_deployment': 'ggsDeployment', - 'settings': 'settings' - } - - self._ggs_deployment = None - self._settings = None - - @property - def ggs_deployment(self): - """ - Gets the ggs_deployment of this GoldenGateServiceDetails. - - :return: The ggs_deployment of this GoldenGateServiceDetails. - :rtype: oci.database_migration.models.GgsDeployment - """ - return self._ggs_deployment - - @ggs_deployment.setter - def ggs_deployment(self, ggs_deployment): - """ - Sets the ggs_deployment of this GoldenGateServiceDetails. - - :param ggs_deployment: The ggs_deployment of this GoldenGateServiceDetails. - :type: oci.database_migration.models.GgsDeployment - """ - self._ggs_deployment = ggs_deployment - - @property - def settings(self): - """ - Gets the settings of this GoldenGateServiceDetails. - - :return: The settings of this GoldenGateServiceDetails. - :rtype: oci.database_migration.models.GoldenGateSettings - """ - return self._settings - - @settings.setter - def settings(self, settings): - """ - Sets the settings of this GoldenGateServiceDetails. - - :param settings: The settings of this GoldenGateServiceDetails. - :type: oci.database_migration.models.GoldenGateSettings - """ - self._settings = settings - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/golden_gate_settings.py b/src/oci/database_migration/models/golden_gate_settings.py deleted file mode 100644 index 7eb5a9abcf..0000000000 --- a/src/oci/database_migration/models/golden_gate_settings.py +++ /dev/null @@ -1,126 +0,0 @@ -# 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: 20210929 - - -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 GoldenGateSettings(object): - """ - Optional settings for Oracle GoldenGate processes - """ - - def __init__(self, **kwargs): - """ - Initializes a new GoldenGateSettings object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param extract: - The value to assign to the extract property of this GoldenGateSettings. - :type extract: oci.database_migration.models.Extract - - :param replicat: - The value to assign to the replicat property of this GoldenGateSettings. - :type replicat: oci.database_migration.models.Replicat - - :param acceptable_lag: - The value to assign to the acceptable_lag property of this GoldenGateSettings. - :type acceptable_lag: int - - """ - self.swagger_types = { - 'extract': 'Extract', - 'replicat': 'Replicat', - 'acceptable_lag': 'int' - } - - self.attribute_map = { - 'extract': 'extract', - 'replicat': 'replicat', - 'acceptable_lag': 'acceptableLag' - } - - self._extract = None - self._replicat = None - self._acceptable_lag = None - - @property - def extract(self): - """ - Gets the extract of this GoldenGateSettings. - - :return: The extract of this GoldenGateSettings. - :rtype: oci.database_migration.models.Extract - """ - return self._extract - - @extract.setter - def extract(self, extract): - """ - Sets the extract of this GoldenGateSettings. - - :param extract: The extract of this GoldenGateSettings. - :type: oci.database_migration.models.Extract - """ - self._extract = extract - - @property - def replicat(self): - """ - Gets the replicat of this GoldenGateSettings. - - :return: The replicat of this GoldenGateSettings. - :rtype: oci.database_migration.models.Replicat - """ - return self._replicat - - @replicat.setter - def replicat(self, replicat): - """ - Sets the replicat of this GoldenGateSettings. - - :param replicat: The replicat of this GoldenGateSettings. - :type: oci.database_migration.models.Replicat - """ - self._replicat = replicat - - @property - def acceptable_lag(self): - """ - Gets the acceptable_lag of this GoldenGateSettings. - ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the specified value in seconds. - - - :return: The acceptable_lag of this GoldenGateSettings. - :rtype: int - """ - return self._acceptable_lag - - @acceptable_lag.setter - def acceptable_lag(self, acceptable_lag): - """ - Sets the acceptable_lag of this GoldenGateSettings. - ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the specified value in seconds. - - - :param acceptable_lag: The acceptable_lag of this GoldenGateSettings. - :type: int - """ - self._acceptable_lag = acceptable_lag - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/migration_object_summary.py b/src/oci/database_migration/models/migration_object_summary.py deleted file mode 100644 index 5b2c43f031..0000000000 --- a/src/oci/database_migration/models/migration_object_summary.py +++ /dev/null @@ -1,214 +0,0 @@ -# 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: 20210929 - - -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 MigrationObjectSummary(object): - """ - Database objects to include or exclude from migration - """ - - #: A constant which can be used with the object_status property of a MigrationObjectSummary. - #: This constant has a value of "EXCLUDE" - OBJECT_STATUS_EXCLUDE = "EXCLUDE" - - #: A constant which can be used with the object_status property of a MigrationObjectSummary. - #: This constant has a value of "INCLUDE" - OBJECT_STATUS_INCLUDE = "INCLUDE" - - def __init__(self, **kwargs): - """ - Initializes a new MigrationObjectSummary object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param owner: - The value to assign to the owner property of this MigrationObjectSummary. - :type owner: str - - :param object_name: - The value to assign to the object_name property of this MigrationObjectSummary. - :type object_name: str - - :param type: - The value to assign to the type property of this MigrationObjectSummary. - :type type: str - - :param object_status: - The value to assign to the object_status property of this MigrationObjectSummary. - Allowed values for this property are: "EXCLUDE", "INCLUDE", 'UNKNOWN_ENUM_VALUE'. - Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. - :type object_status: str - - :param is_omit_excluded_table_from_replication: - The value to assign to the is_omit_excluded_table_from_replication property of this MigrationObjectSummary. - :type is_omit_excluded_table_from_replication: bool - - """ - self.swagger_types = { - 'owner': 'str', - 'object_name': 'str', - 'type': 'str', - 'object_status': 'str', - 'is_omit_excluded_table_from_replication': 'bool' - } - - self.attribute_map = { - 'owner': 'owner', - 'object_name': 'objectName', - 'type': 'type', - 'object_status': 'objectStatus', - 'is_omit_excluded_table_from_replication': 'isOmitExcludedTableFromReplication' - } - - self._owner = None - self._object_name = None - self._type = None - self._object_status = None - self._is_omit_excluded_table_from_replication = None - - @property - def owner(self): - """ - **[Required]** Gets the owner of this MigrationObjectSummary. - Owner of the object (regular expression is allowed) - - - :return: The owner of this MigrationObjectSummary. - :rtype: str - """ - return self._owner - - @owner.setter - def owner(self, owner): - """ - Sets the owner of this MigrationObjectSummary. - Owner of the object (regular expression is allowed) - - - :param owner: The owner of this MigrationObjectSummary. - :type: str - """ - self._owner = owner - - @property - def object_name(self): - """ - **[Required]** Gets the object_name of this MigrationObjectSummary. - Name of the object (regular expression is allowed) - - - :return: The object_name of this MigrationObjectSummary. - :rtype: str - """ - return self._object_name - - @object_name.setter - def object_name(self, object_name): - """ - Sets the object_name of this MigrationObjectSummary. - Name of the object (regular expression is allowed) - - - :param object_name: The object_name of this MigrationObjectSummary. - :type: str - """ - self._object_name = object_name - - @property - def type(self): - """ - Gets the type of this MigrationObjectSummary. - Type of object to exclude. - If not specified, matching owners and object names of type TABLE would be excluded. - - - :return: The type of this MigrationObjectSummary. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this MigrationObjectSummary. - Type of object to exclude. - If not specified, matching owners and object names of type TABLE would be excluded. - - - :param type: The type of this MigrationObjectSummary. - :type: str - """ - self._type = type - - @property - def object_status(self): - """ - Gets the object_status of this MigrationObjectSummary. - Object status. - - Allowed values for this property are: "EXCLUDE", "INCLUDE", 'UNKNOWN_ENUM_VALUE'. - Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. - - - :return: The object_status of this MigrationObjectSummary. - :rtype: str - """ - return self._object_status - - @object_status.setter - def object_status(self, object_status): - """ - Sets the object_status of this MigrationObjectSummary. - Object status. - - - :param object_status: The object_status of this MigrationObjectSummary. - :type: str - """ - allowed_values = ["EXCLUDE", "INCLUDE"] - if not value_allowed_none_or_none_sentinel(object_status, allowed_values): - object_status = 'UNKNOWN_ENUM_VALUE' - self._object_status = object_status - - @property - def is_omit_excluded_table_from_replication(self): - """ - Gets the is_omit_excluded_table_from_replication of this MigrationObjectSummary. - Whether an excluded table should be omitted from replication. Only valid for database objects that have are of type TABLE and object status EXCLUDE. - - - :return: The is_omit_excluded_table_from_replication of this MigrationObjectSummary. - :rtype: bool - """ - return self._is_omit_excluded_table_from_replication - - @is_omit_excluded_table_from_replication.setter - def is_omit_excluded_table_from_replication(self, is_omit_excluded_table_from_replication): - """ - Sets the is_omit_excluded_table_from_replication of this MigrationObjectSummary. - Whether an excluded table should be omitted from replication. Only valid for database objects that have are of type TABLE and object status EXCLUDE. - - - :param is_omit_excluded_table_from_replication: The is_omit_excluded_table_from_replication of this MigrationObjectSummary. - :type: bool - """ - self._is_omit_excluded_table_from_replication = is_omit_excluded_table_from_replication - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/nfs_data_transfer_medium_details.py b/src/oci/database_migration/models/nfs_data_transfer_medium_details.py deleted file mode 100644 index b3051274b7..0000000000 --- a/src/oci/database_migration/models/nfs_data_transfer_medium_details.py +++ /dev/null @@ -1,78 +0,0 @@ -# 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: 20210929 - -from .data_transfer_medium_details_v2 import DataTransferMediumDetailsV2 -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 NfsDataTransferMediumDetails(DataTransferMediumDetailsV2): - """ - OCI Object Storage bucket will be used to store Data Pump dump files for the migration. - """ - - def __init__(self, **kwargs): - """ - Initializes a new NfsDataTransferMediumDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.database_migration.models.NfsDataTransferMediumDetails.type` attribute - of this class is ``NFS`` and it should not be changed. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param type: - The value to assign to the type property of this NfsDataTransferMediumDetails. - Allowed values for this property are: "DBLINK", "OBJECT_STORAGE", "AWS_S3", "NFS" - :type type: str - - :param object_storage_bucket: - The value to assign to the object_storage_bucket property of this NfsDataTransferMediumDetails. - :type object_storage_bucket: oci.database_migration.models.ObjectStoreBucket - - """ - self.swagger_types = { - 'type': 'str', - 'object_storage_bucket': 'ObjectStoreBucket' - } - - self.attribute_map = { - 'type': 'type', - 'object_storage_bucket': 'objectStorageBucket' - } - - self._type = None - self._object_storage_bucket = None - self._type = 'NFS' - - @property - def object_storage_bucket(self): - """ - Gets the object_storage_bucket of this NfsDataTransferMediumDetails. - - :return: The object_storage_bucket of this NfsDataTransferMediumDetails. - :rtype: oci.database_migration.models.ObjectStoreBucket - """ - return self._object_storage_bucket - - @object_storage_bucket.setter - def object_storage_bucket(self, object_storage_bucket): - """ - Sets the object_storage_bucket of this NfsDataTransferMediumDetails. - - :param object_storage_bucket: The object_storage_bucket of this NfsDataTransferMediumDetails. - :type: oci.database_migration.models.ObjectStoreBucket - """ - self._object_storage_bucket = object_storage_bucket - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/object_storage_data_transfer_medium_details.py b/src/oci/database_migration/models/object_storage_data_transfer_medium_details.py deleted file mode 100644 index 27ccc6f0f8..0000000000 --- a/src/oci/database_migration/models/object_storage_data_transfer_medium_details.py +++ /dev/null @@ -1,78 +0,0 @@ -# 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: 20210929 - -from .data_transfer_medium_details_v2 import DataTransferMediumDetailsV2 -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 ObjectStorageDataTransferMediumDetails(DataTransferMediumDetailsV2): - """ - OCI Object Storage bucket will be used to store Data Pump dump files for the migration. - """ - - def __init__(self, **kwargs): - """ - Initializes a new ObjectStorageDataTransferMediumDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.database_migration.models.ObjectStorageDataTransferMediumDetails.type` attribute - of this class is ``OBJECT_STORAGE`` and it should not be changed. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param type: - The value to assign to the type property of this ObjectStorageDataTransferMediumDetails. - Allowed values for this property are: "DBLINK", "OBJECT_STORAGE", "AWS_S3", "NFS" - :type type: str - - :param object_storage_bucket: - The value to assign to the object_storage_bucket property of this ObjectStorageDataTransferMediumDetails. - :type object_storage_bucket: oci.database_migration.models.ObjectStoreBucket - - """ - self.swagger_types = { - 'type': 'str', - 'object_storage_bucket': 'ObjectStoreBucket' - } - - self.attribute_map = { - 'type': 'type', - 'object_storage_bucket': 'objectStorageBucket' - } - - self._type = None - self._object_storage_bucket = None - self._type = 'OBJECT_STORAGE' - - @property - def object_storage_bucket(self): - """ - Gets the object_storage_bucket of this ObjectStorageDataTransferMediumDetails. - - :return: The object_storage_bucket of this ObjectStorageDataTransferMediumDetails. - :rtype: oci.database_migration.models.ObjectStoreBucket - """ - return self._object_storage_bucket - - @object_storage_bucket.setter - def object_storage_bucket(self, object_storage_bucket): - """ - Sets the object_storage_bucket of this ObjectStorageDataTransferMediumDetails. - - :param object_storage_bucket: The object_storage_bucket of this ObjectStorageDataTransferMediumDetails. - :type: oci.database_migration.models.ObjectStoreBucket - """ - self._object_storage_bucket = object_storage_bucket - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/par_link.py b/src/oci/database_migration/models/par_link.py deleted file mode 100644 index 1af97e3ab0..0000000000 --- a/src/oci/database_migration/models/par_link.py +++ /dev/null @@ -1,70 +0,0 @@ -# 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. - - -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 ParLink(object): - """ - Pre-Authenticated Request Link for ODMS Agent log use. - """ - - def __init__(self, **kwargs): - """ - Initializes a new ParLink object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param par_link: - The value to assign to the par_link property of this ParLink. - :type par_link: str - - """ - self.swagger_types = { - 'par_link': 'str' - } - - self.attribute_map = { - 'par_link': 'parLink' - } - - self._par_link = None - - @property - def par_link(self): - """ - **[Required]** Gets the par_link of this ParLink. - Pre-Authenticated Request URI. - - - :return: The par_link of this ParLink. - :rtype: str - """ - return self._par_link - - @par_link.setter - def par_link(self, par_link): - """ - Sets the par_link of this ParLink. - Pre-Authenticated Request URI. - - - :param par_link: The par_link of this ParLink. - :type: str - """ - self._par_link = par_link - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/private_endpoint_details.py b/src/oci/database_migration/models/private_endpoint_details.py deleted file mode 100644 index 0ff1d10f9d..0000000000 --- a/src/oci/database_migration/models/private_endpoint_details.py +++ /dev/null @@ -1,185 +0,0 @@ -# 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: 20210929 - - -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 PrivateEndpointDetails(object): - """ - OCI Private Endpoint configuration details. - """ - - def __init__(self, **kwargs): - """ - Initializes a new PrivateEndpointDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param compartment_id: - The value to assign to the compartment_id property of this PrivateEndpointDetails. - :type compartment_id: str - - :param vcn_id: - The value to assign to the vcn_id property of this PrivateEndpointDetails. - :type vcn_id: str - - :param subnet_id: - The value to assign to the subnet_id property of this PrivateEndpointDetails. - :type subnet_id: str - - :param id: - The value to assign to the id property of this PrivateEndpointDetails. - :type id: str - - """ - self.swagger_types = { - 'compartment_id': 'str', - 'vcn_id': 'str', - 'subnet_id': 'str', - 'id': 'str' - } - - self.attribute_map = { - 'compartment_id': 'compartmentId', - 'vcn_id': 'vcnId', - 'subnet_id': 'subnetId', - 'id': 'id' - } - - self._compartment_id = None - self._vcn_id = None - self._subnet_id = None - self._id = None - - @property - def compartment_id(self): - """ - Gets the compartment_id of this PrivateEndpointDetails. - The `OCID`__ of the compartment to contain the - private endpoint. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :return: The compartment_id of this PrivateEndpointDetails. - :rtype: str - """ - return self._compartment_id - - @compartment_id.setter - def compartment_id(self, compartment_id): - """ - Sets the compartment_id of this PrivateEndpointDetails. - The `OCID`__ of the compartment to contain the - private endpoint. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :param compartment_id: The compartment_id of this PrivateEndpointDetails. - :type: str - """ - self._compartment_id = compartment_id - - @property - def vcn_id(self): - """ - Gets the vcn_id of this PrivateEndpointDetails. - The `OCID`__ of the VCN where the Private Endpoint will be bound to. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :return: The vcn_id of this PrivateEndpointDetails. - :rtype: str - """ - return self._vcn_id - - @vcn_id.setter - def vcn_id(self, vcn_id): - """ - Sets the vcn_id of this PrivateEndpointDetails. - The `OCID`__ of the VCN where the Private Endpoint will be bound to. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :param vcn_id: The vcn_id of this PrivateEndpointDetails. - :type: str - """ - self._vcn_id = vcn_id - - @property - def subnet_id(self): - """ - Gets the subnet_id of this PrivateEndpointDetails. - The `OCID`__ of the customer's - subnet where the private endpoint VNIC will reside. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :return: The subnet_id of this PrivateEndpointDetails. - :rtype: str - """ - return self._subnet_id - - @subnet_id.setter - def subnet_id(self, subnet_id): - """ - Sets the subnet_id of this PrivateEndpointDetails. - The `OCID`__ of the customer's - subnet where the private endpoint VNIC will reside. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :param subnet_id: The subnet_id of this PrivateEndpointDetails. - :type: str - """ - self._subnet_id = subnet_id - - @property - def id(self): - """ - Gets the id of this PrivateEndpointDetails. - `OCID`__ of a previously created Private Endpoint. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :return: The id of this PrivateEndpointDetails. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this PrivateEndpointDetails. - `OCID`__ of a previously created Private Endpoint. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :param id: The id of this PrivateEndpointDetails. - :type: str - """ - self._id = id - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/ssh_details.py b/src/oci/database_migration/models/ssh_details.py deleted file mode 100644 index d04c594375..0000000000 --- a/src/oci/database_migration/models/ssh_details.py +++ /dev/null @@ -1,134 +0,0 @@ -# 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: 20210929 - - -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 SshDetails(object): - """ - Details of the SSH key that will be used. - """ - - def __init__(self, **kwargs): - """ - Initializes a new SshDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param host: - The value to assign to the host property of this SshDetails. - :type host: str - - :param user: - The value to assign to the user property of this SshDetails. - :type user: str - - :param sudo_location: - The value to assign to the sudo_location property of this SshDetails. - :type sudo_location: str - - """ - self.swagger_types = { - 'host': 'str', - 'user': 'str', - 'sudo_location': 'str' - } - - self.attribute_map = { - 'host': 'host', - 'user': 'user', - 'sudo_location': 'sudoLocation' - } - - self._host = None - self._user = None - self._sudo_location = None - - @property - def host(self): - """ - **[Required]** Gets the host of this SshDetails. - Name of the host the SSH key is valid for. - - - :return: The host of this SshDetails. - :rtype: str - """ - return self._host - - @host.setter - def host(self, host): - """ - Sets the host of this SshDetails. - Name of the host the SSH key is valid for. - - - :param host: The host of this SshDetails. - :type: str - """ - self._host = host - - @property - def user(self): - """ - **[Required]** Gets the user of this SshDetails. - SSH user - - - :return: The user of this SshDetails. - :rtype: str - """ - return self._user - - @user.setter - def user(self, user): - """ - Sets the user of this SshDetails. - SSH user - - - :param user: The user of this SshDetails. - :type: str - """ - self._user = user - - @property - def sudo_location(self): - """ - **[Required]** Gets the sudo_location of this SshDetails. - Sudo location - - - :return: The sudo_location of this SshDetails. - :rtype: str - """ - return self._sudo_location - - @sudo_location.setter - def sudo_location(self, sudo_location): - """ - Sets the sudo_location of this SshDetails. - Sudo location - - - :param sudo_location: The sudo_location of this SshDetails. - :type: str - """ - self._sudo_location = sudo_location - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/update_advisor_settings.py b/src/oci/database_migration/models/update_advisor_settings.py deleted file mode 100644 index 777dc10da9..0000000000 --- a/src/oci/database_migration/models/update_advisor_settings.py +++ /dev/null @@ -1,103 +0,0 @@ -# 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: 20210929 - - -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 UpdateAdvisorSettings(object): - """ - Optional Pre-Migration advisor settings. - """ - - def __init__(self, **kwargs): - """ - Initializes a new UpdateAdvisorSettings object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param is_skip_advisor: - The value to assign to the is_skip_advisor property of this UpdateAdvisorSettings. - :type is_skip_advisor: bool - - :param is_ignore_errors: - The value to assign to the is_ignore_errors property of this UpdateAdvisorSettings. - :type is_ignore_errors: bool - - """ - self.swagger_types = { - 'is_skip_advisor': 'bool', - 'is_ignore_errors': 'bool' - } - - self.attribute_map = { - 'is_skip_advisor': 'isSkipAdvisor', - 'is_ignore_errors': 'isIgnoreErrors' - } - - self._is_skip_advisor = None - self._is_ignore_errors = None - - @property - def is_skip_advisor(self): - """ - Gets the is_skip_advisor of this UpdateAdvisorSettings. - True to skip the Pre-Migration Advisor execution. Default is false. - - - :return: The is_skip_advisor of this UpdateAdvisorSettings. - :rtype: bool - """ - return self._is_skip_advisor - - @is_skip_advisor.setter - def is_skip_advisor(self, is_skip_advisor): - """ - Sets the is_skip_advisor of this UpdateAdvisorSettings. - True to skip the Pre-Migration Advisor execution. Default is false. - - - :param is_skip_advisor: The is_skip_advisor of this UpdateAdvisorSettings. - :type: bool - """ - self._is_skip_advisor = is_skip_advisor - - @property - def is_ignore_errors(self): - """ - Gets the is_ignore_errors of this UpdateAdvisorSettings. - True to not interrupt migration execution due to Pre-Migration Advisor errors. Default is false. - - - :return: The is_ignore_errors of this UpdateAdvisorSettings. - :rtype: bool - """ - return self._is_ignore_errors - - @is_ignore_errors.setter - def is_ignore_errors(self, is_ignore_errors): - """ - Sets the is_ignore_errors of this UpdateAdvisorSettings. - True to not interrupt migration execution due to Pre-Migration Advisor errors. Default is false. - - - :param is_ignore_errors: The is_ignore_errors of this UpdateAdvisorSettings. - :type: bool - """ - self._is_ignore_errors = is_ignore_errors - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/update_agent_details.py b/src/oci/database_migration/models/update_agent_details.py deleted file mode 100644 index be9d748dde..0000000000 --- a/src/oci/database_migration/models/update_agent_details.py +++ /dev/null @@ -1,231 +0,0 @@ -# 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: 20210929 - - -from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from oci.decorators import init_model_state_from_kwargs - - -@init_model_state_from_kwargs -class UpdateAgentDetails(object): - """ - ODMS Agent Details - """ - - def __init__(self, **kwargs): - """ - Initializes a new UpdateAgentDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param display_name: - The value to assign to the display_name property of this UpdateAgentDetails. - :type display_name: str - - :param stream_id: - The value to assign to the stream_id property of this UpdateAgentDetails. - :type stream_id: str - - :param public_key: - The value to assign to the public_key property of this UpdateAgentDetails. - :type public_key: str - - :param version: - The value to assign to the version property of this UpdateAgentDetails. - :type version: str - - :param freeform_tags: - The value to assign to the freeform_tags property of this UpdateAgentDetails. - :type freeform_tags: dict(str, str) - - :param defined_tags: - The value to assign to the defined_tags property of this UpdateAgentDetails. - :type defined_tags: dict(str, dict(str, object)) - - """ - self.swagger_types = { - 'display_name': 'str', - 'stream_id': 'str', - 'public_key': 'str', - 'version': 'str', - 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' - } - - self.attribute_map = { - 'display_name': 'displayName', - 'stream_id': 'streamId', - 'public_key': 'publicKey', - 'version': 'version', - 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' - } - - self._display_name = None - self._stream_id = None - self._public_key = None - self._version = None - self._freeform_tags = None - self._defined_tags = None - - @property - def display_name(self): - """ - Gets the display_name of this UpdateAgentDetails. - ODMS Agent name - - - :return: The display_name of this UpdateAgentDetails. - :rtype: str - """ - return self._display_name - - @display_name.setter - def display_name(self, display_name): - """ - Sets the display_name of this UpdateAgentDetails. - ODMS Agent name - - - :param display_name: The display_name of this UpdateAgentDetails. - :type: str - """ - self._display_name = display_name - - @property - def stream_id(self): - """ - Gets the stream_id of this UpdateAgentDetails. - The OCID of the Stream - - - :return: The stream_id of this UpdateAgentDetails. - :rtype: str - """ - return self._stream_id - - @stream_id.setter - def stream_id(self, stream_id): - """ - Sets the stream_id of this UpdateAgentDetails. - The OCID of the Stream - - - :param stream_id: The stream_id of this UpdateAgentDetails. - :type: str - """ - self._stream_id = stream_id - - @property - def public_key(self): - """ - Gets the public_key of this UpdateAgentDetails. - ODMS Agent public key. - - - :return: The public_key of this UpdateAgentDetails. - :rtype: str - """ - return self._public_key - - @public_key.setter - def public_key(self, public_key): - """ - Sets the public_key of this UpdateAgentDetails. - ODMS Agent public key. - - - :param public_key: The public_key of this UpdateAgentDetails. - :type: str - """ - self._public_key = public_key - - @property - def version(self): - """ - Gets the version of this UpdateAgentDetails. - ODMS Agent version - - - :return: The version of this UpdateAgentDetails. - :rtype: str - """ - return self._version - - @version.setter - def version(self, version): - """ - Sets the version of this UpdateAgentDetails. - ODMS Agent version - - - :param version: The version of this UpdateAgentDetails. - :type: str - """ - self._version = version - - @property - def freeform_tags(self): - """ - Gets the freeform_tags of this UpdateAgentDetails. - 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 UpdateAgentDetails. - :rtype: dict(str, str) - """ - return self._freeform_tags - - @freeform_tags.setter - def freeform_tags(self, freeform_tags): - """ - Sets the freeform_tags of this UpdateAgentDetails. - 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 UpdateAgentDetails. - :type: dict(str, str) - """ - self._freeform_tags = freeform_tags - - @property - def defined_tags(self): - """ - Gets the defined_tags of this UpdateAgentDetails. - Defined tags for this resource. Each key is predefined and scoped to a namespace. - Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` - - - :return: The defined_tags of this UpdateAgentDetails. - :rtype: dict(str, dict(str, object)) - """ - return self._defined_tags - - @defined_tags.setter - def defined_tags(self, defined_tags): - """ - Sets the defined_tags of this UpdateAgentDetails. - Defined tags for this resource. Each key is predefined and scoped to a namespace. - Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` - - - :param defined_tags: The defined_tags of this UpdateAgentDetails. - :type: dict(str, dict(str, object)) - """ - self._defined_tags = defined_tags - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/update_aws_s3_details.py b/src/oci/database_migration/models/update_aws_s3_details.py deleted file mode 100644 index 64469ef6fd..0000000000 --- a/src/oci/database_migration/models/update_aws_s3_details.py +++ /dev/null @@ -1,174 +0,0 @@ -# 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: 20210929 - - -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 UpdateAwsS3Details(object): - """ - AWS S3 bucket details used for source Connection resources with RDS_ORACLE type. - Only supported for source Connection resources with RDS_ORACLE type. - """ - - def __init__(self, **kwargs): - """ - Initializes a new UpdateAwsS3Details 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 UpdateAwsS3Details. - :type name: str - - :param region: - The value to assign to the region property of this UpdateAwsS3Details. - :type region: str - - :param access_key_id: - The value to assign to the access_key_id property of this UpdateAwsS3Details. - :type access_key_id: str - - :param secret_access_key: - The value to assign to the secret_access_key property of this UpdateAwsS3Details. - :type secret_access_key: str - - """ - self.swagger_types = { - 'name': 'str', - 'region': 'str', - 'access_key_id': 'str', - 'secret_access_key': 'str' - } - - self.attribute_map = { - 'name': 'name', - 'region': 'region', - 'access_key_id': 'accessKeyId', - 'secret_access_key': 'secretAccessKey' - } - - self._name = None - self._region = None - self._access_key_id = None - self._secret_access_key = None - - @property - def name(self): - """ - Gets the name of this UpdateAwsS3Details. - S3 bucket name. - - - :return: The name of this UpdateAwsS3Details. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this UpdateAwsS3Details. - S3 bucket name. - - - :param name: The name of this UpdateAwsS3Details. - :type: str - """ - self._name = name - - @property - def region(self): - """ - Gets the region of this UpdateAwsS3Details. - AWS region code where the S3 bucket is located. - Region code should match the documented available regions: - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions - - - :return: The region of this UpdateAwsS3Details. - :rtype: str - """ - return self._region - - @region.setter - def region(self, region): - """ - Sets the region of this UpdateAwsS3Details. - AWS region code where the S3 bucket is located. - Region code should match the documented available regions: - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions - - - :param region: The region of this UpdateAwsS3Details. - :type: str - """ - self._region = region - - @property - def access_key_id(self): - """ - Gets the access_key_id of this UpdateAwsS3Details. - AWS access key credentials identifier - Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys - - - :return: The access_key_id of this UpdateAwsS3Details. - :rtype: str - """ - return self._access_key_id - - @access_key_id.setter - def access_key_id(self, access_key_id): - """ - Sets the access_key_id of this UpdateAwsS3Details. - AWS access key credentials identifier - Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys - - - :param access_key_id: The access_key_id of this UpdateAwsS3Details. - :type: str - """ - self._access_key_id = access_key_id - - @property - def secret_access_key(self): - """ - Gets the secret_access_key of this UpdateAwsS3Details. - AWS secret access key credentials - Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys - - - :return: The secret_access_key of this UpdateAwsS3Details. - :rtype: str - """ - return self._secret_access_key - - @secret_access_key.setter - def secret_access_key(self, secret_access_key): - """ - Sets the secret_access_key of this UpdateAwsS3Details. - AWS secret access key credentials - Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys - - - :param secret_access_key: The secret_access_key of this UpdateAwsS3Details. - :type: str - """ - self._secret_access_key = secret_access_key - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/update_connect_descriptor.py b/src/oci/database_migration/models/update_connect_descriptor.py deleted file mode 100644 index ed6e20275c..0000000000 --- a/src/oci/database_migration/models/update_connect_descriptor.py +++ /dev/null @@ -1,173 +0,0 @@ -# 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: 20210929 - - -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 UpdateConnectDescriptor(object): - """ - Connect Descriptor details. If a Private Endpoint was specified in the Connection, the host entry should be a valid IP address. - """ - - def __init__(self, **kwargs): - """ - Initializes a new UpdateConnectDescriptor object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param host: - The value to assign to the host property of this UpdateConnectDescriptor. - :type host: str - - :param port: - The value to assign to the port property of this UpdateConnectDescriptor. - :type port: int - - :param database_service_name: - The value to assign to the database_service_name property of this UpdateConnectDescriptor. - :type database_service_name: str - - :param connect_string: - The value to assign to the connect_string property of this UpdateConnectDescriptor. - :type connect_string: str - - """ - self.swagger_types = { - 'host': 'str', - 'port': 'int', - 'database_service_name': 'str', - 'connect_string': 'str' - } - - self.attribute_map = { - 'host': 'host', - 'port': 'port', - 'database_service_name': 'databaseServiceName', - 'connect_string': 'connectString' - } - - self._host = None - self._port = None - self._database_service_name = None - self._connect_string = None - - @property - def host(self): - """ - Gets the host of this UpdateConnectDescriptor. - Host or IP address of the connect descriptor. - - - :return: The host of this UpdateConnectDescriptor. - :rtype: str - """ - return self._host - - @host.setter - def host(self, host): - """ - Sets the host of this UpdateConnectDescriptor. - Host or IP address of the connect descriptor. - - - :param host: The host of this UpdateConnectDescriptor. - :type: str - """ - self._host = host - - @property - def port(self): - """ - Gets the port of this UpdateConnectDescriptor. - Port of the connect descriptor. - - - :return: The port of this UpdateConnectDescriptor. - :rtype: int - """ - return self._port - - @port.setter - def port(self, port): - """ - Sets the port of this UpdateConnectDescriptor. - Port of the connect descriptor. - - - :param port: The port of this UpdateConnectDescriptor. - :type: int - """ - self._port = port - - @property - def database_service_name(self): - """ - Gets the database_service_name of this UpdateConnectDescriptor. - Database service name. - - - :return: The database_service_name of this UpdateConnectDescriptor. - :rtype: str - """ - return self._database_service_name - - @database_service_name.setter - def database_service_name(self, database_service_name): - """ - Sets the database_service_name of this UpdateConnectDescriptor. - Database service name. - - - :param database_service_name: The database_service_name of this UpdateConnectDescriptor. - :type: str - """ - self._database_service_name = database_service_name - - @property - def connect_string(self): - """ - Gets the connect_string of this UpdateConnectDescriptor. - Connect String. If specified, this will override the stored connect descriptor details. - If a Private Endpoint was specified in the Connection, the host entry should be a valid IP address. - Supported formats: - Easy connect: :/ - Long format: (description= (address=(port=)(host=))(connect_data=(service_name=))) - - - :return: The connect_string of this UpdateConnectDescriptor. - :rtype: str - """ - return self._connect_string - - @connect_string.setter - def connect_string(self, connect_string): - """ - Sets the connect_string of this UpdateConnectDescriptor. - Connect String. If specified, this will override the stored connect descriptor details. - If a Private Endpoint was specified in the Connection, the host entry should be a valid IP address. - Supported formats: - Easy connect: :/ - Long format: (description= (address=(port=)(host=))(connect_data=(service_name=))) - - - :param connect_string: The connect_string of this UpdateConnectDescriptor. - :type: str - """ - self._connect_string = connect_string - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/update_data_pump_settings.py b/src/oci/database_migration/models/update_data_pump_settings.py deleted file mode 100644 index 215865daef..0000000000 --- a/src/oci/database_migration/models/update_data_pump_settings.py +++ /dev/null @@ -1,253 +0,0 @@ -# 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: 20210929 - - -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 UpdateDataPumpSettings(object): - """ - Optional settings for Data Pump Export and Import jobs - """ - - #: A constant which can be used with the job_mode property of a UpdateDataPumpSettings. - #: This constant has a value of "FULL" - JOB_MODE_FULL = "FULL" - - #: A constant which can be used with the job_mode property of a UpdateDataPumpSettings. - #: This constant has a value of "SCHEMA" - JOB_MODE_SCHEMA = "SCHEMA" - - #: A constant which can be used with the job_mode property of a UpdateDataPumpSettings. - #: This constant has a value of "TABLE" - JOB_MODE_TABLE = "TABLE" - - #: A constant which can be used with the job_mode property of a UpdateDataPumpSettings. - #: This constant has a value of "TABLESPACE" - JOB_MODE_TABLESPACE = "TABLESPACE" - - #: A constant which can be used with the job_mode property of a UpdateDataPumpSettings. - #: This constant has a value of "TRANSPORTABLE" - JOB_MODE_TRANSPORTABLE = "TRANSPORTABLE" - - def __init__(self, **kwargs): - """ - Initializes a new UpdateDataPumpSettings object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param job_mode: - The value to assign to the job_mode property of this UpdateDataPumpSettings. - Allowed values for this property are: "FULL", "SCHEMA", "TABLE", "TABLESPACE", "TRANSPORTABLE" - :type job_mode: str - - :param data_pump_parameters: - The value to assign to the data_pump_parameters property of this UpdateDataPumpSettings. - :type data_pump_parameters: oci.database_migration.models.UpdateDataPumpParameters - - :param metadata_remaps: - The value to assign to the metadata_remaps property of this UpdateDataPumpSettings. - :type metadata_remaps: list[oci.database_migration.models.MetadataRemap] - - :param tablespace_details: - The value to assign to the tablespace_details property of this UpdateDataPumpSettings. - :type tablespace_details: oci.database_migration.models.UpdateTargetTypeTablespaceDetails - - :param export_directory_object: - The value to assign to the export_directory_object property of this UpdateDataPumpSettings. - :type export_directory_object: oci.database_migration.models.UpdateDirectoryObject - - :param import_directory_object: - The value to assign to the import_directory_object property of this UpdateDataPumpSettings. - :type import_directory_object: oci.database_migration.models.UpdateDirectoryObject - - """ - self.swagger_types = { - 'job_mode': 'str', - 'data_pump_parameters': 'UpdateDataPumpParameters', - 'metadata_remaps': 'list[MetadataRemap]', - 'tablespace_details': 'UpdateTargetTypeTablespaceDetails', - 'export_directory_object': 'UpdateDirectoryObject', - 'import_directory_object': 'UpdateDirectoryObject' - } - - self.attribute_map = { - 'job_mode': 'jobMode', - 'data_pump_parameters': 'dataPumpParameters', - 'metadata_remaps': 'metadataRemaps', - 'tablespace_details': 'tablespaceDetails', - 'export_directory_object': 'exportDirectoryObject', - 'import_directory_object': 'importDirectoryObject' - } - - self._job_mode = None - self._data_pump_parameters = None - self._metadata_remaps = None - self._tablespace_details = None - self._export_directory_object = None - self._import_directory_object = None - - @property - def job_mode(self): - """ - Gets the job_mode of this UpdateDataPumpSettings. - Data Pump job mode. - Refer to `Data Pump Export Modes `__ - - __ https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-export-utility.html#GUID-8E497131-6B9B-4CC8-AA50-35F480CAC2C4 - - Allowed values for this property are: "FULL", "SCHEMA", "TABLE", "TABLESPACE", "TRANSPORTABLE" - - - :return: The job_mode of this UpdateDataPumpSettings. - :rtype: str - """ - return self._job_mode - - @job_mode.setter - def job_mode(self, job_mode): - """ - Sets the job_mode of this UpdateDataPumpSettings. - Data Pump job mode. - Refer to `Data Pump Export Modes `__ - - __ https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-export-utility.html#GUID-8E497131-6B9B-4CC8-AA50-35F480CAC2C4 - - - :param job_mode: The job_mode of this UpdateDataPumpSettings. - :type: str - """ - allowed_values = ["FULL", "SCHEMA", "TABLE", "TABLESPACE", "TRANSPORTABLE"] - if not value_allowed_none_or_none_sentinel(job_mode, allowed_values): - raise ValueError( - f"Invalid value for `job_mode`, must be None or one of {allowed_values}" - ) - self._job_mode = job_mode - - @property - def data_pump_parameters(self): - """ - Gets the data_pump_parameters of this UpdateDataPumpSettings. - - :return: The data_pump_parameters of this UpdateDataPumpSettings. - :rtype: oci.database_migration.models.UpdateDataPumpParameters - """ - return self._data_pump_parameters - - @data_pump_parameters.setter - def data_pump_parameters(self, data_pump_parameters): - """ - Sets the data_pump_parameters of this UpdateDataPumpSettings. - - :param data_pump_parameters: The data_pump_parameters of this UpdateDataPumpSettings. - :type: oci.database_migration.models.UpdateDataPumpParameters - """ - self._data_pump_parameters = data_pump_parameters - - @property - def metadata_remaps(self): - """ - Gets the metadata_remaps of this UpdateDataPumpSettings. - Defines remappings to be applied to objects as they are processed. - Refer to `METADATA_REMAP Procedure `__ - If specified, the list will be replaced entirely. Empty list will remove stored Metadata Remap details. - - __ https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D - - - :return: The metadata_remaps of this UpdateDataPumpSettings. - :rtype: list[oci.database_migration.models.MetadataRemap] - """ - return self._metadata_remaps - - @metadata_remaps.setter - def metadata_remaps(self, metadata_remaps): - """ - Sets the metadata_remaps of this UpdateDataPumpSettings. - Defines remappings to be applied to objects as they are processed. - Refer to `METADATA_REMAP Procedure `__ - If specified, the list will be replaced entirely. Empty list will remove stored Metadata Remap details. - - __ https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D - - - :param metadata_remaps: The metadata_remaps of this UpdateDataPumpSettings. - :type: list[oci.database_migration.models.MetadataRemap] - """ - self._metadata_remaps = metadata_remaps - - @property - def tablespace_details(self): - """ - Gets the tablespace_details of this UpdateDataPumpSettings. - - :return: The tablespace_details of this UpdateDataPumpSettings. - :rtype: oci.database_migration.models.UpdateTargetTypeTablespaceDetails - """ - return self._tablespace_details - - @tablespace_details.setter - def tablespace_details(self, tablespace_details): - """ - Sets the tablespace_details of this UpdateDataPumpSettings. - - :param tablespace_details: The tablespace_details of this UpdateDataPumpSettings. - :type: oci.database_migration.models.UpdateTargetTypeTablespaceDetails - """ - self._tablespace_details = tablespace_details - - @property - def export_directory_object(self): - """ - Gets the export_directory_object of this UpdateDataPumpSettings. - - :return: The export_directory_object of this UpdateDataPumpSettings. - :rtype: oci.database_migration.models.UpdateDirectoryObject - """ - return self._export_directory_object - - @export_directory_object.setter - def export_directory_object(self, export_directory_object): - """ - Sets the export_directory_object of this UpdateDataPumpSettings. - - :param export_directory_object: The export_directory_object of this UpdateDataPumpSettings. - :type: oci.database_migration.models.UpdateDirectoryObject - """ - self._export_directory_object = export_directory_object - - @property - def import_directory_object(self): - """ - Gets the import_directory_object of this UpdateDataPumpSettings. - - :return: The import_directory_object of this UpdateDataPumpSettings. - :rtype: oci.database_migration.models.UpdateDirectoryObject - """ - return self._import_directory_object - - @import_directory_object.setter - def import_directory_object(self, import_directory_object): - """ - Sets the import_directory_object of this UpdateDataPumpSettings. - - :param import_directory_object: The import_directory_object of this UpdateDataPumpSettings. - :type: oci.database_migration.models.UpdateDirectoryObject - """ - self._import_directory_object = import_directory_object - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/update_data_transfer_medium_details.py b/src/oci/database_migration/models/update_data_transfer_medium_details.py deleted file mode 100644 index cfc1d8428d..0000000000 --- a/src/oci/database_migration/models/update_data_transfer_medium_details.py +++ /dev/null @@ -1,125 +0,0 @@ -# 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: 20210929 - - -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 UpdateDataTransferMediumDetails(object): - """ - Data Transfer Medium details for the Migration. - Only one type of data transfer medium can be specified, except for the case of Amazon RDS Oracle as source, - where Object Storage Details along with AwsS3Details are required. - If an empty object is specified, the stored Data Transfer Medium details will be removed. - """ - - def __init__(self, **kwargs): - """ - Initializes a new UpdateDataTransferMediumDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param database_link_details: - The value to assign to the database_link_details property of this UpdateDataTransferMediumDetails. - :type database_link_details: oci.database_migration.models.UpdateDatabaseLinkDetails - - :param object_storage_details: - The value to assign to the object_storage_details property of this UpdateDataTransferMediumDetails. - :type object_storage_details: oci.database_migration.models.UpdateObjectStoreBucket - - :param aws_s3_details: - The value to assign to the aws_s3_details property of this UpdateDataTransferMediumDetails. - :type aws_s3_details: oci.database_migration.models.UpdateAwsS3Details - - """ - self.swagger_types = { - 'database_link_details': 'UpdateDatabaseLinkDetails', - 'object_storage_details': 'UpdateObjectStoreBucket', - 'aws_s3_details': 'UpdateAwsS3Details' - } - - self.attribute_map = { - 'database_link_details': 'databaseLinkDetails', - 'object_storage_details': 'objectStorageDetails', - 'aws_s3_details': 'awsS3Details' - } - - self._database_link_details = None - self._object_storage_details = None - self._aws_s3_details = None - - @property - def database_link_details(self): - """ - Gets the database_link_details of this UpdateDataTransferMediumDetails. - - :return: The database_link_details of this UpdateDataTransferMediumDetails. - :rtype: oci.database_migration.models.UpdateDatabaseLinkDetails - """ - return self._database_link_details - - @database_link_details.setter - def database_link_details(self, database_link_details): - """ - Sets the database_link_details of this UpdateDataTransferMediumDetails. - - :param database_link_details: The database_link_details of this UpdateDataTransferMediumDetails. - :type: oci.database_migration.models.UpdateDatabaseLinkDetails - """ - self._database_link_details = database_link_details - - @property - def object_storage_details(self): - """ - Gets the object_storage_details of this UpdateDataTransferMediumDetails. - - :return: The object_storage_details of this UpdateDataTransferMediumDetails. - :rtype: oci.database_migration.models.UpdateObjectStoreBucket - """ - return self._object_storage_details - - @object_storage_details.setter - def object_storage_details(self, object_storage_details): - """ - Sets the object_storage_details of this UpdateDataTransferMediumDetails. - - :param object_storage_details: The object_storage_details of this UpdateDataTransferMediumDetails. - :type: oci.database_migration.models.UpdateObjectStoreBucket - """ - self._object_storage_details = object_storage_details - - @property - def aws_s3_details(self): - """ - Gets the aws_s3_details of this UpdateDataTransferMediumDetails. - - :return: The aws_s3_details of this UpdateDataTransferMediumDetails. - :rtype: oci.database_migration.models.UpdateAwsS3Details - """ - return self._aws_s3_details - - @aws_s3_details.setter - def aws_s3_details(self, aws_s3_details): - """ - Sets the aws_s3_details of this UpdateDataTransferMediumDetails. - - :param aws_s3_details: The aws_s3_details of this UpdateDataTransferMediumDetails. - :type: oci.database_migration.models.UpdateAwsS3Details - """ - self._aws_s3_details = aws_s3_details - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/update_database_link_details.py b/src/oci/database_migration/models/update_database_link_details.py deleted file mode 100644 index fe6195b958..0000000000 --- a/src/oci/database_migration/models/update_database_link_details.py +++ /dev/null @@ -1,99 +0,0 @@ -# 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: 20210929 - - -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 UpdateDatabaseLinkDetails(object): - """ - Optional details for updating a network database link from OCI database to on-premise database. - """ - - def __init__(self, **kwargs): - """ - Initializes a new UpdateDatabaseLinkDetails 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 UpdateDatabaseLinkDetails. - :type name: str - - :param wallet_bucket: - The value to assign to the wallet_bucket property of this UpdateDatabaseLinkDetails. - :type wallet_bucket: oci.database_migration.models.UpdateObjectStoreBucket - - """ - self.swagger_types = { - 'name': 'str', - 'wallet_bucket': 'UpdateObjectStoreBucket' - } - - self.attribute_map = { - 'name': 'name', - 'wallet_bucket': 'walletBucket' - } - - self._name = None - self._wallet_bucket = None - - @property - def name(self): - """ - Gets the name of this UpdateDatabaseLinkDetails. - Name of database link from OCI database to on-premise database. ODMS will create link, if the link does not already exist. - - - :return: The name of this UpdateDatabaseLinkDetails. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this UpdateDatabaseLinkDetails. - Name of database link from OCI database to on-premise database. ODMS will create link, if the link does not already exist. - - - :param name: The name of this UpdateDatabaseLinkDetails. - :type: str - """ - self._name = name - - @property - def wallet_bucket(self): - """ - Gets the wallet_bucket of this UpdateDatabaseLinkDetails. - - :return: The wallet_bucket of this UpdateDatabaseLinkDetails. - :rtype: oci.database_migration.models.UpdateObjectStoreBucket - """ - return self._wallet_bucket - - @wallet_bucket.setter - def wallet_bucket(self, wallet_bucket): - """ - Sets the wallet_bucket of this UpdateDatabaseLinkDetails. - - :param wallet_bucket: The wallet_bucket of this UpdateDatabaseLinkDetails. - :type: oci.database_migration.models.UpdateObjectStoreBucket - """ - self._wallet_bucket = wallet_bucket - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/update_dump_transfer_details.py b/src/oci/database_migration/models/update_dump_transfer_details.py deleted file mode 100644 index 9aabc9cb40..0000000000 --- a/src/oci/database_migration/models/update_dump_transfer_details.py +++ /dev/null @@ -1,126 +0,0 @@ -# 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: 20210929 - - -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 UpdateDumpTransferDetails(object): - """ - Optional additional properties for dump transfer. - """ - - def __init__(self, **kwargs): - """ - Initializes a new UpdateDumpTransferDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param source: - The value to assign to the source property of this UpdateDumpTransferDetails. - :type source: oci.database_migration.models.UpdateHostDumpTransferDetails - - :param target: - The value to assign to the target property of this UpdateDumpTransferDetails. - :type target: oci.database_migration.models.UpdateHostDumpTransferDetails - - :param shared_storage_mount_target_id: - The value to assign to the shared_storage_mount_target_id property of this UpdateDumpTransferDetails. - :type shared_storage_mount_target_id: str - - """ - self.swagger_types = { - 'source': 'UpdateHostDumpTransferDetails', - 'target': 'UpdateHostDumpTransferDetails', - 'shared_storage_mount_target_id': 'str' - } - - self.attribute_map = { - 'source': 'source', - 'target': 'target', - 'shared_storage_mount_target_id': 'sharedStorageMountTargetId' - } - - self._source = None - self._target = None - self._shared_storage_mount_target_id = None - - @property - def source(self): - """ - Gets the source of this UpdateDumpTransferDetails. - - :return: The source of this UpdateDumpTransferDetails. - :rtype: oci.database_migration.models.UpdateHostDumpTransferDetails - """ - return self._source - - @source.setter - def source(self, source): - """ - Sets the source of this UpdateDumpTransferDetails. - - :param source: The source of this UpdateDumpTransferDetails. - :type: oci.database_migration.models.UpdateHostDumpTransferDetails - """ - self._source = source - - @property - def target(self): - """ - Gets the target of this UpdateDumpTransferDetails. - - :return: The target of this UpdateDumpTransferDetails. - :rtype: oci.database_migration.models.UpdateHostDumpTransferDetails - """ - return self._target - - @target.setter - def target(self, target): - """ - Sets the target of this UpdateDumpTransferDetails. - - :param target: The target of this UpdateDumpTransferDetails. - :type: oci.database_migration.models.UpdateHostDumpTransferDetails - """ - self._target = target - - @property - def shared_storage_mount_target_id(self): - """ - Gets the shared_storage_mount_target_id of this UpdateDumpTransferDetails. - OCID of the shared storage mount target - - - :return: The shared_storage_mount_target_id of this UpdateDumpTransferDetails. - :rtype: str - """ - return self._shared_storage_mount_target_id - - @shared_storage_mount_target_id.setter - def shared_storage_mount_target_id(self, shared_storage_mount_target_id): - """ - Sets the shared_storage_mount_target_id of this UpdateDumpTransferDetails. - OCID of the shared storage mount target - - - :param shared_storage_mount_target_id: The shared_storage_mount_target_id of this UpdateDumpTransferDetails. - :type: str - """ - self._shared_storage_mount_target_id = shared_storage_mount_target_id - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/update_golden_gate_details.py b/src/oci/database_migration/models/update_golden_gate_details.py deleted file mode 100644 index 45fb6dec5f..0000000000 --- a/src/oci/database_migration/models/update_golden_gate_details.py +++ /dev/null @@ -1,95 +0,0 @@ -# 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: 20210929 - - -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 UpdateGoldenGateDetails(object): - """ - Details about Oracle GoldenGate Microservices. If an empty object is specified, the stored Golden Gate details will be removed. - """ - - def __init__(self, **kwargs): - """ - Initializes a new UpdateGoldenGateDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param hub: - The value to assign to the hub property of this UpdateGoldenGateDetails. - :type hub: oci.database_migration.models.UpdateGoldenGateHub - - :param settings: - The value to assign to the settings property of this UpdateGoldenGateDetails. - :type settings: oci.database_migration.models.UpdateGoldenGateSettings - - """ - self.swagger_types = { - 'hub': 'UpdateGoldenGateHub', - 'settings': 'UpdateGoldenGateSettings' - } - - self.attribute_map = { - 'hub': 'hub', - 'settings': 'settings' - } - - self._hub = None - self._settings = None - - @property - def hub(self): - """ - Gets the hub of this UpdateGoldenGateDetails. - - :return: The hub of this UpdateGoldenGateDetails. - :rtype: oci.database_migration.models.UpdateGoldenGateHub - """ - return self._hub - - @hub.setter - def hub(self, hub): - """ - Sets the hub of this UpdateGoldenGateDetails. - - :param hub: The hub of this UpdateGoldenGateDetails. - :type: oci.database_migration.models.UpdateGoldenGateHub - """ - self._hub = hub - - @property - def settings(self): - """ - Gets the settings of this UpdateGoldenGateDetails. - - :return: The settings of this UpdateGoldenGateDetails. - :rtype: oci.database_migration.models.UpdateGoldenGateSettings - """ - return self._settings - - @settings.setter - def settings(self, settings): - """ - Sets the settings of this UpdateGoldenGateDetails. - - :param settings: The settings of this UpdateGoldenGateDetails. - :type: oci.database_migration.models.UpdateGoldenGateSettings - """ - self._settings = settings - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/update_golden_gate_hub.py b/src/oci/database_migration/models/update_golden_gate_hub.py deleted file mode 100644 index e6f061f9ae..0000000000 --- a/src/oci/database_migration/models/update_golden_gate_hub.py +++ /dev/null @@ -1,275 +0,0 @@ -# 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: 20210929 - - -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 UpdateGoldenGateHub(object): - """ - Details about Oracle GoldenGate Microservices. - """ - - def __init__(self, **kwargs): - """ - Initializes a new UpdateGoldenGateHub object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param rest_admin_credentials: - The value to assign to the rest_admin_credentials property of this UpdateGoldenGateHub. - :type rest_admin_credentials: oci.database_migration.models.UpdateAdminCredentials - - :param source_db_admin_credentials: - The value to assign to the source_db_admin_credentials property of this UpdateGoldenGateHub. - :type source_db_admin_credentials: oci.database_migration.models.UpdateAdminCredentials - - :param source_container_db_admin_credentials: - The value to assign to the source_container_db_admin_credentials property of this UpdateGoldenGateHub. - :type source_container_db_admin_credentials: oci.database_migration.models.UpdateAdminCredentials - - :param target_db_admin_credentials: - The value to assign to the target_db_admin_credentials property of this UpdateGoldenGateHub. - :type target_db_admin_credentials: oci.database_migration.models.UpdateAdminCredentials - - :param url: - The value to assign to the url property of this UpdateGoldenGateHub. - :type url: str - - :param source_microservices_deployment_name: - The value to assign to the source_microservices_deployment_name property of this UpdateGoldenGateHub. - :type source_microservices_deployment_name: str - - :param target_microservices_deployment_name: - The value to assign to the target_microservices_deployment_name property of this UpdateGoldenGateHub. - :type target_microservices_deployment_name: str - - :param compute_id: - The value to assign to the compute_id property of this UpdateGoldenGateHub. - :type compute_id: str - - """ - self.swagger_types = { - 'rest_admin_credentials': 'UpdateAdminCredentials', - 'source_db_admin_credentials': 'UpdateAdminCredentials', - 'source_container_db_admin_credentials': 'UpdateAdminCredentials', - 'target_db_admin_credentials': 'UpdateAdminCredentials', - 'url': 'str', - 'source_microservices_deployment_name': 'str', - 'target_microservices_deployment_name': 'str', - 'compute_id': 'str' - } - - self.attribute_map = { - 'rest_admin_credentials': 'restAdminCredentials', - 'source_db_admin_credentials': 'sourceDbAdminCredentials', - 'source_container_db_admin_credentials': 'sourceContainerDbAdminCredentials', - 'target_db_admin_credentials': 'targetDbAdminCredentials', - 'url': 'url', - 'source_microservices_deployment_name': 'sourceMicroservicesDeploymentName', - 'target_microservices_deployment_name': 'targetMicroservicesDeploymentName', - 'compute_id': 'computeId' - } - - self._rest_admin_credentials = None - self._source_db_admin_credentials = None - self._source_container_db_admin_credentials = None - self._target_db_admin_credentials = None - self._url = None - self._source_microservices_deployment_name = None - self._target_microservices_deployment_name = None - self._compute_id = None - - @property - def rest_admin_credentials(self): - """ - Gets the rest_admin_credentials of this UpdateGoldenGateHub. - - :return: The rest_admin_credentials of this UpdateGoldenGateHub. - :rtype: oci.database_migration.models.UpdateAdminCredentials - """ - return self._rest_admin_credentials - - @rest_admin_credentials.setter - def rest_admin_credentials(self, rest_admin_credentials): - """ - Sets the rest_admin_credentials of this UpdateGoldenGateHub. - - :param rest_admin_credentials: The rest_admin_credentials of this UpdateGoldenGateHub. - :type: oci.database_migration.models.UpdateAdminCredentials - """ - self._rest_admin_credentials = rest_admin_credentials - - @property - def source_db_admin_credentials(self): - """ - Gets the source_db_admin_credentials of this UpdateGoldenGateHub. - - :return: The source_db_admin_credentials of this UpdateGoldenGateHub. - :rtype: oci.database_migration.models.UpdateAdminCredentials - """ - return self._source_db_admin_credentials - - @source_db_admin_credentials.setter - def source_db_admin_credentials(self, source_db_admin_credentials): - """ - Sets the source_db_admin_credentials of this UpdateGoldenGateHub. - - :param source_db_admin_credentials: The source_db_admin_credentials of this UpdateGoldenGateHub. - :type: oci.database_migration.models.UpdateAdminCredentials - """ - self._source_db_admin_credentials = source_db_admin_credentials - - @property - def source_container_db_admin_credentials(self): - """ - Gets the source_container_db_admin_credentials of this UpdateGoldenGateHub. - - :return: The source_container_db_admin_credentials of this UpdateGoldenGateHub. - :rtype: oci.database_migration.models.UpdateAdminCredentials - """ - return self._source_container_db_admin_credentials - - @source_container_db_admin_credentials.setter - def source_container_db_admin_credentials(self, source_container_db_admin_credentials): - """ - Sets the source_container_db_admin_credentials of this UpdateGoldenGateHub. - - :param source_container_db_admin_credentials: The source_container_db_admin_credentials of this UpdateGoldenGateHub. - :type: oci.database_migration.models.UpdateAdminCredentials - """ - self._source_container_db_admin_credentials = source_container_db_admin_credentials - - @property - def target_db_admin_credentials(self): - """ - Gets the target_db_admin_credentials of this UpdateGoldenGateHub. - - :return: The target_db_admin_credentials of this UpdateGoldenGateHub. - :rtype: oci.database_migration.models.UpdateAdminCredentials - """ - return self._target_db_admin_credentials - - @target_db_admin_credentials.setter - def target_db_admin_credentials(self, target_db_admin_credentials): - """ - Sets the target_db_admin_credentials of this UpdateGoldenGateHub. - - :param target_db_admin_credentials: The target_db_admin_credentials of this UpdateGoldenGateHub. - :type: oci.database_migration.models.UpdateAdminCredentials - """ - self._target_db_admin_credentials = target_db_admin_credentials - - @property - def url(self): - """ - Gets the url of this UpdateGoldenGateHub. - Oracle GoldenGate hub's REST endpoint. - Refer to https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA - - - :return: The url of this UpdateGoldenGateHub. - :rtype: str - """ - return self._url - - @url.setter - def url(self, url): - """ - Sets the url of this UpdateGoldenGateHub. - Oracle GoldenGate hub's REST endpoint. - Refer to https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA - - - :param url: The url of this UpdateGoldenGateHub. - :type: str - """ - self._url = url - - @property - def source_microservices_deployment_name(self): - """ - Gets the source_microservices_deployment_name of this UpdateGoldenGateHub. - Name of GoldenGate deployment to operate on source database - - - :return: The source_microservices_deployment_name of this UpdateGoldenGateHub. - :rtype: str - """ - return self._source_microservices_deployment_name - - @source_microservices_deployment_name.setter - def source_microservices_deployment_name(self, source_microservices_deployment_name): - """ - Sets the source_microservices_deployment_name of this UpdateGoldenGateHub. - Name of GoldenGate deployment to operate on source database - - - :param source_microservices_deployment_name: The source_microservices_deployment_name of this UpdateGoldenGateHub. - :type: str - """ - self._source_microservices_deployment_name = source_microservices_deployment_name - - @property - def target_microservices_deployment_name(self): - """ - Gets the target_microservices_deployment_name of this UpdateGoldenGateHub. - Name of GoldenGate deployment to operate on target database - - - :return: The target_microservices_deployment_name of this UpdateGoldenGateHub. - :rtype: str - """ - return self._target_microservices_deployment_name - - @target_microservices_deployment_name.setter - def target_microservices_deployment_name(self, target_microservices_deployment_name): - """ - Sets the target_microservices_deployment_name of this UpdateGoldenGateHub. - Name of GoldenGate deployment to operate on target database - - - :param target_microservices_deployment_name: The target_microservices_deployment_name of this UpdateGoldenGateHub. - :type: str - """ - self._target_microservices_deployment_name = target_microservices_deployment_name - - @property - def compute_id(self): - """ - Gets the compute_id of this UpdateGoldenGateHub. - OCID of GoldenGate compute instance. An empty value will remove the stored computeId. - - - :return: The compute_id of this UpdateGoldenGateHub. - :rtype: str - """ - return self._compute_id - - @compute_id.setter - def compute_id(self, compute_id): - """ - Sets the compute_id of this UpdateGoldenGateHub. - OCID of GoldenGate compute instance. An empty value will remove the stored computeId. - - - :param compute_id: The compute_id of this UpdateGoldenGateHub. - :type: str - """ - self._compute_id = compute_id - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/update_golden_gate_service_details.py b/src/oci/database_migration/models/update_golden_gate_service_details.py deleted file mode 100644 index 97e665b844..0000000000 --- a/src/oci/database_migration/models/update_golden_gate_service_details.py +++ /dev/null @@ -1,149 +0,0 @@ -# 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: 20210929 - - -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 UpdateGoldenGateServiceDetails(object): - """ - Details about the Oracle GoldenGate Microservices. If an empty object is specified, the stored Golden Gate details will be removed. - """ - - def __init__(self, **kwargs): - """ - Initializes a new UpdateGoldenGateServiceDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param source_db_credentials: - The value to assign to the source_db_credentials property of this UpdateGoldenGateServiceDetails. - :type source_db_credentials: oci.database_migration.models.DatabaseCredentials - - :param source_container_db_credentials: - The value to assign to the source_container_db_credentials property of this UpdateGoldenGateServiceDetails. - :type source_container_db_credentials: oci.database_migration.models.DatabaseCredentials - - :param target_db_credentials: - The value to assign to the target_db_credentials property of this UpdateGoldenGateServiceDetails. - :type target_db_credentials: oci.database_migration.models.DatabaseCredentials - - :param settings: - The value to assign to the settings property of this UpdateGoldenGateServiceDetails. - :type settings: oci.database_migration.models.UpdateGoldenGateSettings - - """ - self.swagger_types = { - 'source_db_credentials': 'DatabaseCredentials', - 'source_container_db_credentials': 'DatabaseCredentials', - 'target_db_credentials': 'DatabaseCredentials', - 'settings': 'UpdateGoldenGateSettings' - } - - self.attribute_map = { - 'source_db_credentials': 'sourceDbCredentials', - 'source_container_db_credentials': 'sourceContainerDbCredentials', - 'target_db_credentials': 'targetDbCredentials', - 'settings': 'settings' - } - - self._source_db_credentials = None - self._source_container_db_credentials = None - self._target_db_credentials = None - self._settings = None - - @property - def source_db_credentials(self): - """ - Gets the source_db_credentials of this UpdateGoldenGateServiceDetails. - - :return: The source_db_credentials of this UpdateGoldenGateServiceDetails. - :rtype: oci.database_migration.models.DatabaseCredentials - """ - return self._source_db_credentials - - @source_db_credentials.setter - def source_db_credentials(self, source_db_credentials): - """ - Sets the source_db_credentials of this UpdateGoldenGateServiceDetails. - - :param source_db_credentials: The source_db_credentials of this UpdateGoldenGateServiceDetails. - :type: oci.database_migration.models.DatabaseCredentials - """ - self._source_db_credentials = source_db_credentials - - @property - def source_container_db_credentials(self): - """ - Gets the source_container_db_credentials of this UpdateGoldenGateServiceDetails. - - :return: The source_container_db_credentials of this UpdateGoldenGateServiceDetails. - :rtype: oci.database_migration.models.DatabaseCredentials - """ - return self._source_container_db_credentials - - @source_container_db_credentials.setter - def source_container_db_credentials(self, source_container_db_credentials): - """ - Sets the source_container_db_credentials of this UpdateGoldenGateServiceDetails. - - :param source_container_db_credentials: The source_container_db_credentials of this UpdateGoldenGateServiceDetails. - :type: oci.database_migration.models.DatabaseCredentials - """ - self._source_container_db_credentials = source_container_db_credentials - - @property - def target_db_credentials(self): - """ - Gets the target_db_credentials of this UpdateGoldenGateServiceDetails. - - :return: The target_db_credentials of this UpdateGoldenGateServiceDetails. - :rtype: oci.database_migration.models.DatabaseCredentials - """ - return self._target_db_credentials - - @target_db_credentials.setter - def target_db_credentials(self, target_db_credentials): - """ - Sets the target_db_credentials of this UpdateGoldenGateServiceDetails. - - :param target_db_credentials: The target_db_credentials of this UpdateGoldenGateServiceDetails. - :type: oci.database_migration.models.DatabaseCredentials - """ - self._target_db_credentials = target_db_credentials - - @property - def settings(self): - """ - Gets the settings of this UpdateGoldenGateServiceDetails. - - :return: The settings of this UpdateGoldenGateServiceDetails. - :rtype: oci.database_migration.models.UpdateGoldenGateSettings - """ - return self._settings - - @settings.setter - def settings(self, settings): - """ - Sets the settings of this UpdateGoldenGateServiceDetails. - - :param settings: The settings of this UpdateGoldenGateServiceDetails. - :type: oci.database_migration.models.UpdateGoldenGateSettings - """ - self._settings = settings - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/update_golden_gate_settings.py b/src/oci/database_migration/models/update_golden_gate_settings.py deleted file mode 100644 index b7b8a2100f..0000000000 --- a/src/oci/database_migration/models/update_golden_gate_settings.py +++ /dev/null @@ -1,127 +0,0 @@ -# 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: 20210929 - - -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 UpdateGoldenGateSettings(object): - """ - Optional settings for Oracle GoldenGate processes - If an empty object is specified, the stored GoldenGate Settings details will be removed. - """ - - def __init__(self, **kwargs): - """ - Initializes a new UpdateGoldenGateSettings object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param extract: - The value to assign to the extract property of this UpdateGoldenGateSettings. - :type extract: oci.database_migration.models.UpdateExtract - - :param replicat: - The value to assign to the replicat property of this UpdateGoldenGateSettings. - :type replicat: oci.database_migration.models.UpdateReplicat - - :param acceptable_lag: - The value to assign to the acceptable_lag property of this UpdateGoldenGateSettings. - :type acceptable_lag: int - - """ - self.swagger_types = { - 'extract': 'UpdateExtract', - 'replicat': 'UpdateReplicat', - 'acceptable_lag': 'int' - } - - self.attribute_map = { - 'extract': 'extract', - 'replicat': 'replicat', - 'acceptable_lag': 'acceptableLag' - } - - self._extract = None - self._replicat = None - self._acceptable_lag = None - - @property - def extract(self): - """ - Gets the extract of this UpdateGoldenGateSettings. - - :return: The extract of this UpdateGoldenGateSettings. - :rtype: oci.database_migration.models.UpdateExtract - """ - return self._extract - - @extract.setter - def extract(self, extract): - """ - Sets the extract of this UpdateGoldenGateSettings. - - :param extract: The extract of this UpdateGoldenGateSettings. - :type: oci.database_migration.models.UpdateExtract - """ - self._extract = extract - - @property - def replicat(self): - """ - Gets the replicat of this UpdateGoldenGateSettings. - - :return: The replicat of this UpdateGoldenGateSettings. - :rtype: oci.database_migration.models.UpdateReplicat - """ - return self._replicat - - @replicat.setter - def replicat(self, replicat): - """ - Sets the replicat of this UpdateGoldenGateSettings. - - :param replicat: The replicat of this UpdateGoldenGateSettings. - :type: oci.database_migration.models.UpdateReplicat - """ - self._replicat = replicat - - @property - def acceptable_lag(self): - """ - Gets the acceptable_lag of this UpdateGoldenGateSettings. - ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the specified value in seconds. - - - :return: The acceptable_lag of this UpdateGoldenGateSettings. - :rtype: int - """ - return self._acceptable_lag - - @acceptable_lag.setter - def acceptable_lag(self, acceptable_lag): - """ - Sets the acceptable_lag of this UpdateGoldenGateSettings. - ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the specified value in seconds. - - - :param acceptable_lag: The acceptable_lag of this UpdateGoldenGateSettings. - :type: int - """ - self._acceptable_lag = acceptable_lag - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/update_private_endpoint.py b/src/oci/database_migration/models/update_private_endpoint.py deleted file mode 100644 index 4dc2e195ab..0000000000 --- a/src/oci/database_migration/models/update_private_endpoint.py +++ /dev/null @@ -1,151 +0,0 @@ -# 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: 20210929 - - -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 UpdatePrivateEndpoint(object): - """ - OCI Private Endpoint configuration details. - An empty object would result in the removal of the stored details. - """ - - def __init__(self, **kwargs): - """ - Initializes a new UpdatePrivateEndpoint object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param compartment_id: - The value to assign to the compartment_id property of this UpdatePrivateEndpoint. - :type compartment_id: str - - :param vcn_id: - The value to assign to the vcn_id property of this UpdatePrivateEndpoint. - :type vcn_id: str - - :param subnet_id: - The value to assign to the subnet_id property of this UpdatePrivateEndpoint. - :type subnet_id: str - - """ - self.swagger_types = { - 'compartment_id': 'str', - 'vcn_id': 'str', - 'subnet_id': 'str' - } - - self.attribute_map = { - 'compartment_id': 'compartmentId', - 'vcn_id': 'vcnId', - 'subnet_id': 'subnetId' - } - - self._compartment_id = None - self._vcn_id = None - self._subnet_id = None - - @property - def compartment_id(self): - """ - Gets the compartment_id of this UpdatePrivateEndpoint. - The `OCID`__ of the compartment to contain the - private endpoint. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :return: The compartment_id of this UpdatePrivateEndpoint. - :rtype: str - """ - return self._compartment_id - - @compartment_id.setter - def compartment_id(self, compartment_id): - """ - Sets the compartment_id of this UpdatePrivateEndpoint. - The `OCID`__ of the compartment to contain the - private endpoint. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :param compartment_id: The compartment_id of this UpdatePrivateEndpoint. - :type: str - """ - self._compartment_id = compartment_id - - @property - def vcn_id(self): - """ - Gets the vcn_id of this UpdatePrivateEndpoint. - The `OCID`__ of the VCN where the Private Endpoint will be bound to. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :return: The vcn_id of this UpdatePrivateEndpoint. - :rtype: str - """ - return self._vcn_id - - @vcn_id.setter - def vcn_id(self, vcn_id): - """ - Sets the vcn_id of this UpdatePrivateEndpoint. - The `OCID`__ of the VCN where the Private Endpoint will be bound to. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :param vcn_id: The vcn_id of this UpdatePrivateEndpoint. - :type: str - """ - self._vcn_id = vcn_id - - @property - def subnet_id(self): - """ - Gets the subnet_id of this UpdatePrivateEndpoint. - The `OCID`__ of the customer's subnet where the private endpoint VNIC - will reside. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :return: The subnet_id of this UpdatePrivateEndpoint. - :rtype: str - """ - return self._subnet_id - - @subnet_id.setter - def subnet_id(self, subnet_id): - """ - Sets the subnet_id of this UpdatePrivateEndpoint. - The `OCID`__ of the customer's subnet where the private endpoint VNIC - will reside. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :param subnet_id: The subnet_id of this UpdatePrivateEndpoint. - :type: str - """ - self._subnet_id = subnet_id - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/update_ssh_details.py b/src/oci/database_migration/models/update_ssh_details.py deleted file mode 100644 index 45ed3f342e..0000000000 --- a/src/oci/database_migration/models/update_ssh_details.py +++ /dev/null @@ -1,165 +0,0 @@ -# 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: 20210929 - - -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 UpdateSshDetails(object): - """ - Details of the SSH key that will be used. - """ - - def __init__(self, **kwargs): - """ - Initializes a new UpdateSshDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param host: - The value to assign to the host property of this UpdateSshDetails. - :type host: str - - :param sshkey: - The value to assign to the sshkey property of this UpdateSshDetails. - :type sshkey: str - - :param user: - The value to assign to the user property of this UpdateSshDetails. - :type user: str - - :param sudo_location: - The value to assign to the sudo_location property of this UpdateSshDetails. - :type sudo_location: str - - """ - self.swagger_types = { - 'host': 'str', - 'sshkey': 'str', - 'user': 'str', - 'sudo_location': 'str' - } - - self.attribute_map = { - 'host': 'host', - 'sshkey': 'sshkey', - 'user': 'user', - 'sudo_location': 'sudoLocation' - } - - self._host = None - self._sshkey = None - self._user = None - self._sudo_location = None - - @property - def host(self): - """ - Gets the host of this UpdateSshDetails. - Name of the host the SSH key is valid for. - - - :return: The host of this UpdateSshDetails. - :rtype: str - """ - return self._host - - @host.setter - def host(self, host): - """ - Sets the host of this UpdateSshDetails. - Name of the host the SSH key is valid for. - - - :param host: The host of this UpdateSshDetails. - :type: str - """ - self._host = host - - @property - def sshkey(self): - """ - Gets the sshkey of this UpdateSshDetails. - Private SSH key string. - - - :return: The sshkey of this UpdateSshDetails. - :rtype: str - """ - return self._sshkey - - @sshkey.setter - def sshkey(self, sshkey): - """ - Sets the sshkey of this UpdateSshDetails. - Private SSH key string. - - - :param sshkey: The sshkey of this UpdateSshDetails. - :type: str - """ - self._sshkey = sshkey - - @property - def user(self): - """ - Gets the user of this UpdateSshDetails. - SSH user - - - :return: The user of this UpdateSshDetails. - :rtype: str - """ - return self._user - - @user.setter - def user(self, user): - """ - Sets the user of this UpdateSshDetails. - SSH user - - - :param user: The user of this UpdateSshDetails. - :type: str - """ - self._user = user - - @property - def sudo_location(self): - """ - Gets the sudo_location of this UpdateSshDetails. - Sudo location - - - :return: The sudo_location of this UpdateSshDetails. - :rtype: str - """ - return self._sudo_location - - @sudo_location.setter - def sudo_location(self, sudo_location): - """ - Sets the sudo_location of this UpdateSshDetails. - Sudo location - - - :param sudo_location: The sudo_location of this UpdateSshDetails. - :type: str - """ - self._sudo_location = sudo_location - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/update_vault_details.py b/src/oci/database_migration/models/update_vault_details.py deleted file mode 100644 index 6e7806066d..0000000000 --- a/src/oci/database_migration/models/update_vault_details.py +++ /dev/null @@ -1,134 +0,0 @@ -# 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: 20210929 - - -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 UpdateVaultDetails(object): - """ - OCI Vault details to store migration and connection credentials secrets. An empty object would result in the removal of the stored details. - """ - - def __init__(self, **kwargs): - """ - Initializes a new UpdateVaultDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param compartment_id: - The value to assign to the compartment_id property of this UpdateVaultDetails. - :type compartment_id: str - - :param vault_id: - The value to assign to the vault_id property of this UpdateVaultDetails. - :type vault_id: str - - :param key_id: - The value to assign to the key_id property of this UpdateVaultDetails. - :type key_id: str - - """ - self.swagger_types = { - 'compartment_id': 'str', - 'vault_id': 'str', - 'key_id': 'str' - } - - self.attribute_map = { - 'compartment_id': 'compartmentId', - 'vault_id': 'vaultId', - 'key_id': 'keyId' - } - - self._compartment_id = None - self._vault_id = None - self._key_id = None - - @property - def compartment_id(self): - """ - Gets the compartment_id of this UpdateVaultDetails. - OCID of the compartment where the secret containing the credentials will be created. - - - :return: The compartment_id of this UpdateVaultDetails. - :rtype: str - """ - return self._compartment_id - - @compartment_id.setter - def compartment_id(self, compartment_id): - """ - Sets the compartment_id of this UpdateVaultDetails. - OCID of the compartment where the secret containing the credentials will be created. - - - :param compartment_id: The compartment_id of this UpdateVaultDetails. - :type: str - """ - self._compartment_id = compartment_id - - @property - def vault_id(self): - """ - Gets the vault_id of this UpdateVaultDetails. - OCID of the vault - - - :return: The vault_id of this UpdateVaultDetails. - :rtype: str - """ - return self._vault_id - - @vault_id.setter - def vault_id(self, vault_id): - """ - Sets the vault_id of this UpdateVaultDetails. - OCID of the vault - - - :param vault_id: The vault_id of this UpdateVaultDetails. - :type: str - """ - self._vault_id = vault_id - - @property - def key_id(self): - """ - Gets the key_id of this UpdateVaultDetails. - OCID of the vault encryption key - - - :return: The key_id of this UpdateVaultDetails. - :rtype: str - """ - return self._key_id - - @key_id.setter - def key_id(self, key_id): - """ - Sets the key_id of this UpdateVaultDetails. - OCID of the vault encryption key - - - :param key_id: The key_id of this UpdateVaultDetails. - :type: str - """ - self._key_id = key_id - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_migration/models/vault_details.py b/src/oci/database_migration/models/vault_details.py deleted file mode 100644 index f362d2c07c..0000000000 --- a/src/oci/database_migration/models/vault_details.py +++ /dev/null @@ -1,134 +0,0 @@ -# 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: 20210929 - - -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 VaultDetails(object): - """ - OCI Vault details to store migration and connection credentials secrets - """ - - def __init__(self, **kwargs): - """ - Initializes a new VaultDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param compartment_id: - The value to assign to the compartment_id property of this VaultDetails. - :type compartment_id: str - - :param vault_id: - The value to assign to the vault_id property of this VaultDetails. - :type vault_id: str - - :param key_id: - The value to assign to the key_id property of this VaultDetails. - :type key_id: str - - """ - self.swagger_types = { - 'compartment_id': 'str', - 'vault_id': 'str', - 'key_id': 'str' - } - - self.attribute_map = { - 'compartment_id': 'compartmentId', - 'vault_id': 'vaultId', - 'key_id': 'keyId' - } - - self._compartment_id = None - self._vault_id = None - self._key_id = None - - @property - def compartment_id(self): - """ - **[Required]** Gets the compartment_id of this VaultDetails. - OCID of the compartment where the secret containing the credentials will be created. - - - :return: The compartment_id of this VaultDetails. - :rtype: str - """ - return self._compartment_id - - @compartment_id.setter - def compartment_id(self, compartment_id): - """ - Sets the compartment_id of this VaultDetails. - OCID of the compartment where the secret containing the credentials will be created. - - - :param compartment_id: The compartment_id of this VaultDetails. - :type: str - """ - self._compartment_id = compartment_id - - @property - def vault_id(self): - """ - **[Required]** Gets the vault_id of this VaultDetails. - OCID of the vault - - - :return: The vault_id of this VaultDetails. - :rtype: str - """ - return self._vault_id - - @vault_id.setter - def vault_id(self, vault_id): - """ - Sets the vault_id of this VaultDetails. - OCID of the vault - - - :param vault_id: The vault_id of this VaultDetails. - :type: str - """ - self._vault_id = vault_id - - @property - def key_id(self): - """ - **[Required]** Gets the key_id of this VaultDetails. - OCID of the vault encryption key - - - :return: The key_id of this VaultDetails. - :rtype: str - """ - return self._key_id - - @key_id.setter - def key_id(self, key_id): - """ - Sets the key_id of this VaultDetails. - OCID of the vault encryption key - - - :param key_id: The key_id of this VaultDetails. - :type: str - """ - self._key_id = key_id - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_tools/models/database_tools_allowed_network_sources.py b/src/oci/database_tools/models/database_tools_allowed_network_sources.py deleted file mode 100644 index accde96968..0000000000 --- a/src/oci/database_tools/models/database_tools_allowed_network_sources.py +++ /dev/null @@ -1,107 +0,0 @@ -# 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. - - -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 DatabaseToolsAllowedNetworkSources(object): - """ - Allow to restrict access to only requests that come from the specified public or virtual source IP addresses. - """ - - def __init__(self, **kwargs): - """ - Initializes a new DatabaseToolsAllowedNetworkSources object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param public_source_list: - The value to assign to the public_source_list property of this DatabaseToolsAllowedNetworkSources. - :type public_source_list: list[str] - - :param virtual_source_list: - The value to assign to the virtual_source_list property of this DatabaseToolsAllowedNetworkSources. - :type virtual_source_list: list[oci.database_tools.models.DatabaseToolsVirtualSource] - - """ - self.swagger_types = { - 'public_source_list': 'list[str]', - 'virtual_source_list': 'list[DatabaseToolsVirtualSource]' - } - - self.attribute_map = { - 'public_source_list': 'publicSourceList', - 'virtual_source_list': 'virtualSourceList' - } - - self._public_source_list = None - self._virtual_source_list = None - - @property - def public_source_list(self): - """ - Gets the public_source_list of this DatabaseToolsAllowedNetworkSources. - A list of allowed public IPs and CIDR blocks. - - - :return: The public_source_list of this DatabaseToolsAllowedNetworkSources. - :rtype: list[str] - """ - return self._public_source_list - - @public_source_list.setter - def public_source_list(self, public_source_list): - """ - Sets the public_source_list of this DatabaseToolsAllowedNetworkSources. - A list of allowed public IPs and CIDR blocks. - - - :param public_source_list: The public_source_list of this DatabaseToolsAllowedNetworkSources. - :type: list[str] - """ - self._public_source_list = public_source_list - - @property - def virtual_source_list(self): - """ - Gets the virtual_source_list of this DatabaseToolsAllowedNetworkSources. - A list of allowed VCN `OCID`__ and IP ranges pairs. - Example:`\"vcnId\": \"ocid1.vcn.oc1.iad.aaaaaaaaexampleuniqueID\", \"ipRanges\": [ \"129.213.39.0/24\" ]` - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :return: The virtual_source_list of this DatabaseToolsAllowedNetworkSources. - :rtype: list[oci.database_tools.models.DatabaseToolsVirtualSource] - """ - return self._virtual_source_list - - @virtual_source_list.setter - def virtual_source_list(self, virtual_source_list): - """ - Sets the virtual_source_list of this DatabaseToolsAllowedNetworkSources. - A list of allowed VCN `OCID`__ and IP ranges pairs. - Example:`\"vcnId\": \"ocid1.vcn.oc1.iad.aaaaaaaaexampleuniqueID\", \"ipRanges\": [ \"129.213.39.0/24\" ]` - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :param virtual_source_list: The virtual_source_list of this DatabaseToolsAllowedNetworkSources. - :type: list[oci.database_tools.models.DatabaseToolsVirtualSource] - """ - self._virtual_source_list = virtual_source_list - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/database_tools/models/database_tools_virtual_source.py b/src/oci/database_tools/models/database_tools_virtual_source.py deleted file mode 100644 index c4cba84f6c..0000000000 --- a/src/oci/database_tools/models/database_tools_virtual_source.py +++ /dev/null @@ -1,107 +0,0 @@ -# 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. - - -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 DatabaseToolsVirtualSource(object): - """ - A VCN `OCID`__ and a list of CIDR blocks. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - """ - - def __init__(self, **kwargs): - """ - Initializes a new DatabaseToolsVirtualSource 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 DatabaseToolsVirtualSource. - :type vcn_id: str - - :param ip_ranges: - The value to assign to the ip_ranges property of this DatabaseToolsVirtualSource. - :type ip_ranges: list[str] - - """ - self.swagger_types = { - 'vcn_id': 'str', - 'ip_ranges': 'list[str]' - } - - self.attribute_map = { - 'vcn_id': 'vcnId', - 'ip_ranges': 'ipRanges' - } - - self._vcn_id = None - self._ip_ranges = None - - @property - def vcn_id(self): - """ - Gets the vcn_id of this DatabaseToolsVirtualSource. - The `OCID`__ of a VCN. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :return: The vcn_id of this DatabaseToolsVirtualSource. - :rtype: str - """ - return self._vcn_id - - @vcn_id.setter - def vcn_id(self, vcn_id): - """ - Sets the vcn_id of this DatabaseToolsVirtualSource. - The `OCID`__ of a VCN. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :param vcn_id: The vcn_id of this DatabaseToolsVirtualSource. - :type: str - """ - self._vcn_id = vcn_id - - @property - def ip_ranges(self): - """ - Gets the ip_ranges of this DatabaseToolsVirtualSource. - A list of CIDR blocks. - - - :return: The ip_ranges of this DatabaseToolsVirtualSource. - :rtype: list[str] - """ - return self._ip_ranges - - @ip_ranges.setter - def ip_ranges(self, ip_ranges): - """ - Sets the ip_ranges of this DatabaseToolsVirtualSource. - A list of CIDR blocks. - - - :param ip_ranges: The ip_ranges of this DatabaseToolsVirtualSource. - :type: list[str] - """ - self._ip_ranges = ip_ranges - - 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/devops/models/run_pipeline_deploy_stage_execution_progress.py b/src/oci/devops/models/run_pipeline_deploy_stage_execution_progress.py deleted file mode 100644 index 2cf4b8a920..0000000000 --- a/src/oci/devops/models/run_pipeline_deploy_stage_execution_progress.py +++ /dev/null @@ -1,98 +0,0 @@ -# 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. - -from .deploy_stage_execution_progress import DeployStageExecutionProgress -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 RunPipelineDeployStageExecutionProgress(DeployStageExecutionProgress): - """ - Specifies run deployment pipleline stage specific exeution details. - """ - - def __init__(self, **kwargs): - """ - Initializes a new RunPipelineDeployStageExecutionProgress object with values from keyword arguments. The default value of the :py:attr:`~oci.devops.models.RunPipelineDeployStageExecutionProgress.deploy_stage_type` attribute - of this class is ``RUN_DEPLOYMENT_PIPELINE`` and it should not be changed. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param deploy_stage_display_name: - The value to assign to the deploy_stage_display_name property of this RunPipelineDeployStageExecutionProgress. - :type deploy_stage_display_name: str - - :param deploy_stage_type: - The value to assign to the deploy_stage_type property of this RunPipelineDeployStageExecutionProgress. - :type deploy_stage_type: str - - :param deploy_stage_id: - The value to assign to the deploy_stage_id property of this RunPipelineDeployStageExecutionProgress. - :type deploy_stage_id: str - - :param time_started: - The value to assign to the time_started property of this RunPipelineDeployStageExecutionProgress. - :type time_started: datetime - - :param time_finished: - The value to assign to the time_finished property of this RunPipelineDeployStageExecutionProgress. - :type time_finished: datetime - - :param status: - The value to assign to the status property of this RunPipelineDeployStageExecutionProgress. - Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", "ROLLBACK_IN_PROGRESS", "ROLLBACK_SUCCEEDED", "ROLLBACK_FAILED" - :type status: str - - :param deploy_stage_predecessors: - The value to assign to the deploy_stage_predecessors property of this RunPipelineDeployStageExecutionProgress. - :type deploy_stage_predecessors: oci.devops.models.DeployStagePredecessorCollection - - :param deploy_stage_execution_progress_details: - The value to assign to the deploy_stage_execution_progress_details property of this RunPipelineDeployStageExecutionProgress. - :type deploy_stage_execution_progress_details: list[oci.devops.models.DeployStageExecutionProgressDetails] - - """ - self.swagger_types = { - 'deploy_stage_display_name': 'str', - 'deploy_stage_type': 'str', - 'deploy_stage_id': 'str', - 'time_started': 'datetime', - 'time_finished': 'datetime', - 'status': 'str', - 'deploy_stage_predecessors': 'DeployStagePredecessorCollection', - 'deploy_stage_execution_progress_details': 'list[DeployStageExecutionProgressDetails]' - } - - self.attribute_map = { - 'deploy_stage_display_name': 'deployStageDisplayName', - 'deploy_stage_type': 'deployStageType', - 'deploy_stage_id': 'deployStageId', - 'time_started': 'timeStarted', - 'time_finished': 'timeFinished', - 'status': 'status', - 'deploy_stage_predecessors': 'deployStagePredecessors', - 'deploy_stage_execution_progress_details': 'deployStageExecutionProgressDetails' - } - - self._deploy_stage_display_name = None - self._deploy_stage_type = None - self._deploy_stage_id = None - self._time_started = None - self._time_finished = None - self._status = None - self._deploy_stage_predecessors = None - self._deploy_stage_execution_progress_details = None - self._deploy_stage_type = 'RUN_DEPLOYMENT_PIPELINE' - - 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/devops/models/run_validation_test_on_compute_instance_deploy_stage_execution_progress.py b/src/oci/devops/models/run_validation_test_on_compute_instance_deploy_stage_execution_progress.py deleted file mode 100644 index 7f0b8b6281..0000000000 --- a/src/oci/devops/models/run_validation_test_on_compute_instance_deploy_stage_execution_progress.py +++ /dev/null @@ -1,98 +0,0 @@ -# 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. - -from .deploy_stage_execution_progress import DeployStageExecutionProgress -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 RunValidationTestOnComputeInstanceDeployStageExecutionProgress(DeployStageExecutionProgress): - """ - Specifies run validation test on an compute instance stage specific execution details. - """ - - def __init__(self, **kwargs): - """ - Initializes a new RunValidationTestOnComputeInstanceDeployStageExecutionProgress object with values from keyword arguments. The default value of the :py:attr:`~oci.devops.models.RunValidationTestOnComputeInstanceDeployStageExecutionProgress.deploy_stage_type` attribute - of this class is ``RUN_VALIDATION_TEST_ON_COMPUTE_INSTANCE`` and it should not be changed. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param deploy_stage_display_name: - The value to assign to the deploy_stage_display_name property of this RunValidationTestOnComputeInstanceDeployStageExecutionProgress. - :type deploy_stage_display_name: str - - :param deploy_stage_type: - The value to assign to the deploy_stage_type property of this RunValidationTestOnComputeInstanceDeployStageExecutionProgress. - :type deploy_stage_type: str - - :param deploy_stage_id: - The value to assign to the deploy_stage_id property of this RunValidationTestOnComputeInstanceDeployStageExecutionProgress. - :type deploy_stage_id: str - - :param time_started: - The value to assign to the time_started property of this RunValidationTestOnComputeInstanceDeployStageExecutionProgress. - :type time_started: datetime - - :param time_finished: - The value to assign to the time_finished property of this RunValidationTestOnComputeInstanceDeployStageExecutionProgress. - :type time_finished: datetime - - :param status: - The value to assign to the status property of this RunValidationTestOnComputeInstanceDeployStageExecutionProgress. - Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", "ROLLBACK_IN_PROGRESS", "ROLLBACK_SUCCEEDED", "ROLLBACK_FAILED" - :type status: str - - :param deploy_stage_predecessors: - The value to assign to the deploy_stage_predecessors property of this RunValidationTestOnComputeInstanceDeployStageExecutionProgress. - :type deploy_stage_predecessors: oci.devops.models.DeployStagePredecessorCollection - - :param deploy_stage_execution_progress_details: - The value to assign to the deploy_stage_execution_progress_details property of this RunValidationTestOnComputeInstanceDeployStageExecutionProgress. - :type deploy_stage_execution_progress_details: list[oci.devops.models.DeployStageExecutionProgressDetails] - - """ - self.swagger_types = { - 'deploy_stage_display_name': 'str', - 'deploy_stage_type': 'str', - 'deploy_stage_id': 'str', - 'time_started': 'datetime', - 'time_finished': 'datetime', - 'status': 'str', - 'deploy_stage_predecessors': 'DeployStagePredecessorCollection', - 'deploy_stage_execution_progress_details': 'list[DeployStageExecutionProgressDetails]' - } - - self.attribute_map = { - 'deploy_stage_display_name': 'deployStageDisplayName', - 'deploy_stage_type': 'deployStageType', - 'deploy_stage_id': 'deployStageId', - 'time_started': 'timeStarted', - 'time_finished': 'timeFinished', - 'status': 'status', - 'deploy_stage_predecessors': 'deployStagePredecessors', - 'deploy_stage_execution_progress_details': 'deployStageExecutionProgressDetails' - } - - self._deploy_stage_display_name = None - self._deploy_stage_type = None - self._deploy_stage_id = None - self._time_started = None - self._time_finished = None - self._status = None - self._deploy_stage_predecessors = None - self._deploy_stage_execution_progress_details = None - self._deploy_stage_type = 'RUN_VALIDATION_TEST_ON_COMPUTE_INSTANCE' - - 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/dns/dns_client.py b/src/oci/dns/dns_client.py index 56d49af9af..5b31efaecd 100644 --- a/src/oci/dns/dns_client.py +++ b/src/oci/dns/dns_client.py @@ -5914,6 +5914,11 @@ def list_zones(self, compartment_id, **kwargs): :param str tsig_key_id: (optional) Search for zones that are associated with a TSIG key. + :param str dnssec_state: (optional) + Search for zones that have the given `DnssecState`. + + Allowed values are: "ENABLED", "DISABLED" + :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. @@ -5956,7 +5961,8 @@ def list_zones(self, compartment_id, **kwargs): "sort_order", "scope", "view_id", - "tsig_key_id" + "tsig_key_id", + "dnssec_state" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -5998,6 +6004,13 @@ def list_zones(self, compartment_id, **kwargs): f"Invalid value for `scope`, must be one of { scope_allowed_values }" ) + if 'dnssec_state' in kwargs: + dnssec_state_allowed_values = ["ENABLED", "DISABLED"] + if kwargs['dnssec_state'] not in dnssec_state_allowed_values: + raise ValueError( + f"Invalid value for `dnssec_state`, must be one of { dnssec_state_allowed_values }" + ) + query_params = { "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing), @@ -6012,7 +6025,8 @@ def list_zones(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "scope": kwargs.get("scope", missing), "viewId": kwargs.get("view_id", missing), - "tsigKeyId": kwargs.get("tsig_key_id", missing) + "tsigKeyId": kwargs.get("tsig_key_id", missing), + "dnssecState": kwargs.get("dnssec_state", missing) } query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} @@ -6547,6 +6561,327 @@ def patch_zone_records(self, zone_name_or_id, patch_zone_records_details, **kwar api_reference_link=api_reference_link, required_arguments=required_arguments) + def promote_zone_dnssec_key_version(self, zone_id, promote_zone_dnssec_key_version_details, **kwargs): + """ + Promotes a specified `DnssecKeyVersion` on the zone. + + If the `DnssecKeyVersion` identified in the request body is a key signing key (KSK) that is replacing + another `DnssecKeyVersion`, then the old `DnssecKeyVersion` is scheduled for removal from the zone. + + For key signing keys (KSKs), you must create the DS record with the new key information **before** promoting + the new key to establish a chain of trust. To avoid a service disruption, remove the old DS record as soon + as its TTL (time to live) expires. + + For more information, see `DNSSEC`__. + + __ https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnssec.htm + + + :param str zone_id: (required) + The OCID of the target zone. + + :param oci.dns.models.PromoteZoneDnssecKeyVersionDetails promote_zone_dnssec_key_version_details: (required) + Details for promoting a `DnssecKeyVersion`. + + :param str if_match: (optional) + The `If-Match` header field makes the request method conditional on the + existence of at least one current representation of the target resource, + when the field-value is `*`, or having a current representation of the + target resource that has an entity-tag matching a member of the list of + entity-tags provided in the field-value. + + :param str if_unmodified_since: (optional) + The `If-Unmodified-Since` header field makes the request method + conditional on the selected representation's last modification date being + earlier than or equal to the date provided in the field-value. This + field accomplishes the same purpose as If-Match for cases where the user + agent does not have an entity-tag for the representation. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case + of a timeout or server error without risk of executing that same action + again. Retry tokens expire after 24 hours, but can be invalidated before + then due to conflicting operations (for example, if a resource has been + deleted and purged from the system, then a retry of the original creation + request may be rejected). + + :param str opc_request_id: (optional) + Unique Oracle-assigned identifier for the request. If you need + to contact Oracle about a particular request, please provide + the request ID. + + :param str scope: (optional) + Specifies to operate only on resources that have a matching DNS scope. + + Allowed values are: "GLOBAL", "PRIVATE" + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use promote_zone_dnssec_key_version API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['zoneId'] + resource_path = "/zones/{zoneId}/actions/promoteDnssecKeyVersion" + method = "POST" + operation_name = "promote_zone_dnssec_key_version" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/dns/20180115/Zone/PromoteZoneDnssecKeyVersion" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "if_unmodified_since", + "opc_retry_token", + "opc_request_id", + "scope" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"promote_zone_dnssec_key_version got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "zoneId": zone_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + if 'scope' in kwargs: + scope_allowed_values = ["GLOBAL", "PRIVATE"] + if kwargs['scope'] not in scope_allowed_values: + raise ValueError( + f"Invalid value for `scope`, must be one of { scope_allowed_values }" + ) + + query_params = { + "scope": kwargs.get("scope", missing) + } + query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "If-Match": kwargs.get("if_match", missing), + "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=promote_zone_dnssec_key_version_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, + query_params=query_params, + header_params=header_params, + body=promote_zone_dnssec_key_version_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def stage_zone_dnssec_key_version(self, zone_id, stage_zone_dnssec_key_version_details, **kwargs): + """ + Stages a new `DnssecKeyVersion` on the zone. Staging is a process that generates a new \"successor\" key version + that replaces an existing \"predecessor\" key version. + **Note:** A new key-signing key (KSK) version is inert until you update the parent zone DS records. + + For more information, see the `DNSSEC`__ documentation. + + __ https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnssec.htm + + + :param str zone_id: (required) + The OCID of the target zone. + + :param oci.dns.models.StageZoneDnssecKeyVersionDetails stage_zone_dnssec_key_version_details: (required) + Details for staging a DnssecKeyVersion. + + :param str if_match: (optional) + The `If-Match` header field makes the request method conditional on the + existence of at least one current representation of the target resource, + when the field-value is `*`, or having a current representation of the + target resource that has an entity-tag matching a member of the list of + entity-tags provided in the field-value. + + :param str if_unmodified_since: (optional) + The `If-Unmodified-Since` header field makes the request method + conditional on the selected representation's last modification date being + earlier than or equal to the date provided in the field-value. This + field accomplishes the same purpose as If-Match for cases where the user + agent does not have an entity-tag for the representation. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case + of a timeout or server error without risk of executing that same action + again. Retry tokens expire after 24 hours, but can be invalidated before + then due to conflicting operations (for example, if a resource has been + deleted and purged from the system, then a retry of the original creation + request may be rejected). + + :param str opc_request_id: (optional) + Unique Oracle-assigned identifier for the request. If you need + to contact Oracle about a particular request, please provide + the request ID. + + :param str scope: (optional) + Specifies to operate only on resources that have a matching DNS scope. + + Allowed values are: "GLOBAL", "PRIVATE" + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use stage_zone_dnssec_key_version API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['zoneId'] + resource_path = "/zones/{zoneId}/actions/stageDnssecKeyVersion" + method = "POST" + operation_name = "stage_zone_dnssec_key_version" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/dns/20180115/Zone/StageZoneDnssecKeyVersion" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "if_unmodified_since", + "opc_retry_token", + "opc_request_id", + "scope" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"stage_zone_dnssec_key_version got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "zoneId": zone_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + if 'scope' in kwargs: + scope_allowed_values = ["GLOBAL", "PRIVATE"] + if kwargs['scope'] not in scope_allowed_values: + raise ValueError( + f"Invalid value for `scope`, must be one of { scope_allowed_values }" + ) + + query_params = { + "scope": kwargs.get("scope", missing) + } + query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "If-Match": kwargs.get("if_match", missing), + "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=stage_zone_dnssec_key_version_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, + query_params=query_params, + header_params=header_params, + body=stage_zone_dnssec_key_version_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_domain_records(self, zone_name_or_id, domain, update_domain_records_details, **kwargs): """ Replaces records in the specified zone at a domain with the records specified in the request body. diff --git a/src/oci/dns/dns_client_composite_operations.py b/src/oci/dns/dns_client_composite_operations.py index 22fb9f2a01..f6c8f7c49c 100644 --- a/src/oci/dns/dns_client_composite_operations.py +++ b/src/oci/dns/dns_client_composite_operations.py @@ -25,6 +25,202 @@ def __init__(self, client, **kwargs): """ self.client = client + def change_resolver_compartment_and_wait_for_work_request(self, resolver_id, change_resolver_compartment_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.change_resolver_compartment` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + + :param str resolver_id: (required) + The OCID of the target resolver. + + :param oci.dns.models.ChangeResolverCompartmentDetails change_resolver_compartment_details: (required) + Details for moving a resolver, along with its protected default view and endpoints, into a + different compartment. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.change_resolver_compartment` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.change_resolver_compartment(resolver_id, change_resolver_compartment_details, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] + try: + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def change_steering_policy_compartment_and_wait_for_work_request(self, steering_policy_id, change_steering_policy_compartment_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.change_steering_policy_compartment` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + + :param str steering_policy_id: (required) + The OCID of the target steering policy. + + :param oci.dns.models.ChangeSteeringPolicyCompartmentDetails change_steering_policy_compartment_details: (required) + Details for moving a steering policy into a different compartment. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.change_steering_policy_compartment` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.change_steering_policy_compartment(steering_policy_id, change_steering_policy_compartment_details, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] + try: + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def change_view_compartment_and_wait_for_work_request(self, view_id, change_view_compartment_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.change_view_compartment` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + + :param str view_id: (required) + The OCID of the target view. + + :param oci.dns.models.ChangeViewCompartmentDetails change_view_compartment_details: (required) + Details for moving a view into a different compartment. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.change_view_compartment` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.change_view_compartment(view_id, change_view_compartment_details, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] + try: + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def change_zone_compartment_and_wait_for_work_request(self, zone_id, change_zone_compartment_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.change_zone_compartment` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + + :param str zone_id: (required) + The OCID of the target zone. + + :param oci.dns.models.ChangeZoneCompartmentDetails change_zone_compartment_details: (required) + Details for moving a zone into a different compartment. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.change_zone_compartment` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.change_zone_compartment(zone_id, change_zone_compartment_details, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] + try: + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def create_resolver_endpoint_and_wait_for_work_request(self, resolver_id, create_resolver_endpoint_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.create_resolver_endpoint` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + + :param str resolver_id: (required) + The OCID of the target resolver. + + :param oci.dns.models.CreateResolverEndpointDetails create_resolver_endpoint_details: (required) + Details for creating a new resolver endpoint. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.create_resolver_endpoint` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.create_resolver_endpoint(resolver_id, create_resolver_endpoint_details, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] + try: + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def create_resolver_endpoint_and_wait_for_state(self, resolver_id, create_resolver_endpoint_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.dns.DnsClient.create_resolver_endpoint` and waits for the :py:class:`~oci.dns.models.ResolverEndpoint` acted upon @@ -70,6 +266,42 @@ def create_resolver_endpoint_and_wait_for_state(self, resolver_id, create_resolv except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def create_steering_policy_and_wait_for_work_request(self, create_steering_policy_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.create_steering_policy` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + + :param oci.dns.models.CreateSteeringPolicyDetails create_steering_policy_details: (required) + Details for creating a new steering policy. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.create_steering_policy` + + :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_steering_policy(create_steering_policy_details, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] + try: + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def create_steering_policy_and_wait_for_state(self, create_steering_policy_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.dns.DnsClient.create_steering_policy` and waits for the :py:class:`~oci.dns.models.SteeringPolicy` acted upon @@ -112,6 +344,42 @@ def create_steering_policy_and_wait_for_state(self, create_steering_policy_detai except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def create_steering_policy_attachment_and_wait_for_work_request(self, create_steering_policy_attachment_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.create_steering_policy_attachment` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + + :param oci.dns.models.CreateSteeringPolicyAttachmentDetails create_steering_policy_attachment_details: (required) + Details for creating a new steering policy attachment. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.create_steering_policy_attachment` + + :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_steering_policy_attachment(create_steering_policy_attachment_details, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] + try: + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def create_steering_policy_attachment_and_wait_for_state(self, create_steering_policy_attachment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.dns.DnsClient.create_steering_policy_attachment` and waits for the :py:class:`~oci.dns.models.SteeringPolicyAttachment` acted upon @@ -154,6 +422,42 @@ def create_steering_policy_attachment_and_wait_for_state(self, create_steering_p except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def create_tsig_key_and_wait_for_work_request(self, create_tsig_key_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.create_tsig_key` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + + :param oci.dns.models.CreateTsigKeyDetails create_tsig_key_details: (required) + Details for creating a new TSIG key. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.create_tsig_key` + + :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_tsig_key(create_tsig_key_details, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] + try: + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def create_tsig_key_and_wait_for_state(self, create_tsig_key_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.dns.DnsClient.create_tsig_key` and waits for the :py:class:`~oci.dns.models.TsigKey` acted upon @@ -196,6 +500,42 @@ def create_tsig_key_and_wait_for_state(self, create_tsig_key_details, wait_for_s except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def create_view_and_wait_for_work_request(self, create_view_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.create_view` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + + :param oci.dns.models.CreateViewDetails create_view_details: (required) + Details for creating a new view. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.create_view` + + :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_view(create_view_details, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] + try: + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def create_view_and_wait_for_state(self, create_view_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.dns.DnsClient.create_view` and waits for the :py:class:`~oci.dns.models.View` acted upon @@ -238,6 +578,42 @@ def create_view_and_wait_for_state(self, create_view_details, wait_for_states=[] except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def create_zone_and_wait_for_work_request(self, create_zone_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.create_zone` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + + :param oci.dns.models.CreateZoneBaseDetails create_zone_details: (required) + Details for creating a new zone. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.create_zone` + + :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_zone(create_zone_details, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] + try: + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def create_zone_and_wait_for_state(self, create_zone_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.dns.DnsClient.create_zone` and waits for the :py:class:`~oci.dns.models.Zone` acted upon @@ -280,16 +656,95 @@ def create_zone_and_wait_for_state(self, create_zone_details, wait_for_states=[] except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) - def delete_steering_policy_and_wait_for_state(self, steering_policy_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + def create_zone_from_zone_file_and_wait_for_work_request(self, compartment_id, create_zone_from_zone_file_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.create_zone_from_zone_file` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + + :param str compartment_id: (required) + The OCID of the compartment the resource belongs to. + + :param stream create_zone_from_zone_file_details: (required) + The zone file contents. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.create_zone_from_zone_file` + + :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_zone_from_zone_file(compartment_id, create_zone_from_zone_file_details, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] + try: + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def delete_resolver_endpoint_and_wait_for_work_request(self, resolver_id, resolver_endpoint_name, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.delete_resolver_endpoint` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + + :param str resolver_id: (required) + The OCID of the target resolver. + + :param str resolver_endpoint_name: (required) + The name of the target resolver endpoint. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.delete_resolver_endpoint` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.delete_resolver_endpoint(resolver_id, resolver_endpoint_name, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] + try: + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def delete_steering_policy_and_wait_for_work_request(self, steering_policy_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): """ - Calls :py:func:`~oci.dns.DnsClient.delete_steering_policy` and waits for the :py:class:`~oci.dns.models.SteeringPolicy` acted upon + Calls :py:func:`~oci.dns.DnsClient.delete_steering_policy` and waits for the oci.work_requests.models.WorkRequest to enter the given state(s). :param str steering_policy_id: (required) The OCID of the target steering policy. - :param list[str] wait_for_states: - An array of states to wait on. These should be valid values for :py:attr:`~oci.dns.models.SteeringPolicy.lifecycle_state` + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] :param dict operation_kwargs: A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.delete_steering_policy` @@ -298,280 +753,281 @@ def delete_steering_policy_and_wait_for_state(self, steering_policy_id, wait_for 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 """ - initial_get_result = self.client.get_steering_policy(steering_policy_id) - operation_result = None + operation_result = self.client.delete_steering_policy(steering_policy_id, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] try: - operation_result = self.client.delete_steering_policy(steering_policy_id, **operation_kwargs) - except oci.exceptions.ServiceError as e: - if e.status == 404: - return WAIT_RESOURCE_NOT_FOUND - else: - raise e + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) - if not wait_for_states: - return operation_result - lowered_wait_for_states = [w.lower() for w in wait_for_states] + def delete_steering_policy_attachment_and_wait_for_work_request(self, steering_policy_attachment_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.delete_steering_policy_attachment` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + :param str steering_policy_attachment_id: (required) + The OCID of the target steering policy attachment. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.delete_steering_policy_attachment` + + :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.delete_steering_policy_attachment(steering_policy_attachment_id, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] try: - if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False): - self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_steering_policy, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended") - else: - """ - If the user does not send in this value, we set it to True by default. - We are doing this because during a delete resource scenario and waiting on its state, the service can - return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail - """ - waiter_kwargs["succeed_on_not_found"] = True waiter_result = oci.wait_until( - self.client, - initial_get_result, # noqa: F821 - evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states, + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, **waiter_kwargs ) - result_to_return = waiter_result + return waiter_result + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) - return result_to_return - except (NameError, TypeError) as e: - if not e.args: - e.args = ('',) - e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', ) + def delete_tsig_key_and_wait_for_work_request(self, tsig_key_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.delete_tsig_key` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + + :param str tsig_key_id: (required) + The OCID of the target TSIG key. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.delete_tsig_key` + + :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.delete_tsig_key(tsig_key_id, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] + try: + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result + except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def delete_view_and_wait_for_work_request(self, view_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.delete_view` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + + :param str view_id: (required) + The OCID of the target view. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.delete_view` + + :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.delete_view(view_id, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] + try: + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) - def delete_steering_policy_attachment_and_wait_for_state(self, steering_policy_attachment_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + def delete_zone_and_wait_for_work_request(self, zone_name_or_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): """ - Calls :py:func:`~oci.dns.DnsClient.delete_steering_policy_attachment` and waits for the :py:class:`~oci.dns.models.SteeringPolicyAttachment` acted upon + Calls :py:func:`~oci.dns.DnsClient.delete_zone` and waits for the oci.work_requests.models.WorkRequest to enter the given state(s). - :param str steering_policy_attachment_id: (required) - The OCID of the target steering policy attachment. + :param str zone_name_or_id: (required) + The name or OCID of the target zone. - :param list[str] wait_for_states: - An array of states to wait on. These should be valid values for :py:attr:`~oci.dns.models.SteeringPolicyAttachment.lifecycle_state` + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] :param dict operation_kwargs: - A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.delete_steering_policy_attachment` + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.delete_zone` :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 """ - initial_get_result = self.client.get_steering_policy_attachment(steering_policy_attachment_id) - operation_result = None - try: - operation_result = self.client.delete_steering_policy_attachment(steering_policy_attachment_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: + operation_result = self.client.delete_zone(zone_name_or_id, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: return operation_result - lowered_wait_for_states = [w.lower() for w in wait_for_states] - + work_request_id = operation_result.headers['opc-work-request-id'] try: - if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False): - self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_steering_policy_attachment, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended") - else: - """ - If the user does not send in this value, we set it to True by default. - We are doing this because during a delete resource scenario and waiting on its state, the service can - return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail - """ - waiter_kwargs["succeed_on_not_found"] = True waiter_result = oci.wait_until( - self.client, - initial_get_result, # noqa: F821 - evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states, + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, **waiter_kwargs ) - result_to_return = waiter_result - - return result_to_return - except (NameError, TypeError) as e: - if not e.args: - e.args = ('',) - e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', ) - raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + return waiter_result except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) - def delete_tsig_key_and_wait_for_state(self, tsig_key_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + def promote_zone_dnssec_key_version_and_wait_for_work_request(self, zone_id, promote_zone_dnssec_key_version_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): """ - Calls :py:func:`~oci.dns.DnsClient.delete_tsig_key` and waits for the :py:class:`~oci.dns.models.TsigKey` acted upon + Calls :py:func:`~oci.dns.DnsClient.promote_zone_dnssec_key_version` and waits for the oci.work_requests.models.WorkRequest to enter the given state(s). - :param str tsig_key_id: (required) - The OCID of the target TSIG key. + :param str zone_id: (required) + The OCID of the target zone. - :param list[str] wait_for_states: - An array of states to wait on. These should be valid values for :py:attr:`~oci.dns.models.TsigKey.lifecycle_state` + :param oci.dns.models.PromoteZoneDnssecKeyVersionDetails promote_zone_dnssec_key_version_details: (required) + Details for promoting a `DnssecKeyVersion`. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] :param dict operation_kwargs: - A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.delete_tsig_key` + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.promote_zone_dnssec_key_version` :param dict waiter_kwargs: A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait """ - initial_get_result = self.client.get_tsig_key(tsig_key_id) - operation_result = None - try: - operation_result = self.client.delete_tsig_key(tsig_key_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: + operation_result = self.client.promote_zone_dnssec_key_version(zone_id, promote_zone_dnssec_key_version_details, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: return operation_result - lowered_wait_for_states = [w.lower() for w in wait_for_states] - + work_request_id = operation_result.headers['opc-work-request-id'] try: - if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False): - self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_tsig_key, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended") - else: - """ - If the user does not send in this value, we set it to True by default. - We are doing this because during a delete resource scenario and waiting on its state, the service can - return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail - """ - waiter_kwargs["succeed_on_not_found"] = True waiter_result = oci.wait_until( - self.client, - initial_get_result, # noqa: F821 - evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states, + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, **waiter_kwargs ) - result_to_return = waiter_result - - return result_to_return - except (NameError, TypeError) as e: - if not e.args: - e.args = ('',) - e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', ) - raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + return waiter_result except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) - def delete_view_and_wait_for_state(self, view_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + def stage_zone_dnssec_key_version_and_wait_for_work_request(self, zone_id, stage_zone_dnssec_key_version_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): """ - Calls :py:func:`~oci.dns.DnsClient.delete_view` and waits for the :py:class:`~oci.dns.models.View` acted upon + Calls :py:func:`~oci.dns.DnsClient.stage_zone_dnssec_key_version` and waits for the oci.work_requests.models.WorkRequest to enter the given state(s). - :param str view_id: (required) - The OCID of the target view. + :param str zone_id: (required) + The OCID of the target zone. - :param list[str] wait_for_states: - An array of states to wait on. These should be valid values for :py:attr:`~oci.dns.models.View.lifecycle_state` + :param oci.dns.models.StageZoneDnssecKeyVersionDetails stage_zone_dnssec_key_version_details: (required) + Details for staging a DnssecKeyVersion. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] :param dict operation_kwargs: - A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.delete_view` + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.stage_zone_dnssec_key_version` :param dict waiter_kwargs: A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait """ - initial_get_result = self.client.get_view(view_id) - operation_result = None - try: - operation_result = self.client.delete_view(view_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: + operation_result = self.client.stage_zone_dnssec_key_version(zone_id, stage_zone_dnssec_key_version_details, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: return operation_result - lowered_wait_for_states = [w.lower() for w in wait_for_states] - + work_request_id = operation_result.headers['opc-work-request-id'] try: - if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False): - self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_view, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended") - else: - """ - If the user does not send in this value, we set it to True by default. - We are doing this because during a delete resource scenario and waiting on its state, the service can - return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail - """ - waiter_kwargs["succeed_on_not_found"] = True waiter_result = oci.wait_until( - self.client, - initial_get_result, # noqa: F821 - evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states, + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, **waiter_kwargs ) - result_to_return = waiter_result - - return result_to_return - except (NameError, TypeError) as e: - if not e.args: - e.args = ('',) - e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', ) - raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + return waiter_result except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) - def delete_zone_and_wait_for_state(self, zone_name_or_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + def update_resolver_and_wait_for_work_request(self, resolver_id, update_resolver_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): """ - Calls :py:func:`~oci.dns.DnsClient.delete_zone` and waits for the :py:class:`~oci.dns.models.Zone` acted upon + Calls :py:func:`~oci.dns.DnsClient.update_resolver` and waits for the oci.work_requests.models.WorkRequest to enter the given state(s). - :param str zone_name_or_id: (required) - The name or OCID of the target zone. + :param str resolver_id: (required) + The OCID of the target resolver. - :param list[str] wait_for_states: - An array of states to wait on. These should be valid values for :py:attr:`~oci.dns.models.Zone.lifecycle_state` + :param oci.dns.models.UpdateResolverDetails update_resolver_details: (required) + New data for the resolver. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] :param dict operation_kwargs: - A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.delete_zone` + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.update_resolver` :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 """ - initial_get_result = self.client.get_zone(zone_name_or_id) - operation_result = None - try: - operation_result = self.client.delete_zone(zone_name_or_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: + operation_result = self.client.update_resolver(resolver_id, update_resolver_details, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: return operation_result - lowered_wait_for_states = [w.lower() for w in wait_for_states] - + work_request_id = operation_result.headers['opc-work-request-id'] try: - if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False): - self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_zone, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended") - else: - """ - If the user does not send in this value, we set it to True by default. - We are doing this because during a delete resource scenario and waiting on its state, the service can - return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail - """ - waiter_kwargs["succeed_on_not_found"] = True waiter_result = oci.wait_until( - self.client, - initial_get_result, # noqa: F821 - evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states, + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, **waiter_kwargs ) - result_to_return = waiter_result - - return result_to_return - except (NameError, TypeError) as e: - if not e.args: - e.args = ('',) - e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', ) - raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + return waiter_result except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) @@ -620,6 +1076,48 @@ def update_resolver_and_wait_for_state(self, resolver_id, update_resolver_detail except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def update_resolver_endpoint_and_wait_for_work_request(self, resolver_id, resolver_endpoint_name, update_resolver_endpoint_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.update_resolver_endpoint` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + + :param str resolver_id: (required) + The OCID of the target resolver. + + :param str resolver_endpoint_name: (required) + The name of the target resolver endpoint. + + :param oci.dns.models.UpdateResolverEndpointDetails update_resolver_endpoint_details: (required) + New data for the resolver endpoint. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.update_resolver_endpoint` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.update_resolver_endpoint(resolver_id, resolver_endpoint_name, update_resolver_endpoint_details, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] + try: + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def update_resolver_endpoint_and_wait_for_state(self, resolver_id, resolver_endpoint_name, update_resolver_endpoint_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.dns.DnsClient.update_resolver_endpoint` and waits for the :py:class:`~oci.dns.models.ResolverEndpoint` acted upon @@ -668,6 +1166,45 @@ def update_resolver_endpoint_and_wait_for_state(self, resolver_id, resolver_endp except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def update_steering_policy_and_wait_for_work_request(self, steering_policy_id, update_steering_policy_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.update_steering_policy` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + + :param str steering_policy_id: (required) + The OCID of the target steering policy. + + :param oci.dns.models.UpdateSteeringPolicyDetails update_steering_policy_details: (required) + New data for the steering policy. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.update_steering_policy` + + :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_steering_policy(steering_policy_id, update_steering_policy_details, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] + try: + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def update_steering_policy_and_wait_for_state(self, steering_policy_id, update_steering_policy_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.dns.DnsClient.update_steering_policy` and waits for the :py:class:`~oci.dns.models.SteeringPolicy` acted upon @@ -713,6 +1250,45 @@ def update_steering_policy_and_wait_for_state(self, steering_policy_id, update_s except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def update_steering_policy_attachment_and_wait_for_work_request(self, steering_policy_attachment_id, update_steering_policy_attachment_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.update_steering_policy_attachment` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + + :param str steering_policy_attachment_id: (required) + The OCID of the target steering policy attachment. + + :param oci.dns.models.UpdateSteeringPolicyAttachmentDetails update_steering_policy_attachment_details: (required) + New data for the steering policy attachment. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.update_steering_policy_attachment` + + :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_steering_policy_attachment(steering_policy_attachment_id, update_steering_policy_attachment_details, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] + try: + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def update_steering_policy_attachment_and_wait_for_state(self, steering_policy_attachment_id, update_steering_policy_attachment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.dns.DnsClient.update_steering_policy_attachment` and waits for the :py:class:`~oci.dns.models.SteeringPolicyAttachment` acted upon @@ -758,6 +1334,45 @@ def update_steering_policy_attachment_and_wait_for_state(self, steering_policy_a except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def update_tsig_key_and_wait_for_work_request(self, tsig_key_id, update_tsig_key_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.update_tsig_key` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + + :param str tsig_key_id: (required) + The OCID of the target TSIG key. + + :param oci.dns.models.UpdateTsigKeyDetails update_tsig_key_details: (required) + New data for the TSIG key. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.update_tsig_key` + + :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_tsig_key(tsig_key_id, update_tsig_key_details, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] + try: + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def update_tsig_key_and_wait_for_state(self, tsig_key_id, update_tsig_key_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.dns.DnsClient.update_tsig_key` and waits for the :py:class:`~oci.dns.models.TsigKey` acted upon @@ -803,6 +1418,45 @@ def update_tsig_key_and_wait_for_state(self, tsig_key_id, update_tsig_key_detail except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def update_view_and_wait_for_work_request(self, view_id, update_view_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.update_view` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + + :param str view_id: (required) + The OCID of the target view. + + :param oci.dns.models.UpdateViewDetails update_view_details: (required) + New data for the view. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.update_view` + + :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_view(view_id, update_view_details, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] + try: + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def update_view_and_wait_for_state(self, view_id, update_view_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.dns.DnsClient.update_view` and waits for the :py:class:`~oci.dns.models.View` acted upon @@ -848,6 +1502,45 @@ def update_view_and_wait_for_state(self, view_id, update_view_details, wait_for_ except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def update_zone_and_wait_for_work_request(self, zone_name_or_id, update_zone_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.update_zone` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + + :param str zone_name_or_id: (required) + The name or OCID of the target zone. + + :param oci.dns.models.UpdateZoneDetails update_zone_details: (required) + New data for the zone. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.update_zone` + + :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_zone(zone_name_or_id, update_zone_details, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] + try: + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def update_zone_and_wait_for_state(self, zone_name_or_id, update_zone_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.dns.DnsClient.update_zone` and waits for the :py:class:`~oci.dns.models.Zone` acted upon diff --git a/src/oci/dns/models/__init__.py b/src/oci/dns/models/__init__.py index 230eb56c65..7336af481b 100644 --- a/src/oci/dns/models/__init__.py +++ b/src/oci/dns/models/__init__.py @@ -22,14 +22,18 @@ from .create_view_details import CreateViewDetails from .create_zone_base_details import CreateZoneBaseDetails from .create_zone_details import CreateZoneDetails +from .dnssec_config import DnssecConfig +from .dnssec_key_version_ds_data import DnssecKeyVersionDsData from .dynect_migration_details import DynectMigrationDetails from .external_downstream import ExternalDownstream from .external_master import ExternalMaster +from .ksk_dnssec_key_version import KskDnssecKeyVersion from .migration_replacement import MigrationReplacement from .nameserver import Nameserver from .patch_domain_records_details import PatchDomainRecordsDetails from .patch_rr_set_details import PatchRRSetDetails from .patch_zone_records_details import PatchZoneRecordsDetails +from .promote_zone_dnssec_key_version_details import PromoteZoneDnssecKeyVersionDetails from .rr_set import RRSet from .record import Record from .record_collection import RecordCollection @@ -45,6 +49,7 @@ from .resolver_summary import ResolverSummary from .resolver_vnic_endpoint import ResolverVnicEndpoint from .resolver_vnic_endpoint_summary import ResolverVnicEndpointSummary +from .stage_zone_dnssec_key_version_details import StageZoneDnssecKeyVersionDetails from .steering_policy import SteeringPolicy from .steering_policy_answer import SteeringPolicyAnswer from .steering_policy_attachment import SteeringPolicyAttachment @@ -82,6 +87,7 @@ from .zone import Zone from .zone_summary import ZoneSummary from .zone_transfer_server import ZoneTransferServer +from .zsk_dnssec_key_version import ZskDnssecKeyVersion # Maps type names to classes for dns services. dns_type_mapping = { @@ -101,14 +107,18 @@ "CreateViewDetails": CreateViewDetails, "CreateZoneBaseDetails": CreateZoneBaseDetails, "CreateZoneDetails": CreateZoneDetails, + "DnssecConfig": DnssecConfig, + "DnssecKeyVersionDsData": DnssecKeyVersionDsData, "DynectMigrationDetails": DynectMigrationDetails, "ExternalDownstream": ExternalDownstream, "ExternalMaster": ExternalMaster, + "KskDnssecKeyVersion": KskDnssecKeyVersion, "MigrationReplacement": MigrationReplacement, "Nameserver": Nameserver, "PatchDomainRecordsDetails": PatchDomainRecordsDetails, "PatchRRSetDetails": PatchRRSetDetails, "PatchZoneRecordsDetails": PatchZoneRecordsDetails, + "PromoteZoneDnssecKeyVersionDetails": PromoteZoneDnssecKeyVersionDetails, "RRSet": RRSet, "Record": Record, "RecordCollection": RecordCollection, @@ -124,6 +134,7 @@ "ResolverSummary": ResolverSummary, "ResolverVnicEndpoint": ResolverVnicEndpoint, "ResolverVnicEndpointSummary": ResolverVnicEndpointSummary, + "StageZoneDnssecKeyVersionDetails": StageZoneDnssecKeyVersionDetails, "SteeringPolicy": SteeringPolicy, "SteeringPolicyAnswer": SteeringPolicyAnswer, "SteeringPolicyAttachment": SteeringPolicyAttachment, @@ -160,5 +171,6 @@ "ViewSummary": ViewSummary, "Zone": Zone, "ZoneSummary": ZoneSummary, - "ZoneTransferServer": ZoneTransferServer + "ZoneTransferServer": ZoneTransferServer, + "ZskDnssecKeyVersion": ZskDnssecKeyVersion } diff --git a/src/oci/dns/models/create_zone_details.py b/src/oci/dns/models/create_zone_details.py index cd5da5cfd5..636fa61a49 100644 --- a/src/oci/dns/models/create_zone_details.py +++ b/src/oci/dns/models/create_zone_details.py @@ -33,6 +33,14 @@ class CreateZoneDetails(CreateZoneBaseDetails): #: This constant has a value of "PRIVATE" SCOPE_PRIVATE = "PRIVATE" + #: A constant which can be used with the dnssec_state property of a CreateZoneDetails. + #: This constant has a value of "ENABLED" + DNSSEC_STATE_ENABLED = "ENABLED" + + #: A constant which can be used with the dnssec_state property of a CreateZoneDetails. + #: This constant has a value of "DISABLED" + DNSSEC_STATE_DISABLED = "DISABLED" + def __init__(self, **kwargs): """ Initializes a new CreateZoneDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.dns.models.CreateZoneDetails.migration_source` attribute @@ -82,6 +90,11 @@ def __init__(self, **kwargs): The value to assign to the external_downstreams property of this CreateZoneDetails. :type external_downstreams: list[oci.dns.models.ExternalDownstream] + :param dnssec_state: + The value to assign to the dnssec_state property of this CreateZoneDetails. + Allowed values for this property are: "ENABLED", "DISABLED" + :type dnssec_state: str + """ self.swagger_types = { 'migration_source': 'str', @@ -93,7 +106,8 @@ def __init__(self, **kwargs): 'view_id': 'str', 'scope': 'str', 'external_masters': 'list[ExternalMaster]', - 'external_downstreams': 'list[ExternalDownstream]' + 'external_downstreams': 'list[ExternalDownstream]', + 'dnssec_state': 'str' } self.attribute_map = { @@ -106,7 +120,8 @@ def __init__(self, **kwargs): 'view_id': 'viewId', 'scope': 'scope', 'external_masters': 'externalMasters', - 'external_downstreams': 'externalDownstreams' + 'external_downstreams': 'externalDownstreams', + 'dnssec_state': 'dnssecState' } self._migration_source = None @@ -119,6 +134,7 @@ def __init__(self, **kwargs): self._scope = None self._external_masters = None self._external_downstreams = None + self._dnssec_state = None self._migration_source = 'NONE' @property @@ -261,6 +277,89 @@ def external_downstreams(self, external_downstreams): """ self._external_downstreams = external_downstreams + @property + def dnssec_state(self): + """ + Gets the dnssec_state of this CreateZoneDetails. + The state of DNSSEC on the zone. + + For DNSSEC to function, every parent zone in the DNS tree up to the top-level domain (or an independent + trust anchor) must also have DNSSEC correctly set up. + After enabling DNSSEC, you must add a DS record to the zone's parent zone containing the + `KskDnssecKeyVersion` data. You can find the DS data in the `dsData` attribute of the `KskDnssecKeyVersion`. + Then, use the `PromoteZoneDnssecKeyVersion` operation to promote the `KskDnssecKeyVersion`. + + New `KskDnssecKeyVersion`s are generated annually, a week before the existing `KskDnssecKeyVersion`'s expiration. + To rollover a `KskDnssecKeyVersion`, you must replace the parent zone's DS record containing the old + `KskDnssecKeyVersion` data with the data from the new `KskDnssecKeyVersion`. + + To remove the old DS record without causing service disruption, wait until the old DS record's TTL has + expired, and the new DS record has propagated. After the DS replacement has been completed, then the + `PromoteZoneDnssecKeyVersion` operation must be called. + + Metrics are emitted in the `oci_dns` namespace daily for each `KskDnssecKeyVersion` indicating how many + days are left until expiration. + We recommend that you set up alarms and notifications for KskDnssecKeyVersion expiration so that the + necessary parent zone updates can be made and the `PromoteZoneDnssecKeyVersion` operation can be called. + + Enabling DNSSEC results in additional records in DNS responses which increases their size and can + cause higher response latency. + + For more information, see `DNSSEC`__. + + __ https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnssec.htm + + Allowed values for this property are: "ENABLED", "DISABLED" + + + :return: The dnssec_state of this CreateZoneDetails. + :rtype: str + """ + return self._dnssec_state + + @dnssec_state.setter + def dnssec_state(self, dnssec_state): + """ + Sets the dnssec_state of this CreateZoneDetails. + The state of DNSSEC on the zone. + + For DNSSEC to function, every parent zone in the DNS tree up to the top-level domain (or an independent + trust anchor) must also have DNSSEC correctly set up. + After enabling DNSSEC, you must add a DS record to the zone's parent zone containing the + `KskDnssecKeyVersion` data. You can find the DS data in the `dsData` attribute of the `KskDnssecKeyVersion`. + Then, use the `PromoteZoneDnssecKeyVersion` operation to promote the `KskDnssecKeyVersion`. + + New `KskDnssecKeyVersion`s are generated annually, a week before the existing `KskDnssecKeyVersion`'s expiration. + To rollover a `KskDnssecKeyVersion`, you must replace the parent zone's DS record containing the old + `KskDnssecKeyVersion` data with the data from the new `KskDnssecKeyVersion`. + + To remove the old DS record without causing service disruption, wait until the old DS record's TTL has + expired, and the new DS record has propagated. After the DS replacement has been completed, then the + `PromoteZoneDnssecKeyVersion` operation must be called. + + Metrics are emitted in the `oci_dns` namespace daily for each `KskDnssecKeyVersion` indicating how many + days are left until expiration. + We recommend that you set up alarms and notifications for KskDnssecKeyVersion expiration so that the + necessary parent zone updates can be made and the `PromoteZoneDnssecKeyVersion` operation can be called. + + Enabling DNSSEC results in additional records in DNS responses which increases their size and can + cause higher response latency. + + For more information, see `DNSSEC`__. + + __ https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnssec.htm + + + :param dnssec_state: The dnssec_state of this CreateZoneDetails. + :type: str + """ + allowed_values = ["ENABLED", "DISABLED"] + if not value_allowed_none_or_none_sentinel(dnssec_state, allowed_values): + raise ValueError( + f"Invalid value for `dnssec_state`, must be None or one of {allowed_values}" + ) + self._dnssec_state = dnssec_state + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/dns/models/dnssec_config.py b/src/oci/dns/models/dnssec_config.py new file mode 100644 index 0000000000..7a8c1b1e00 --- /dev/null +++ b/src/oci/dns/models/dnssec_config.py @@ -0,0 +1,105 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20180115 + + +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 DnssecConfig(object): + """ + DNSSEC configuration data. + + A zone may have a maximum of 10 `DnssecKeyVersions`, regardless of signing key type. + """ + + def __init__(self, **kwargs): + """ + Initializes a new DnssecConfig object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param ksk_dnssec_key_versions: + The value to assign to the ksk_dnssec_key_versions property of this DnssecConfig. + :type ksk_dnssec_key_versions: list[oci.dns.models.KskDnssecKeyVersion] + + :param zsk_dnssec_key_versions: + The value to assign to the zsk_dnssec_key_versions property of this DnssecConfig. + :type zsk_dnssec_key_versions: list[oci.dns.models.ZskDnssecKeyVersion] + + """ + self.swagger_types = { + 'ksk_dnssec_key_versions': 'list[KskDnssecKeyVersion]', + 'zsk_dnssec_key_versions': 'list[ZskDnssecKeyVersion]' + } + + self.attribute_map = { + 'ksk_dnssec_key_versions': 'kskDnssecKeyVersions', + 'zsk_dnssec_key_versions': 'zskDnssecKeyVersions' + } + + self._ksk_dnssec_key_versions = None + self._zsk_dnssec_key_versions = None + + @property + def ksk_dnssec_key_versions(self): + """ + Gets the ksk_dnssec_key_versions of this DnssecConfig. + A read-only array of key signing key (KSK) versions. + + + :return: The ksk_dnssec_key_versions of this DnssecConfig. + :rtype: list[oci.dns.models.KskDnssecKeyVersion] + """ + return self._ksk_dnssec_key_versions + + @ksk_dnssec_key_versions.setter + def ksk_dnssec_key_versions(self, ksk_dnssec_key_versions): + """ + Sets the ksk_dnssec_key_versions of this DnssecConfig. + A read-only array of key signing key (KSK) versions. + + + :param ksk_dnssec_key_versions: The ksk_dnssec_key_versions of this DnssecConfig. + :type: list[oci.dns.models.KskDnssecKeyVersion] + """ + self._ksk_dnssec_key_versions = ksk_dnssec_key_versions + + @property + def zsk_dnssec_key_versions(self): + """ + Gets the zsk_dnssec_key_versions of this DnssecConfig. + A read-only array of zone signing key (ZSK) versions. + + + :return: The zsk_dnssec_key_versions of this DnssecConfig. + :rtype: list[oci.dns.models.ZskDnssecKeyVersion] + """ + return self._zsk_dnssec_key_versions + + @zsk_dnssec_key_versions.setter + def zsk_dnssec_key_versions(self, zsk_dnssec_key_versions): + """ + Sets the zsk_dnssec_key_versions of this DnssecConfig. + A read-only array of zone signing key (ZSK) versions. + + + :param zsk_dnssec_key_versions: The zsk_dnssec_key_versions of this DnssecConfig. + :type: list[oci.dns.models.ZskDnssecKeyVersion] + """ + self._zsk_dnssec_key_versions = zsk_dnssec_key_versions + + 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/dns/models/dnssec_key_version_ds_data.py b/src/oci/dns/models/dnssec_key_version_ds_data.py new file mode 100644 index 0000000000..dcf8c3e9d9 --- /dev/null +++ b/src/oci/dns/models/dnssec_key_version_ds_data.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: 20180115 + + +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 DnssecKeyVersionDsData(object): + """ + Data for a parent zone DS record corresponding to this key-signing key (KSK). + """ + + #: A constant which can be used with the digest_type property of a DnssecKeyVersionDsData. + #: This constant has a value of "SHA_256" + DIGEST_TYPE_SHA_256 = "SHA_256" + + def __init__(self, **kwargs): + """ + Initializes a new DnssecKeyVersionDsData object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param rdata: + The value to assign to the rdata property of this DnssecKeyVersionDsData. + :type rdata: str + + :param digest_type: + The value to assign to the digest_type property of this DnssecKeyVersionDsData. + Allowed values for this property are: "SHA_256", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type digest_type: str + + """ + self.swagger_types = { + 'rdata': 'str', + 'digest_type': 'str' + } + + self.attribute_map = { + 'rdata': 'rdata', + 'digest_type': 'digestType' + } + + self._rdata = None + self._digest_type = None + + @property + def rdata(self): + """ + Gets the rdata of this DnssecKeyVersionDsData. + Presentation-format DS record data that must be added to the parent zone. For more information about RDATA, + see `Supported DNS Resource Record Types`__ + + __ https://docs.cloud.oracle.com/iaas/Content/DNS/Reference/supporteddnsresource.htm + + + :return: The rdata of this DnssecKeyVersionDsData. + :rtype: str + """ + return self._rdata + + @rdata.setter + def rdata(self, rdata): + """ + Sets the rdata of this DnssecKeyVersionDsData. + Presentation-format DS record data that must be added to the parent zone. For more information about RDATA, + see `Supported DNS Resource Record Types`__ + + __ https://docs.cloud.oracle.com/iaas/Content/DNS/Reference/supporteddnsresource.htm + + + :param rdata: The rdata of this DnssecKeyVersionDsData. + :type: str + """ + self._rdata = rdata + + @property + def digest_type(self): + """ + Gets the digest_type of this DnssecKeyVersionDsData. + The type of the digest associated with the rdata. + + Allowed values for this property are: "SHA_256", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The digest_type of this DnssecKeyVersionDsData. + :rtype: str + """ + return self._digest_type + + @digest_type.setter + def digest_type(self, digest_type): + """ + Sets the digest_type of this DnssecKeyVersionDsData. + The type of the digest associated with the rdata. + + + :param digest_type: The digest_type of this DnssecKeyVersionDsData. + :type: str + """ + allowed_values = ["SHA_256"] + if not value_allowed_none_or_none_sentinel(digest_type, allowed_values): + digest_type = 'UNKNOWN_ENUM_VALUE' + self._digest_type = digest_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/dns/models/ksk_dnssec_key_version.py b/src/oci/dns/models/ksk_dnssec_key_version.py new file mode 100644 index 0000000000..df648c90d5 --- /dev/null +++ b/src/oci/dns/models/ksk_dnssec_key_version.py @@ -0,0 +1,550 @@ +# 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: 20180115 + + +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 KskDnssecKeyVersion(object): + """ + A key signing key (KSK) version. The version information contains timing and configuration data corresponding to the KSK that is used to + apply DNSSEC on the zone. + """ + + #: A constant which can be used with the algorithm property of a KskDnssecKeyVersion. + #: This constant has a value of "RSASHA256" + ALGORITHM_RSASHA256 = "RSASHA256" + + def __init__(self, **kwargs): + """ + Initializes a new KskDnssecKeyVersion object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param uuid: + The value to assign to the uuid property of this KskDnssecKeyVersion. + :type uuid: str + + :param algorithm: + The value to assign to the algorithm property of this KskDnssecKeyVersion. + Allowed values for this property are: "RSASHA256", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type algorithm: str + + :param length_in_bytes: + The value to assign to the length_in_bytes property of this KskDnssecKeyVersion. + :type length_in_bytes: int + + :param time_created: + The value to assign to the time_created property of this KskDnssecKeyVersion. + :type time_created: datetime + + :param time_published: + The value to assign to the time_published property of this KskDnssecKeyVersion. + :type time_published: datetime + + :param time_activated: + The value to assign to the time_activated property of this KskDnssecKeyVersion. + :type time_activated: datetime + + :param time_inactivated: + The value to assign to the time_inactivated property of this KskDnssecKeyVersion. + :type time_inactivated: datetime + + :param time_unpublished: + The value to assign to the time_unpublished property of this KskDnssecKeyVersion. + :type time_unpublished: datetime + + :param time_expired: + The value to assign to the time_expired property of this KskDnssecKeyVersion. + :type time_expired: datetime + + :param time_promoted: + The value to assign to the time_promoted property of this KskDnssecKeyVersion. + :type time_promoted: datetime + + :param predecessor_dnssec_key_version_uuid: + The value to assign to the predecessor_dnssec_key_version_uuid property of this KskDnssecKeyVersion. + :type predecessor_dnssec_key_version_uuid: str + + :param successor_dnssec_key_version_uuid: + The value to assign to the successor_dnssec_key_version_uuid property of this KskDnssecKeyVersion. + :type successor_dnssec_key_version_uuid: str + + :param key_tag: + The value to assign to the key_tag property of this KskDnssecKeyVersion. + :type key_tag: int + + :param ds_data: + The value to assign to the ds_data property of this KskDnssecKeyVersion. + :type ds_data: list[oci.dns.models.DnssecKeyVersionDsData] + + """ + self.swagger_types = { + 'uuid': 'str', + 'algorithm': 'str', + 'length_in_bytes': 'int', + 'time_created': 'datetime', + 'time_published': 'datetime', + 'time_activated': 'datetime', + 'time_inactivated': 'datetime', + 'time_unpublished': 'datetime', + 'time_expired': 'datetime', + 'time_promoted': 'datetime', + 'predecessor_dnssec_key_version_uuid': 'str', + 'successor_dnssec_key_version_uuid': 'str', + 'key_tag': 'int', + 'ds_data': 'list[DnssecKeyVersionDsData]' + } + + self.attribute_map = { + 'uuid': 'uuid', + 'algorithm': 'algorithm', + 'length_in_bytes': 'lengthInBytes', + 'time_created': 'timeCreated', + 'time_published': 'timePublished', + 'time_activated': 'timeActivated', + 'time_inactivated': 'timeInactivated', + 'time_unpublished': 'timeUnpublished', + 'time_expired': 'timeExpired', + 'time_promoted': 'timePromoted', + 'predecessor_dnssec_key_version_uuid': 'predecessorDnssecKeyVersionUuid', + 'successor_dnssec_key_version_uuid': 'successorDnssecKeyVersionUuid', + 'key_tag': 'keyTag', + 'ds_data': 'dsData' + } + + self._uuid = None + self._algorithm = None + self._length_in_bytes = None + self._time_created = None + self._time_published = None + self._time_activated = None + self._time_inactivated = None + self._time_unpublished = None + self._time_expired = None + self._time_promoted = None + self._predecessor_dnssec_key_version_uuid = None + self._successor_dnssec_key_version_uuid = None + self._key_tag = None + self._ds_data = None + + @property + def uuid(self): + """ + Gets the uuid of this KskDnssecKeyVersion. + The UUID of the `DnssecKeyVersion`. + + + :return: The uuid of this KskDnssecKeyVersion. + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """ + Sets the uuid of this KskDnssecKeyVersion. + The UUID of the `DnssecKeyVersion`. + + + :param uuid: The uuid of this KskDnssecKeyVersion. + :type: str + """ + self._uuid = uuid + + @property + def algorithm(self): + """ + Gets the algorithm of this KskDnssecKeyVersion. + The signing algorithm used for the key. + + Allowed values for this property are: "RSASHA256", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The algorithm of this KskDnssecKeyVersion. + :rtype: str + """ + return self._algorithm + + @algorithm.setter + def algorithm(self, algorithm): + """ + Sets the algorithm of this KskDnssecKeyVersion. + The signing algorithm used for the key. + + + :param algorithm: The algorithm of this KskDnssecKeyVersion. + :type: str + """ + allowed_values = ["RSASHA256"] + if not value_allowed_none_or_none_sentinel(algorithm, allowed_values): + algorithm = 'UNKNOWN_ENUM_VALUE' + self._algorithm = algorithm + + @property + def length_in_bytes(self): + """ + Gets the length_in_bytes of this KskDnssecKeyVersion. + The length of the corresponding private key in bytes, expressed as an integer. + + + :return: The length_in_bytes of this KskDnssecKeyVersion. + :rtype: int + """ + return self._length_in_bytes + + @length_in_bytes.setter + def length_in_bytes(self, length_in_bytes): + """ + Sets the length_in_bytes of this KskDnssecKeyVersion. + The length of the corresponding private key in bytes, expressed as an integer. + + + :param length_in_bytes: The length_in_bytes of this KskDnssecKeyVersion. + :type: int + """ + self._length_in_bytes = length_in_bytes + + @property + def time_created(self): + """ + Gets the time_created of this KskDnssecKeyVersion. + The date and time the key version was created, expressed in RFC 3339 timestamp format. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :return: The time_created of this KskDnssecKeyVersion. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this KskDnssecKeyVersion. + The date and time the key version was created, expressed in RFC 3339 timestamp format. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :param time_created: The time_created of this KskDnssecKeyVersion. + :type: datetime + """ + self._time_created = time_created + + @property + def time_published(self): + """ + Gets the time_published of this KskDnssecKeyVersion. + The date and time the key version was, or will be, published, expressed in RFC 3339 timestamp format. This is + when the zone contents will include a DNSKEY record corresponding to the key material. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :return: The time_published of this KskDnssecKeyVersion. + :rtype: datetime + """ + return self._time_published + + @time_published.setter + def time_published(self, time_published): + """ + Sets the time_published of this KskDnssecKeyVersion. + The date and time the key version was, or will be, published, expressed in RFC 3339 timestamp format. This is + when the zone contents will include a DNSKEY record corresponding to the key material. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :param time_published: The time_published of this KskDnssecKeyVersion. + :type: datetime + """ + self._time_published = time_published + + @property + def time_activated(self): + """ + Gets the time_activated of this KskDnssecKeyVersion. + The date and time the key version went, or will go, active, expressed in RFC 3339 timestamp format. This is + when the key material will be used to generate RRSIGs. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :return: The time_activated of this KskDnssecKeyVersion. + :rtype: datetime + """ + return self._time_activated + + @time_activated.setter + def time_activated(self, time_activated): + """ + Sets the time_activated of this KskDnssecKeyVersion. + The date and time the key version went, or will go, active, expressed in RFC 3339 timestamp format. This is + when the key material will be used to generate RRSIGs. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :param time_activated: The time_activated of this KskDnssecKeyVersion. + :type: datetime + """ + self._time_activated = time_activated + + @property + def time_inactivated(self): + """ + Gets the time_inactivated of this KskDnssecKeyVersion. + The date and time the key version went, or will go, inactive, expressed in RFC 3339 timestamp format. This + is when the key material will no longer be used to generate RRSIGs. For a key signing key (KSK) `DnssecKeyVersion`, this is + populated after `PromoteZoneDnssecKeyVersion` has been called on its successor `DnssecKeyVersion`. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :return: The time_inactivated of this KskDnssecKeyVersion. + :rtype: datetime + """ + return self._time_inactivated + + @time_inactivated.setter + def time_inactivated(self, time_inactivated): + """ + Sets the time_inactivated of this KskDnssecKeyVersion. + The date and time the key version went, or will go, inactive, expressed in RFC 3339 timestamp format. This + is when the key material will no longer be used to generate RRSIGs. For a key signing key (KSK) `DnssecKeyVersion`, this is + populated after `PromoteZoneDnssecKeyVersion` has been called on its successor `DnssecKeyVersion`. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :param time_inactivated: The time_inactivated of this KskDnssecKeyVersion. + :type: datetime + """ + self._time_inactivated = time_inactivated + + @property + def time_unpublished(self): + """ + Gets the time_unpublished of this KskDnssecKeyVersion. + The date and time the key version was, or will be, unpublished, expressed in RFC 3339 timestamp format. This + is when the corresponding DNSKEY will be removed from zone contents. For a key signing key (KSK) `DnssecKeyVersion`, this is + populated after `PromoteZoneDnssecKeyVersion` has been called on its successor `DnssecKeyVersion`. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :return: The time_unpublished of this KskDnssecKeyVersion. + :rtype: datetime + """ + return self._time_unpublished + + @time_unpublished.setter + def time_unpublished(self, time_unpublished): + """ + Sets the time_unpublished of this KskDnssecKeyVersion. + The date and time the key version was, or will be, unpublished, expressed in RFC 3339 timestamp format. This + is when the corresponding DNSKEY will be removed from zone contents. For a key signing key (KSK) `DnssecKeyVersion`, this is + populated after `PromoteZoneDnssecKeyVersion` has been called on its successor `DnssecKeyVersion`. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :param time_unpublished: The time_unpublished of this KskDnssecKeyVersion. + :type: datetime + """ + self._time_unpublished = time_unpublished + + @property + def time_expired(self): + """ + Gets the time_expired of this KskDnssecKeyVersion. + The date and time at which the recommended key version publication/activation lifetime ends, expressed in RFC + 3339 timestamp format. This is when the corresponding DNSKEY should no longer exist in zone contents and no + longer be used to generate RRSIGs. For a key sigining key (KSK), if `PromoteZoneDnssecKeyVersion` has not been called on this + `DnssecKeyVersion`'s successor then it will remain active for arbitrarily long past its recommended lifetime. + This prevents service disruption at the potential increased risk of key compromise. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :return: The time_expired of this KskDnssecKeyVersion. + :rtype: datetime + """ + return self._time_expired + + @time_expired.setter + def time_expired(self, time_expired): + """ + Sets the time_expired of this KskDnssecKeyVersion. + The date and time at which the recommended key version publication/activation lifetime ends, expressed in RFC + 3339 timestamp format. This is when the corresponding DNSKEY should no longer exist in zone contents and no + longer be used to generate RRSIGs. For a key sigining key (KSK), if `PromoteZoneDnssecKeyVersion` has not been called on this + `DnssecKeyVersion`'s successor then it will remain active for arbitrarily long past its recommended lifetime. + This prevents service disruption at the potential increased risk of key compromise. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :param time_expired: The time_expired of this KskDnssecKeyVersion. + :type: datetime + """ + self._time_expired = time_expired + + @property + def time_promoted(self): + """ + Gets the time_promoted of this KskDnssecKeyVersion. + The date and time the key version was promoted expressed in RFC 3339 timestamp format. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :return: The time_promoted of this KskDnssecKeyVersion. + :rtype: datetime + """ + return self._time_promoted + + @time_promoted.setter + def time_promoted(self, time_promoted): + """ + Sets the time_promoted of this KskDnssecKeyVersion. + The date and time the key version was promoted expressed in RFC 3339 timestamp format. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :param time_promoted: The time_promoted of this KskDnssecKeyVersion. + :type: datetime + """ + self._time_promoted = time_promoted + + @property + def predecessor_dnssec_key_version_uuid(self): + """ + Gets the predecessor_dnssec_key_version_uuid of this KskDnssecKeyVersion. + When populated, this is the UUID of the `DnssecKeyVersion` that this `DnssecKeyVersion` will replace or has + replaced. + + + :return: The predecessor_dnssec_key_version_uuid of this KskDnssecKeyVersion. + :rtype: str + """ + return self._predecessor_dnssec_key_version_uuid + + @predecessor_dnssec_key_version_uuid.setter + def predecessor_dnssec_key_version_uuid(self, predecessor_dnssec_key_version_uuid): + """ + Sets the predecessor_dnssec_key_version_uuid of this KskDnssecKeyVersion. + When populated, this is the UUID of the `DnssecKeyVersion` that this `DnssecKeyVersion` will replace or has + replaced. + + + :param predecessor_dnssec_key_version_uuid: The predecessor_dnssec_key_version_uuid of this KskDnssecKeyVersion. + :type: str + """ + self._predecessor_dnssec_key_version_uuid = predecessor_dnssec_key_version_uuid + + @property + def successor_dnssec_key_version_uuid(self): + """ + Gets the successor_dnssec_key_version_uuid of this KskDnssecKeyVersion. + When populated, this is the UUID of the `DnssecKeyVersion` that will replace, or has replaced, this + `DnssecKeyVersion`. + + + :return: The successor_dnssec_key_version_uuid of this KskDnssecKeyVersion. + :rtype: str + """ + return self._successor_dnssec_key_version_uuid + + @successor_dnssec_key_version_uuid.setter + def successor_dnssec_key_version_uuid(self, successor_dnssec_key_version_uuid): + """ + Sets the successor_dnssec_key_version_uuid of this KskDnssecKeyVersion. + When populated, this is the UUID of the `DnssecKeyVersion` that will replace, or has replaced, this + `DnssecKeyVersion`. + + + :param successor_dnssec_key_version_uuid: The successor_dnssec_key_version_uuid of this KskDnssecKeyVersion. + :type: str + """ + self._successor_dnssec_key_version_uuid = successor_dnssec_key_version_uuid + + @property + def key_tag(self): + """ + Gets the key_tag of this KskDnssecKeyVersion. + The key tag associated with the `DnssecKeyVersion`. This key tag will be present in the RRSIG and DS records + associated with the key material for this `DnssecKeyVersion`. For more information about key tags, see + `RFC 4034`__. + + __ https://tools.ietf.org/html/rfc4034 + + + :return: The key_tag of this KskDnssecKeyVersion. + :rtype: int + """ + return self._key_tag + + @key_tag.setter + def key_tag(self, key_tag): + """ + Sets the key_tag of this KskDnssecKeyVersion. + The key tag associated with the `DnssecKeyVersion`. This key tag will be present in the RRSIG and DS records + associated with the key material for this `DnssecKeyVersion`. For more information about key tags, see + `RFC 4034`__. + + __ https://tools.ietf.org/html/rfc4034 + + + :param key_tag: The key_tag of this KskDnssecKeyVersion. + :type: int + """ + self._key_tag = key_tag + + @property + def ds_data(self): + """ + Gets the ds_data of this KskDnssecKeyVersion. + An array of data for DS records corresponding with this key version. An entry will exist for each + supported DS digest algorithm. + + + :return: The ds_data of this KskDnssecKeyVersion. + :rtype: list[oci.dns.models.DnssecKeyVersionDsData] + """ + return self._ds_data + + @ds_data.setter + def ds_data(self, ds_data): + """ + Sets the ds_data of this KskDnssecKeyVersion. + An array of data for DS records corresponding with this key version. An entry will exist for each + supported DS digest algorithm. + + + :param ds_data: The ds_data of this KskDnssecKeyVersion. + :type: list[oci.dns.models.DnssecKeyVersionDsData] + """ + self._ds_data = ds_data + + 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/dns/models/promote_zone_dnssec_key_version_details.py b/src/oci/dns/models/promote_zone_dnssec_key_version_details.py new file mode 100644 index 0000000000..1ba541cc26 --- /dev/null +++ b/src/oci/dns/models/promote_zone_dnssec_key_version_details.py @@ -0,0 +1,72 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20180115 + + +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 PromoteZoneDnssecKeyVersionDetails(object): + """ + Details for promoting a `DnssecKeyVersion` on a zone. + """ + + def __init__(self, **kwargs): + """ + Initializes a new PromoteZoneDnssecKeyVersionDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param dnssec_key_version_uuid: + The value to assign to the dnssec_key_version_uuid property of this PromoteZoneDnssecKeyVersionDetails. + :type dnssec_key_version_uuid: str + + """ + self.swagger_types = { + 'dnssec_key_version_uuid': 'str' + } + + self.attribute_map = { + 'dnssec_key_version_uuid': 'dnssecKeyVersionUuid' + } + + self._dnssec_key_version_uuid = None + + @property + def dnssec_key_version_uuid(self): + """ + **[Required]** Gets the dnssec_key_version_uuid of this PromoteZoneDnssecKeyVersionDetails. + The UUID of the `DnssecKeyVersion` that is being promoted. + + + :return: The dnssec_key_version_uuid of this PromoteZoneDnssecKeyVersionDetails. + :rtype: str + """ + return self._dnssec_key_version_uuid + + @dnssec_key_version_uuid.setter + def dnssec_key_version_uuid(self, dnssec_key_version_uuid): + """ + Sets the dnssec_key_version_uuid of this PromoteZoneDnssecKeyVersionDetails. + The UUID of the `DnssecKeyVersion` that is being promoted. + + + :param dnssec_key_version_uuid: The dnssec_key_version_uuid of this PromoteZoneDnssecKeyVersionDetails. + :type: str + """ + self._dnssec_key_version_uuid = dnssec_key_version_uuid + + 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/dns/models/stage_zone_dnssec_key_version_details.py b/src/oci/dns/models/stage_zone_dnssec_key_version_details.py new file mode 100644 index 0000000000..6b44627bdb --- /dev/null +++ b/src/oci/dns/models/stage_zone_dnssec_key_version_details.py @@ -0,0 +1,72 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20180115 + + +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 StageZoneDnssecKeyVersionDetails(object): + """ + Details for staging a `DnssecKeyVersion` on a zone. + """ + + def __init__(self, **kwargs): + """ + Initializes a new StageZoneDnssecKeyVersionDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param predecessor_dnssec_key_version_uuid: + The value to assign to the predecessor_dnssec_key_version_uuid property of this StageZoneDnssecKeyVersionDetails. + :type predecessor_dnssec_key_version_uuid: str + + """ + self.swagger_types = { + 'predecessor_dnssec_key_version_uuid': 'str' + } + + self.attribute_map = { + 'predecessor_dnssec_key_version_uuid': 'predecessorDnssecKeyVersionUuid' + } + + self._predecessor_dnssec_key_version_uuid = None + + @property + def predecessor_dnssec_key_version_uuid(self): + """ + **[Required]** Gets the predecessor_dnssec_key_version_uuid of this StageZoneDnssecKeyVersionDetails. + The UUID of the `DnssecKeyVersion` for which a new successor should be generated. + + + :return: The predecessor_dnssec_key_version_uuid of this StageZoneDnssecKeyVersionDetails. + :rtype: str + """ + return self._predecessor_dnssec_key_version_uuid + + @predecessor_dnssec_key_version_uuid.setter + def predecessor_dnssec_key_version_uuid(self, predecessor_dnssec_key_version_uuid): + """ + Sets the predecessor_dnssec_key_version_uuid of this StageZoneDnssecKeyVersionDetails. + The UUID of the `DnssecKeyVersion` for which a new successor should be generated. + + + :param predecessor_dnssec_key_version_uuid: The predecessor_dnssec_key_version_uuid of this StageZoneDnssecKeyVersionDetails. + :type: str + """ + self._predecessor_dnssec_key_version_uuid = predecessor_dnssec_key_version_uuid + + 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/dns/models/update_zone_details.py b/src/oci/dns/models/update_zone_details.py index c81a32fefd..4c631bc37a 100644 --- a/src/oci/dns/models/update_zone_details.py +++ b/src/oci/dns/models/update_zone_details.py @@ -17,6 +17,14 @@ class UpdateZoneDetails(object): **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. """ + #: A constant which can be used with the dnssec_state property of a UpdateZoneDetails. + #: This constant has a value of "ENABLED" + DNSSEC_STATE_ENABLED = "ENABLED" + + #: A constant which can be used with the dnssec_state property of a UpdateZoneDetails. + #: This constant has a value of "DISABLED" + DNSSEC_STATE_DISABLED = "DISABLED" + def __init__(self, **kwargs): """ Initializes a new UpdateZoneDetails object with values from keyword arguments. @@ -30,6 +38,11 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this UpdateZoneDetails. :type defined_tags: dict(str, dict(str, object)) + :param dnssec_state: + The value to assign to the dnssec_state property of this UpdateZoneDetails. + Allowed values for this property are: "ENABLED", "DISABLED" + :type dnssec_state: str + :param external_masters: The value to assign to the external_masters property of this UpdateZoneDetails. :type external_masters: list[oci.dns.models.ExternalMaster] @@ -42,6 +55,7 @@ def __init__(self, **kwargs): self.swagger_types = { 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))', + 'dnssec_state': 'str', 'external_masters': 'list[ExternalMaster]', 'external_downstreams': 'list[ExternalDownstream]' } @@ -49,12 +63,14 @@ def __init__(self, **kwargs): self.attribute_map = { 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags', + 'dnssec_state': 'dnssecState', 'external_masters': 'externalMasters', 'external_downstreams': 'externalDownstreams' } self._freeform_tags = None self._defined_tags = None + self._dnssec_state = None self._external_masters = None self._external_downstreams = None @@ -130,6 +146,89 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def dnssec_state(self): + """ + Gets the dnssec_state of this UpdateZoneDetails. + The state of DNSSEC on the zone. + + For DNSSEC to function, every parent zone in the DNS tree up to the top-level domain (or an independent + trust anchor) must also have DNSSEC correctly set up. + After enabling DNSSEC, you must add a DS record to the zone's parent zone containing the + `KskDnssecKeyVersion` data. You can find the DS data in the `dsData` attribute of the `KskDnssecKeyVersion`. + Then, use the `PromoteZoneDnssecKeyVersion` operation to promote the `KskDnssecKeyVersion`. + + New `KskDnssecKeyVersion`s are generated annually, a week before the existing `KskDnssecKeyVersion`'s expiration. + To rollover a `KskDnssecKeyVersion`, you must replace the parent zone's DS record containing the old + `KskDnssecKeyVersion` data with the data from the new `KskDnssecKeyVersion`. + + To remove the old DS record without causing service disruption, wait until the old DS record's TTL has + expired, and the new DS record has propagated. After the DS replacement has been completed, then the + `PromoteZoneDnssecKeyVersion` operation must be called. + + Metrics are emitted in the `oci_dns` namespace daily for each `KskDnssecKeyVersion` indicating how many + days are left until expiration. + We recommend that you set up alarms and notifications for KskDnssecKeyVersion expiration so that the + necessary parent zone updates can be made and the `PromoteZoneDnssecKeyVersion` operation can be called. + + Enabling DNSSEC results in additional records in DNS responses which increases their size and can + cause higher response latency. + + For more information, see `DNSSEC`__. + + __ https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnssec.htm + + Allowed values for this property are: "ENABLED", "DISABLED" + + + :return: The dnssec_state of this UpdateZoneDetails. + :rtype: str + """ + return self._dnssec_state + + @dnssec_state.setter + def dnssec_state(self, dnssec_state): + """ + Sets the dnssec_state of this UpdateZoneDetails. + The state of DNSSEC on the zone. + + For DNSSEC to function, every parent zone in the DNS tree up to the top-level domain (or an independent + trust anchor) must also have DNSSEC correctly set up. + After enabling DNSSEC, you must add a DS record to the zone's parent zone containing the + `KskDnssecKeyVersion` data. You can find the DS data in the `dsData` attribute of the `KskDnssecKeyVersion`. + Then, use the `PromoteZoneDnssecKeyVersion` operation to promote the `KskDnssecKeyVersion`. + + New `KskDnssecKeyVersion`s are generated annually, a week before the existing `KskDnssecKeyVersion`'s expiration. + To rollover a `KskDnssecKeyVersion`, you must replace the parent zone's DS record containing the old + `KskDnssecKeyVersion` data with the data from the new `KskDnssecKeyVersion`. + + To remove the old DS record without causing service disruption, wait until the old DS record's TTL has + expired, and the new DS record has propagated. After the DS replacement has been completed, then the + `PromoteZoneDnssecKeyVersion` operation must be called. + + Metrics are emitted in the `oci_dns` namespace daily for each `KskDnssecKeyVersion` indicating how many + days are left until expiration. + We recommend that you set up alarms and notifications for KskDnssecKeyVersion expiration so that the + necessary parent zone updates can be made and the `PromoteZoneDnssecKeyVersion` operation can be called. + + Enabling DNSSEC results in additional records in DNS responses which increases their size and can + cause higher response latency. + + For more information, see `DNSSEC`__. + + __ https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnssec.htm + + + :param dnssec_state: The dnssec_state of this UpdateZoneDetails. + :type: str + """ + allowed_values = ["ENABLED", "DISABLED"] + if not value_allowed_none_or_none_sentinel(dnssec_state, allowed_values): + raise ValueError( + f"Invalid value for `dnssec_state`, must be None or one of {allowed_values}" + ) + self._dnssec_state = dnssec_state + @property def external_masters(self): """ diff --git a/src/oci/dns/models/zone.py b/src/oci/dns/models/zone.py index 81c1d52c74..11b667b344 100644 --- a/src/oci/dns/models/zone.py +++ b/src/oci/dns/models/zone.py @@ -33,6 +33,14 @@ class Zone(object): #: This constant has a value of "PRIVATE" SCOPE_PRIVATE = "PRIVATE" + #: A constant which can be used with the dnssec_state property of a Zone. + #: This constant has a value of "ENABLED" + DNSSEC_STATE_ENABLED = "ENABLED" + + #: A constant which can be used with the dnssec_state property of a Zone. + #: This constant has a value of "DISABLED" + DNSSEC_STATE_DISABLED = "DISABLED" + #: A constant which can be used with the lifecycle_state property of a Zone. #: This constant has a value of "ACTIVE" LIFECYCLE_STATE_ACTIVE = "ACTIVE" @@ -94,6 +102,12 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this Zone. :type defined_tags: dict(str, dict(str, object)) + :param dnssec_state: + The value to assign to the dnssec_state property of this Zone. + Allowed values for this property are: "ENABLED", "DISABLED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type dnssec_state: str + :param external_masters: The value to assign to the external_masters property of this Zone. :type external_masters: list[oci.dns.models.ExternalMaster] @@ -132,6 +146,10 @@ def __init__(self, **kwargs): The value to assign to the is_protected property of this Zone. :type is_protected: bool + :param dnssec_config: + The value to assign to the dnssec_config property of this Zone. + :type dnssec_config: oci.dns.models.DnssecConfig + :param nameservers: The value to assign to the nameservers property of this Zone. :type nameservers: list[oci.dns.models.Nameserver] @@ -149,6 +167,7 @@ def __init__(self, **kwargs): 'scope': 'str', 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))', + 'dnssec_state': 'str', 'external_masters': 'list[ExternalMaster]', 'external_downstreams': 'list[ExternalDownstream]', 'self_uri': 'str', @@ -158,6 +177,7 @@ def __init__(self, **kwargs): 'serial': 'int', 'lifecycle_state': 'str', 'is_protected': 'bool', + 'dnssec_config': 'DnssecConfig', 'nameservers': 'list[Nameserver]', 'zone_transfer_servers': 'list[ZoneTransferServer]' } @@ -170,6 +190,7 @@ def __init__(self, **kwargs): 'scope': 'scope', 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags', + 'dnssec_state': 'dnssecState', 'external_masters': 'externalMasters', 'external_downstreams': 'externalDownstreams', 'self_uri': 'self', @@ -179,6 +200,7 @@ def __init__(self, **kwargs): 'serial': 'serial', 'lifecycle_state': 'lifecycleState', 'is_protected': 'isProtected', + 'dnssec_config': 'dnssecConfig', 'nameservers': 'nameservers', 'zone_transfer_servers': 'zoneTransferServers' } @@ -190,6 +212,7 @@ def __init__(self, **kwargs): self._scope = None self._freeform_tags = None self._defined_tags = None + self._dnssec_state = None self._external_masters = None self._external_downstreams = None self._self_uri = None @@ -199,6 +222,7 @@ def __init__(self, **kwargs): self._serial = None self._lifecycle_state = None self._is_protected = None + self._dnssec_config = None self._nameservers = None self._zone_transfer_servers = None @@ -410,6 +434,88 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def dnssec_state(self): + """ + **[Required]** Gets the dnssec_state of this Zone. + The state of DNSSEC on the zone. + + For DNSSEC to function, every parent zone in the DNS tree up to the top-level domain (or an independent + trust anchor) must also have DNSSEC correctly set up. + After enabling DNSSEC, you must add a DS record to the zone's parent zone containing the + `KskDnssecKeyVersion` data. You can find the DS data in the `dsData` attribute of the `KskDnssecKeyVersion`. + Then, use the `PromoteZoneDnssecKeyVersion` operation to promote the `KskDnssecKeyVersion`. + + New `KskDnssecKeyVersion`s are generated annually, a week before the existing `KskDnssecKeyVersion`'s expiration. + To rollover a `KskDnssecKeyVersion`, you must replace the parent zone's DS record containing the old + `KskDnssecKeyVersion` data with the data from the new `KskDnssecKeyVersion`. + + To remove the old DS record without causing service disruption, wait until the old DS record's TTL has + expired, and the new DS record has propagated. After the DS replacement has been completed, then the + `PromoteZoneDnssecKeyVersion` operation must be called. + + Metrics are emitted in the `oci_dns` namespace daily for each `KskDnssecKeyVersion` indicating how many + days are left until expiration. + We recommend that you set up alarms and notifications for KskDnssecKeyVersion expiration so that the + necessary parent zone updates can be made and the `PromoteZoneDnssecKeyVersion` operation can be called. + + Enabling DNSSEC results in additional records in DNS responses which increases their size and can + cause higher response latency. + + For more information, see `DNSSEC`__. + + __ https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnssec.htm + + Allowed values for this property are: "ENABLED", "DISABLED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The dnssec_state of this Zone. + :rtype: str + """ + return self._dnssec_state + + @dnssec_state.setter + def dnssec_state(self, dnssec_state): + """ + Sets the dnssec_state of this Zone. + The state of DNSSEC on the zone. + + For DNSSEC to function, every parent zone in the DNS tree up to the top-level domain (or an independent + trust anchor) must also have DNSSEC correctly set up. + After enabling DNSSEC, you must add a DS record to the zone's parent zone containing the + `KskDnssecKeyVersion` data. You can find the DS data in the `dsData` attribute of the `KskDnssecKeyVersion`. + Then, use the `PromoteZoneDnssecKeyVersion` operation to promote the `KskDnssecKeyVersion`. + + New `KskDnssecKeyVersion`s are generated annually, a week before the existing `KskDnssecKeyVersion`'s expiration. + To rollover a `KskDnssecKeyVersion`, you must replace the parent zone's DS record containing the old + `KskDnssecKeyVersion` data with the data from the new `KskDnssecKeyVersion`. + + To remove the old DS record without causing service disruption, wait until the old DS record's TTL has + expired, and the new DS record has propagated. After the DS replacement has been completed, then the + `PromoteZoneDnssecKeyVersion` operation must be called. + + Metrics are emitted in the `oci_dns` namespace daily for each `KskDnssecKeyVersion` indicating how many + days are left until expiration. + We recommend that you set up alarms and notifications for KskDnssecKeyVersion expiration so that the + necessary parent zone updates can be made and the `PromoteZoneDnssecKeyVersion` operation can be called. + + Enabling DNSSEC results in additional records in DNS responses which increases their size and can + cause higher response latency. + + For more information, see `DNSSEC`__. + + __ https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnssec.htm + + + :param dnssec_state: The dnssec_state of this Zone. + :type: str + """ + allowed_values = ["ENABLED", "DISABLED"] + if not value_allowed_none_or_none_sentinel(dnssec_state, allowed_values): + dnssec_state = 'UNKNOWN_ENUM_VALUE' + self._dnssec_state = dnssec_state + @property def external_masters(self): """ @@ -646,6 +752,26 @@ def is_protected(self, is_protected): """ self._is_protected = is_protected + @property + def dnssec_config(self): + """ + Gets the dnssec_config of this Zone. + + :return: The dnssec_config of this Zone. + :rtype: oci.dns.models.DnssecConfig + """ + return self._dnssec_config + + @dnssec_config.setter + def dnssec_config(self, dnssec_config): + """ + Sets the dnssec_config of this Zone. + + :param dnssec_config: The dnssec_config of this Zone. + :type: oci.dns.models.DnssecConfig + """ + self._dnssec_config = dnssec_config + @property def nameservers(self): """ diff --git a/src/oci/dns/models/zone_summary.py b/src/oci/dns/models/zone_summary.py index ab1c02f33f..e8834c4540 100644 --- a/src/oci/dns/models/zone_summary.py +++ b/src/oci/dns/models/zone_summary.py @@ -33,6 +33,14 @@ class ZoneSummary(object): #: This constant has a value of "PRIVATE" SCOPE_PRIVATE = "PRIVATE" + #: A constant which can be used with the dnssec_state property of a ZoneSummary. + #: This constant has a value of "ENABLED" + DNSSEC_STATE_ENABLED = "ENABLED" + + #: A constant which can be used with the dnssec_state property of a ZoneSummary. + #: This constant has a value of "DISABLED" + DNSSEC_STATE_DISABLED = "DISABLED" + #: A constant which can be used with the lifecycle_state property of a ZoneSummary. #: This constant has a value of "ACTIVE" LIFECYCLE_STATE_ACTIVE = "ACTIVE" @@ -94,6 +102,12 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ZoneSummary. :type defined_tags: dict(str, dict(str, object)) + :param dnssec_state: + The value to assign to the dnssec_state property of this ZoneSummary. + Allowed values for this property are: "ENABLED", "DISABLED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type dnssec_state: str + :param self_uri: The value to assign to the self_uri property of this ZoneSummary. :type self_uri: str @@ -124,6 +138,10 @@ def __init__(self, **kwargs): The value to assign to the is_protected property of this ZoneSummary. :type is_protected: bool + :param dnssec_config: + The value to assign to the dnssec_config property of this ZoneSummary. + :type dnssec_config: oci.dns.models.DnssecConfig + """ self.swagger_types = { 'name': 'str', @@ -133,13 +151,15 @@ def __init__(self, **kwargs): 'scope': 'str', 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))', + 'dnssec_state': 'str', 'self_uri': 'str', 'id': 'str', 'time_created': 'datetime', 'version': 'str', 'serial': 'int', 'lifecycle_state': 'str', - 'is_protected': 'bool' + 'is_protected': 'bool', + 'dnssec_config': 'DnssecConfig' } self.attribute_map = { @@ -150,13 +170,15 @@ def __init__(self, **kwargs): 'scope': 'scope', 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags', + 'dnssec_state': 'dnssecState', 'self_uri': 'self', 'id': 'id', 'time_created': 'timeCreated', 'version': 'version', 'serial': 'serial', 'lifecycle_state': 'lifecycleState', - 'is_protected': 'isProtected' + 'is_protected': 'isProtected', + 'dnssec_config': 'dnssecConfig' } self._name = None @@ -166,6 +188,7 @@ def __init__(self, **kwargs): self._scope = None self._freeform_tags = None self._defined_tags = None + self._dnssec_state = None self._self_uri = None self._id = None self._time_created = None @@ -173,6 +196,7 @@ def __init__(self, **kwargs): self._serial = None self._lifecycle_state = None self._is_protected = None + self._dnssec_config = None @property def name(self): @@ -382,6 +406,88 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def dnssec_state(self): + """ + **[Required]** Gets the dnssec_state of this ZoneSummary. + The state of DNSSEC on the zone. + + For DNSSEC to function, every parent zone in the DNS tree up to the top-level domain (or an independent + trust anchor) must also have DNSSEC correctly set up. + After enabling DNSSEC, you must add a DS record to the zone's parent zone containing the + `KskDnssecKeyVersion` data. You can find the DS data in the `dsData` attribute of the `KskDnssecKeyVersion`. + Then, use the `PromoteZoneDnssecKeyVersion` operation to promote the `KskDnssecKeyVersion`. + + New `KskDnssecKeyVersion`s are generated annually, a week before the existing `KskDnssecKeyVersion`'s expiration. + To rollover a `KskDnssecKeyVersion`, you must replace the parent zone's DS record containing the old + `KskDnssecKeyVersion` data with the data from the new `KskDnssecKeyVersion`. + + To remove the old DS record without causing service disruption, wait until the old DS record's TTL has + expired, and the new DS record has propagated. After the DS replacement has been completed, then the + `PromoteZoneDnssecKeyVersion` operation must be called. + + Metrics are emitted in the `oci_dns` namespace daily for each `KskDnssecKeyVersion` indicating how many + days are left until expiration. + We recommend that you set up alarms and notifications for KskDnssecKeyVersion expiration so that the + necessary parent zone updates can be made and the `PromoteZoneDnssecKeyVersion` operation can be called. + + Enabling DNSSEC results in additional records in DNS responses which increases their size and can + cause higher response latency. + + For more information, see `DNSSEC`__. + + __ https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnssec.htm + + Allowed values for this property are: "ENABLED", "DISABLED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The dnssec_state of this ZoneSummary. + :rtype: str + """ + return self._dnssec_state + + @dnssec_state.setter + def dnssec_state(self, dnssec_state): + """ + Sets the dnssec_state of this ZoneSummary. + The state of DNSSEC on the zone. + + For DNSSEC to function, every parent zone in the DNS tree up to the top-level domain (or an independent + trust anchor) must also have DNSSEC correctly set up. + After enabling DNSSEC, you must add a DS record to the zone's parent zone containing the + `KskDnssecKeyVersion` data. You can find the DS data in the `dsData` attribute of the `KskDnssecKeyVersion`. + Then, use the `PromoteZoneDnssecKeyVersion` operation to promote the `KskDnssecKeyVersion`. + + New `KskDnssecKeyVersion`s are generated annually, a week before the existing `KskDnssecKeyVersion`'s expiration. + To rollover a `KskDnssecKeyVersion`, you must replace the parent zone's DS record containing the old + `KskDnssecKeyVersion` data with the data from the new `KskDnssecKeyVersion`. + + To remove the old DS record without causing service disruption, wait until the old DS record's TTL has + expired, and the new DS record has propagated. After the DS replacement has been completed, then the + `PromoteZoneDnssecKeyVersion` operation must be called. + + Metrics are emitted in the `oci_dns` namespace daily for each `KskDnssecKeyVersion` indicating how many + days are left until expiration. + We recommend that you set up alarms and notifications for KskDnssecKeyVersion expiration so that the + necessary parent zone updates can be made and the `PromoteZoneDnssecKeyVersion` operation can be called. + + Enabling DNSSEC results in additional records in DNS responses which increases their size and can + cause higher response latency. + + For more information, see `DNSSEC`__. + + __ https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnssec.htm + + + :param dnssec_state: The dnssec_state of this ZoneSummary. + :type: str + """ + allowed_values = ["ENABLED", "DISABLED"] + if not value_allowed_none_or_none_sentinel(dnssec_state, allowed_values): + dnssec_state = 'UNKNOWN_ENUM_VALUE' + self._dnssec_state = dnssec_state + @property def self_uri(self): """ @@ -566,6 +672,26 @@ def is_protected(self, is_protected): """ self._is_protected = is_protected + @property + def dnssec_config(self): + """ + Gets the dnssec_config of this ZoneSummary. + + :return: The dnssec_config of this ZoneSummary. + :rtype: oci.dns.models.DnssecConfig + """ + return self._dnssec_config + + @dnssec_config.setter + def dnssec_config(self, dnssec_config): + """ + Sets the dnssec_config of this ZoneSummary. + + :param dnssec_config: The dnssec_config of this ZoneSummary. + :type: oci.dns.models.DnssecConfig + """ + self._dnssec_config = dnssec_config + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/dns/models/zsk_dnssec_key_version.py b/src/oci/dns/models/zsk_dnssec_key_version.py new file mode 100644 index 0000000000..632191012a --- /dev/null +++ b/src/oci/dns/models/zsk_dnssec_key_version.py @@ -0,0 +1,517 @@ +# 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: 20180115 + + +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 ZskDnssecKeyVersion(object): + """ + A zone signing key (ZSK) version. The version information contains timing and configuration data for the ZSK that is used to + apply DNSSEC on the zone. + """ + + #: A constant which can be used with the algorithm property of a ZskDnssecKeyVersion. + #: This constant has a value of "RSASHA256" + ALGORITHM_RSASHA256 = "RSASHA256" + + def __init__(self, **kwargs): + """ + Initializes a new ZskDnssecKeyVersion object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param uuid: + The value to assign to the uuid property of this ZskDnssecKeyVersion. + :type uuid: str + + :param algorithm: + The value to assign to the algorithm property of this ZskDnssecKeyVersion. + Allowed values for this property are: "RSASHA256", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type algorithm: str + + :param length_in_bytes: + The value to assign to the length_in_bytes property of this ZskDnssecKeyVersion. + :type length_in_bytes: int + + :param time_created: + The value to assign to the time_created property of this ZskDnssecKeyVersion. + :type time_created: datetime + + :param time_published: + The value to assign to the time_published property of this ZskDnssecKeyVersion. + :type time_published: datetime + + :param time_activated: + The value to assign to the time_activated property of this ZskDnssecKeyVersion. + :type time_activated: datetime + + :param time_inactivated: + The value to assign to the time_inactivated property of this ZskDnssecKeyVersion. + :type time_inactivated: datetime + + :param time_unpublished: + The value to assign to the time_unpublished property of this ZskDnssecKeyVersion. + :type time_unpublished: datetime + + :param time_expired: + The value to assign to the time_expired property of this ZskDnssecKeyVersion. + :type time_expired: datetime + + :param time_promoted: + The value to assign to the time_promoted property of this ZskDnssecKeyVersion. + :type time_promoted: datetime + + :param predecessor_dnssec_key_version_uuid: + The value to assign to the predecessor_dnssec_key_version_uuid property of this ZskDnssecKeyVersion. + :type predecessor_dnssec_key_version_uuid: str + + :param successor_dnssec_key_version_uuid: + The value to assign to the successor_dnssec_key_version_uuid property of this ZskDnssecKeyVersion. + :type successor_dnssec_key_version_uuid: str + + :param key_tag: + The value to assign to the key_tag property of this ZskDnssecKeyVersion. + :type key_tag: int + + """ + self.swagger_types = { + 'uuid': 'str', + 'algorithm': 'str', + 'length_in_bytes': 'int', + 'time_created': 'datetime', + 'time_published': 'datetime', + 'time_activated': 'datetime', + 'time_inactivated': 'datetime', + 'time_unpublished': 'datetime', + 'time_expired': 'datetime', + 'time_promoted': 'datetime', + 'predecessor_dnssec_key_version_uuid': 'str', + 'successor_dnssec_key_version_uuid': 'str', + 'key_tag': 'int' + } + + self.attribute_map = { + 'uuid': 'uuid', + 'algorithm': 'algorithm', + 'length_in_bytes': 'lengthInBytes', + 'time_created': 'timeCreated', + 'time_published': 'timePublished', + 'time_activated': 'timeActivated', + 'time_inactivated': 'timeInactivated', + 'time_unpublished': 'timeUnpublished', + 'time_expired': 'timeExpired', + 'time_promoted': 'timePromoted', + 'predecessor_dnssec_key_version_uuid': 'predecessorDnssecKeyVersionUuid', + 'successor_dnssec_key_version_uuid': 'successorDnssecKeyVersionUuid', + 'key_tag': 'keyTag' + } + + self._uuid = None + self._algorithm = None + self._length_in_bytes = None + self._time_created = None + self._time_published = None + self._time_activated = None + self._time_inactivated = None + self._time_unpublished = None + self._time_expired = None + self._time_promoted = None + self._predecessor_dnssec_key_version_uuid = None + self._successor_dnssec_key_version_uuid = None + self._key_tag = None + + @property + def uuid(self): + """ + Gets the uuid of this ZskDnssecKeyVersion. + The UUID of the `DnssecKeyVersion`. + + + :return: The uuid of this ZskDnssecKeyVersion. + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """ + Sets the uuid of this ZskDnssecKeyVersion. + The UUID of the `DnssecKeyVersion`. + + + :param uuid: The uuid of this ZskDnssecKeyVersion. + :type: str + """ + self._uuid = uuid + + @property + def algorithm(self): + """ + Gets the algorithm of this ZskDnssecKeyVersion. + The signing algorithm used for the key. + + Allowed values for this property are: "RSASHA256", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The algorithm of this ZskDnssecKeyVersion. + :rtype: str + """ + return self._algorithm + + @algorithm.setter + def algorithm(self, algorithm): + """ + Sets the algorithm of this ZskDnssecKeyVersion. + The signing algorithm used for the key. + + + :param algorithm: The algorithm of this ZskDnssecKeyVersion. + :type: str + """ + allowed_values = ["RSASHA256"] + if not value_allowed_none_or_none_sentinel(algorithm, allowed_values): + algorithm = 'UNKNOWN_ENUM_VALUE' + self._algorithm = algorithm + + @property + def length_in_bytes(self): + """ + Gets the length_in_bytes of this ZskDnssecKeyVersion. + The length of the corresponding private key in bytes, expressed as an integer. + + + :return: The length_in_bytes of this ZskDnssecKeyVersion. + :rtype: int + """ + return self._length_in_bytes + + @length_in_bytes.setter + def length_in_bytes(self, length_in_bytes): + """ + Sets the length_in_bytes of this ZskDnssecKeyVersion. + The length of the corresponding private key in bytes, expressed as an integer. + + + :param length_in_bytes: The length_in_bytes of this ZskDnssecKeyVersion. + :type: int + """ + self._length_in_bytes = length_in_bytes + + @property + def time_created(self): + """ + Gets the time_created of this ZskDnssecKeyVersion. + The date and time the key version was created, expressed in RFC 3339 timestamp format. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :return: The time_created of this ZskDnssecKeyVersion. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this ZskDnssecKeyVersion. + The date and time the key version was created, expressed in RFC 3339 timestamp format. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :param time_created: The time_created of this ZskDnssecKeyVersion. + :type: datetime + """ + self._time_created = time_created + + @property + def time_published(self): + """ + Gets the time_published of this ZskDnssecKeyVersion. + The date and time the key version was, or will be, published, expressed in RFC 3339 timestamp format. This is + when the zone contents will include a DNSKEY record corresponding to the key material. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :return: The time_published of this ZskDnssecKeyVersion. + :rtype: datetime + """ + return self._time_published + + @time_published.setter + def time_published(self, time_published): + """ + Sets the time_published of this ZskDnssecKeyVersion. + The date and time the key version was, or will be, published, expressed in RFC 3339 timestamp format. This is + when the zone contents will include a DNSKEY record corresponding to the key material. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :param time_published: The time_published of this ZskDnssecKeyVersion. + :type: datetime + """ + self._time_published = time_published + + @property + def time_activated(self): + """ + Gets the time_activated of this ZskDnssecKeyVersion. + The date and time the key version went, or will go, active, expressed in RFC 3339 timestamp format. This is + when the key material will be used to generate RRSIGs. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :return: The time_activated of this ZskDnssecKeyVersion. + :rtype: datetime + """ + return self._time_activated + + @time_activated.setter + def time_activated(self, time_activated): + """ + Sets the time_activated of this ZskDnssecKeyVersion. + The date and time the key version went, or will go, active, expressed in RFC 3339 timestamp format. This is + when the key material will be used to generate RRSIGs. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :param time_activated: The time_activated of this ZskDnssecKeyVersion. + :type: datetime + """ + self._time_activated = time_activated + + @property + def time_inactivated(self): + """ + Gets the time_inactivated of this ZskDnssecKeyVersion. + The date and time the key version went, or will go, inactive, expressed in RFC 3339 timestamp format. This + is when the key material will no longer be used to generate RRSIGs. For a key signing key (KSK) `DnssecKeyVersion`, this is + populated after `PromoteZoneDnssecKeyVersion` has been called on its successor `DnssecKeyVersion`. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :return: The time_inactivated of this ZskDnssecKeyVersion. + :rtype: datetime + """ + return self._time_inactivated + + @time_inactivated.setter + def time_inactivated(self, time_inactivated): + """ + Sets the time_inactivated of this ZskDnssecKeyVersion. + The date and time the key version went, or will go, inactive, expressed in RFC 3339 timestamp format. This + is when the key material will no longer be used to generate RRSIGs. For a key signing key (KSK) `DnssecKeyVersion`, this is + populated after `PromoteZoneDnssecKeyVersion` has been called on its successor `DnssecKeyVersion`. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :param time_inactivated: The time_inactivated of this ZskDnssecKeyVersion. + :type: datetime + """ + self._time_inactivated = time_inactivated + + @property + def time_unpublished(self): + """ + Gets the time_unpublished of this ZskDnssecKeyVersion. + The date and time the key version was, or will be, unpublished, expressed in RFC 3339 timestamp format. This + is when the corresponding DNSKEY will be removed from zone contents. For a key signing key (KSK) `DnssecKeyVersion`, this is + populated after `PromoteZoneDnssecKeyVersion` has been called on its successor `DnssecKeyVersion`. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :return: The time_unpublished of this ZskDnssecKeyVersion. + :rtype: datetime + """ + return self._time_unpublished + + @time_unpublished.setter + def time_unpublished(self, time_unpublished): + """ + Sets the time_unpublished of this ZskDnssecKeyVersion. + The date and time the key version was, or will be, unpublished, expressed in RFC 3339 timestamp format. This + is when the corresponding DNSKEY will be removed from zone contents. For a key signing key (KSK) `DnssecKeyVersion`, this is + populated after `PromoteZoneDnssecKeyVersion` has been called on its successor `DnssecKeyVersion`. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :param time_unpublished: The time_unpublished of this ZskDnssecKeyVersion. + :type: datetime + """ + self._time_unpublished = time_unpublished + + @property + def time_expired(self): + """ + Gets the time_expired of this ZskDnssecKeyVersion. + The date and time at which the recommended key version publication/activation lifetime ends, expressed in RFC + 3339 timestamp format. This is when the corresponding DNSKEY should no longer exist in zone contents and no + longer be used to generate RRSIGs. For a key sigining key (KSK), if `PromoteZoneDnssecKeyVersion` has not been called on this + `DnssecKeyVersion`'s successor then it will remain active for arbitrarily long past its recommended lifetime. + This prevents service disruption at the potential increased risk of key compromise. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :return: The time_expired of this ZskDnssecKeyVersion. + :rtype: datetime + """ + return self._time_expired + + @time_expired.setter + def time_expired(self, time_expired): + """ + Sets the time_expired of this ZskDnssecKeyVersion. + The date and time at which the recommended key version publication/activation lifetime ends, expressed in RFC + 3339 timestamp format. This is when the corresponding DNSKEY should no longer exist in zone contents and no + longer be used to generate RRSIGs. For a key sigining key (KSK), if `PromoteZoneDnssecKeyVersion` has not been called on this + `DnssecKeyVersion`'s successor then it will remain active for arbitrarily long past its recommended lifetime. + This prevents service disruption at the potential increased risk of key compromise. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :param time_expired: The time_expired of this ZskDnssecKeyVersion. + :type: datetime + """ + self._time_expired = time_expired + + @property + def time_promoted(self): + """ + Gets the time_promoted of this ZskDnssecKeyVersion. + The date and time the key version was promoted expressed in RFC 3339 timestamp format. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :return: The time_promoted of this ZskDnssecKeyVersion. + :rtype: datetime + """ + return self._time_promoted + + @time_promoted.setter + def time_promoted(self, time_promoted): + """ + Sets the time_promoted of this ZskDnssecKeyVersion. + The date and time the key version was promoted expressed in RFC 3339 timestamp format. + + **Example:** `2016-07-22T17:23:59:00Z` + + + :param time_promoted: The time_promoted of this ZskDnssecKeyVersion. + :type: datetime + """ + self._time_promoted = time_promoted + + @property + def predecessor_dnssec_key_version_uuid(self): + """ + Gets the predecessor_dnssec_key_version_uuid of this ZskDnssecKeyVersion. + When populated, this is the UUID of the `DnssecKeyVersion` that this `DnssecKeyVersion` will replace or has + replaced. + + + :return: The predecessor_dnssec_key_version_uuid of this ZskDnssecKeyVersion. + :rtype: str + """ + return self._predecessor_dnssec_key_version_uuid + + @predecessor_dnssec_key_version_uuid.setter + def predecessor_dnssec_key_version_uuid(self, predecessor_dnssec_key_version_uuid): + """ + Sets the predecessor_dnssec_key_version_uuid of this ZskDnssecKeyVersion. + When populated, this is the UUID of the `DnssecKeyVersion` that this `DnssecKeyVersion` will replace or has + replaced. + + + :param predecessor_dnssec_key_version_uuid: The predecessor_dnssec_key_version_uuid of this ZskDnssecKeyVersion. + :type: str + """ + self._predecessor_dnssec_key_version_uuid = predecessor_dnssec_key_version_uuid + + @property + def successor_dnssec_key_version_uuid(self): + """ + Gets the successor_dnssec_key_version_uuid of this ZskDnssecKeyVersion. + When populated, this is the UUID of the `DnssecKeyVersion` that will replace, or has replaced, this + `DnssecKeyVersion`. + + + :return: The successor_dnssec_key_version_uuid of this ZskDnssecKeyVersion. + :rtype: str + """ + return self._successor_dnssec_key_version_uuid + + @successor_dnssec_key_version_uuid.setter + def successor_dnssec_key_version_uuid(self, successor_dnssec_key_version_uuid): + """ + Sets the successor_dnssec_key_version_uuid of this ZskDnssecKeyVersion. + When populated, this is the UUID of the `DnssecKeyVersion` that will replace, or has replaced, this + `DnssecKeyVersion`. + + + :param successor_dnssec_key_version_uuid: The successor_dnssec_key_version_uuid of this ZskDnssecKeyVersion. + :type: str + """ + self._successor_dnssec_key_version_uuid = successor_dnssec_key_version_uuid + + @property + def key_tag(self): + """ + Gets the key_tag of this ZskDnssecKeyVersion. + The key tag associated with the `DnssecKeyVersion`. This key tag will be present in the RRSIG and DS records + associated with the key material for this `DnssecKeyVersion`. For more information about key tags, see + `RFC 4034`__. + + __ https://tools.ietf.org/html/rfc4034 + + + :return: The key_tag of this ZskDnssecKeyVersion. + :rtype: int + """ + return self._key_tag + + @key_tag.setter + def key_tag(self, key_tag): + """ + Sets the key_tag of this ZskDnssecKeyVersion. + The key tag associated with the `DnssecKeyVersion`. This key tag will be present in the RRSIG and DS records + associated with the key material for this `DnssecKeyVersion`. For more information about key tags, see + `RFC 4034`__. + + __ https://tools.ietf.org/html/rfc4034 + + + :param key_tag: The key_tag of this ZskDnssecKeyVersion. + :type: int + """ + self._key_tag = key_tag + + 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/em_warehouse/em_data_lake_client.py b/src/oci/em_warehouse/em_data_lake_client.py deleted file mode 100644 index a8b83164c5..0000000000 --- a/src/oci/em_warehouse/em_data_lake_client.py +++ /dev/null @@ -1,1610 +0,0 @@ -# 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. - -from __future__ import absolute_import - -from oci._vendor import requests # noqa: F401 -from oci._vendor import six - -from oci import retry, circuit_breaker # noqa: F401 -from oci.base_client import BaseClient -from oci.config import get_config_value_or_default, validate_config -from oci.signer import Signer -from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME -from .models import em_warehouse_type_mapping -missing = Sentinel("Missing") - - -class EmDataLakeClient(object): - """ - A description of the EmdwControlPlane API - """ - - def __init__(self, config, **kwargs): - """ - Creates a new service client - - :param dict config: - Configuration keys and values as per `SDK and Tool Configuration `__. - The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config - the dict using :py:meth:`~oci.config.validate_config` - - :param str service_endpoint: (optional) - The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is - not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit - need to specify a service endpoint. - - :param timeout: (optional) - The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided - as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If - a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout. - :type timeout: float or tuple(float, float) - - :param signer: (optional) - The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values - provided in the config parameter. - - One use case for this parameter is for `Instance Principals authentication `__ - by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument - :type signer: :py:class:`~oci.signer.AbstractBaseSigner` - - :param obj retry_strategy: (optional) - A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default. - Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation. - Any value provided at the operation level will override whatever is specified at the client level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` - is also available. The specifics of the default retry strategy are described `here `__. - - :param obj circuit_breaker_strategy: (optional) - A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level). - This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided. - The specifics of circuit breaker strategy are described `here `__. - - :param function circuit_breaker_callback: (optional) - Callback function to receive any exceptions triggerred by the circuit breaker. - - :param allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not - allow control characters to be in the response object. - """ - validate_config(config, signer=kwargs.get('signer')) - if 'signer' in kwargs: - signer = kwargs['signer'] - - elif AUTHENTICATION_TYPE_FIELD_NAME in config: - signer = get_signer_from_authentication_type(config) - - else: - signer = Signer( - tenancy=config["tenancy"], - user=config["user"], - fingerprint=config["fingerprint"], - private_key_file_location=config.get("key_file"), - pass_phrase=get_config_value_or_default(config, "pass_phrase"), - private_key_content=config.get("key_content") - ) - - base_client_init_kwargs = { - 'regional_client': True, - 'service_endpoint': kwargs.get('service_endpoint'), - 'base_path': '/20180828', - 'service_endpoint_template': 'https://operationsinsights.{region}.oci.{secondLevelDomain}', - 'skip_deserialization': kwargs.get('skip_deserialization', False), - 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY) - } - if 'timeout' in kwargs: - base_client_init_kwargs['timeout'] = kwargs.get('timeout') - if base_client_init_kwargs.get('circuit_breaker_strategy') is None: - base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY - if 'allow_control_chars' in kwargs: - base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars') - self.base_client = BaseClient("em_data_lake", config, signer, em_warehouse_type_mapping, **base_client_init_kwargs) - self.retry_strategy = kwargs.get('retry_strategy') - self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback') - - def cancel_work_request(self, work_request_id, **kwargs): - """ - Cancels the work request with the given ID. - - - :param str work_request_id: (required) - The ID of the asynchronous request. - - :param str if_match: (optional) - For optimistic concurrency control. In the PUT or DELETE call - for a resource, set the `if-match` parameter to the value of the - etag from a previous GET or POST response for that resource. - The resource will be updated or deleted only if the etag you - provide matches the resource's current etag value. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type None - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use cancel_work_request API. - """ - resource_path = "/workRequests/{workRequestId}" - method = "DELETE" - operation_name = "cancel_work_request" - api_reference_link = "" - - # 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( - "cancel_work_request got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "workRequestId": work_request_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "if-match": kwargs.get("if_match", missing), - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - 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) - - def change_em_warehouse_compartment(self, em_warehouse_id, change_em_warehouse_compartment_details, **kwargs): - """ - Moves a EmWarehouse resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource. - - - :param str em_warehouse_id: (required) - unique EmWarehouse identifier - - :param oci.em_warehouse.models.ChangeEmWarehouseCompartmentDetails change_em_warehouse_compartment_details: (required) - The information to be updated. - - :param str if_match: (optional) - For optimistic concurrency control. In the PUT or DELETE call - for a resource, set the `if-match` parameter to the value of the - etag from a previous GET or POST response for that resource. - The resource will be updated or deleted only if the etag you - provide matches the resource's current etag value. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param str opc_retry_token: (optional) - A token that uniquely identifies a request so it can be retried in case of a timeout or - server error without risk of executing that same action again. Retry tokens expire after 24 - hours, but can be invalidated before then due to conflicting operations. For example, if a resource - has been deleted and purged from the system, then a retry of the original creation request - might be rejected. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type None - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use change_em_warehouse_compartment API. - """ - resource_path = "/emWarehouses/{emWarehouseId}/actions/changeCompartment" - method = "POST" - operation_name = "change_em_warehouse_compartment" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "if_match", - "opc_request_id", - "opc_retry_token" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "change_em_warehouse_compartment got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "emWarehouseId": em_warehouse_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "if-match": kwargs.get("if_match", missing), - "opc-request-id": kwargs.get("opc_request_id", missing), - "opc-retry-token": kwargs.get("opc_retry_token", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_retry_token_if_needed(header_params) - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - body=change_em_warehouse_compartment_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - body=change_em_warehouse_compartment_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def create_em_warehouse(self, create_em_warehouse_details, **kwargs): - """ - Creates a new EmWarehouse. - - - :param oci.em_warehouse.models.CreateEmWarehouseDetails create_em_warehouse_details: (required) - Details for the new EmWarehouse. - - :param str opc_retry_token: (optional) - A token that uniquely identifies a request so it can be retried in case of a timeout or - server error without risk of executing that same action again. Retry tokens expire after 24 - hours, but can be invalidated before then due to conflicting operations. For example, if a resource - has been deleted and purged from the system, then a retry of the original creation request - might be rejected. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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 create_em_warehouse API. - """ - resource_path = "/emWarehouses" - method = "POST" - operation_name = "create_em_warehouse" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_retry_token", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "create_em_warehouse got unknown kwargs: {!r}".format(extra_kwargs)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-retry-token": kwargs.get("opc_retry_token", missing), - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_retry_token_if_needed(header_params) - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - header_params=header_params, - body=create_em_warehouse_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - header_params=header_params, - body=create_em_warehouse_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def delete_em_warehouse(self, em_warehouse_id, **kwargs): - """ - Deletes a EmWarehouse resource by identifier - - - :param str em_warehouse_id: (required) - unique EmWarehouse identifier - - :param str if_match: (optional) - For optimistic concurrency control. In the PUT or DELETE call - for a resource, set the `if-match` parameter to the value of the - etag from a previous GET or POST response for that resource. - The resource will be updated or deleted only if the etag you - provide matches the resource's current etag value. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param 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_em_warehouse API. - """ - resource_path = "/emWarehouses/{emWarehouseId}" - method = "DELETE" - operation_name = "delete_em_warehouse" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "if_match", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "delete_em_warehouse got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "emWarehouseId": em_warehouse_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "if-match": kwargs.get("if_match", missing), - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - 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) - - def get_em_warehouse(self, em_warehouse_id, **kwargs): - """ - Gets a EmWarehouse by identifier - - - :param str em_warehouse_id: (required) - unique EmWarehouse identifier - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.em_warehouse.models.EmWarehouse` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use get_em_warehouse API. - """ - resource_path = "/emWarehouses/{emWarehouseId}" - method = "GET" - operation_name = "get_em_warehouse" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "get_em_warehouse got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "emWarehouseId": em_warehouse_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="EmWarehouse", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="EmWarehouse", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def get_em_warehouse_resource_usage(self, em_warehouse_id, **kwargs): - """ - Gets a EmWarehouseResourceUsage by identifier - - - :param str em_warehouse_id: (required) - unique EmWarehouse identifier - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.em_warehouse.models.ResourceUsage` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use get_em_warehouse_resource_usage API. - """ - resource_path = "/emWarehouses/{emWarehouseId}/resourceUsage" - method = "GET" - operation_name = "get_em_warehouse_resource_usage" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "get_em_warehouse_resource_usage got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "emWarehouseId": em_warehouse_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="ResourceUsage", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="ResourceUsage", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def get_work_request(self, work_request_id, **kwargs): - """ - Gets details of the work request with the given ID. - - - :param str work_request_id: (required) - The ID of the asynchronous request. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.em_warehouse.models.WorkRequest` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use get_work_request API. - """ - resource_path = "/workRequests/{workRequestId}" - method = "GET" - operation_name = "get_work_request" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "get_work_request got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "workRequestId": work_request_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="WorkRequest", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="WorkRequest", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def list_em_warehouses(self, **kwargs): - """ - Returns a list of EmWarehouses. - - - :param str compartment_id: (optional) - The ID of the compartment in which to list resources. - - :param str lifecycle_state: (optional) - A filter to return only resources their lifecycleState matches the given lifecycleState. - - Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED" - - :param str display_name: (optional) - A filter to return only resources that match the entire display name given. - - :param str operations_insights_warehouse_id: (optional) - unique operationsInsightsWarehouseId identifier - - :param str id: (optional) - unique EmWarehouse identifier - - :param int limit: (optional) - The maximum number of items to return. - - :param str page: (optional) - A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. - - :param str sort_order: (optional) - The sort order to use, either 'ASC' or 'DESC'. - - Allowed values are: "ASC", "DESC" - - :param str sort_by: (optional) - The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. - - Allowed values are: "timeCreated", "displayName" - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.em_warehouse.models.EmWarehouseCollection` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use list_em_warehouses API. - """ - resource_path = "/emWarehouses" - method = "GET" - operation_name = "list_em_warehouses" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "compartment_id", - "lifecycle_state", - "display_name", - "operations_insights_warehouse_id", - "id", - "limit", - "page", - "sort_order", - "sort_by", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "list_em_warehouses got unknown kwargs: {!r}".format(extra_kwargs)) - - if 'lifecycle_state' in kwargs: - lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] - if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values: - raise ValueError( - "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values) - ) - - if 'sort_order' in kwargs: - sort_order_allowed_values = ["ASC", "DESC"] - if kwargs['sort_order'] not in sort_order_allowed_values: - raise ValueError( - "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values) - ) - - if 'sort_by' in kwargs: - sort_by_allowed_values = ["timeCreated", "displayName"] - if kwargs['sort_by'] not in sort_by_allowed_values: - raise ValueError( - "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values) - ) - - query_params = { - "compartmentId": kwargs.get("compartment_id", missing), - "lifecycleState": kwargs.get("lifecycle_state", missing), - "displayName": kwargs.get("display_name", missing), - "operationsInsightsWarehouseId": kwargs.get("operations_insights_warehouse_id", missing), - "id": kwargs.get("id", missing), - "limit": kwargs.get("limit", missing), - "page": kwargs.get("page", missing), - "sortOrder": kwargs.get("sort_order", missing), - "sortBy": kwargs.get("sort_by", missing) - } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - 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="EmWarehouseCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - query_params=query_params, - header_params=header_params, - response_type="EmWarehouseCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def list_etl_runs(self, em_warehouse_id, **kwargs): - """ - Gets a list of runs of an EmWarehouseResource by identifier - - - :param str em_warehouse_id: (required) - unique EmWarehouse identifier - - :param str compartment_id: (optional) - The ID of the compartment in which to list resources. - - :param str display_name: (optional) - A filter to return only resources that match the entire display name given. - - :param int limit: (optional) - The maximum number of items to return. - - :param str page: (optional) - A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. - - :param str sort_order: (optional) - The sort order to use, either 'ASC' or 'DESC'. - - Allowed values are: "ASC", "DESC" - - :param str sort_by: (optional) - The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. - - Allowed values are: "timeCreated", "displayName" - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.em_warehouse.models.EtlRunCollection` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use list_etl_runs API. - """ - resource_path = "/emWarehouses/{emWarehouseId}/etlRuns" - method = "GET" - operation_name = "list_etl_runs" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "compartment_id", - "display_name", - "limit", - "page", - "sort_order", - "sort_by", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "list_etl_runs got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "emWarehouseId": em_warehouse_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - if 'sort_order' in kwargs: - sort_order_allowed_values = ["ASC", "DESC"] - if kwargs['sort_order'] not in sort_order_allowed_values: - raise ValueError( - "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values) - ) - - if 'sort_by' in kwargs: - sort_by_allowed_values = ["timeCreated", "displayName"] - if kwargs['sort_by'] not in sort_by_allowed_values: - raise ValueError( - "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values) - ) - - query_params = { - "compartmentId": kwargs.get("compartment_id", missing), - "displayName": kwargs.get("display_name", missing), - "limit": kwargs.get("limit", missing), - "page": kwargs.get("page", missing), - "sortOrder": kwargs.get("sort_order", missing), - "sortBy": kwargs.get("sort_by", missing) - } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - query_params=query_params, - header_params=header_params, - response_type="EtlRunCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - query_params=query_params, - header_params=header_params, - response_type="EtlRunCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def list_work_request_errors(self, work_request_id, **kwargs): - """ - Returns a (paginated) list of errors for the work request with the given ID. - - - :param str work_request_id: (required) - The ID of the asynchronous request. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param str page: (optional) - A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. - - :param int limit: (optional) - The maximum number of items to return. - - :param str sort_by: (optional) - The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. - - Allowed values are: "timeAccepted" - - :param str sort_order: (optional) - The sort order to use, either 'ASC' or 'DESC'. - - Allowed values are: "ASC", "DESC" - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.em_warehouse.models.WorkRequestErrorCollection` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use list_work_request_errors API. - """ - resource_path = "/workRequests/{workRequestId}/errors" - method = "GET" - operation_name = "list_work_request_errors" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_request_id", - "page", - "limit", - "sort_by", - "sort_order" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "list_work_request_errors got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "workRequestId": work_request_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - if 'sort_by' in kwargs: - sort_by_allowed_values = ["timeAccepted"] - if kwargs['sort_by'] not in sort_by_allowed_values: - raise ValueError( - "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values) - ) - - if 'sort_order' in kwargs: - sort_order_allowed_values = ["ASC", "DESC"] - if kwargs['sort_order'] not in sort_order_allowed_values: - raise ValueError( - "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values) - ) - - query_params = { - "page": kwargs.get("page", missing), - "limit": kwargs.get("limit", missing), - "sortBy": kwargs.get("sort_by", missing), - "sortOrder": kwargs.get("sort_order", missing) - } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - query_params=query_params, - header_params=header_params, - response_type="WorkRequestErrorCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - query_params=query_params, - header_params=header_params, - response_type="WorkRequestErrorCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def list_work_request_logs(self, work_request_id, **kwargs): - """ - Returns a (paginated) list of logs for the work request with the given ID. - - - :param str work_request_id: (required) - The ID of the asynchronous request. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param str page: (optional) - A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. - - :param int limit: (optional) - The maximum number of items to return. - - :param str sort_by: (optional) - The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. - - Allowed values are: "timeAccepted" - - :param str sort_order: (optional) - The sort order to use, either 'ASC' or 'DESC'. - - Allowed values are: "ASC", "DESC" - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.em_warehouse.models.WorkRequestLogEntryCollection` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use list_work_request_logs API. - """ - resource_path = "/workRequests/{workRequestId}/logs" - method = "GET" - operation_name = "list_work_request_logs" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_request_id", - "page", - "limit", - "sort_by", - "sort_order" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "list_work_request_logs got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "workRequestId": work_request_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - if 'sort_by' in kwargs: - sort_by_allowed_values = ["timeAccepted"] - if kwargs['sort_by'] not in sort_by_allowed_values: - raise ValueError( - "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values) - ) - - if 'sort_order' in kwargs: - sort_order_allowed_values = ["ASC", "DESC"] - if kwargs['sort_order'] not in sort_order_allowed_values: - raise ValueError( - "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values) - ) - - query_params = { - "page": kwargs.get("page", missing), - "limit": kwargs.get("limit", missing), - "sortBy": kwargs.get("sort_by", missing), - "sortOrder": kwargs.get("sort_order", missing) - } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - query_params=query_params, - header_params=header_params, - response_type="WorkRequestLogEntryCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - query_params=query_params, - header_params=header_params, - response_type="WorkRequestLogEntryCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def list_work_requests(self, **kwargs): - """ - Lists the work requests in a compartment. - - - :param str compartment_id: (optional) - The ID of the compartment in which to list resources. - - :param str work_request_id: (optional) - The ID of the asynchronous work request. - - :param str status: (optional) - A filter to return only resources their lifecycleState matches the given OperationStatus. - - Allowed values are: "ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED" - - :param str resource_id: (optional) - The ID of the resource affected by the work request. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param str page: (optional) - A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. - - :param int limit: (optional) - The maximum number of items to return. - - :param str sort_order: (optional) - The sort order to use, either 'ASC' or 'DESC'. - - Allowed values are: "ASC", "DESC" - - :param str sort_by: (optional) - The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. - - Allowed values are: "timeAccepted" - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.em_warehouse.models.WorkRequestSummaryCollection` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use list_work_requests API. - """ - resource_path = "/workRequests" - method = "GET" - operation_name = "list_work_requests" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "compartment_id", - "work_request_id", - "status", - "resource_id", - "opc_request_id", - "page", - "limit", - "sort_order", - "sort_by" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "list_work_requests got unknown kwargs: {!r}".format(extra_kwargs)) - - if 'status' in kwargs: - status_allowed_values = ["ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"] - if kwargs['status'] not in status_allowed_values: - raise ValueError( - "Invalid value for `status`, must be one of {0}".format(status_allowed_values) - ) - - if 'sort_order' in kwargs: - sort_order_allowed_values = ["ASC", "DESC"] - if kwargs['sort_order'] not in sort_order_allowed_values: - raise ValueError( - "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values) - ) - - if 'sort_by' in kwargs: - sort_by_allowed_values = ["timeAccepted"] - if kwargs['sort_by'] not in sort_by_allowed_values: - raise ValueError( - "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values) - ) - - query_params = { - "compartmentId": kwargs.get("compartment_id", missing), - "workRequestId": kwargs.get("work_request_id", missing), - "status": kwargs.get("status", missing), - "resourceId": kwargs.get("resource_id", missing), - "page": kwargs.get("page", missing), - "limit": kwargs.get("limit", missing), - "sortOrder": kwargs.get("sort_order", missing), - "sortBy": kwargs.get("sort_by", missing) - } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - query_params=query_params, - header_params=header_params, - response_type="WorkRequestSummaryCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - query_params=query_params, - header_params=header_params, - response_type="WorkRequestSummaryCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def update_em_warehouse(self, em_warehouse_id, update_em_warehouse_details, **kwargs): - """ - Updates the EmWarehouse - - - :param str em_warehouse_id: (required) - unique EmWarehouse identifier - - :param oci.em_warehouse.models.UpdateEmWarehouseDetails update_em_warehouse_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) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type None - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use update_em_warehouse API. - """ - resource_path = "/emWarehouses/{emWarehouseId}" - method = "PUT" - operation_name = "update_em_warehouse" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "if_match", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "update_em_warehouse got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "emWarehouseId": em_warehouse_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "if-match": kwargs.get("if_match", missing), - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - body=update_em_warehouse_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - body=update_em_warehouse_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) diff --git a/src/oci/em_warehouse/em_data_lake_client_composite_operations.py b/src/oci/em_warehouse/em_data_lake_client_composite_operations.py deleted file mode 100644 index 14af767691..0000000000 --- a/src/oci/em_warehouse/em_data_lake_client_composite_operations.py +++ /dev/null @@ -1,190 +0,0 @@ -# coding: utf-8 -# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. -# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - -import oci # noqa: F401 -from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401 - - -class EmDataLakeClientCompositeOperations(object): - """ - This class provides a wrapper around :py:class:`~oci.em_warehouse.EmDataLakeClient` and offers convenience methods - for operations that would otherwise need to be chained together. For example, instead of performing an action - on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource - to enter a given state, you can call a single method in this class to accomplish the same functionality - """ - - def __init__(self, client, **kwargs): - """ - Creates a new EmDataLakeClientCompositeOperations object - - :param EmDataLakeClient client: - The service client which will be wrapped by this object - """ - self.client = client - - def change_em_warehouse_compartment_and_wait_for_state(self, em_warehouse_id, change_em_warehouse_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): - """ - Calls :py:func:`~oci.em_warehouse.EmDataLakeClient.change_em_warehouse_compartment` and waits for the :py:class:`~oci.em_warehouse.models.WorkRequest` - to enter the given state(s). - - :param str em_warehouse_id: (required) - unique EmWarehouse identifier - - :param oci.em_warehouse.models.ChangeEmWarehouseCompartmentDetails change_em_warehouse_compartment_details: (required) - The information to be updated. - - :param list[str] wait_for_states: - An array of states to wait on. These should be valid values for :py:attr:`~oci.em_warehouse.models.WorkRequest.status` - - :param dict operation_kwargs: - A dictionary of keyword arguments to pass to :py:func:`~oci.em_warehouse.EmDataLakeClient.change_em_warehouse_compartment` - - :param dict waiter_kwargs: - A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` - as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait - """ - operation_result = self.client.change_em_warehouse_compartment(em_warehouse_id, change_em_warehouse_compartment_details, **operation_kwargs) - if not wait_for_states: - return operation_result - - lowered_wait_for_states = [w.lower() for w in wait_for_states] - wait_for_resource_id = operation_result.headers['opc-work-request-id'] - - try: - waiter_result = oci.wait_until( - self.client, - self.client.get_work_request(wait_for_resource_id), - evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, - **waiter_kwargs - ) - result_to_return = waiter_result - - return result_to_return - except Exception as e: - raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) - - def create_em_warehouse_and_wait_for_state(self, create_em_warehouse_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): - """ - Calls :py:func:`~oci.em_warehouse.EmDataLakeClient.create_em_warehouse` and waits for the :py:class:`~oci.em_warehouse.models.WorkRequest` - to enter the given state(s). - - :param oci.em_warehouse.models.CreateEmWarehouseDetails create_em_warehouse_details: (required) - Details for the new EmWarehouse. - - :param list[str] wait_for_states: - An array of states to wait on. These should be valid values for :py:attr:`~oci.em_warehouse.models.WorkRequest.status` - - :param dict operation_kwargs: - A dictionary of keyword arguments to pass to :py:func:`~oci.em_warehouse.EmDataLakeClient.create_em_warehouse` - - :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_em_warehouse(create_em_warehouse_details, **operation_kwargs) - if not wait_for_states: - return operation_result - - lowered_wait_for_states = [w.lower() for w in wait_for_states] - wait_for_resource_id = operation_result.headers['opc-work-request-id'] - - try: - waiter_result = oci.wait_until( - self.client, - self.client.get_work_request(wait_for_resource_id), - evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, - **waiter_kwargs - ) - result_to_return = waiter_result - - return result_to_return - except Exception as e: - raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) - - def delete_em_warehouse_and_wait_for_state(self, em_warehouse_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): - """ - Calls :py:func:`~oci.em_warehouse.EmDataLakeClient.delete_em_warehouse` and waits for the :py:class:`~oci.em_warehouse.models.WorkRequest` - to enter the given state(s). - - :param str em_warehouse_id: (required) - unique EmWarehouse identifier - - :param list[str] wait_for_states: - An array of states to wait on. These should be valid values for :py:attr:`~oci.em_warehouse.models.WorkRequest.status` - - :param dict operation_kwargs: - A dictionary of keyword arguments to pass to :py:func:`~oci.em_warehouse.EmDataLakeClient.delete_em_warehouse` - - :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_em_warehouse(em_warehouse_id, **operation_kwargs) - except oci.exceptions.ServiceError as e: - if e.status == 404: - return WAIT_RESOURCE_NOT_FOUND - else: - raise e - - if not wait_for_states: - return operation_result - - lowered_wait_for_states = [w.lower() for w in wait_for_states] - wait_for_resource_id = operation_result.headers['opc-work-request-id'] - - try: - waiter_result = oci.wait_until( - self.client, - self.client.get_work_request(wait_for_resource_id), - evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, - **waiter_kwargs - ) - result_to_return = waiter_result - - return result_to_return - except Exception as e: - raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) - - def update_em_warehouse_and_wait_for_state(self, em_warehouse_id, update_em_warehouse_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): - """ - Calls :py:func:`~oci.em_warehouse.EmDataLakeClient.update_em_warehouse` and waits for the :py:class:`~oci.em_warehouse.models.WorkRequest` - to enter the given state(s). - - :param str em_warehouse_id: (required) - unique EmWarehouse identifier - - :param oci.em_warehouse.models.UpdateEmWarehouseDetails update_em_warehouse_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.em_warehouse.models.WorkRequest.status` - - :param dict operation_kwargs: - A dictionary of keyword arguments to pass to :py:func:`~oci.em_warehouse.EmDataLakeClient.update_em_warehouse` - - :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_em_warehouse(em_warehouse_id, update_em_warehouse_details, **operation_kwargs) - if not wait_for_states: - return operation_result - - lowered_wait_for_states = [w.lower() for w in wait_for_states] - wait_for_resource_id = operation_result.headers['opc-work-request-id'] - - try: - waiter_result = oci.wait_until( - self.client, - self.client.get_work_request(wait_for_resource_id), - evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, - **waiter_kwargs - ) - result_to_return = waiter_result - - return result_to_return - except Exception as e: - raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) diff --git a/src/oci/fusion_apps/data_masking_activity_client.py b/src/oci/fusion_apps/data_masking_activity_client.py deleted file mode 100644 index ba39829e20..0000000000 --- a/src/oci/fusion_apps/data_masking_activity_client.py +++ /dev/null @@ -1,456 +0,0 @@ -# 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. - -from __future__ import absolute_import - -from oci._vendor import requests # noqa: F401 -from oci._vendor import six - -from oci import retry, circuit_breaker # noqa: F401 -from oci.base_client import BaseClient -from oci.config import get_config_value_or_default, validate_config -from oci.signer import Signer -from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME -from .models import fusion_apps_type_mapping -missing = Sentinel("Missing") - - -class DataMaskingActivityClient(object): - """ - Use the Fusion Applications Environment Management API to manage the environments where your Fusion Applications run. For more information, see the [Fusion Applications Environment Management documentation](/iaas/Content/Identity/fusion-applications/home.htm). - """ - - def __init__(self, config, **kwargs): - """ - Creates a new service client - - :param dict config: - Configuration keys and values as per `SDK and Tool Configuration `__. - The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config - the dict using :py:meth:`~oci.config.validate_config` - - :param str service_endpoint: (optional) - The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is - not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit - need to specify a service endpoint. - - :param timeout: (optional) - The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided - as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If - a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout. - :type timeout: float or tuple(float, float) - - :param signer: (optional) - The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values - provided in the config parameter. - - One use case for this parameter is for `Instance Principals authentication `__ - by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument - :type signer: :py:class:`~oci.signer.AbstractBaseSigner` - - :param obj retry_strategy: (optional) - A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default. - Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation. - Any value provided at the operation level will override whatever is specified at the client level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` - is also available. The specifics of the default retry strategy are described `here `__. - - :param obj circuit_breaker_strategy: (optional) - A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level). - This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided. - The specifics of circuit breaker strategy are described `here `__. - - :param function circuit_breaker_callback: (optional) - Callback function to receive any exceptions triggerred by the circuit breaker. - - :param allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not - allow control characters to be in the response object. - """ - validate_config(config, signer=kwargs.get('signer')) - if 'signer' in kwargs: - signer = kwargs['signer'] - - elif AUTHENTICATION_TYPE_FIELD_NAME in config: - signer = get_signer_from_authentication_type(config) - - else: - signer = Signer( - tenancy=config["tenancy"], - user=config["user"], - fingerprint=config["fingerprint"], - private_key_file_location=config.get("key_file"), - pass_phrase=get_config_value_or_default(config, "pass_phrase"), - private_key_content=config.get("key_content") - ) - - base_client_init_kwargs = { - 'regional_client': True, - 'service_endpoint': kwargs.get('service_endpoint'), - 'base_path': '/20211201', - 'service_endpoint_template': 'https://fusionapps.{region}.oci.{secondLevelDomain}', - 'skip_deserialization': kwargs.get('skip_deserialization', False), - 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY) - } - if 'timeout' in kwargs: - base_client_init_kwargs['timeout'] = kwargs.get('timeout') - if base_client_init_kwargs.get('circuit_breaker_strategy') is None: - base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY - if 'allow_control_chars' in kwargs: - base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars') - self.base_client = BaseClient("data_masking_activity", config, signer, fusion_apps_type_mapping, **base_client_init_kwargs) - self.retry_strategy = kwargs.get('retry_strategy') - self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback') - - def create_data_masking_activity(self, fusion_environment_id, create_data_masking_activity_details, **kwargs): - """ - Creates a new DataMaskingActivity. - - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param oci.fusion_apps.models.CreateDataMaskingActivityDetails create_data_masking_activity_details: (required) - Details for the new DataMaskingActivity. - - :param str opc_retry_token: (optional) - A token that uniquely identifies a request so it can be retried in case of a timeout or - server error without risk of executing that same action again. Retry tokens expire after 24 - hours, but can be invalidated before then due to conflicting operations. For example, if a resource - has been deleted and purged from the system, then a retry of the original creation request - might be rejected. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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 create_data_masking_activity API. - """ - resource_path = "/fusionEnvironments/{fusionEnvironmentId}/dataMaskingActivities" - method = "POST" - operation_name = "create_data_masking_activity" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_retry_token", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "create_data_masking_activity got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentId": fusion_environment_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-retry-token": kwargs.get("opc_retry_token", missing), - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_retry_token_if_needed(header_params) - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - body=create_data_masking_activity_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - body=create_data_masking_activity_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def get_data_masking_activity(self, fusion_environment_id, data_masking_activity_id, **kwargs): - """ - Gets a DataMaskingActivity by identifier - - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param str data_masking_activity_id: (required) - Unique DataMasking run identifier. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fusion_apps.models.DataMaskingActivity` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use get_data_masking_activity API. - """ - resource_path = "/fusionEnvironments/{fusionEnvironmentId}/dataMaskingActivities/{dataMaskingActivityId}" - method = "GET" - operation_name = "get_data_masking_activity" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "get_data_masking_activity got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentId": fusion_environment_id, - "dataMaskingActivityId": data_masking_activity_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="DataMaskingActivity", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="DataMaskingActivity", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def list_data_masking_activities(self, fusion_environment_id, **kwargs): - """ - Returns a list of DataMaskingActivities. - - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param str lifecycle_state: (optional) - A filter that returns all resources that match the specified status - - Allowed values are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELED" - - :param int limit: (optional) - The maximum number of items to return. - - :param str page: (optional) - The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. - - :param str sort_order: (optional) - The sort order to use, either 'asc' or 'desc'. - - Allowed values are: "ASC", "DESC" - - :param str sort_by: (optional) - The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. - - Allowed values are: "TIME_CREATED", "DISPLAY_NAME" - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fusion_apps.models.DataMaskingActivityCollection` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use list_data_masking_activities API. - """ - resource_path = "/fusionEnvironments/{fusionEnvironmentId}/dataMaskingActivities" - method = "GET" - operation_name = "list_data_masking_activities" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "lifecycle_state", - "limit", - "page", - "sort_order", - "sort_by", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "list_data_masking_activities got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentId": fusion_environment_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - if 'lifecycle_state' in kwargs: - lifecycle_state_allowed_values = ["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELED"] - if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values: - raise ValueError( - "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values) - ) - - if 'sort_order' in kwargs: - sort_order_allowed_values = ["ASC", "DESC"] - if kwargs['sort_order'] not in sort_order_allowed_values: - raise ValueError( - "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values) - ) - - if 'sort_by' in kwargs: - sort_by_allowed_values = ["TIME_CREATED", "DISPLAY_NAME"] - if kwargs['sort_by'] not in sort_by_allowed_values: - raise ValueError( - "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values) - ) - - query_params = { - "lifecycleState": kwargs.get("lifecycle_state", missing), - "limit": kwargs.get("limit", missing), - "page": kwargs.get("page", missing), - "sortOrder": kwargs.get("sort_order", missing), - "sortBy": kwargs.get("sort_by", missing) - } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - query_params=query_params, - header_params=header_params, - response_type="DataMaskingActivityCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - query_params=query_params, - header_params=header_params, - response_type="DataMaskingActivityCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) diff --git a/src/oci/fusion_apps/data_masking_activity_client_composite_operations.py b/src/oci/fusion_apps/data_masking_activity_client_composite_operations.py deleted file mode 100644 index d1cb716988..0000000000 --- a/src/oci/fusion_apps/data_masking_activity_client_composite_operations.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 -# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. -# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - -import oci # noqa: F401 -from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401 - - -class DataMaskingActivityClientCompositeOperations(object): - """ - This class provides a wrapper around :py:class:`~oci.fusion_apps.DataMaskingActivityClient` and offers convenience methods - for operations that would otherwise need to be chained together. For example, instead of performing an action - on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource - to enter a given state, you can call a single method in this class to accomplish the same functionality - """ - - def __init__(self, client, **kwargs): - """ - Creates a new DataMaskingActivityClientCompositeOperations object - - :param DataMaskingActivityClient client: - The service client which will be wrapped by this object - """ - self.client = client - - def create_data_masking_activity_and_wait_for_state(self, fusion_environment_id, create_data_masking_activity_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): - """ - Calls :py:func:`~oci.fusion_apps.DataMaskingActivityClient.create_data_masking_activity` and waits for the :py:class:`~oci.fusion_apps.models.WorkRequest` - to enter the given state(s). - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param oci.fusion_apps.models.CreateDataMaskingActivityDetails create_data_masking_activity_details: (required) - Details for the new DataMaskingActivity. - - :param list[str] wait_for_states: - An array of states to wait on. These should be valid values for :py:attr:`~oci.fusion_apps.models.WorkRequest.status` - - :param dict operation_kwargs: - A dictionary of keyword arguments to pass to :py:func:`~oci.fusion_apps.DataMaskingActivityClient.create_data_masking_activity` - - :param dict waiter_kwargs: - A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` - as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait - """ - operation_result = self.client.create_data_masking_activity(fusion_environment_id, create_data_masking_activity_details, **operation_kwargs) - if not wait_for_states: - return operation_result - - lowered_wait_for_states = [w.lower() for w in wait_for_states] - wait_for_resource_id = operation_result.headers['opc-work-request-id'] - - try: - waiter_result = oci.wait_until( - self.client, - self.client.get_work_request(wait_for_resource_id), - evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, - **waiter_kwargs - ) - result_to_return = waiter_result - - return result_to_return - except Exception as e: - raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) diff --git a/src/oci/fusion_apps/fusion_environment_client.py b/src/oci/fusion_apps/fusion_environment_client.py deleted file mode 100644 index 4c0de625e6..0000000000 --- a/src/oci/fusion_apps/fusion_environment_client.py +++ /dev/null @@ -1,1772 +0,0 @@ -# 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. - -from __future__ import absolute_import - -from oci._vendor import requests # noqa: F401 -from oci._vendor import six - -from oci import retry, circuit_breaker # noqa: F401 -from oci.base_client import BaseClient -from oci.config import get_config_value_or_default, validate_config -from oci.signer import Signer -from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME -from .models import fusion_apps_type_mapping -missing = Sentinel("Missing") - - -class FusionEnvironmentClient(object): - """ - Use the Fusion Applications Environment Management API to manage the environments where your Fusion Applications run. For more information, see the [Fusion Applications Environment Management documentation](/iaas/Content/Identity/fusion-applications/home.htm). - """ - - def __init__(self, config, **kwargs): - """ - Creates a new service client - - :param dict config: - Configuration keys and values as per `SDK and Tool Configuration `__. - The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config - the dict using :py:meth:`~oci.config.validate_config` - - :param str service_endpoint: (optional) - The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is - not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit - need to specify a service endpoint. - - :param timeout: (optional) - The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided - as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If - a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout. - :type timeout: float or tuple(float, float) - - :param signer: (optional) - The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values - provided in the config parameter. - - One use case for this parameter is for `Instance Principals authentication `__ - by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument - :type signer: :py:class:`~oci.signer.AbstractBaseSigner` - - :param obj retry_strategy: (optional) - A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default. - Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation. - Any value provided at the operation level will override whatever is specified at the client level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` - is also available. The specifics of the default retry strategy are described `here `__. - - :param obj circuit_breaker_strategy: (optional) - A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level). - This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided. - The specifics of circuit breaker strategy are described `here `__. - - :param function circuit_breaker_callback: (optional) - Callback function to receive any exceptions triggerred by the circuit breaker. - - :param allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not - allow control characters to be in the response object. - """ - validate_config(config, signer=kwargs.get('signer')) - if 'signer' in kwargs: - signer = kwargs['signer'] - - elif AUTHENTICATION_TYPE_FIELD_NAME in config: - signer = get_signer_from_authentication_type(config) - - else: - signer = Signer( - tenancy=config["tenancy"], - user=config["user"], - fingerprint=config["fingerprint"], - private_key_file_location=config.get("key_file"), - pass_phrase=get_config_value_or_default(config, "pass_phrase"), - private_key_content=config.get("key_content") - ) - - base_client_init_kwargs = { - 'regional_client': True, - 'service_endpoint': kwargs.get('service_endpoint'), - 'base_path': '/20211201', - 'service_endpoint_template': 'https://fusionapps.{region}.oci.{secondLevelDomain}', - 'skip_deserialization': kwargs.get('skip_deserialization', False), - 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY) - } - if 'timeout' in kwargs: - base_client_init_kwargs['timeout'] = kwargs.get('timeout') - if base_client_init_kwargs.get('circuit_breaker_strategy') is None: - base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY - if 'allow_control_chars' in kwargs: - base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars') - self.base_client = BaseClient("fusion_environment", config, signer, fusion_apps_type_mapping, **base_client_init_kwargs) - self.retry_strategy = kwargs.get('retry_strategy') - self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback') - - def change_fusion_environment_compartment(self, fusion_environment_id, change_fusion_environment_compartment_details, **kwargs): - """ - Moves a FusionEnvironment into a different compartment. When provided, If-Match is checked against ETag - values of the resource. - - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param oci.fusion_apps.models.ChangeFusionEnvironmentCompartmentDetails change_fusion_environment_compartment_details: (required) - The details of change compartment request. - - :param str if_match: (optional) - For optimistic concurrency control. In the PUT or DELETE call - for a resource, set the `if-match` parameter to the value of the - etag from a previous GET or POST response for that resource. - The resource will be updated or deleted only if the etag you - provide matches the resource's current etag value. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param str opc_retry_token: (optional) - A token that uniquely identifies a request so it can be retried in case of a timeout or - server error without risk of executing that same action again. Retry tokens expire after 24 - hours, but can be invalidated before then due to conflicting operations. For example, if a resource - has been deleted and purged from the system, then a retry of the original creation request - might be rejected. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type None - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use change_fusion_environment_compartment API. - """ - resource_path = "/fusionEnvironments/{fusionEnvironmentId}/actions/changeCompartment" - method = "POST" - operation_name = "change_fusion_environment_compartment" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "if_match", - "opc_request_id", - "opc_retry_token" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "change_fusion_environment_compartment got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentId": fusion_environment_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "if-match": kwargs.get("if_match", missing), - "opc-request-id": kwargs.get("opc_request_id", missing), - "opc-retry-token": kwargs.get("opc_retry_token", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_retry_token_if_needed(header_params) - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - body=change_fusion_environment_compartment_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - body=change_fusion_environment_compartment_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def create_fusion_environment(self, create_fusion_environment_details, **kwargs): - """ - Creates a new FusionEnvironment. - - - :param oci.fusion_apps.models.CreateFusionEnvironmentDetails create_fusion_environment_details: (required) - Details for the new FusionEnvironment. - - :param str opc_retry_token: (optional) - A token that uniquely identifies a request so it can be retried in case of a timeout or - server error without risk of executing that same action again. Retry tokens expire after 24 - hours, but can be invalidated before then due to conflicting operations. For example, if a resource - has been deleted and purged from the system, then a retry of the original creation request - might be rejected. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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 create_fusion_environment API. - """ - resource_path = "/fusionEnvironments" - method = "POST" - operation_name = "create_fusion_environment" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_retry_token", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "create_fusion_environment got unknown kwargs: {!r}".format(extra_kwargs)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-retry-token": kwargs.get("opc_retry_token", missing), - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_retry_token_if_needed(header_params) - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - header_params=header_params, - body=create_fusion_environment_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - header_params=header_params, - body=create_fusion_environment_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def create_fusion_environment_admin_user(self, create_fusion_environment_admin_user_details, fusion_environment_id, **kwargs): - """ - Create a FusionEnvironment admin user - - - :param oci.fusion_apps.models.CreateFusionEnvironmentAdminUserDetails create_fusion_environment_admin_user_details: (required) - The admin user to be created. - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param str opc_retry_token: (optional) - A token that uniquely identifies a request so it can be retried in case of a timeout or - server error without risk of executing that same action again. Retry tokens expire after 24 - hours, but can be invalidated before then due to conflicting operations. For example, if a resource - has been deleted and purged from the system, then a retry of the original creation request - might be rejected. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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 create_fusion_environment_admin_user API. - """ - resource_path = "/fusionEnvironments/{fusionEnvironmentId}/adminUsers" - method = "POST" - operation_name = "create_fusion_environment_admin_user" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_retry_token", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "create_fusion_environment_admin_user got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentId": fusion_environment_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-retry-token": kwargs.get("opc_retry_token", missing), - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_retry_token_if_needed(header_params) - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - body=create_fusion_environment_admin_user_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - body=create_fusion_environment_admin_user_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def delete_fusion_environment(self, fusion_environment_id, **kwargs): - """ - Deletes the Fusion environment identified by it's OCID. - - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param str if_match: (optional) - For optimistic concurrency control. In the PUT or DELETE call - for a resource, set the `if-match` parameter to the value of the - etag from a previous GET or POST response for that resource. - The resource will be updated or deleted only if the etag you - provide matches the resource's current etag value. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param 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_fusion_environment API. - """ - resource_path = "/fusionEnvironments/{fusionEnvironmentId}" - method = "DELETE" - operation_name = "delete_fusion_environment" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "if_match", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "delete_fusion_environment got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentId": fusion_environment_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "if-match": kwargs.get("if_match", missing), - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - 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) - - def delete_fusion_environment_admin_user(self, admin_username, fusion_environment_id, **kwargs): - """ - Deletes the FusionEnvironment administrator user identified by the username. - - - :param str admin_username: (required) - The admin user name for the fusion environment. - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param str if_match: (optional) - For optimistic concurrency control. In the PUT or DELETE call - for a resource, set the `if-match` parameter to the value of the - etag from a previous GET or POST response for that resource. - The resource will be updated or deleted only if the etag you - provide matches the resource's current etag value. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param 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_fusion_environment_admin_user API. - """ - resource_path = "/fusionEnvironments/{fusionEnvironmentId}/adminUsers/{adminUsername}" - method = "DELETE" - operation_name = "delete_fusion_environment_admin_user" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "if_match", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "delete_fusion_environment_admin_user got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "adminUsername": admin_username, - "fusionEnvironmentId": fusion_environment_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "if-match": kwargs.get("if_match", missing), - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - 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) - - def get_fusion_environment(self, fusion_environment_id, **kwargs): - """ - Gets a FusionEnvironment by identifier - - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fusion_apps.models.FusionEnvironment` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use get_fusion_environment API. - """ - resource_path = "/fusionEnvironments/{fusionEnvironmentId}" - method = "GET" - operation_name = "get_fusion_environment" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "get_fusion_environment got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentId": fusion_environment_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="FusionEnvironment", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="FusionEnvironment", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def get_fusion_environment_status(self, fusion_environment_id, **kwargs): - """ - Gets the status of a Fusion environment identified by its OCID. - - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fusion_apps.models.FusionEnvironmentStatus` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use get_fusion_environment_status API. - """ - resource_path = "/fusionEnvironments/{fusionEnvironmentId}/status" - method = "GET" - operation_name = "get_fusion_environment_status" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "get_fusion_environment_status got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentId": fusion_environment_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="FusionEnvironmentStatus", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="FusionEnvironmentStatus", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def get_work_request(self, work_request_id, **kwargs): - """ - Gets the status of the work request with the given ID. - - - :param str work_request_id: (required) - The ID of the asynchronous request. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fusion_apps.models.WorkRequest` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use get_work_request API. - """ - resource_path = "/workRequests/{workRequestId}" - method = "GET" - operation_name = "get_work_request" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "get_work_request got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "workRequestId": work_request_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="WorkRequest", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="WorkRequest", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def list_admin_users(self, fusion_environment_id, **kwargs): - """ - List all FusionEnvironment admin users - - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fusion_apps.models.AdminUserCollection` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use list_admin_users API. - """ - resource_path = "/fusionEnvironments/{fusionEnvironmentId}/adminUsers" - method = "GET" - operation_name = "list_admin_users" - api_reference_link = "" - - # 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( - "list_admin_users got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentId": fusion_environment_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="AdminUserCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="AdminUserCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def list_fusion_environments(self, compartment_id, **kwargs): - """ - Returns a list of FusionEnvironments. - - - :param str compartment_id: (required) - The ID of the compartment in which to list resources. - - :param str fusion_environment_family_id: (optional) - The ID of the fusion environment family in which to list resources. - - :param str display_name: (optional) - A filter to return only resources that match the entire display name given. - - :param str lifecycle_state: (optional) - A filter that returns all resources that match the specified lifecycle state. - - Allowed values are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED" - - :param int limit: (optional) - The maximum number of items to return. - - :param str page: (optional) - The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. - - :param str sort_order: (optional) - The sort order to use, either 'asc' or 'desc'. - - Allowed values are: "ASC", "DESC" - - :param str sort_by: (optional) - The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. - - Allowed values are: "TIME_CREATED", "DISPLAY_NAME" - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fusion_apps.models.FusionEnvironmentCollection` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use list_fusion_environments API. - """ - resource_path = "/fusionEnvironments" - method = "GET" - operation_name = "list_fusion_environments" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "fusion_environment_family_id", - "display_name", - "lifecycle_state", - "limit", - "page", - "sort_order", - "sort_by", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "list_fusion_environments got unknown kwargs: {!r}".format(extra_kwargs)) - - if 'lifecycle_state' in kwargs: - lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"] - if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values: - raise ValueError( - "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values) - ) - - if 'sort_order' in kwargs: - sort_order_allowed_values = ["ASC", "DESC"] - if kwargs['sort_order'] not in sort_order_allowed_values: - raise ValueError( - "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values) - ) - - if 'sort_by' in kwargs: - sort_by_allowed_values = ["TIME_CREATED", "DISPLAY_NAME"] - if kwargs['sort_by'] not in sort_by_allowed_values: - raise ValueError( - "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values) - ) - - query_params = { - "compartmentId": compartment_id, - "fusionEnvironmentFamilyId": kwargs.get("fusion_environment_family_id", missing), - "displayName": kwargs.get("display_name", missing), - "lifecycleState": kwargs.get("lifecycle_state", missing), - "limit": kwargs.get("limit", missing), - "page": kwargs.get("page", missing), - "sortOrder": kwargs.get("sort_order", missing), - "sortBy": kwargs.get("sort_by", missing) - } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - 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="FusionEnvironmentCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - query_params=query_params, - header_params=header_params, - response_type="FusionEnvironmentCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def list_work_request_errors(self, work_request_id, **kwargs): - """ - Return a (paginated) list of errors for a given work request. - - - :param str work_request_id: (required) - The ID of the asynchronous request. - - :param str sort_by: (optional) - The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. - - Allowed values are: "timeAccepted" - - :param str sort_order: (optional) - The sort order to use, either 'asc' or 'desc'. - - Allowed values are: "ASC", "DESC" - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param str page: (optional) - The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. - - :param int limit: (optional) - The maximum number of items to return. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fusion_apps.models.WorkRequestErrorCollection` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use list_work_request_errors API. - """ - resource_path = "/workRequests/{workRequestId}/errors" - method = "GET" - operation_name = "list_work_request_errors" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "sort_by", - "sort_order", - "opc_request_id", - "page", - "limit" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "list_work_request_errors got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "workRequestId": work_request_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - if 'sort_by' in kwargs: - sort_by_allowed_values = ["timeAccepted"] - if kwargs['sort_by'] not in sort_by_allowed_values: - raise ValueError( - "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values) - ) - - if 'sort_order' in kwargs: - sort_order_allowed_values = ["ASC", "DESC"] - if kwargs['sort_order'] not in sort_order_allowed_values: - raise ValueError( - "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values) - ) - - query_params = { - "sortBy": kwargs.get("sort_by", missing), - "sortOrder": kwargs.get("sort_order", missing), - "page": kwargs.get("page", missing), - "limit": kwargs.get("limit", missing) - } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - query_params=query_params, - header_params=header_params, - response_type="WorkRequestErrorCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - query_params=query_params, - header_params=header_params, - response_type="WorkRequestErrorCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def list_work_request_logs(self, work_request_id, **kwargs): - """ - Return a (paginated) list of logs for a given work request. - - - :param str work_request_id: (required) - The ID of the asynchronous request. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param str page: (optional) - The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. - - :param int limit: (optional) - The maximum number of items to return. - - :param str sort_by: (optional) - The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. - - Allowed values are: "timeAccepted" - - :param str sort_order: (optional) - The sort order to use, either 'asc' or 'desc'. - - Allowed values are: "ASC", "DESC" - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fusion_apps.models.WorkRequestLogEntryCollection` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use list_work_request_logs API. - """ - resource_path = "/workRequests/{workRequestId}/logs" - method = "GET" - operation_name = "list_work_request_logs" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_request_id", - "page", - "limit", - "sort_by", - "sort_order" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "list_work_request_logs got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "workRequestId": work_request_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - if 'sort_by' in kwargs: - sort_by_allowed_values = ["timeAccepted"] - if kwargs['sort_by'] not in sort_by_allowed_values: - raise ValueError( - "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values) - ) - - if 'sort_order' in kwargs: - sort_order_allowed_values = ["ASC", "DESC"] - if kwargs['sort_order'] not in sort_order_allowed_values: - raise ValueError( - "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values) - ) - - query_params = { - "page": kwargs.get("page", missing), - "limit": kwargs.get("limit", missing), - "sortBy": kwargs.get("sort_by", missing), - "sortOrder": kwargs.get("sort_order", missing) - } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - query_params=query_params, - header_params=header_params, - response_type="WorkRequestLogEntryCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - query_params=query_params, - header_params=header_params, - response_type="WorkRequestLogEntryCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def list_work_requests(self, compartment_id, **kwargs): - """ - Lists the work requests in a compartment. - - - :param str compartment_id: (required) - The ID of the compartment in which to list resources. - - :param str status: (optional) - A filter to return only resources their lifecycleState matches the given OperationStatus. - - Allowed values are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED" - - :param str sort_by: (optional) - The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. - - Allowed values are: "timeAccepted" - - :param str sort_order: (optional) - The sort order to use, either 'asc' or 'desc'. - - Allowed values are: "ASC", "DESC" - - :param str resource_id: (optional) - The ID of the a resource in which to list associated resources. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param str page: (optional) - The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. - - :param int limit: (optional) - The maximum number of items to return. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fusion_apps.models.WorkRequestSummaryCollection` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use list_work_requests API. - """ - resource_path = "/workRequests" - method = "GET" - operation_name = "list_work_requests" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "status", - "sort_by", - "sort_order", - "resource_id", - "opc_request_id", - "page", - "limit" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "list_work_requests got unknown kwargs: {!r}".format(extra_kwargs)) - - if 'status' in kwargs: - status_allowed_values = ["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"] - if kwargs['status'] not in status_allowed_values: - raise ValueError( - "Invalid value for `status`, must be one of {0}".format(status_allowed_values) - ) - - if 'sort_by' in kwargs: - sort_by_allowed_values = ["timeAccepted"] - if kwargs['sort_by'] not in sort_by_allowed_values: - raise ValueError( - "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values) - ) - - if 'sort_order' in kwargs: - sort_order_allowed_values = ["ASC", "DESC"] - if kwargs['sort_order'] not in sort_order_allowed_values: - raise ValueError( - "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values) - ) - - query_params = { - "compartmentId": compartment_id, - "status": kwargs.get("status", missing), - "sortBy": kwargs.get("sort_by", missing), - "sortOrder": kwargs.get("sort_order", missing), - "resourceId": kwargs.get("resource_id", missing), - "page": kwargs.get("page", missing), - "limit": kwargs.get("limit", missing) - } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - query_params=query_params, - header_params=header_params, - response_type="WorkRequestSummaryCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - query_params=query_params, - header_params=header_params, - response_type="WorkRequestSummaryCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - 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. - - - :param oci.fusion_apps.models.ResetFusionEnvironmentPasswordDetails reset_fusion_environment_password_details: (required) - The information to be updated. - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param str admin_username: (required) - The admin user name for the fusion environment. - - :param str opc_retry_token: (optional) - A token that uniquely identifies a request so it can be retried in case of a timeout or - server error without risk of executing that same action again. Retry tokens expire after 24 - hours, but can be invalidated before then due to conflicting operations. For example, if a resource - has been deleted and purged from the system, then a retry of the original creation request - might be rejected. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param str if_match: (optional) - For optimistic concurrency control. In the PUT or DELETE call - for a resource, set the `if-match` parameter to the value of the - etag from a previous GET or POST response for that resource. - The resource will be updated or deleted only if the etag you - provide matches the resource's current etag value. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type None - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use reset_fusion_environment_password API. - """ - resource_path = "/fusionEnvironments/{fusionEnvironmentId}/adminUsers/{adminUsername}/actions/resetPassword" - method = "POST" - operation_name = "reset_fusion_environment_password" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_retry_token", - "opc_request_id", - "if_match" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "reset_fusion_environment_password got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentId": fusion_environment_id, - "adminUsername": admin_username - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-retry-token": kwargs.get("opc_retry_token", missing), - "opc-request-id": kwargs.get("opc_request_id", missing), - "if-match": kwargs.get("if_match", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_retry_token_if_needed(header_params) - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - body=reset_fusion_environment_password_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - body=reset_fusion_environment_password_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def update_fusion_environment(self, fusion_environment_id, update_fusion_environment_details, **kwargs): - """ - Updates the FusionEnvironment - - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param oci.fusion_apps.models.UpdateFusionEnvironmentDetails update_fusion_environment_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) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type None - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use update_fusion_environment API. - """ - resource_path = "/fusionEnvironments/{fusionEnvironmentId}" - method = "PUT" - operation_name = "update_fusion_environment" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "if_match", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "update_fusion_environment got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentId": fusion_environment_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "if-match": kwargs.get("if_match", missing), - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - body=update_fusion_environment_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - body=update_fusion_environment_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) diff --git a/src/oci/fusion_apps/fusion_environment_client_composite_operations.py b/src/oci/fusion_apps/fusion_environment_client_composite_operations.py deleted file mode 100644 index d131ebf1e2..0000000000 --- a/src/oci/fusion_apps/fusion_environment_client_composite_operations.py +++ /dev/null @@ -1,324 +0,0 @@ -# coding: utf-8 -# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. -# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - -import oci # noqa: F401 -from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401 - - -class FusionEnvironmentClientCompositeOperations(object): - """ - This class provides a wrapper around :py:class:`~oci.fusion_apps.FusionEnvironmentClient` and offers convenience methods - for operations that would otherwise need to be chained together. For example, instead of performing an action - on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource - to enter a given state, you can call a single method in this class to accomplish the same functionality - """ - - def __init__(self, client, **kwargs): - """ - Creates a new FusionEnvironmentClientCompositeOperations object - - :param FusionEnvironmentClient client: - The service client which will be wrapped by this object - """ - self.client = client - - def change_fusion_environment_compartment_and_wait_for_state(self, fusion_environment_id, change_fusion_environment_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): - """ - Calls :py:func:`~oci.fusion_apps.FusionEnvironmentClient.change_fusion_environment_compartment` and waits for the :py:class:`~oci.fusion_apps.models.WorkRequest` - to enter the given state(s). - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param oci.fusion_apps.models.ChangeFusionEnvironmentCompartmentDetails change_fusion_environment_compartment_details: (required) - The details of change compartment request. - - :param list[str] wait_for_states: - An array of states to wait on. These should be valid values for :py:attr:`~oci.fusion_apps.models.WorkRequest.status` - - :param dict operation_kwargs: - A dictionary of keyword arguments to pass to :py:func:`~oci.fusion_apps.FusionEnvironmentClient.change_fusion_environment_compartment` - - :param dict waiter_kwargs: - A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` - as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait - """ - operation_result = self.client.change_fusion_environment_compartment(fusion_environment_id, change_fusion_environment_compartment_details, **operation_kwargs) - if not wait_for_states: - return operation_result - - lowered_wait_for_states = [w.lower() for w in wait_for_states] - wait_for_resource_id = operation_result.headers['opc-work-request-id'] - - try: - waiter_result = oci.wait_until( - self.client, - self.client.get_work_request(wait_for_resource_id), - evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, - **waiter_kwargs - ) - result_to_return = waiter_result - - return result_to_return - except Exception as e: - raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) - - def create_fusion_environment_and_wait_for_state(self, create_fusion_environment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): - """ - Calls :py:func:`~oci.fusion_apps.FusionEnvironmentClient.create_fusion_environment` and waits for the :py:class:`~oci.fusion_apps.models.WorkRequest` - to enter the given state(s). - - :param oci.fusion_apps.models.CreateFusionEnvironmentDetails create_fusion_environment_details: (required) - Details for the new FusionEnvironment. - - :param list[str] wait_for_states: - An array of states to wait on. These should be valid values for :py:attr:`~oci.fusion_apps.models.WorkRequest.status` - - :param dict operation_kwargs: - A dictionary of keyword arguments to pass to :py:func:`~oci.fusion_apps.FusionEnvironmentClient.create_fusion_environment` - - :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_fusion_environment(create_fusion_environment_details, **operation_kwargs) - if not wait_for_states: - return operation_result - - lowered_wait_for_states = [w.lower() for w in wait_for_states] - wait_for_resource_id = operation_result.headers['opc-work-request-id'] - - try: - waiter_result = oci.wait_until( - self.client, - self.client.get_work_request(wait_for_resource_id), - evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, - **waiter_kwargs - ) - result_to_return = waiter_result - - return result_to_return - except Exception as e: - raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) - - def create_fusion_environment_admin_user_and_wait_for_state(self, create_fusion_environment_admin_user_details, fusion_environment_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): - """ - Calls :py:func:`~oci.fusion_apps.FusionEnvironmentClient.create_fusion_environment_admin_user` and waits for the :py:class:`~oci.fusion_apps.models.WorkRequest` - to enter the given state(s). - - :param oci.fusion_apps.models.CreateFusionEnvironmentAdminUserDetails create_fusion_environment_admin_user_details: (required) - The admin user to be created. - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param list[str] wait_for_states: - An array of states to wait on. These should be valid values for :py:attr:`~oci.fusion_apps.models.WorkRequest.status` - - :param dict operation_kwargs: - A dictionary of keyword arguments to pass to :py:func:`~oci.fusion_apps.FusionEnvironmentClient.create_fusion_environment_admin_user` - - :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_fusion_environment_admin_user(create_fusion_environment_admin_user_details, fusion_environment_id, **operation_kwargs) - if not wait_for_states: - return operation_result - - lowered_wait_for_states = [w.lower() for w in wait_for_states] - wait_for_resource_id = operation_result.headers['opc-work-request-id'] - - try: - waiter_result = oci.wait_until( - self.client, - self.client.get_work_request(wait_for_resource_id), - evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, - **waiter_kwargs - ) - result_to_return = waiter_result - - return result_to_return - except Exception as e: - raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) - - def delete_fusion_environment_and_wait_for_state(self, fusion_environment_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): - """ - Calls :py:func:`~oci.fusion_apps.FusionEnvironmentClient.delete_fusion_environment` and waits for the :py:class:`~oci.fusion_apps.models.WorkRequest` - to enter the given state(s). - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param list[str] wait_for_states: - An array of states to wait on. These should be valid values for :py:attr:`~oci.fusion_apps.models.WorkRequest.status` - - :param dict operation_kwargs: - A dictionary of keyword arguments to pass to :py:func:`~oci.fusion_apps.FusionEnvironmentClient.delete_fusion_environment` - - :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_fusion_environment(fusion_environment_id, **operation_kwargs) - except oci.exceptions.ServiceError as e: - if e.status == 404: - return WAIT_RESOURCE_NOT_FOUND - else: - raise e - - if not wait_for_states: - return operation_result - - lowered_wait_for_states = [w.lower() for w in wait_for_states] - wait_for_resource_id = operation_result.headers['opc-work-request-id'] - - try: - waiter_result = oci.wait_until( - self.client, - self.client.get_work_request(wait_for_resource_id), - evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, - **waiter_kwargs - ) - result_to_return = waiter_result - - return result_to_return - except Exception as e: - raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) - - def delete_fusion_environment_admin_user_and_wait_for_state(self, admin_username, fusion_environment_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): - """ - Calls :py:func:`~oci.fusion_apps.FusionEnvironmentClient.delete_fusion_environment_admin_user` and waits for the :py:class:`~oci.fusion_apps.models.WorkRequest` - to enter the given state(s). - - :param str admin_username: (required) - The admin user name for the fusion environment. - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param list[str] wait_for_states: - An array of states to wait on. These should be valid values for :py:attr:`~oci.fusion_apps.models.WorkRequest.status` - - :param dict operation_kwargs: - A dictionary of keyword arguments to pass to :py:func:`~oci.fusion_apps.FusionEnvironmentClient.delete_fusion_environment_admin_user` - - :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_fusion_environment_admin_user(admin_username, fusion_environment_id, **operation_kwargs) - except oci.exceptions.ServiceError as e: - if e.status == 404: - return WAIT_RESOURCE_NOT_FOUND - else: - raise e - - if not wait_for_states: - return operation_result - - lowered_wait_for_states = [w.lower() for w in wait_for_states] - wait_for_resource_id = operation_result.headers['opc-work-request-id'] - - try: - waiter_result = oci.wait_until( - self.client, - self.client.get_work_request(wait_for_resource_id), - evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, - **waiter_kwargs - ) - result_to_return = waiter_result - - return result_to_return - except Exception as e: - raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) - - def reset_fusion_environment_password_and_wait_for_state(self, reset_fusion_environment_password_details, fusion_environment_id, admin_username, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): - """ - Calls :py:func:`~oci.fusion_apps.FusionEnvironmentClient.reset_fusion_environment_password` and waits for the :py:class:`~oci.fusion_apps.models.WorkRequest` - to enter the given state(s). - - :param oci.fusion_apps.models.ResetFusionEnvironmentPasswordDetails reset_fusion_environment_password_details: (required) - The information to be updated. - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param str admin_username: (required) - The admin user name for the fusion environment. - - :param list[str] wait_for_states: - An array of states to wait on. These should be valid values for :py:attr:`~oci.fusion_apps.models.WorkRequest.status` - - :param dict operation_kwargs: - A dictionary of keyword arguments to pass to :py:func:`~oci.fusion_apps.FusionEnvironmentClient.reset_fusion_environment_password` - - :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.reset_fusion_environment_password(reset_fusion_environment_password_details, fusion_environment_id, admin_username, **operation_kwargs) - if not wait_for_states: - return operation_result - - lowered_wait_for_states = [w.lower() for w in wait_for_states] - wait_for_resource_id = operation_result.headers['opc-work-request-id'] - - try: - waiter_result = oci.wait_until( - self.client, - self.client.get_work_request(wait_for_resource_id), - evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, - **waiter_kwargs - ) - result_to_return = waiter_result - - return result_to_return - except Exception as e: - raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) - - def update_fusion_environment_and_wait_for_state(self, fusion_environment_id, update_fusion_environment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): - """ - Calls :py:func:`~oci.fusion_apps.FusionEnvironmentClient.update_fusion_environment` and waits for the :py:class:`~oci.fusion_apps.models.WorkRequest` - to enter the given state(s). - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param oci.fusion_apps.models.UpdateFusionEnvironmentDetails update_fusion_environment_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.fusion_apps.models.WorkRequest.status` - - :param dict operation_kwargs: - A dictionary of keyword arguments to pass to :py:func:`~oci.fusion_apps.FusionEnvironmentClient.update_fusion_environment` - - :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_fusion_environment(fusion_environment_id, update_fusion_environment_details, **operation_kwargs) - if not wait_for_states: - return operation_result - - lowered_wait_for_states = [w.lower() for w in wait_for_states] - wait_for_resource_id = operation_result.headers['opc-work-request-id'] - - try: - waiter_result = oci.wait_until( - self.client, - self.client.get_work_request(wait_for_resource_id), - evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, - **waiter_kwargs - ) - result_to_return = waiter_result - - return result_to_return - except Exception as e: - raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) diff --git a/src/oci/fusion_apps/fusion_environment_family_client.py b/src/oci/fusion_apps/fusion_environment_family_client.py deleted file mode 100644 index 67107bacb3..0000000000 --- a/src/oci/fusion_apps/fusion_environment_family_client.py +++ /dev/null @@ -1,943 +0,0 @@ -# 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. - -from __future__ import absolute_import - -from oci._vendor import requests # noqa: F401 -from oci._vendor import six - -from oci import retry, circuit_breaker # noqa: F401 -from oci.base_client import BaseClient -from oci.config import get_config_value_or_default, validate_config -from oci.signer import Signer -from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME -from .models import fusion_apps_type_mapping -missing = Sentinel("Missing") - - -class FusionEnvironmentFamilyClient(object): - """ - Use the Fusion Applications Environment Management API to manage the environments where your Fusion Applications run. For more information, see the [Fusion Applications Environment Management documentation](/iaas/Content/Identity/fusion-applications/home.htm). - """ - - def __init__(self, config, **kwargs): - """ - Creates a new service client - - :param dict config: - Configuration keys and values as per `SDK and Tool Configuration `__. - The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config - the dict using :py:meth:`~oci.config.validate_config` - - :param str service_endpoint: (optional) - The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is - not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit - need to specify a service endpoint. - - :param timeout: (optional) - The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided - as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If - a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout. - :type timeout: float or tuple(float, float) - - :param signer: (optional) - The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values - provided in the config parameter. - - One use case for this parameter is for `Instance Principals authentication `__ - by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument - :type signer: :py:class:`~oci.signer.AbstractBaseSigner` - - :param obj retry_strategy: (optional) - A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default. - Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation. - Any value provided at the operation level will override whatever is specified at the client level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` - is also available. The specifics of the default retry strategy are described `here `__. - - :param obj circuit_breaker_strategy: (optional) - A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level). - This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided. - The specifics of circuit breaker strategy are described `here `__. - - :param function circuit_breaker_callback: (optional) - Callback function to receive any exceptions triggerred by the circuit breaker. - - :param allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not - allow control characters to be in the response object. - """ - validate_config(config, signer=kwargs.get('signer')) - if 'signer' in kwargs: - signer = kwargs['signer'] - - elif AUTHENTICATION_TYPE_FIELD_NAME in config: - signer = get_signer_from_authentication_type(config) - - else: - signer = Signer( - tenancy=config["tenancy"], - user=config["user"], - fingerprint=config["fingerprint"], - private_key_file_location=config.get("key_file"), - pass_phrase=get_config_value_or_default(config, "pass_phrase"), - private_key_content=config.get("key_content") - ) - - base_client_init_kwargs = { - 'regional_client': True, - 'service_endpoint': kwargs.get('service_endpoint'), - 'base_path': '/20211201', - 'service_endpoint_template': 'https://fusionapps.{region}.oci.{secondLevelDomain}', - 'skip_deserialization': kwargs.get('skip_deserialization', False), - 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY) - } - if 'timeout' in kwargs: - base_client_init_kwargs['timeout'] = kwargs.get('timeout') - if base_client_init_kwargs.get('circuit_breaker_strategy') is None: - base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY - if 'allow_control_chars' in kwargs: - base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars') - self.base_client = BaseClient("fusion_environment_family", config, signer, fusion_apps_type_mapping, **base_client_init_kwargs) - self.retry_strategy = kwargs.get('retry_strategy') - self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback') - - def change_fusion_environment_family_compartment(self, fusion_environment_family_id, change_fusion_environment_family_compartment_details, **kwargs): - """ - Moves a FusionEnvironmentFamily into a different compartment. When provided, If-Match is checked against ETag - values of the resource. - - - :param str fusion_environment_family_id: (required) - The unique identifier (OCID) of the FusionEnvironmentFamily. - - :param oci.fusion_apps.models.ChangeFusionEnvironmentFamilyCompartmentDetails change_fusion_environment_family_compartment_details: (required) - Details for the compartment move. - - :param str if_match: (optional) - For optimistic concurrency control. In the PUT or DELETE call - for a resource, set the `if-match` parameter to the value of the - etag from a previous GET or POST response for that resource. - The resource will be updated or deleted only if the etag you - provide matches the resource's current etag value. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param str opc_retry_token: (optional) - A token that uniquely identifies a request so it can be retried in case of a timeout or - server error without risk of executing that same action again. Retry tokens expire after 24 - hours, but can be invalidated before then due to conflicting operations. For example, if a resource - has been deleted and purged from the system, then a retry of the original creation request - might be rejected. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type None - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use change_fusion_environment_family_compartment API. - """ - resource_path = "/fusionEnvironmentFamilies/{fusionEnvironmentFamilyId}/actions/changeCompartment" - method = "POST" - operation_name = "change_fusion_environment_family_compartment" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "if_match", - "opc_request_id", - "opc_retry_token" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "change_fusion_environment_family_compartment got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentFamilyId": fusion_environment_family_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "if-match": kwargs.get("if_match", missing), - "opc-request-id": kwargs.get("opc_request_id", missing), - "opc-retry-token": kwargs.get("opc_retry_token", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_retry_token_if_needed(header_params) - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - body=change_fusion_environment_family_compartment_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - body=change_fusion_environment_family_compartment_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def create_fusion_environment_family(self, create_fusion_environment_family_details, **kwargs): - """ - Creates a new FusionEnvironmentFamily. - - - :param oci.fusion_apps.models.CreateFusionEnvironmentFamilyDetails create_fusion_environment_family_details: (required) - Details for the new FusionEnvironmentFamily. - - :param str opc_provision_option: (optional) - For Oracle internal use only. - - :param str opc_retry_token: (optional) - A token that uniquely identifies a request so it can be retried in case of a timeout or - server error without risk of executing that same action again. Retry tokens expire after 24 - hours, but can be invalidated before then due to conflicting operations. For example, if a resource - has been deleted and purged from the system, then a retry of the original creation request - might be rejected. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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 create_fusion_environment_family API. - """ - resource_path = "/fusionEnvironmentFamilies" - method = "POST" - operation_name = "create_fusion_environment_family" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_provision_option", - "opc_retry_token", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "create_fusion_environment_family got unknown kwargs: {!r}".format(extra_kwargs)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-provision-option": kwargs.get("opc_provision_option", missing), - "opc-retry-token": kwargs.get("opc_retry_token", missing), - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_retry_token_if_needed(header_params) - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - header_params=header_params, - body=create_fusion_environment_family_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - header_params=header_params, - body=create_fusion_environment_family_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def delete_fusion_environment_family(self, fusion_environment_family_id, **kwargs): - """ - Deletes a FusionEnvironmentFamily resource by identifier - - - :param str fusion_environment_family_id: (required) - The unique identifier (OCID) of the FusionEnvironmentFamily. - - :param str if_match: (optional) - For optimistic concurrency control. In the PUT or DELETE call - for a resource, set the `if-match` parameter to the value of the - etag from a previous GET or POST response for that resource. - The resource will be updated or deleted only if the etag you - provide matches the resource's current etag value. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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_fusion_environment_family API. - """ - resource_path = "/fusionEnvironmentFamilies/{fusionEnvironmentFamilyId}" - method = "DELETE" - operation_name = "delete_fusion_environment_family" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "if_match", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "delete_fusion_environment_family got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentFamilyId": fusion_environment_family_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "if-match": kwargs.get("if_match", missing), - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - 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) - - def get_fusion_environment_family(self, fusion_environment_family_id, **kwargs): - """ - Retrieves a fusion environment family identified by its OCID. - - - :param str fusion_environment_family_id: (required) - The unique identifier (OCID) of the FusionEnvironmentFamily. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fusion_apps.models.FusionEnvironmentFamily` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use get_fusion_environment_family API. - """ - resource_path = "/fusionEnvironmentFamilies/{fusionEnvironmentFamilyId}" - method = "GET" - operation_name = "get_fusion_environment_family" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "get_fusion_environment_family got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentFamilyId": fusion_environment_family_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="FusionEnvironmentFamily", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="FusionEnvironmentFamily", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def get_fusion_environment_family_limits_and_usage(self, fusion_environment_family_id, **kwargs): - """ - Gets the number of environments (usage) of each type in the fusion environment family, as well as the limit that's allowed to be created based on the group's associated subscriptions. - - - :param str fusion_environment_family_id: (required) - The unique identifier (OCID) of the FusionEnvironmentFamily. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fusion_apps.models.FusionEnvironmentFamilyLimitsAndUsage` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use get_fusion_environment_family_limits_and_usage API. - """ - resource_path = "/fusionEnvironmentFamilies/{fusionEnvironmentFamilyId}/limitsAndUsage" - method = "GET" - operation_name = "get_fusion_environment_family_limits_and_usage" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "get_fusion_environment_family_limits_and_usage got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentFamilyId": fusion_environment_family_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="FusionEnvironmentFamilyLimitsAndUsage", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="FusionEnvironmentFamilyLimitsAndUsage", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def get_fusion_environment_family_subscription_detail(self, fusion_environment_family_id, **kwargs): - """ - Gets the subscription details of an fusion environment family. - - - :param str fusion_environment_family_id: (required) - The unique identifier (OCID) of the FusionEnvironmentFamily. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fusion_apps.models.SubscriptionDetail` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use get_fusion_environment_family_subscription_detail API. - """ - resource_path = "/fusionEnvironmentFamilies/{fusionEnvironmentFamilyId}/subscriptionDetails" - method = "GET" - operation_name = "get_fusion_environment_family_subscription_detail" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "get_fusion_environment_family_subscription_detail got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentFamilyId": fusion_environment_family_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="SubscriptionDetail", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="SubscriptionDetail", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def list_fusion_environment_families(self, compartment_id, **kwargs): - """ - Returns a list of FusionEnvironmentFamilies. - - - :param str compartment_id: (required) - The ID of the compartment in which to list resources. - - :param str fusion_environment_family_id: (optional) - The ID of the fusion environment family in which to list resources. - - :param str display_name: (optional) - A filter to return only resources that match the entire display name given. - - :param str lifecycle_state: (optional) - A filter that returns all resources that match the specified lifecycle state. - - Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED" - - :param int limit: (optional) - The maximum number of items to return. - - :param str page: (optional) - The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. - - :param str sort_order: (optional) - The sort order to use, either 'asc' or 'desc'. - - Allowed values are: "ASC", "DESC" - - :param str sort_by: (optional) - The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. - - Allowed values are: "TIME_CREATED", "DISPLAY_NAME" - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fusion_apps.models.FusionEnvironmentFamilyCollection` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use list_fusion_environment_families API. - """ - resource_path = "/fusionEnvironmentFamilies" - method = "GET" - operation_name = "list_fusion_environment_families" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "fusion_environment_family_id", - "display_name", - "lifecycle_state", - "limit", - "page", - "sort_order", - "sort_by", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "list_fusion_environment_families got unknown kwargs: {!r}".format(extra_kwargs)) - - if 'lifecycle_state' in kwargs: - lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] - if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values: - raise ValueError( - "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values) - ) - - if 'sort_order' in kwargs: - sort_order_allowed_values = ["ASC", "DESC"] - if kwargs['sort_order'] not in sort_order_allowed_values: - raise ValueError( - "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values) - ) - - if 'sort_by' in kwargs: - sort_by_allowed_values = ["TIME_CREATED", "DISPLAY_NAME"] - if kwargs['sort_by'] not in sort_by_allowed_values: - raise ValueError( - "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values) - ) - - query_params = { - "fusionEnvironmentFamilyId": kwargs.get("fusion_environment_family_id", missing), - "compartmentId": compartment_id, - "displayName": kwargs.get("display_name", missing), - "lifecycleState": kwargs.get("lifecycle_state", missing), - "limit": kwargs.get("limit", missing), - "page": kwargs.get("page", missing), - "sortOrder": kwargs.get("sort_order", missing), - "sortBy": kwargs.get("sort_by", missing) - } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - 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="FusionEnvironmentFamilyCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - query_params=query_params, - header_params=header_params, - response_type="FusionEnvironmentFamilyCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def update_fusion_environment_family(self, fusion_environment_family_id, update_fusion_environment_family_details, **kwargs): - """ - Updates the FusionEnvironmentFamily - - - :param str fusion_environment_family_id: (required) - The unique identifier (OCID) of the FusionEnvironmentFamily. - - :param oci.fusion_apps.models.UpdateFusionEnvironmentFamilyDetails update_fusion_environment_family_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) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type None - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use update_fusion_environment_family API. - """ - resource_path = "/fusionEnvironmentFamilies/{fusionEnvironmentFamilyId}" - method = "PUT" - operation_name = "update_fusion_environment_family" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "if_match", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "update_fusion_environment_family got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentFamilyId": fusion_environment_family_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "if-match": kwargs.get("if_match", missing), - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - body=update_fusion_environment_family_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - body=update_fusion_environment_family_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) diff --git a/src/oci/fusion_apps/fusion_environment_family_client_composite_operations.py b/src/oci/fusion_apps/fusion_environment_family_client_composite_operations.py deleted file mode 100644 index 3f5eb91a5d..0000000000 --- a/src/oci/fusion_apps/fusion_environment_family_client_composite_operations.py +++ /dev/null @@ -1,190 +0,0 @@ -# coding: utf-8 -# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. -# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - -import oci # noqa: F401 -from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401 - - -class FusionEnvironmentFamilyClientCompositeOperations(object): - """ - This class provides a wrapper around :py:class:`~oci.fusion_apps.FusionEnvironmentFamilyClient` and offers convenience methods - for operations that would otherwise need to be chained together. For example, instead of performing an action - on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource - to enter a given state, you can call a single method in this class to accomplish the same functionality - """ - - def __init__(self, client, **kwargs): - """ - Creates a new FusionEnvironmentFamilyClientCompositeOperations object - - :param FusionEnvironmentFamilyClient client: - The service client which will be wrapped by this object - """ - self.client = client - - def change_fusion_environment_family_compartment_and_wait_for_state(self, fusion_environment_family_id, change_fusion_environment_family_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): - """ - Calls :py:func:`~oci.fusion_apps.FusionEnvironmentFamilyClient.change_fusion_environment_family_compartment` and waits for the :py:class:`~oci.fusion_apps.models.WorkRequest` - to enter the given state(s). - - :param str fusion_environment_family_id: (required) - The unique identifier (OCID) of the FusionEnvironmentFamily. - - :param oci.fusion_apps.models.ChangeFusionEnvironmentFamilyCompartmentDetails change_fusion_environment_family_compartment_details: (required) - Details for the compartment move. - - :param list[str] wait_for_states: - An array of states to wait on. These should be valid values for :py:attr:`~oci.fusion_apps.models.WorkRequest.status` - - :param dict operation_kwargs: - A dictionary of keyword arguments to pass to :py:func:`~oci.fusion_apps.FusionEnvironmentFamilyClient.change_fusion_environment_family_compartment` - - :param dict waiter_kwargs: - A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` - as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait - """ - operation_result = self.client.change_fusion_environment_family_compartment(fusion_environment_family_id, change_fusion_environment_family_compartment_details, **operation_kwargs) - if not wait_for_states: - return operation_result - - lowered_wait_for_states = [w.lower() for w in wait_for_states] - wait_for_resource_id = operation_result.headers['opc-work-request-id'] - - try: - waiter_result = oci.wait_until( - self.client, - self.client.get_work_request(wait_for_resource_id), - evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, - **waiter_kwargs - ) - result_to_return = waiter_result - - return result_to_return - except Exception as e: - raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) - - def create_fusion_environment_family_and_wait_for_state(self, create_fusion_environment_family_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): - """ - Calls :py:func:`~oci.fusion_apps.FusionEnvironmentFamilyClient.create_fusion_environment_family` and waits for the :py:class:`~oci.fusion_apps.models.WorkRequest` - to enter the given state(s). - - :param oci.fusion_apps.models.CreateFusionEnvironmentFamilyDetails create_fusion_environment_family_details: (required) - Details for the new FusionEnvironmentFamily. - - :param list[str] wait_for_states: - An array of states to wait on. These should be valid values for :py:attr:`~oci.fusion_apps.models.WorkRequest.status` - - :param dict operation_kwargs: - A dictionary of keyword arguments to pass to :py:func:`~oci.fusion_apps.FusionEnvironmentFamilyClient.create_fusion_environment_family` - - :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_fusion_environment_family(create_fusion_environment_family_details, **operation_kwargs) - if not wait_for_states: - return operation_result - - lowered_wait_for_states = [w.lower() for w in wait_for_states] - wait_for_resource_id = operation_result.headers['opc-work-request-id'] - - try: - waiter_result = oci.wait_until( - self.client, - self.client.get_work_request(wait_for_resource_id), - evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, - **waiter_kwargs - ) - result_to_return = waiter_result - - return result_to_return - except Exception as e: - raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) - - def delete_fusion_environment_family_and_wait_for_state(self, fusion_environment_family_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): - """ - Calls :py:func:`~oci.fusion_apps.FusionEnvironmentFamilyClient.delete_fusion_environment_family` and waits for the :py:class:`~oci.fusion_apps.models.WorkRequest` - to enter the given state(s). - - :param str fusion_environment_family_id: (required) - The unique identifier (OCID) of the FusionEnvironmentFamily. - - :param list[str] wait_for_states: - An array of states to wait on. These should be valid values for :py:attr:`~oci.fusion_apps.models.WorkRequest.status` - - :param dict operation_kwargs: - A dictionary of keyword arguments to pass to :py:func:`~oci.fusion_apps.FusionEnvironmentFamilyClient.delete_fusion_environment_family` - - :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_fusion_environment_family(fusion_environment_family_id, **operation_kwargs) - except oci.exceptions.ServiceError as e: - if e.status == 404: - return WAIT_RESOURCE_NOT_FOUND - else: - raise e - - if not wait_for_states: - return operation_result - - lowered_wait_for_states = [w.lower() for w in wait_for_states] - wait_for_resource_id = operation_result.headers['opc-work-request-id'] - - try: - waiter_result = oci.wait_until( - self.client, - self.client.get_work_request(wait_for_resource_id), - evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, - **waiter_kwargs - ) - result_to_return = waiter_result - - return result_to_return - except Exception as e: - raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) - - def update_fusion_environment_family_and_wait_for_state(self, fusion_environment_family_id, update_fusion_environment_family_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): - """ - Calls :py:func:`~oci.fusion_apps.FusionEnvironmentFamilyClient.update_fusion_environment_family` and waits for the :py:class:`~oci.fusion_apps.models.WorkRequest` - to enter the given state(s). - - :param str fusion_environment_family_id: (required) - The unique identifier (OCID) of the FusionEnvironmentFamily. - - :param oci.fusion_apps.models.UpdateFusionEnvironmentFamilyDetails update_fusion_environment_family_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.fusion_apps.models.WorkRequest.status` - - :param dict operation_kwargs: - A dictionary of keyword arguments to pass to :py:func:`~oci.fusion_apps.FusionEnvironmentFamilyClient.update_fusion_environment_family` - - :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_fusion_environment_family(fusion_environment_family_id, update_fusion_environment_family_details, **operation_kwargs) - if not wait_for_states: - return operation_result - - lowered_wait_for_states = [w.lower() for w in wait_for_states] - wait_for_resource_id = operation_result.headers['opc-work-request-id'] - - try: - waiter_result = oci.wait_until( - self.client, - self.client.get_work_request(wait_for_resource_id), - evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, - **waiter_kwargs - ) - result_to_return = waiter_result - - return result_to_return - except Exception as e: - raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) diff --git a/src/oci/fusion_apps/models/attach_existing_instance_details.py b/src/oci/fusion_apps/models/attach_existing_instance_details.py deleted file mode 100644 index 58792e9a63..0000000000 --- a/src/oci/fusion_apps/models/attach_existing_instance_details.py +++ /dev/null @@ -1,194 +0,0 @@ -# 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. - -from .create_service_attachment_details import CreateServiceAttachmentDetails -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 AttachExistingInstanceDetails(CreateServiceAttachmentDetails): - """ - Information about the service attachment. - """ - - #: A constant which can be used with the service_instance_type property of a AttachExistingInstanceDetails. - #: This constant has a value of "INTEGRATION_CLOUD" - SERVICE_INSTANCE_TYPE_INTEGRATION_CLOUD = "INTEGRATION_CLOUD" - - #: A constant which can be used with the service_instance_type property of a AttachExistingInstanceDetails. - #: This constant has a value of "ANALYTICS_WAREHOUSE" - SERVICE_INSTANCE_TYPE_ANALYTICS_WAREHOUSE = "ANALYTICS_WAREHOUSE" - - def __init__(self, **kwargs): - """ - Initializes a new AttachExistingInstanceDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.fusion_apps.models.AttachExistingInstanceDetails.action` attribute - of this class is ``ATTACH_EXISTING_INSTANCE`` and it should not be changed. - 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 AttachExistingInstanceDetails. - Allowed values for this property are: "CREATE_NEW_INSTANCE", "ATTACH_EXISTING_INSTANCE" - :type action: str - - :param service_instance_type: - The value to assign to the service_instance_type property of this AttachExistingInstanceDetails. - Allowed values for this property are: "INTEGRATION_CLOUD", "ANALYTICS_WAREHOUSE" - :type service_instance_type: str - - :param instance_id: - The value to assign to the instance_id property of this AttachExistingInstanceDetails. - :type instance_id: str - - :param freeform_tags: - The value to assign to the freeform_tags property of this AttachExistingInstanceDetails. - :type freeform_tags: dict(str, str) - - :param defined_tags: - The value to assign to the defined_tags property of this AttachExistingInstanceDetails. - :type defined_tags: dict(str, dict(str, object)) - - """ - self.swagger_types = { - 'action': 'str', - 'service_instance_type': 'str', - 'instance_id': 'str', - 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' - } - - self.attribute_map = { - 'action': 'action', - 'service_instance_type': 'serviceInstanceType', - 'instance_id': 'instanceId', - 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' - } - - self._action = None - self._service_instance_type = None - self._instance_id = None - self._freeform_tags = None - self._defined_tags = None - self._action = 'ATTACH_EXISTING_INSTANCE' - - @property - def service_instance_type(self): - """ - **[Required]** Gets the service_instance_type of this AttachExistingInstanceDetails. - Type of the ServiceInstance being attached. - - Allowed values for this property are: "INTEGRATION_CLOUD", "ANALYTICS_WAREHOUSE" - - - :return: The service_instance_type of this AttachExistingInstanceDetails. - :rtype: str - """ - return self._service_instance_type - - @service_instance_type.setter - def service_instance_type(self, service_instance_type): - """ - Sets the service_instance_type of this AttachExistingInstanceDetails. - Type of the ServiceInstance being attached. - - - :param service_instance_type: The service_instance_type of this AttachExistingInstanceDetails. - :type: str - """ - allowed_values = ["INTEGRATION_CLOUD", "ANALYTICS_WAREHOUSE"] - if not value_allowed_none_or_none_sentinel(service_instance_type, allowed_values): - raise ValueError( - "Invalid value for `service_instance_type`, must be None or one of {0}" - .format(allowed_values) - ) - self._service_instance_type = service_instance_type - - @property - def instance_id(self): - """ - **[Required]** Gets the instance_id of this AttachExistingInstanceDetails. - The service instance OCID of the instance being attached - - - :return: The instance_id of this AttachExistingInstanceDetails. - :rtype: str - """ - return self._instance_id - - @instance_id.setter - def instance_id(self, instance_id): - """ - Sets the instance_id of this AttachExistingInstanceDetails. - The service instance OCID of the instance being attached - - - :param instance_id: The instance_id of this AttachExistingInstanceDetails. - :type: str - """ - self._instance_id = instance_id - - @property - def freeform_tags(self): - """ - Gets the freeform_tags of this AttachExistingInstanceDetails. - 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 AttachExistingInstanceDetails. - :rtype: dict(str, str) - """ - return self._freeform_tags - - @freeform_tags.setter - def freeform_tags(self, freeform_tags): - """ - Sets the freeform_tags of this AttachExistingInstanceDetails. - 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 AttachExistingInstanceDetails. - :type: dict(str, str) - """ - self._freeform_tags = freeform_tags - - @property - def defined_tags(self): - """ - Gets the defined_tags of this AttachExistingInstanceDetails. - 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 AttachExistingInstanceDetails. - :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 AttachExistingInstanceDetails. - 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 AttachExistingInstanceDetails. - :type: dict(str, dict(str, object)) - """ - self._defined_tags = defined_tags - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/fusion_apps/models/create_new_instance_details.py b/src/oci/fusion_apps/models/create_new_instance_details.py deleted file mode 100644 index 9776a33416..0000000000 --- a/src/oci/fusion_apps/models/create_new_instance_details.py +++ /dev/null @@ -1,142 +0,0 @@ -# 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. - -from .create_service_attachment_details import CreateServiceAttachmentDetails -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 CreateNewInstanceDetails(CreateServiceAttachmentDetails): - """ - Information about the service attachment. - """ - - def __init__(self, **kwargs): - """ - Initializes a new CreateNewInstanceDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.fusion_apps.models.CreateNewInstanceDetails.action` attribute - of this class is ``CREATE_NEW_INSTANCE`` and it should not be changed. - 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 CreateNewInstanceDetails. - Allowed values for this property are: "CREATE_NEW_INSTANCE", "ATTACH_EXISTING_INSTANCE" - :type action: str - - :param details: - The value to assign to the details property of this CreateNewInstanceDetails. - :type details: oci.fusion_apps.models.CreateServiceInstanceDetails - - :param freeform_tags: - The value to assign to the freeform_tags property of this CreateNewInstanceDetails. - :type freeform_tags: dict(str, str) - - :param defined_tags: - The value to assign to the defined_tags property of this CreateNewInstanceDetails. - :type defined_tags: dict(str, dict(str, object)) - - """ - self.swagger_types = { - 'action': 'str', - 'details': 'CreateServiceInstanceDetails', - 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' - } - - self.attribute_map = { - 'action': 'action', - 'details': 'details', - 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' - } - - self._action = None - self._details = None - self._freeform_tags = None - self._defined_tags = None - self._action = 'CREATE_NEW_INSTANCE' - - @property - def details(self): - """ - **[Required]** Gets the details of this CreateNewInstanceDetails. - - :return: The details of this CreateNewInstanceDetails. - :rtype: oci.fusion_apps.models.CreateServiceInstanceDetails - """ - return self._details - - @details.setter - def details(self, details): - """ - Sets the details of this CreateNewInstanceDetails. - - :param details: The details of this CreateNewInstanceDetails. - :type: oci.fusion_apps.models.CreateServiceInstanceDetails - """ - self._details = details - - @property - def freeform_tags(self): - """ - Gets the freeform_tags of this CreateNewInstanceDetails. - 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 CreateNewInstanceDetails. - :rtype: dict(str, str) - """ - return self._freeform_tags - - @freeform_tags.setter - def freeform_tags(self, freeform_tags): - """ - Sets the freeform_tags of this CreateNewInstanceDetails. - 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 CreateNewInstanceDetails. - :type: dict(str, str) - """ - self._freeform_tags = freeform_tags - - @property - def defined_tags(self): - """ - Gets the defined_tags of this CreateNewInstanceDetails. - 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 CreateNewInstanceDetails. - :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 CreateNewInstanceDetails. - 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 CreateNewInstanceDetails. - :type: dict(str, dict(str, object)) - """ - self._defined_tags = defined_tags - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/fusion_apps/models/create_oax_service_instance_details.py b/src/oci/fusion_apps/models/create_oax_service_instance_details.py deleted file mode 100644 index 05b55b6f4d..0000000000 --- a/src/oci/fusion_apps/models/create_oax_service_instance_details.py +++ /dev/null @@ -1,152 +0,0 @@ -# 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. - -from .create_service_instance_details import CreateServiceInstanceDetails -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 CreateOaxServiceInstanceDetails(CreateServiceInstanceDetails): - """ - The information about new Analytics Warehouse instance being provisioned. - """ - - def __init__(self, **kwargs): - """ - Initializes a new CreateOaxServiceInstanceDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.fusion_apps.models.CreateOaxServiceInstanceDetails.service_instance_type` attribute - of this class is ``ANALYTICS_WAREHOUSE`` and it should not be changed. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param display_name: - The value to assign to the display_name property of this CreateOaxServiceInstanceDetails. - :type display_name: str - - :param compartment_id: - The value to assign to the compartment_id property of this CreateOaxServiceInstanceDetails. - :type compartment_id: str - - :param service_instance_type: - The value to assign to the service_instance_type property of this CreateOaxServiceInstanceDetails. - Allowed values for this property are: "INTEGRATION_CLOUD", "ANALYTICS_WAREHOUSE" - :type service_instance_type: str - - :param name: - The value to assign to the name property of this CreateOaxServiceInstanceDetails. - :type name: str - - :param description: - The value to assign to the description property of this CreateOaxServiceInstanceDetails. - :type description: str - - :param faw_admin_info: - The value to assign to the faw_admin_info property of this CreateOaxServiceInstanceDetails. - :type faw_admin_info: oci.fusion_apps.models.FawAdminInfoDetails - - """ - self.swagger_types = { - 'display_name': 'str', - 'compartment_id': 'str', - 'service_instance_type': 'str', - 'name': 'str', - 'description': 'str', - 'faw_admin_info': 'FawAdminInfoDetails' - } - - self.attribute_map = { - 'display_name': 'displayName', - 'compartment_id': 'compartmentId', - 'service_instance_type': 'serviceInstanceType', - 'name': 'name', - 'description': 'description', - 'faw_admin_info': 'FawAdminInfo' - } - - self._display_name = None - self._compartment_id = None - self._service_instance_type = None - self._name = None - self._description = None - self._faw_admin_info = None - self._service_instance_type = 'ANALYTICS_WAREHOUSE' - - @property - def name(self): - """ - **[Required]** Gets the name of this CreateOaxServiceInstanceDetails. - A unique Name for Analytics Warehouse. - - - :return: The name of this CreateOaxServiceInstanceDetails. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this CreateOaxServiceInstanceDetails. - A unique Name for Analytics Warehouse. - - - :param name: The name of this CreateOaxServiceInstanceDetails. - :type: str - """ - self._name = name - - @property - def description(self): - """ - Gets the description of this CreateOaxServiceInstanceDetails. - This is the description for Analytics Warehouse Service. - - - :return: The description of this CreateOaxServiceInstanceDetails. - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """ - Sets the description of this CreateOaxServiceInstanceDetails. - This is the description for Analytics Warehouse Service. - - - :param description: The description of this CreateOaxServiceInstanceDetails. - :type: str - """ - self._description = description - - @property - def faw_admin_info(self): - """ - Gets the faw_admin_info of this CreateOaxServiceInstanceDetails. - - :return: The faw_admin_info of this CreateOaxServiceInstanceDetails. - :rtype: oci.fusion_apps.models.FawAdminInfoDetails - """ - return self._faw_admin_info - - @faw_admin_info.setter - def faw_admin_info(self, faw_admin_info): - """ - Sets the faw_admin_info of this CreateOaxServiceInstanceDetails. - - :param faw_admin_info: The faw_admin_info of this CreateOaxServiceInstanceDetails. - :type: oci.fusion_apps.models.FawAdminInfoDetails - """ - self._faw_admin_info = faw_admin_info - - 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/fusion_apps/models/create_oic_service_instance_details.py b/src/oci/fusion_apps/models/create_oic_service_instance_details.py deleted file mode 100644 index 183414d4a7..0000000000 --- a/src/oci/fusion_apps/models/create_oic_service_instance_details.py +++ /dev/null @@ -1,142 +0,0 @@ -# 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. - -from .create_service_instance_details import CreateServiceInstanceDetails -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 CreateOicServiceInstanceDetails(CreateServiceInstanceDetails): - """ - The information about new Integration Cloud instance being provisioned. - """ - - #: A constant which can be used with the edition property of a CreateOicServiceInstanceDetails. - #: This constant has a value of "STANDARD" - EDITION_STANDARD = "STANDARD" - - #: A constant which can be used with the edition property of a CreateOicServiceInstanceDetails. - #: This constant has a value of "ENTERPRISE" - EDITION_ENTERPRISE = "ENTERPRISE" - - def __init__(self, **kwargs): - """ - Initializes a new CreateOicServiceInstanceDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.fusion_apps.models.CreateOicServiceInstanceDetails.service_instance_type` attribute - of this class is ``INTEGRATION_CLOUD`` and it should not be changed. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param display_name: - The value to assign to the display_name property of this CreateOicServiceInstanceDetails. - :type display_name: str - - :param compartment_id: - The value to assign to the compartment_id property of this CreateOicServiceInstanceDetails. - :type compartment_id: str - - :param service_instance_type: - The value to assign to the service_instance_type property of this CreateOicServiceInstanceDetails. - Allowed values for this property are: "INTEGRATION_CLOUD", "ANALYTICS_WAREHOUSE" - :type service_instance_type: str - - :param message_packs: - The value to assign to the message_packs property of this CreateOicServiceInstanceDetails. - :type message_packs: int - - :param edition: - The value to assign to the edition property of this CreateOicServiceInstanceDetails. - Allowed values for this property are: "STANDARD", "ENTERPRISE" - :type edition: str - - """ - self.swagger_types = { - 'display_name': 'str', - 'compartment_id': 'str', - 'service_instance_type': 'str', - 'message_packs': 'int', - 'edition': 'str' - } - - self.attribute_map = { - 'display_name': 'displayName', - 'compartment_id': 'compartmentId', - 'service_instance_type': 'serviceInstanceType', - 'message_packs': 'messagePacks', - 'edition': 'edition' - } - - self._display_name = None - self._compartment_id = None - self._service_instance_type = None - self._message_packs = None - self._edition = None - self._service_instance_type = 'INTEGRATION_CLOUD' - - @property - def message_packs(self): - """ - Gets the message_packs of this CreateOicServiceInstanceDetails. - Number of 5K message packs per hour - - - :return: The message_packs of this CreateOicServiceInstanceDetails. - :rtype: int - """ - return self._message_packs - - @message_packs.setter - def message_packs(self, message_packs): - """ - Sets the message_packs of this CreateOicServiceInstanceDetails. - Number of 5K message packs per hour - - - :param message_packs: The message_packs of this CreateOicServiceInstanceDetails. - :type: int - """ - self._message_packs = message_packs - - @property - def edition(self): - """ - Gets the edition of this CreateOicServiceInstanceDetails. - The Oracle Integration edition - - Allowed values for this property are: "STANDARD", "ENTERPRISE" - - - :return: The edition of this CreateOicServiceInstanceDetails. - :rtype: str - """ - return self._edition - - @edition.setter - def edition(self, edition): - """ - Sets the edition of this CreateOicServiceInstanceDetails. - The Oracle Integration edition - - - :param edition: The edition of this CreateOicServiceInstanceDetails. - :type: str - """ - allowed_values = ["STANDARD", "ENTERPRISE"] - if not value_allowed_none_or_none_sentinel(edition, allowed_values): - raise ValueError( - "Invalid value for `edition`, must be None or one of {0}" - .format(allowed_values) - ) - self._edition = edition - - 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/fusion_apps/models/create_service_instance_details.py b/src/oci/fusion_apps/models/create_service_instance_details.py deleted file mode 100644 index eda0354568..0000000000 --- a/src/oci/fusion_apps/models/create_service_instance_details.py +++ /dev/null @@ -1,170 +0,0 @@ -# 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. - - -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 CreateServiceInstanceDetails(object): - """ - The information about new ServiceInstance. - """ - - #: A constant which can be used with the service_instance_type property of a CreateServiceInstanceDetails. - #: This constant has a value of "INTEGRATION_CLOUD" - SERVICE_INSTANCE_TYPE_INTEGRATION_CLOUD = "INTEGRATION_CLOUD" - - #: A constant which can be used with the service_instance_type property of a CreateServiceInstanceDetails. - #: This constant has a value of "ANALYTICS_WAREHOUSE" - SERVICE_INSTANCE_TYPE_ANALYTICS_WAREHOUSE = "ANALYTICS_WAREHOUSE" - - def __init__(self, **kwargs): - """ - Initializes a new CreateServiceInstanceDetails 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.fusion_apps.models.CreateOaxServiceInstanceDetails` - * :class:`~oci.fusion_apps.models.CreateOicServiceInstanceDetails` - - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param display_name: - The value to assign to the display_name property of this CreateServiceInstanceDetails. - :type display_name: str - - :param compartment_id: - The value to assign to the compartment_id property of this CreateServiceInstanceDetails. - :type compartment_id: str - - :param service_instance_type: - The value to assign to the service_instance_type property of this CreateServiceInstanceDetails. - Allowed values for this property are: "INTEGRATION_CLOUD", "ANALYTICS_WAREHOUSE" - :type service_instance_type: str - - """ - self.swagger_types = { - 'display_name': 'str', - 'compartment_id': 'str', - 'service_instance_type': 'str' - } - - self.attribute_map = { - 'display_name': 'displayName', - 'compartment_id': 'compartmentId', - 'service_instance_type': 'serviceInstanceType' - } - - self._display_name = None - self._compartment_id = None - self._service_instance_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['serviceInstanceType'] - - if type == 'ANALYTICS_WAREHOUSE': - return 'CreateOaxServiceInstanceDetails' - - if type == 'INTEGRATION_CLOUD': - return 'CreateOicServiceInstanceDetails' - else: - return 'CreateServiceInstanceDetails' - - @property - def display_name(self): - """ - **[Required]** Gets the display_name of this CreateServiceInstanceDetails. - The service instance type being provisioned - - - :return: The display_name of this CreateServiceInstanceDetails. - :rtype: str - """ - return self._display_name - - @display_name.setter - def display_name(self, display_name): - """ - Sets the display_name of this CreateServiceInstanceDetails. - The service instance type being provisioned - - - :param display_name: The display_name of this CreateServiceInstanceDetails. - :type: str - """ - self._display_name = display_name - - @property - def compartment_id(self): - """ - Gets the compartment_id of this CreateServiceInstanceDetails. - Comparment where the instance is to be created - - - :return: The compartment_id of this CreateServiceInstanceDetails. - :rtype: str - """ - return self._compartment_id - - @compartment_id.setter - def compartment_id(self, compartment_id): - """ - Sets the compartment_id of this CreateServiceInstanceDetails. - Comparment where the instance is to be created - - - :param compartment_id: The compartment_id of this CreateServiceInstanceDetails. - :type: str - """ - self._compartment_id = compartment_id - - @property - def service_instance_type(self): - """ - **[Required]** Gets the service_instance_type of this CreateServiceInstanceDetails. - Type of the ServiceInstance. - - Allowed values for this property are: "INTEGRATION_CLOUD", "ANALYTICS_WAREHOUSE" - - - :return: The service_instance_type of this CreateServiceInstanceDetails. - :rtype: str - """ - return self._service_instance_type - - @service_instance_type.setter - def service_instance_type(self, service_instance_type): - """ - Sets the service_instance_type of this CreateServiceInstanceDetails. - Type of the ServiceInstance. - - - :param service_instance_type: The service_instance_type of this CreateServiceInstanceDetails. - :type: str - """ - allowed_values = ["INTEGRATION_CLOUD", "ANALYTICS_WAREHOUSE"] - if not value_allowed_none_or_none_sentinel(service_instance_type, allowed_values): - raise ValueError( - "Invalid value for `service_instance_type`, must be None or one of {0}" - .format(allowed_values) - ) - self._service_instance_type = service_instance_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/fusion_apps/models/faw_admin_info_details.py b/src/oci/fusion_apps/models/faw_admin_info_details.py deleted file mode 100644 index bb2b57ba70..0000000000 --- a/src/oci/fusion_apps/models/faw_admin_info_details.py +++ /dev/null @@ -1,132 +0,0 @@ -# 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. - - -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 FawAdminInfoDetails(object): - """ - Admin information to provision Analytics Warehouse Service. - """ - - def __init__(self, **kwargs): - """ - Initializes a new FawAdminInfoDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param adw_admin_pass: - The value to assign to the adw_admin_pass property of this FawAdminInfoDetails. - :type adw_admin_pass: str - - :param faw_service_pass: - The value to assign to the faw_service_pass property of this FawAdminInfoDetails. - :type faw_service_pass: str - - :param notification_email: - The value to assign to the notification_email property of this FawAdminInfoDetails. - :type notification_email: str - - """ - self.swagger_types = { - 'adw_admin_pass': 'str', - 'faw_service_pass': 'str', - 'notification_email': 'str' - } - - self.attribute_map = { - 'adw_admin_pass': 'adwAdminPass', - 'faw_service_pass': 'fawServicePass', - 'notification_email': 'notificationEmail' - } - - self._adw_admin_pass = None - self._faw_service_pass = None - self._notification_email = None - - @property - def adw_admin_pass(self): - """ - **[Required]** Gets the adw_admin_pass of this FawAdminInfoDetails. - Password for the ADW to be created in User Tenancy - - - :return: The adw_admin_pass of this FawAdminInfoDetails. - :rtype: str - """ - return self._adw_admin_pass - - @adw_admin_pass.setter - def adw_admin_pass(self, adw_admin_pass): - """ - Sets the adw_admin_pass of this FawAdminInfoDetails. - Password for the ADW to be created in User Tenancy - - - :param adw_admin_pass: The adw_admin_pass of this FawAdminInfoDetails. - :type: str - """ - self._adw_admin_pass = adw_admin_pass - - @property - def faw_service_pass(self): - """ - Gets the faw_service_pass of this FawAdminInfoDetails. - Password for the auto-created FAWService user - - - :return: The faw_service_pass of this FawAdminInfoDetails. - :rtype: str - """ - return self._faw_service_pass - - @faw_service_pass.setter - def faw_service_pass(self, faw_service_pass): - """ - Sets the faw_service_pass of this FawAdminInfoDetails. - Password for the auto-created FAWService user - - - :param faw_service_pass: The faw_service_pass of this FawAdminInfoDetails. - :type: str - """ - self._faw_service_pass = faw_service_pass - - @property - def notification_email(self): - """ - **[Required]** Gets the notification_email of this FawAdminInfoDetails. - Email ID to send notification for Analytics Warehouse updates. - - - :return: The notification_email of this FawAdminInfoDetails. - :rtype: str - """ - return self._notification_email - - @notification_email.setter - def notification_email(self, notification_email): - """ - Sets the notification_email of this FawAdminInfoDetails. - Email ID to send notification for Analytics Warehouse updates. - - - :param notification_email: The notification_email of this FawAdminInfoDetails. - :type: str - """ - self._notification_email = notification_email - - 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/fusion_apps/refresh_activity_client.py b/src/oci/fusion_apps/refresh_activity_client.py deleted file mode 100644 index cc31d5a6e6..0000000000 --- a/src/oci/fusion_apps/refresh_activity_client.py +++ /dev/null @@ -1,607 +0,0 @@ -# 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. - -from __future__ import absolute_import - -from oci._vendor import requests # noqa: F401 -from oci._vendor import six - -from oci import retry, circuit_breaker # noqa: F401 -from oci.base_client import BaseClient -from oci.config import get_config_value_or_default, validate_config -from oci.signer import Signer -from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME -from .models import fusion_apps_type_mapping -missing = Sentinel("Missing") - - -class RefreshActivityClient(object): - """ - Use the Fusion Applications Environment Management API to manage the environments where your Fusion Applications run. For more information, see the [Fusion Applications Environment Management documentation](/iaas/Content/Identity/fusion-applications/home.htm). - """ - - def __init__(self, config, **kwargs): - """ - Creates a new service client - - :param dict config: - Configuration keys and values as per `SDK and Tool Configuration `__. - The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config - the dict using :py:meth:`~oci.config.validate_config` - - :param str service_endpoint: (optional) - The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is - not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit - need to specify a service endpoint. - - :param timeout: (optional) - The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided - as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If - a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout. - :type timeout: float or tuple(float, float) - - :param signer: (optional) - The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values - provided in the config parameter. - - One use case for this parameter is for `Instance Principals authentication `__ - by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument - :type signer: :py:class:`~oci.signer.AbstractBaseSigner` - - :param obj retry_strategy: (optional) - A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default. - Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation. - Any value provided at the operation level will override whatever is specified at the client level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` - is also available. The specifics of the default retry strategy are described `here `__. - - :param obj circuit_breaker_strategy: (optional) - A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level). - This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided. - The specifics of circuit breaker strategy are described `here `__. - - :param function circuit_breaker_callback: (optional) - Callback function to receive any exceptions triggerred by the circuit breaker. - - :param allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not - allow control characters to be in the response object. - """ - validate_config(config, signer=kwargs.get('signer')) - if 'signer' in kwargs: - signer = kwargs['signer'] - - elif AUTHENTICATION_TYPE_FIELD_NAME in config: - signer = get_signer_from_authentication_type(config) - - else: - signer = Signer( - tenancy=config["tenancy"], - user=config["user"], - fingerprint=config["fingerprint"], - private_key_file_location=config.get("key_file"), - pass_phrase=get_config_value_or_default(config, "pass_phrase"), - private_key_content=config.get("key_content") - ) - - base_client_init_kwargs = { - 'regional_client': True, - 'service_endpoint': kwargs.get('service_endpoint'), - 'base_path': '/20211201', - 'service_endpoint_template': 'https://fusionapps.{region}.oci.{secondLevelDomain}', - 'skip_deserialization': kwargs.get('skip_deserialization', False), - 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY) - } - if 'timeout' in kwargs: - base_client_init_kwargs['timeout'] = kwargs.get('timeout') - if base_client_init_kwargs.get('circuit_breaker_strategy') is None: - base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY - if 'allow_control_chars' in kwargs: - base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars') - self.base_client = BaseClient("refresh_activity", config, signer, fusion_apps_type_mapping, **base_client_init_kwargs) - self.retry_strategy = kwargs.get('retry_strategy') - self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback') - - def create_refresh_activity(self, fusion_environment_id, create_refresh_activity_details, **kwargs): - """ - Creates a new RefreshActivity. - - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param oci.fusion_apps.models.CreateRefreshActivityDetails create_refresh_activity_details: (required) - Details for the new RefreshActivity. - - :param str opc_retry_token: (optional) - A token that uniquely identifies a request so it can be retried in case of a timeout or - server error without risk of executing that same action again. Retry tokens expire after 24 - hours, but can be invalidated before then due to conflicting operations. For example, if a resource - has been deleted and purged from the system, then a retry of the original creation request - might be rejected. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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 create_refresh_activity API. - """ - resource_path = "/fusionEnvironments/{fusionEnvironmentId}/refreshActivities" - method = "POST" - operation_name = "create_refresh_activity" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_retry_token", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "create_refresh_activity got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentId": fusion_environment_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-retry-token": kwargs.get("opc_retry_token", missing), - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_retry_token_if_needed(header_params) - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - body=create_refresh_activity_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - body=create_refresh_activity_details, - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def get_refresh_activity(self, fusion_environment_id, refresh_activity_id, **kwargs): - """ - Gets a RefreshActivity by identifier - - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param str refresh_activity_id: (required) - The unique identifier (OCID) of the Refresh activity. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fusion_apps.models.RefreshActivity` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use get_refresh_activity API. - """ - resource_path = "/fusionEnvironments/{fusionEnvironmentId}/refreshActivities/{refreshActivityId}" - method = "GET" - operation_name = "get_refresh_activity" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "get_refresh_activity got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentId": fusion_environment_id, - "refreshActivityId": refresh_activity_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="RefreshActivity", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="RefreshActivity", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def list_refresh_activities(self, fusion_environment_id, **kwargs): - """ - Returns a list of RefreshActivities. - - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param str display_name: (optional) - A filter to return only resources that match the entire display name given. - - :param datetime time_scheduled_start_greater_than_or_equal_to: (optional) - A filter that returns all resources that are scheduled after this date - - :param datetime time_expected_finish_less_than_or_equal_to: (optional) - A filter that returns all resources that end before this date - - :param str lifecycle_state: (optional) - A filter that returns all resources that match the specified status - - Allowed values are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELED" - - :param int limit: (optional) - The maximum number of items to return. - - :param str page: (optional) - The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. - - :param str sort_order: (optional) - The sort order to use, either 'asc' or 'desc'. - - Allowed values are: "ASC", "DESC" - - :param str sort_by: (optional) - The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. - - Allowed values are: "TIME_CREATED", "DISPLAY_NAME" - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fusion_apps.models.RefreshActivityCollection` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use list_refresh_activities API. - """ - resource_path = "/fusionEnvironments/{fusionEnvironmentId}/refreshActivities" - method = "GET" - operation_name = "list_refresh_activities" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "display_name", - "time_scheduled_start_greater_than_or_equal_to", - "time_expected_finish_less_than_or_equal_to", - "lifecycle_state", - "limit", - "page", - "sort_order", - "sort_by", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "list_refresh_activities got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentId": fusion_environment_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - if 'lifecycle_state' in kwargs: - lifecycle_state_allowed_values = ["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELED"] - if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values: - raise ValueError( - "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values) - ) - - if 'sort_order' in kwargs: - sort_order_allowed_values = ["ASC", "DESC"] - if kwargs['sort_order'] not in sort_order_allowed_values: - raise ValueError( - "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values) - ) - - if 'sort_by' in kwargs: - sort_by_allowed_values = ["TIME_CREATED", "DISPLAY_NAME"] - if kwargs['sort_by'] not in sort_by_allowed_values: - raise ValueError( - "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values) - ) - - query_params = { - "displayName": kwargs.get("display_name", missing), - "timeScheduledStartGreaterThanOrEqualTo": kwargs.get("time_scheduled_start_greater_than_or_equal_to", missing), - "timeExpectedFinishLessThanOrEqualTo": kwargs.get("time_expected_finish_less_than_or_equal_to", missing), - "lifecycleState": kwargs.get("lifecycle_state", missing), - "limit": kwargs.get("limit", missing), - "page": kwargs.get("page", missing), - "sortOrder": kwargs.get("sort_order", missing), - "sortBy": kwargs.get("sort_by", missing) - } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - query_params=query_params, - header_params=header_params, - response_type="RefreshActivityCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - query_params=query_params, - header_params=header_params, - response_type="RefreshActivityCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def list_time_available_for_refreshes(self, fusion_environment_id, **kwargs): - """ - Gets available refresh time for this fusion environment - - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param int limit: (optional) - The maximum number of items to return. - - :param str page: (optional) - The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. - - :param str sort_order: (optional) - The sort order to use, either 'asc' or 'desc'. - - Allowed values are: "ASC", "DESC" - - :param str sort_by: (optional) - The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. - - Allowed values are: "TIME_CREATED", "DISPLAY_NAME" - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fusion_apps.models.TimeAvailableForRefreshCollection` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use list_time_available_for_refreshes API. - """ - resource_path = "/fusionEnvironments/{fusionEnvironmentId}/timeAvailableForRefresh" - method = "GET" - operation_name = "list_time_available_for_refreshes" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_request_id", - "limit", - "page", - "sort_order", - "sort_by" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "list_time_available_for_refreshes got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentId": fusion_environment_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - if 'sort_order' in kwargs: - sort_order_allowed_values = ["ASC", "DESC"] - if kwargs['sort_order'] not in sort_order_allowed_values: - raise ValueError( - "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values) - ) - - if 'sort_by' in kwargs: - sort_by_allowed_values = ["TIME_CREATED", "DISPLAY_NAME"] - if kwargs['sort_by'] not in sort_by_allowed_values: - raise ValueError( - "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values) - ) - - query_params = { - "limit": kwargs.get("limit", missing), - "page": kwargs.get("page", missing), - "sortOrder": kwargs.get("sort_order", missing), - "sortBy": kwargs.get("sort_by", missing) - } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - query_params=query_params, - header_params=header_params, - response_type="TimeAvailableForRefreshCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - query_params=query_params, - header_params=header_params, - response_type="TimeAvailableForRefreshCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) diff --git a/src/oci/fusion_apps/refresh_activity_client_composite_operations.py b/src/oci/fusion_apps/refresh_activity_client_composite_operations.py deleted file mode 100644 index 93f14c5802..0000000000 --- a/src/oci/fusion_apps/refresh_activity_client_composite_operations.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 -# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. -# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - -import oci # noqa: F401 -from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401 - - -class RefreshActivityClientCompositeOperations(object): - """ - This class provides a wrapper around :py:class:`~oci.fusion_apps.RefreshActivityClient` and offers convenience methods - for operations that would otherwise need to be chained together. For example, instead of performing an action - on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource - to enter a given state, you can call a single method in this class to accomplish the same functionality - """ - - def __init__(self, client, **kwargs): - """ - Creates a new RefreshActivityClientCompositeOperations object - - :param RefreshActivityClient client: - The service client which will be wrapped by this object - """ - self.client = client - - def create_refresh_activity_and_wait_for_state(self, fusion_environment_id, create_refresh_activity_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): - """ - Calls :py:func:`~oci.fusion_apps.RefreshActivityClient.create_refresh_activity` and waits for the :py:class:`~oci.fusion_apps.models.WorkRequest` - to enter the given state(s). - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param oci.fusion_apps.models.CreateRefreshActivityDetails create_refresh_activity_details: (required) - Details for the new RefreshActivity. - - :param list[str] wait_for_states: - An array of states to wait on. These should be valid values for :py:attr:`~oci.fusion_apps.models.WorkRequest.status` - - :param dict operation_kwargs: - A dictionary of keyword arguments to pass to :py:func:`~oci.fusion_apps.RefreshActivityClient.create_refresh_activity` - - :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_refresh_activity(fusion_environment_id, create_refresh_activity_details, **operation_kwargs) - if not wait_for_states: - return operation_result - - lowered_wait_for_states = [w.lower() for w in wait_for_states] - wait_for_resource_id = operation_result.headers['opc-work-request-id'] - - try: - waiter_result = oci.wait_until( - self.client, - self.client.get_work_request(wait_for_resource_id), - evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, - **waiter_kwargs - ) - result_to_return = waiter_result - - return result_to_return - except Exception as e: - raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) diff --git a/src/oci/fusion_apps/scheduled_activity_client.py b/src/oci/fusion_apps/scheduled_activity_client.py deleted file mode 100644 index 0527c1870d..0000000000 --- a/src/oci/fusion_apps/scheduled_activity_client.py +++ /dev/null @@ -1,380 +0,0 @@ -# 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. - -from __future__ import absolute_import - -from oci._vendor import requests # noqa: F401 -from oci._vendor import six - -from oci import retry, circuit_breaker # noqa: F401 -from oci.base_client import BaseClient -from oci.config import get_config_value_or_default, validate_config -from oci.signer import Signer -from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME -from .models import fusion_apps_type_mapping -missing = Sentinel("Missing") - - -class ScheduledActivityClient(object): - """ - Use the Fusion Applications Environment Management API to manage the environments where your Fusion Applications run. For more information, see the [Fusion Applications Environment Management documentation](/iaas/Content/Identity/fusion-applications/home.htm). - """ - - def __init__(self, config, **kwargs): - """ - Creates a new service client - - :param dict config: - Configuration keys and values as per `SDK and Tool Configuration `__. - The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config - the dict using :py:meth:`~oci.config.validate_config` - - :param str service_endpoint: (optional) - The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is - not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit - need to specify a service endpoint. - - :param timeout: (optional) - The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided - as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If - a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout. - :type timeout: float or tuple(float, float) - - :param signer: (optional) - The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values - provided in the config parameter. - - One use case for this parameter is for `Instance Principals authentication `__ - by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument - :type signer: :py:class:`~oci.signer.AbstractBaseSigner` - - :param obj retry_strategy: (optional) - A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default. - Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation. - Any value provided at the operation level will override whatever is specified at the client level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` - is also available. The specifics of the default retry strategy are described `here `__. - - :param obj circuit_breaker_strategy: (optional) - A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level). - This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided. - The specifics of circuit breaker strategy are described `here `__. - - :param function circuit_breaker_callback: (optional) - Callback function to receive any exceptions triggerred by the circuit breaker. - - :param allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not - allow control characters to be in the response object. - """ - validate_config(config, signer=kwargs.get('signer')) - if 'signer' in kwargs: - signer = kwargs['signer'] - - elif AUTHENTICATION_TYPE_FIELD_NAME in config: - signer = get_signer_from_authentication_type(config) - - else: - signer = Signer( - tenancy=config["tenancy"], - user=config["user"], - fingerprint=config["fingerprint"], - private_key_file_location=config.get("key_file"), - pass_phrase=get_config_value_or_default(config, "pass_phrase"), - private_key_content=config.get("key_content") - ) - - base_client_init_kwargs = { - 'regional_client': True, - 'service_endpoint': kwargs.get('service_endpoint'), - 'base_path': '/20211201', - 'service_endpoint_template': 'https://fusionapps.{region}.oci.{secondLevelDomain}', - 'skip_deserialization': kwargs.get('skip_deserialization', False), - 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY) - } - if 'timeout' in kwargs: - base_client_init_kwargs['timeout'] = kwargs.get('timeout') - if base_client_init_kwargs.get('circuit_breaker_strategy') is None: - base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY - if 'allow_control_chars' in kwargs: - base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars') - self.base_client = BaseClient("scheduled_activity", config, signer, fusion_apps_type_mapping, **base_client_init_kwargs) - self.retry_strategy = kwargs.get('retry_strategy') - self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback') - - def get_scheduled_activity(self, fusion_environment_id, scheduled_activity_id, **kwargs): - """ - Gets a ScheduledActivity by identifier - - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param str scheduled_activity_id: (required) - Unique ScheduledActivity identifier. - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fusion_apps.models.ScheduledActivity` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use get_scheduled_activity API. - """ - resource_path = "/fusionEnvironments/{fusionEnvironmentId}/scheduledActivities/{scheduledActivityId}" - method = "GET" - operation_name = "get_scheduled_activity" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "get_scheduled_activity got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentId": fusion_environment_id, - "scheduledActivityId": scheduled_activity_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="ScheduledActivity", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="ScheduledActivity", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def list_scheduled_activities(self, fusion_environment_id, **kwargs): - """ - Returns a list of ScheduledActivities. - - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param str display_name: (optional) - A filter to return only resources that match the entire display name given. - - :param datetime time_scheduled_start_greater_than_or_equal_to: (optional) - A filter that returns all resources that are scheduled after this date - - :param datetime time_expected_finish_less_than_or_equal_to: (optional) - A filter that returns all resources that end before this date - - :param str run_cycle: (optional) - A filter that returns all resources that match the specified run cycle. - - Allowed values are: "QUARTERLY", "MONTHLY", "ONEOFF", "VERTEX" - - :param str lifecycle_state: (optional) - A filter that returns all resources that match the specified status - - Allowed values are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELED" - - :param int limit: (optional) - The maximum number of items to return. - - :param str page: (optional) - The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. - - :param str sort_order: (optional) - The sort order to use, either 'asc' or 'desc'. - - Allowed values are: "ASC", "DESC" - - :param str sort_by: (optional) - The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. - - Allowed values are: "TIME_CREATED", "DISPLAY_NAME" - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fusion_apps.models.ScheduledActivityCollection` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use list_scheduled_activities API. - """ - resource_path = "/fusionEnvironments/{fusionEnvironmentId}/scheduledActivities" - method = "GET" - operation_name = "list_scheduled_activities" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "display_name", - "time_scheduled_start_greater_than_or_equal_to", - "time_expected_finish_less_than_or_equal_to", - "run_cycle", - "lifecycle_state", - "limit", - "page", - "sort_order", - "sort_by", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "list_scheduled_activities got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentId": fusion_environment_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - if 'run_cycle' in kwargs: - run_cycle_allowed_values = ["QUARTERLY", "MONTHLY", "ONEOFF", "VERTEX"] - if kwargs['run_cycle'] not in run_cycle_allowed_values: - raise ValueError( - "Invalid value for `run_cycle`, must be one of {0}".format(run_cycle_allowed_values) - ) - - if 'lifecycle_state' in kwargs: - lifecycle_state_allowed_values = ["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELED"] - if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values: - raise ValueError( - "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values) - ) - - if 'sort_order' in kwargs: - sort_order_allowed_values = ["ASC", "DESC"] - if kwargs['sort_order'] not in sort_order_allowed_values: - raise ValueError( - "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values) - ) - - if 'sort_by' in kwargs: - sort_by_allowed_values = ["TIME_CREATED", "DISPLAY_NAME"] - if kwargs['sort_by'] not in sort_by_allowed_values: - raise ValueError( - "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values) - ) - - query_params = { - "displayName": kwargs.get("display_name", missing), - "timeScheduledStartGreaterThanOrEqualTo": kwargs.get("time_scheduled_start_greater_than_or_equal_to", missing), - "timeExpectedFinishLessThanOrEqualTo": kwargs.get("time_expected_finish_less_than_or_equal_to", missing), - "runCycle": kwargs.get("run_cycle", missing), - "lifecycleState": kwargs.get("lifecycle_state", missing), - "limit": kwargs.get("limit", missing), - "page": kwargs.get("page", missing), - "sortOrder": kwargs.get("sort_order", missing), - "sortBy": kwargs.get("sort_by", missing) - } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - query_params=query_params, - header_params=header_params, - response_type="ScheduledActivityCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - query_params=query_params, - header_params=header_params, - response_type="ScheduledActivityCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) diff --git a/src/oci/fusion_apps/scheduled_activity_client_composite_operations.py b/src/oci/fusion_apps/scheduled_activity_client_composite_operations.py deleted file mode 100644 index 488e3399e1..0000000000 --- a/src/oci/fusion_apps/scheduled_activity_client_composite_operations.py +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 -# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. -# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - -import oci # noqa: F401 -from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401 - - -class ScheduledActivityClientCompositeOperations(object): - """ - This class provides a wrapper around :py:class:`~oci.fusion_apps.ScheduledActivityClient` and offers convenience methods - for operations that would otherwise need to be chained together. For example, instead of performing an action - on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource - to enter a given state, you can call a single method in this class to accomplish the same functionality - """ - - def __init__(self, client, **kwargs): - """ - Creates a new ScheduledActivityClientCompositeOperations object - - :param ScheduledActivityClient client: - The service client which will be wrapped by this object - """ - self.client = client diff --git a/src/oci/fusion_apps/service_attachment_client.py b/src/oci/fusion_apps/service_attachment_client.py deleted file mode 100644 index 88a6a152da..0000000000 --- a/src/oci/fusion_apps/service_attachment_client.py +++ /dev/null @@ -1,370 +0,0 @@ -# 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. - -from __future__ import absolute_import - -from oci._vendor import requests # noqa: F401 -from oci._vendor import six - -from oci import retry, circuit_breaker # noqa: F401 -from oci.base_client import BaseClient -from oci.config import get_config_value_or_default, validate_config -from oci.signer import Signer -from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME -from .models import fusion_apps_type_mapping -missing = Sentinel("Missing") - - -class ServiceAttachmentClient(object): - """ - Use the Fusion Applications Environment Management API to manage the environments where your Fusion Applications run. For more information, see the [Fusion Applications Environment Management documentation](/iaas/Content/Identity/fusion-applications/home.htm). - """ - - def __init__(self, config, **kwargs): - """ - Creates a new service client - - :param dict config: - Configuration keys and values as per `SDK and Tool Configuration `__. - The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config - the dict using :py:meth:`~oci.config.validate_config` - - :param str service_endpoint: (optional) - The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is - not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit - need to specify a service endpoint. - - :param timeout: (optional) - The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided - as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If - a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout. - :type timeout: float or tuple(float, float) - - :param signer: (optional) - The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values - provided in the config parameter. - - One use case for this parameter is for `Instance Principals authentication `__ - by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument - :type signer: :py:class:`~oci.signer.AbstractBaseSigner` - - :param obj retry_strategy: (optional) - A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default. - Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation. - Any value provided at the operation level will override whatever is specified at the client level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` - is also available. The specifics of the default retry strategy are described `here `__. - - :param obj circuit_breaker_strategy: (optional) - A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level). - This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided. - The specifics of circuit breaker strategy are described `here `__. - - :param function circuit_breaker_callback: (optional) - Callback function to receive any exceptions triggerred by the circuit breaker. - - :param allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not - allow control characters to be in the response object. - """ - validate_config(config, signer=kwargs.get('signer')) - if 'signer' in kwargs: - signer = kwargs['signer'] - - elif AUTHENTICATION_TYPE_FIELD_NAME in config: - signer = get_signer_from_authentication_type(config) - - else: - signer = Signer( - tenancy=config["tenancy"], - user=config["user"], - fingerprint=config["fingerprint"], - private_key_file_location=config.get("key_file"), - pass_phrase=get_config_value_or_default(config, "pass_phrase"), - private_key_content=config.get("key_content") - ) - - base_client_init_kwargs = { - 'regional_client': True, - 'service_endpoint': kwargs.get('service_endpoint'), - 'base_path': '/20211201', - 'service_endpoint_template': 'https://fusionapps.{region}.oci.{secondLevelDomain}', - 'skip_deserialization': kwargs.get('skip_deserialization', False), - 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY) - } - if 'timeout' in kwargs: - base_client_init_kwargs['timeout'] = kwargs.get('timeout') - if base_client_init_kwargs.get('circuit_breaker_strategy') is None: - base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY - if 'allow_control_chars' in kwargs: - base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars') - self.base_client = BaseClient("service_attachment", config, signer, fusion_apps_type_mapping, **base_client_init_kwargs) - self.retry_strategy = kwargs.get('retry_strategy') - self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback') - - def get_service_attachment(self, fusion_environment_id, service_attachment_id, **kwargs): - """ - Gets a Service Attachment by identifier - - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param str service_attachment_id: (required) - OCID of the Service Attachment - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fusion_apps.models.ServiceAttachment` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use get_service_attachment API. - """ - resource_path = "/fusionEnvironments/{fusionEnvironmentId}/serviceAttachments/{serviceAttachmentId}" - method = "GET" - operation_name = "get_service_attachment" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "get_service_attachment got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentId": fusion_environment_id, - "serviceAttachmentId": service_attachment_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="ServiceAttachment", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - header_params=header_params, - response_type="ServiceAttachment", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - - def list_service_attachments(self, fusion_environment_id, **kwargs): - """ - Returns a list of service attachments. - - - :param str fusion_environment_id: (required) - unique FusionEnvironment identifier - - :param str display_name: (optional) - A filter to return only resources that match the entire display name given. - - :param str lifecycle_state: (optional) - A filter that returns all resources that match the specified lifecycle state. - - Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED" - - :param str service_instance_type: (optional) - A filter that returns all resources that match the specified lifecycle state. - - Allowed values are: "DIGITAL_ASSISTANT", "INTEGRATION_CLOUD", "ANALYTICS_WAREHOUSE", "VBCS", "VISUAL_BUILDER_STUDIO" - - :param int limit: (optional) - The maximum number of items to return. - - :param str page: (optional) - The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. - - :param str sort_order: (optional) - The sort order to use, either 'asc' or 'desc'. - - Allowed values are: "ASC", "DESC" - - :param str sort_by: (optional) - The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. - - Allowed values are: "TIME_CREATED", "DISPLAY_NAME" - - :param str opc_request_id: (optional) - The client request ID for tracing. - - :param obj retry_strategy: (optional) - A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. - The specifics of the default retry strategy are described `here `__. - - To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. - - :param bool allow_control_chars: (optional) - allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. - By default, the response will not allow control characters in strings - - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fusion_apps.models.ServiceAttachmentCollection` - :rtype: :class:`~oci.response.Response` - - :example: - Click `here `__ to see an example of how to use list_service_attachments API. - """ - resource_path = "/fusionEnvironments/{fusionEnvironmentId}/serviceAttachments" - method = "GET" - operation_name = "list_service_attachments" - api_reference_link = "" - - # Don't accept unknown kwargs - expected_kwargs = [ - "allow_control_chars", - "retry_strategy", - "display_name", - "lifecycle_state", - "service_instance_type", - "limit", - "page", - "sort_order", - "sort_by", - "opc_request_id" - ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] - if extra_kwargs: - raise ValueError( - "list_service_attachments got unknown kwargs: {!r}".format(extra_kwargs)) - - path_params = { - "fusionEnvironmentId": fusion_environment_id - } - - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} - - for (k, v) in six.iteritems(path_params): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): - raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) - - if 'lifecycle_state' in kwargs: - lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] - if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values: - raise ValueError( - "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values) - ) - - if 'service_instance_type' in kwargs: - service_instance_type_allowed_values = ["DIGITAL_ASSISTANT", "INTEGRATION_CLOUD", "ANALYTICS_WAREHOUSE", "VBCS", "VISUAL_BUILDER_STUDIO"] - if kwargs['service_instance_type'] not in service_instance_type_allowed_values: - raise ValueError( - "Invalid value for `service_instance_type`, must be one of {0}".format(service_instance_type_allowed_values) - ) - - if 'sort_order' in kwargs: - sort_order_allowed_values = ["ASC", "DESC"] - if kwargs['sort_order'] not in sort_order_allowed_values: - raise ValueError( - "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values) - ) - - if 'sort_by' in kwargs: - sort_by_allowed_values = ["TIME_CREATED", "DISPLAY_NAME"] - if kwargs['sort_by'] not in sort_by_allowed_values: - raise ValueError( - "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values) - ) - - query_params = { - "displayName": kwargs.get("display_name", missing), - "lifecycleState": kwargs.get("lifecycle_state", missing), - "serviceInstanceType": kwargs.get("service_instance_type", missing), - "limit": kwargs.get("limit", missing), - "page": kwargs.get("page", missing), - "sortOrder": kwargs.get("sort_order", missing), - "sortBy": kwargs.get("sort_by", missing) - } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} - - header_params = { - "accept": "application/json", - "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) - } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} - - retry_strategy = self.base_client.get_preferred_retry_strategy( - operation_retry_strategy=kwargs.get('retry_strategy'), - client_retry_strategy=self.retry_strategy - ) - - if retry_strategy: - if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_client_retries_header(header_params) - retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) - return retry_strategy.make_retrying_call( - self.base_client.call_api, - resource_path=resource_path, - method=method, - path_params=path_params, - query_params=query_params, - header_params=header_params, - response_type="ServiceAttachmentCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) - else: - return self.base_client.call_api( - resource_path=resource_path, - method=method, - path_params=path_params, - query_params=query_params, - header_params=header_params, - response_type="ServiceAttachmentCollection", - allow_control_chars=kwargs.get('allow_control_chars'), - operation_name=operation_name, - api_reference_link=api_reference_link) diff --git a/src/oci/fusion_apps/service_attachment_client_composite_operations.py b/src/oci/fusion_apps/service_attachment_client_composite_operations.py deleted file mode 100644 index 21075a01c0..0000000000 --- a/src/oci/fusion_apps/service_attachment_client_composite_operations.py +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 -# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. -# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - -import oci # noqa: F401 -from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401 - - -class ServiceAttachmentClientCompositeOperations(object): - """ - This class provides a wrapper around :py:class:`~oci.fusion_apps.ServiceAttachmentClient` and offers convenience methods - for operations that would otherwise need to be chained together. For example, instead of performing an action - on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource - to enter a given state, you can call a single method in this class to accomplish the same functionality - """ - - def __init__(self, client, **kwargs): - """ - Creates a new ServiceAttachmentClientCompositeOperations object - - :param ServiceAttachmentClient client: - The service client which will be wrapped by this object - """ - self.client = client diff --git a/src/oci/golden_gate/golden_gate_client.py b/src/oci/golden_gate/golden_gate_client.py index 84f3d2955b..93e3fff845 100644 --- a/src/oci/golden_gate/golden_gate_client.py +++ b/src/oci/golden_gate/golden_gate_client.py @@ -1493,7 +1493,7 @@ def copy_deployment_backup(self, deployment_backup_id, copy_deployment_backup_de allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings - :return: A :class:`~oci.response.Response` object with data of type None + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.DeploymentBackup` :rtype: :class:`~oci.response.Response` :example: @@ -1557,6 +1557,7 @@ def copy_deployment_backup(self, deployment_backup_id, copy_deployment_backup_de path_params=path_params, header_params=header_params, body=copy_deployment_backup_details, + response_type="DeploymentBackup", allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -1568,6 +1569,7 @@ def copy_deployment_backup(self, deployment_backup_id, copy_deployment_backup_de path_params=path_params, header_params=header_params, body=copy_deployment_backup_details, + response_type="DeploymentBackup", allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -2123,7 +2125,7 @@ def create_deployment_backup(self, create_deployment_backup_details, **kwargs): allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings - :return: A :class:`~oci.response.Response` object with data of type None + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.DeploymentBackup` :rtype: :class:`~oci.response.Response` :example: @@ -2174,6 +2176,7 @@ def create_deployment_backup(self, create_deployment_backup_details, **kwargs): method=method, header_params=header_params, body=create_deployment_backup_details, + response_type="DeploymentBackup", allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -2184,6 +2187,7 @@ def create_deployment_backup(self, create_deployment_backup_details, **kwargs): method=method, header_params=header_params, body=create_deployment_backup_details, + response_type="DeploymentBackup", allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -5018,6 +5022,143 @@ def list_deployment_backups(self, compartment_id, **kwargs): api_reference_link=api_reference_link, required_arguments=required_arguments) + def list_deployment_environments(self, compartment_id, **kwargs): + """ + Returns an array of DeploymentEnvironmentDescriptor + + + :param str compartment_id: (required) + The OCID of the compartment that contains the work request. Work requests should be scoped + to the same compartment as the resource the work request affects. If the work request concerns + multiple resources, and those resources are not in the same compartment, it is up to the service team + to pick the primary resource whose compartment should be used. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param int limit: (optional) + The maximum number of items to return. + + :param str page: (optional) + The page token representing the page at which to start retrieving results. This is usually + retrieved from a previous list call. + + :param str sort_order: (optional) + The sort order to use, either 'asc' or 'desc'. + + Allowed values are: "ASC", "DESC" + + :param str sort_by: (optional) + The field to sort by. Only one sort order can be provided. Default order for 'timeCreated' is + descending. Default order for 'displayName' is ascending. If no value is specified + timeCreated is the default. + + Allowed values are: "timeCreated", "displayName" + + :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.golden_gate.models.DeploymentEnvironmentCollection` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use list_deployment_environments API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['compartmentId'] + resource_path = "/deploymentEnvironments" + method = "GET" + operation_name = "list_deployment_environments" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/DeploymentEnvironmentCollection/ListDeploymentEnvironments" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id", + "limit", + "page", + "sort_order", + "sort_by" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"list_deployment_environments got unknown kwargs: {extra_kwargs!r}") + + if 'sort_order' in kwargs: + sort_order_allowed_values = ["ASC", "DESC"] + if kwargs['sort_order'] not in sort_order_allowed_values: + raise ValueError( + f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }" + ) + + if 'sort_by' in kwargs: + sort_by_allowed_values = ["timeCreated", "displayName"] + if kwargs['sort_by'] not in sort_by_allowed_values: + raise ValueError( + f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }" + ) + + query_params = { + "compartmentId": compartment_id, + "limit": kwargs.get("limit", missing), + "page": kwargs.get("page", missing), + "sortOrder": kwargs.get("sort_order", missing), + "sortBy": kwargs.get("sort_by", missing) + } + query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="DeploymentEnvironmentCollection", + 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="DeploymentEnvironmentCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def list_deployment_types(self, compartment_id, **kwargs): """ Returns an array of DeploymentTypeDescriptor diff --git a/src/oci/golden_gate/models/__init__.py b/src/oci/golden_gate/models/__init__.py index 773554d0f7..54b332639f 100644 --- a/src/oci/golden_gate/models/__init__.py +++ b/src/oci/golden_gate/models/__init__.py @@ -90,6 +90,8 @@ from .deployment_backup_summary import DeploymentBackupSummary from .deployment_collection import DeploymentCollection from .deployment_diagnostic_data import DeploymentDiagnosticData +from .deployment_environment_collection import DeploymentEnvironmentCollection +from .deployment_environment_summary import DeploymentEnvironmentSummary from .deployment_message_collection import DeploymentMessageCollection from .deployment_summary import DeploymentSummary from .deployment_type_collection import DeploymentTypeCollection @@ -116,6 +118,7 @@ from .google_big_query_connection_summary import GoogleBigQueryConnectionSummary from .google_cloud_storage_connection import GoogleCloudStorageConnection from .google_cloud_storage_connection_summary import GoogleCloudStorageConnectionSummary +from .group_to_roles_mapping_details import GroupToRolesMappingDetails from .hdfs_connection import HdfsConnection from .hdfs_connection_summary import HdfsConnectionSummary from .import_deployment_wallet_details import ImportDeploymentWalletDetails @@ -182,6 +185,7 @@ from .update_golden_gate_connection_details import UpdateGoldenGateConnectionDetails from .update_google_big_query_connection_details import UpdateGoogleBigQueryConnectionDetails from .update_google_cloud_storage_connection_details import UpdateGoogleCloudStorageConnectionDetails +from .update_group_to_roles_mapping_details import UpdateGroupToRolesMappingDetails from .update_hdfs_connection_details import UpdateHdfsConnectionDetails from .update_java_message_service_connection_details import UpdateJavaMessageServiceConnectionDetails from .update_kafka_connection_details import UpdateKafkaConnectionDetails @@ -293,6 +297,8 @@ "DeploymentBackupSummary": DeploymentBackupSummary, "DeploymentCollection": DeploymentCollection, "DeploymentDiagnosticData": DeploymentDiagnosticData, + "DeploymentEnvironmentCollection": DeploymentEnvironmentCollection, + "DeploymentEnvironmentSummary": DeploymentEnvironmentSummary, "DeploymentMessageCollection": DeploymentMessageCollection, "DeploymentSummary": DeploymentSummary, "DeploymentTypeCollection": DeploymentTypeCollection, @@ -319,6 +325,7 @@ "GoogleBigQueryConnectionSummary": GoogleBigQueryConnectionSummary, "GoogleCloudStorageConnection": GoogleCloudStorageConnection, "GoogleCloudStorageConnectionSummary": GoogleCloudStorageConnectionSummary, + "GroupToRolesMappingDetails": GroupToRolesMappingDetails, "HdfsConnection": HdfsConnection, "HdfsConnectionSummary": HdfsConnectionSummary, "ImportDeploymentWalletDetails": ImportDeploymentWalletDetails, @@ -385,6 +392,7 @@ "UpdateGoldenGateConnectionDetails": UpdateGoldenGateConnectionDetails, "UpdateGoogleBigQueryConnectionDetails": UpdateGoogleBigQueryConnectionDetails, "UpdateGoogleCloudStorageConnectionDetails": UpdateGoogleCloudStorageConnectionDetails, + "UpdateGroupToRolesMappingDetails": UpdateGroupToRolesMappingDetails, "UpdateHdfsConnectionDetails": UpdateHdfsConnectionDetails, "UpdateJavaMessageServiceConnectionDetails": UpdateJavaMessageServiceConnectionDetails, "UpdateKafkaConnectionDetails": UpdateKafkaConnectionDetails, diff --git a/src/oci/golden_gate/models/create_database_registration_details.py b/src/oci/golden_gate/models/create_database_registration_details.py index 227155bf23..b7a074e729 100644 --- a/src/oci/golden_gate/models/create_database_registration_details.py +++ b/src/oci/golden_gate/models/create_database_registration_details.py @@ -522,8 +522,8 @@ def session_mode(self, session_mode): def wallet(self): """ Gets the wallet of this CreateDatabaseRegistrationDetails. - The wallet contents Oracle GoldenGate uses to make connections to a database. This - attribute is expected to be base64 encoded. + The wallet contents Oracle GoldenGate uses to make connections to a database. + This attribute is expected to be base64 encoded. :return: The wallet of this CreateDatabaseRegistrationDetails. @@ -535,8 +535,8 @@ def wallet(self): def wallet(self, wallet): """ Sets the wallet of this CreateDatabaseRegistrationDetails. - The wallet contents Oracle GoldenGate uses to make connections to a database. This - attribute is expected to be base64 encoded. + The wallet contents Oracle GoldenGate uses to make connections to a database. + This attribute is expected to be base64 encoded. :param wallet: The wallet of this CreateDatabaseRegistrationDetails. diff --git a/src/oci/golden_gate/models/create_deployment_details.py b/src/oci/golden_gate/models/create_deployment_details.py index 883da983c5..cb8fc2e360 100644 --- a/src/oci/golden_gate/models/create_deployment_details.py +++ b/src/oci/golden_gate/models/create_deployment_details.py @@ -23,6 +23,14 @@ class CreateDeploymentDetails(object): #: This constant has a value of "BRING_YOUR_OWN_LICENSE" LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = "BRING_YOUR_OWN_LICENSE" + #: A constant which can be used with the environment_type property of a CreateDeploymentDetails. + #: This constant has a value of "PRODUCTION" + ENVIRONMENT_TYPE_PRODUCTION = "PRODUCTION" + + #: A constant which can be used with the environment_type property of a CreateDeploymentDetails. + #: This constant has a value of "DEVELOPMENT_OR_TESTING" + ENVIRONMENT_TYPE_DEVELOPMENT_OR_TESTING = "DEVELOPMENT_OR_TESTING" + #: A constant which can be used with the deployment_type property of a CreateDeploymentDetails. #: This constant has a value of "OGG" DEPLOYMENT_TYPE_OGG = "OGG" @@ -73,6 +81,11 @@ def __init__(self, **kwargs): Allowed values for this property are: "LICENSE_INCLUDED", "BRING_YOUR_OWN_LICENSE" :type license_model: str + :param environment_type: + The value to assign to the environment_type property of this CreateDeploymentDetails. + Allowed values for this property are: "PRODUCTION", "DEVELOPMENT_OR_TESTING" + :type environment_type: str + :param description: The value to assign to the description property of this CreateDeploymentDetails. :type description: str @@ -146,6 +159,7 @@ def __init__(self, **kwargs): self.swagger_types = { 'display_name': 'str', 'license_model': 'str', + 'environment_type': 'str', 'description': 'str', 'compartment_id': 'str', 'freeform_tags': 'dict(str, str)', @@ -168,6 +182,7 @@ def __init__(self, **kwargs): self.attribute_map = { 'display_name': 'displayName', 'license_model': 'licenseModel', + 'environment_type': 'environmentType', 'description': 'description', 'compartment_id': 'compartmentId', 'freeform_tags': 'freeformTags', @@ -189,6 +204,7 @@ def __init__(self, **kwargs): self._display_name = None self._license_model = None + self._environment_type = None self._description = None self._compartment_id = None self._freeform_tags = None @@ -262,6 +278,37 @@ def license_model(self, license_model): ) self._license_model = license_model + @property + def environment_type(self): + """ + Gets the environment_type of this CreateDeploymentDetails. + Specifies whether the deployment is used in a production or development/testing environment. + + Allowed values for this property are: "PRODUCTION", "DEVELOPMENT_OR_TESTING" + + + :return: The environment_type of this CreateDeploymentDetails. + :rtype: str + """ + return self._environment_type + + @environment_type.setter + def environment_type(self, environment_type): + """ + Sets the environment_type of this CreateDeploymentDetails. + Specifies whether the deployment is used in a production or development/testing environment. + + + :param environment_type: The environment_type of this CreateDeploymentDetails. + :type: str + """ + allowed_values = ["PRODUCTION", "DEVELOPMENT_OR_TESTING"] + if not value_allowed_none_or_none_sentinel(environment_type, allowed_values): + raise ValueError( + f"Invalid value for `environment_type`, must be None or one of {allowed_values}" + ) + self._environment_type = environment_type + @property def description(self): """ diff --git a/src/oci/golden_gate/models/create_ogg_deployment_details.py b/src/oci/golden_gate/models/create_ogg_deployment_details.py index 484a399364..c4fefd84a6 100644 --- a/src/oci/golden_gate/models/create_ogg_deployment_details.py +++ b/src/oci/golden_gate/models/create_ogg_deployment_details.py @@ -65,6 +65,10 @@ def __init__(self, **kwargs): The value to assign to the ogg_version property of this CreateOggDeploymentDetails. :type ogg_version: str + :param group_to_roles_mapping: + The value to assign to the group_to_roles_mapping property of this CreateOggDeploymentDetails. + :type group_to_roles_mapping: oci.golden_gate.models.GroupToRolesMappingDetails + """ self.swagger_types = { 'deployment_name': 'str', @@ -75,7 +79,8 @@ def __init__(self, **kwargs): 'admin_password': 'str', 'certificate': 'str', 'key': 'str', - 'ogg_version': 'str' + 'ogg_version': 'str', + 'group_to_roles_mapping': 'GroupToRolesMappingDetails' } self.attribute_map = { @@ -87,7 +92,8 @@ def __init__(self, **kwargs): 'admin_password': 'adminPassword', 'certificate': 'certificate', 'key': 'key', - 'ogg_version': 'oggVersion' + 'ogg_version': 'oggVersion', + 'group_to_roles_mapping': 'groupToRolesMapping' } self._deployment_name = None @@ -99,6 +105,7 @@ def __init__(self, **kwargs): self._certificate = None self._key = None self._ogg_version = None + self._group_to_roles_mapping = None @property def deployment_name(self): @@ -339,6 +346,26 @@ def ogg_version(self, ogg_version): """ self._ogg_version = ogg_version + @property + def group_to_roles_mapping(self): + """ + Gets the group_to_roles_mapping of this CreateOggDeploymentDetails. + + :return: The group_to_roles_mapping of this CreateOggDeploymentDetails. + :rtype: oci.golden_gate.models.GroupToRolesMappingDetails + """ + return self._group_to_roles_mapping + + @group_to_roles_mapping.setter + def group_to_roles_mapping(self, group_to_roles_mapping): + """ + Sets the group_to_roles_mapping of this CreateOggDeploymentDetails. + + :param group_to_roles_mapping: The group_to_roles_mapping of this CreateOggDeploymentDetails. + :type: oci.golden_gate.models.GroupToRolesMappingDetails + """ + self._group_to_roles_mapping = group_to_roles_mapping + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/golden_gate/models/create_oracle_connection_details.py b/src/oci/golden_gate/models/create_oracle_connection_details.py index c112bbc201..eaa7ded6e3 100644 --- a/src/oci/golden_gate/models/create_oracle_connection_details.py +++ b/src/oci/golden_gate/models/create_oracle_connection_details.py @@ -311,8 +311,8 @@ def authentication_mode(self, authentication_mode): def wallet(self): """ Gets the wallet of this CreateOracleConnectionDetails. - The wallet contents Oracle GoldenGate uses to make connections to a database. This - attribute is expected to be base64 encoded. + The wallet contents Oracle GoldenGate uses to make connections to a database. + This attribute is expected to be base64 encoded. :return: The wallet of this CreateOracleConnectionDetails. @@ -324,8 +324,8 @@ def wallet(self): def wallet(self, wallet): """ Sets the wallet of this CreateOracleConnectionDetails. - The wallet contents Oracle GoldenGate uses to make connections to a database. This - attribute is expected to be base64 encoded. + The wallet contents Oracle GoldenGate uses to make connections to a database. + This attribute is expected to be base64 encoded. :param wallet: The wallet of this CreateOracleConnectionDetails. diff --git a/src/oci/golden_gate/models/deployment.py b/src/oci/golden_gate/models/deployment.py index f738167dfd..ade1c39263 100644 --- a/src/oci/golden_gate/models/deployment.py +++ b/src/oci/golden_gate/models/deployment.py @@ -107,6 +107,26 @@ class Deployment(object): #: This constant has a value of "BRING_YOUR_OWN_LICENSE" LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = "BRING_YOUR_OWN_LICENSE" + #: A constant which can be used with the environment_type property of a Deployment. + #: This constant has a value of "PRODUCTION" + ENVIRONMENT_TYPE_PRODUCTION = "PRODUCTION" + + #: A constant which can be used with the environment_type property of a Deployment. + #: This constant has a value of "DEVELOPMENT_OR_TESTING" + ENVIRONMENT_TYPE_DEVELOPMENT_OR_TESTING = "DEVELOPMENT_OR_TESTING" + + #: A constant which can be used with the category property of a Deployment. + #: This constant has a value of "DATA_REPLICATION" + CATEGORY_DATA_REPLICATION = "DATA_REPLICATION" + + #: A constant which can be used with the category property of a Deployment. + #: This constant has a value of "STREAM_ANALYTICS" + CATEGORY_STREAM_ANALYTICS = "STREAM_ANALYTICS" + + #: A constant which can be used with the category property of a Deployment. + #: This constant has a value of "DATA_TRANSFORMS" + CATEGORY_DATA_TRANSFORMS = "DATA_TRANSFORMS" + #: A constant which can be used with the deployment_type property of a Deployment. #: This constant has a value of "OGG" DEPLOYMENT_TYPE_OGG = "OGG" @@ -234,6 +254,18 @@ def __init__(self, **kwargs): Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type license_model: str + :param environment_type: + The value to assign to the environment_type property of this Deployment. + Allowed values for this property are: "PRODUCTION", "DEVELOPMENT_OR_TESTING", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type environment_type: str + + :param category: + The value to assign to the category property of this Deployment. + Allowed values for this property are: "DATA_REPLICATION", "STREAM_ANALYTICS", "DATA_TRANSFORMS", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type category: str + :param cpu_core_count: The value to assign to the cpu_core_count property of this Deployment. :type cpu_core_count: int @@ -347,6 +379,8 @@ def __init__(self, **kwargs): 'load_balancer_id': 'str', 'fqdn': 'str', 'license_model': 'str', + 'environment_type': 'str', + 'category': 'str', 'cpu_core_count': 'int', 'is_auto_scaling_enabled': 'bool', 'nsg_ids': 'list[str]', @@ -391,6 +425,8 @@ def __init__(self, **kwargs): 'load_balancer_id': 'loadBalancerId', 'fqdn': 'fqdn', 'license_model': 'licenseModel', + 'environment_type': 'environmentType', + 'category': 'category', 'cpu_core_count': 'cpuCoreCount', 'is_auto_scaling_enabled': 'isAutoScalingEnabled', 'nsg_ids': 'nsgIds', @@ -434,6 +470,8 @@ def __init__(self, **kwargs): self._load_balancer_id = None self._fqdn = None self._license_model = None + self._environment_type = None + self._category = None self._cpu_core_count = None self._is_auto_scaling_enabled = None self._nsg_ids = None @@ -989,6 +1027,68 @@ def license_model(self, license_model): license_model = 'UNKNOWN_ENUM_VALUE' self._license_model = license_model + @property + def environment_type(self): + """ + Gets the environment_type of this Deployment. + Specifies whether the deployment is used in a production or development/testing environment. + + Allowed values for this property are: "PRODUCTION", "DEVELOPMENT_OR_TESTING", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The environment_type of this Deployment. + :rtype: str + """ + return self._environment_type + + @environment_type.setter + def environment_type(self, environment_type): + """ + Sets the environment_type of this Deployment. + Specifies whether the deployment is used in a production or development/testing environment. + + + :param environment_type: The environment_type of this Deployment. + :type: str + """ + allowed_values = ["PRODUCTION", "DEVELOPMENT_OR_TESTING"] + if not value_allowed_none_or_none_sentinel(environment_type, allowed_values): + environment_type = 'UNKNOWN_ENUM_VALUE' + self._environment_type = environment_type + + @property + def category(self): + """ + **[Required]** Gets the category of this Deployment. + The deployment category defines the broad separation of the deployment type into three categories. + Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'. + + Allowed values for this property are: "DATA_REPLICATION", "STREAM_ANALYTICS", "DATA_TRANSFORMS", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The category of this Deployment. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """ + Sets the category of this Deployment. + The deployment category defines the broad separation of the deployment type into three categories. + Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'. + + + :param category: The category of this Deployment. + :type: str + """ + allowed_values = ["DATA_REPLICATION", "STREAM_ANALYTICS", "DATA_TRANSFORMS"] + if not value_allowed_none_or_none_sentinel(category, allowed_values): + category = 'UNKNOWN_ENUM_VALUE' + self._category = category + @property def cpu_core_count(self): """ @@ -1287,6 +1387,7 @@ def storage_utilization_in_bytes(self, storage_utilization_in_bytes): def is_storage_utilization_limit_exceeded(self): """ Gets the is_storage_utilization_limit_exceeded of this Deployment. + Deprecated: This field is not updated and will be removed in future versions. If storage utilization exceeds the limit, the respective warning message will appear in deployment messages, which can be accessed through /messages?deploymentId=. Indicator will be true if the amount of storage being utilized exceeds the allowable storage utilization limit. Exceeding the limit may be an indication of a misconfiguration of the deployment's GoldenGate service. @@ -1299,6 +1400,7 @@ def is_storage_utilization_limit_exceeded(self): def is_storage_utilization_limit_exceeded(self, is_storage_utilization_limit_exceeded): """ Sets the is_storage_utilization_limit_exceeded of this Deployment. + Deprecated: This field is not updated and will be removed in future versions. If storage utilization exceeds the limit, the respective warning message will appear in deployment messages, which can be accessed through /messages?deploymentId=. Indicator will be true if the amount of storage being utilized exceeds the allowable storage utilization limit. Exceeding the limit may be an indication of a misconfiguration of the deployment's GoldenGate service. diff --git a/src/oci/database_migration/models/agent_collection.py b/src/oci/golden_gate/models/deployment_environment_collection.py similarity index 58% rename from src/oci/database_migration/models/agent_collection.py rename to src/oci/golden_gate/models/deployment_environment_collection.py index d34d82ae59..9cbcd63977 100644 --- a/src/oci/database_migration/models/agent_collection.py +++ b/src/oci/golden_gate/models/deployment_environment_collection.py @@ -2,7 +2,7 @@ # 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: 20210929 +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200407 from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 @@ -10,23 +10,23 @@ @init_model_state_from_kwargs -class AgentCollection(object): +class DeploymentEnvironmentCollection(object): """ - Results of an Agent search. Contains AgentSummary items. + The list of DeploymentEnvironmentDescriptor objects. """ def __init__(self, **kwargs): """ - Initializes a new AgentCollection object with values from keyword arguments. + Initializes a new DeploymentEnvironmentCollection object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param items: - The value to assign to the items property of this AgentCollection. - :type items: list[oci.database_migration.models.AgentSummary] + The value to assign to the items property of this DeploymentEnvironmentCollection. + :type items: list[oci.golden_gate.models.DeploymentEnvironmentSummary] """ self.swagger_types = { - 'items': 'list[AgentSummary]' + 'items': 'list[DeploymentEnvironmentSummary]' } self.attribute_map = { @@ -38,24 +38,24 @@ def __init__(self, **kwargs): @property def items(self): """ - **[Required]** Gets the items of this AgentCollection. - Items in collection. + **[Required]** Gets the items of this DeploymentEnvironmentCollection. + Array of DeploymentEnvironmentSummary objects. - :return: The items of this AgentCollection. - :rtype: list[oci.database_migration.models.AgentSummary] + :return: The items of this DeploymentEnvironmentCollection. + :rtype: list[oci.golden_gate.models.DeploymentEnvironmentSummary] """ return self._items @items.setter def items(self, items): """ - Sets the items of this AgentCollection. - Items in collection. + Sets the items of this DeploymentEnvironmentCollection. + Array of DeploymentEnvironmentSummary objects. - :param items: The items of this AgentCollection. - :type: list[oci.database_migration.models.AgentSummary] + :param items: The items of this DeploymentEnvironmentCollection. + :type: list[oci.golden_gate.models.DeploymentEnvironmentSummary] """ self._items = items diff --git a/src/oci/golden_gate/models/deployment_environment_summary.py b/src/oci/golden_gate/models/deployment_environment_summary.py new file mode 100644 index 0000000000..487fb1e186 --- /dev/null +++ b/src/oci/golden_gate/models/deployment_environment_summary.py @@ -0,0 +1,389 @@ +# 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: 20200407 + + +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 DeploymentEnvironmentSummary(object): + """ + The metadata specific to a production or development/testing environment. + """ + + #: A constant which can be used with the environment_type property of a DeploymentEnvironmentSummary. + #: This constant has a value of "PRODUCTION" + ENVIRONMENT_TYPE_PRODUCTION = "PRODUCTION" + + #: A constant which can be used with the environment_type property of a DeploymentEnvironmentSummary. + #: This constant has a value of "DEVELOPMENT_OR_TESTING" + ENVIRONMENT_TYPE_DEVELOPMENT_OR_TESTING = "DEVELOPMENT_OR_TESTING" + + #: A constant which can be used with the category property of a DeploymentEnvironmentSummary. + #: This constant has a value of "DATA_REPLICATION" + CATEGORY_DATA_REPLICATION = "DATA_REPLICATION" + + #: A constant which can be used with the category property of a DeploymentEnvironmentSummary. + #: This constant has a value of "STREAM_ANALYTICS" + CATEGORY_STREAM_ANALYTICS = "STREAM_ANALYTICS" + + #: A constant which can be used with the category property of a DeploymentEnvironmentSummary. + #: This constant has a value of "DATA_TRANSFORMS" + CATEGORY_DATA_TRANSFORMS = "DATA_TRANSFORMS" + + def __init__(self, **kwargs): + """ + Initializes a new DeploymentEnvironmentSummary object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param environment_type: + The value to assign to the environment_type property of this DeploymentEnvironmentSummary. + Allowed values for this property are: "PRODUCTION", "DEVELOPMENT_OR_TESTING", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type environment_type: str + + :param category: + The value to assign to the category property of this DeploymentEnvironmentSummary. + Allowed values for this property are: "DATA_REPLICATION", "STREAM_ANALYTICS", "DATA_TRANSFORMS", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type category: str + + :param display_name: + The value to assign to the display_name property of this DeploymentEnvironmentSummary. + :type display_name: str + + :param min_cpu_core_count: + The value to assign to the min_cpu_core_count property of this DeploymentEnvironmentSummary. + :type min_cpu_core_count: int + + :param default_cpu_core_count: + The value to assign to the default_cpu_core_count property of this DeploymentEnvironmentSummary. + :type default_cpu_core_count: int + + :param max_cpu_core_count: + The value to assign to the max_cpu_core_count property of this DeploymentEnvironmentSummary. + :type max_cpu_core_count: int + + :param is_auto_scaling_enabled_by_default: + The value to assign to the is_auto_scaling_enabled_by_default property of this DeploymentEnvironmentSummary. + :type is_auto_scaling_enabled_by_default: bool + + :param network_bandwidth_per_ocpu_in_gbps: + The value to assign to the network_bandwidth_per_ocpu_in_gbps property of this DeploymentEnvironmentSummary. + :type network_bandwidth_per_ocpu_in_gbps: int + + :param memory_per_ocpu_in_gbs: + The value to assign to the memory_per_ocpu_in_gbs property of this DeploymentEnvironmentSummary. + :type memory_per_ocpu_in_gbs: int + + :param storage_usage_limit_per_ocpu_in_gbs: + The value to assign to the storage_usage_limit_per_ocpu_in_gbs property of this DeploymentEnvironmentSummary. + :type storage_usage_limit_per_ocpu_in_gbs: int + + """ + self.swagger_types = { + 'environment_type': 'str', + 'category': 'str', + 'display_name': 'str', + 'min_cpu_core_count': 'int', + 'default_cpu_core_count': 'int', + 'max_cpu_core_count': 'int', + 'is_auto_scaling_enabled_by_default': 'bool', + 'network_bandwidth_per_ocpu_in_gbps': 'int', + 'memory_per_ocpu_in_gbs': 'int', + 'storage_usage_limit_per_ocpu_in_gbs': 'int' + } + + self.attribute_map = { + 'environment_type': 'environmentType', + 'category': 'category', + 'display_name': 'displayName', + 'min_cpu_core_count': 'minCpuCoreCount', + 'default_cpu_core_count': 'defaultCpuCoreCount', + 'max_cpu_core_count': 'maxCpuCoreCount', + 'is_auto_scaling_enabled_by_default': 'isAutoScalingEnabledByDefault', + 'network_bandwidth_per_ocpu_in_gbps': 'networkBandwidthPerOcpuInGbps', + 'memory_per_ocpu_in_gbs': 'memoryPerOcpuInGBs', + 'storage_usage_limit_per_ocpu_in_gbs': 'storageUsageLimitPerOcpuInGBs' + } + + self._environment_type = None + self._category = None + self._display_name = None + self._min_cpu_core_count = None + self._default_cpu_core_count = None + self._max_cpu_core_count = None + self._is_auto_scaling_enabled_by_default = None + self._network_bandwidth_per_ocpu_in_gbps = None + self._memory_per_ocpu_in_gbs = None + self._storage_usage_limit_per_ocpu_in_gbs = None + + @property + def environment_type(self): + """ + **[Required]** Gets the environment_type of this DeploymentEnvironmentSummary. + Specifies whether the deployment is used in a production or development/testing environment. + + Allowed values for this property are: "PRODUCTION", "DEVELOPMENT_OR_TESTING", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The environment_type of this DeploymentEnvironmentSummary. + :rtype: str + """ + return self._environment_type + + @environment_type.setter + def environment_type(self, environment_type): + """ + Sets the environment_type of this DeploymentEnvironmentSummary. + Specifies whether the deployment is used in a production or development/testing environment. + + + :param environment_type: The environment_type of this DeploymentEnvironmentSummary. + :type: str + """ + allowed_values = ["PRODUCTION", "DEVELOPMENT_OR_TESTING"] + if not value_allowed_none_or_none_sentinel(environment_type, allowed_values): + environment_type = 'UNKNOWN_ENUM_VALUE' + self._environment_type = environment_type + + @property + def category(self): + """ + **[Required]** Gets the category of this DeploymentEnvironmentSummary. + The deployment category defines the broad separation of the deployment type into three categories. + Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'. + + Allowed values for this property are: "DATA_REPLICATION", "STREAM_ANALYTICS", "DATA_TRANSFORMS", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The category of this DeploymentEnvironmentSummary. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """ + Sets the category of this DeploymentEnvironmentSummary. + The deployment category defines the broad separation of the deployment type into three categories. + Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'. + + + :param category: The category of this DeploymentEnvironmentSummary. + :type: str + """ + allowed_values = ["DATA_REPLICATION", "STREAM_ANALYTICS", "DATA_TRANSFORMS"] + if not value_allowed_none_or_none_sentinel(category, allowed_values): + category = 'UNKNOWN_ENUM_VALUE' + self._category = category + + @property + def display_name(self): + """ + Gets the display_name of this DeploymentEnvironmentSummary. + An object's Display Name. + + + :return: The display_name of this DeploymentEnvironmentSummary. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this DeploymentEnvironmentSummary. + An object's Display Name. + + + :param display_name: The display_name of this DeploymentEnvironmentSummary. + :type: str + """ + self._display_name = display_name + + @property + def min_cpu_core_count(self): + """ + **[Required]** Gets the min_cpu_core_count of this DeploymentEnvironmentSummary. + The minimum CPU core count. + + + :return: The min_cpu_core_count of this DeploymentEnvironmentSummary. + :rtype: int + """ + return self._min_cpu_core_count + + @min_cpu_core_count.setter + def min_cpu_core_count(self, min_cpu_core_count): + """ + Sets the min_cpu_core_count of this DeploymentEnvironmentSummary. + The minimum CPU core count. + + + :param min_cpu_core_count: The min_cpu_core_count of this DeploymentEnvironmentSummary. + :type: int + """ + self._min_cpu_core_count = min_cpu_core_count + + @property + def default_cpu_core_count(self): + """ + **[Required]** Gets the default_cpu_core_count of this DeploymentEnvironmentSummary. + The default CPU core count. + + + :return: The default_cpu_core_count of this DeploymentEnvironmentSummary. + :rtype: int + """ + return self._default_cpu_core_count + + @default_cpu_core_count.setter + def default_cpu_core_count(self, default_cpu_core_count): + """ + Sets the default_cpu_core_count of this DeploymentEnvironmentSummary. + The default CPU core count. + + + :param default_cpu_core_count: The default_cpu_core_count of this DeploymentEnvironmentSummary. + :type: int + """ + self._default_cpu_core_count = default_cpu_core_count + + @property + def max_cpu_core_count(self): + """ + **[Required]** Gets the max_cpu_core_count of this DeploymentEnvironmentSummary. + The maximum CPU core count. + + + :return: The max_cpu_core_count of this DeploymentEnvironmentSummary. + :rtype: int + """ + return self._max_cpu_core_count + + @max_cpu_core_count.setter + def max_cpu_core_count(self, max_cpu_core_count): + """ + Sets the max_cpu_core_count of this DeploymentEnvironmentSummary. + The maximum CPU core count. + + + :param max_cpu_core_count: The max_cpu_core_count of this DeploymentEnvironmentSummary. + :type: int + """ + self._max_cpu_core_count = max_cpu_core_count + + @property + def is_auto_scaling_enabled_by_default(self): + """ + **[Required]** Gets the is_auto_scaling_enabled_by_default of this DeploymentEnvironmentSummary. + Specifies whether the \"Auto scaling\" option should be enabled by default or not. + + + :return: The is_auto_scaling_enabled_by_default of this DeploymentEnvironmentSummary. + :rtype: bool + """ + return self._is_auto_scaling_enabled_by_default + + @is_auto_scaling_enabled_by_default.setter + def is_auto_scaling_enabled_by_default(self, is_auto_scaling_enabled_by_default): + """ + Sets the is_auto_scaling_enabled_by_default of this DeploymentEnvironmentSummary. + Specifies whether the \"Auto scaling\" option should be enabled by default or not. + + + :param is_auto_scaling_enabled_by_default: The is_auto_scaling_enabled_by_default of this DeploymentEnvironmentSummary. + :type: bool + """ + self._is_auto_scaling_enabled_by_default = is_auto_scaling_enabled_by_default + + @property + def network_bandwidth_per_ocpu_in_gbps(self): + """ + **[Required]** Gets the network_bandwidth_per_ocpu_in_gbps of this DeploymentEnvironmentSummary. + The multiplier value between CPU core count and network bandwidth. + + + :return: The network_bandwidth_per_ocpu_in_gbps of this DeploymentEnvironmentSummary. + :rtype: int + """ + return self._network_bandwidth_per_ocpu_in_gbps + + @network_bandwidth_per_ocpu_in_gbps.setter + def network_bandwidth_per_ocpu_in_gbps(self, network_bandwidth_per_ocpu_in_gbps): + """ + Sets the network_bandwidth_per_ocpu_in_gbps of this DeploymentEnvironmentSummary. + The multiplier value between CPU core count and network bandwidth. + + + :param network_bandwidth_per_ocpu_in_gbps: The network_bandwidth_per_ocpu_in_gbps of this DeploymentEnvironmentSummary. + :type: int + """ + self._network_bandwidth_per_ocpu_in_gbps = network_bandwidth_per_ocpu_in_gbps + + @property + def memory_per_ocpu_in_gbs(self): + """ + **[Required]** Gets the memory_per_ocpu_in_gbs of this DeploymentEnvironmentSummary. + The multiplier value between CPU core count and memory size. + + + :return: The memory_per_ocpu_in_gbs of this DeploymentEnvironmentSummary. + :rtype: int + """ + return self._memory_per_ocpu_in_gbs + + @memory_per_ocpu_in_gbs.setter + def memory_per_ocpu_in_gbs(self, memory_per_ocpu_in_gbs): + """ + Sets the memory_per_ocpu_in_gbs of this DeploymentEnvironmentSummary. + The multiplier value between CPU core count and memory size. + + + :param memory_per_ocpu_in_gbs: The memory_per_ocpu_in_gbs of this DeploymentEnvironmentSummary. + :type: int + """ + self._memory_per_ocpu_in_gbs = memory_per_ocpu_in_gbs + + @property + def storage_usage_limit_per_ocpu_in_gbs(self): + """ + **[Required]** Gets the storage_usage_limit_per_ocpu_in_gbs of this DeploymentEnvironmentSummary. + The multiplier value between CPU core count and storage usage limit size. + + + :return: The storage_usage_limit_per_ocpu_in_gbs of this DeploymentEnvironmentSummary. + :rtype: int + """ + return self._storage_usage_limit_per_ocpu_in_gbs + + @storage_usage_limit_per_ocpu_in_gbs.setter + def storage_usage_limit_per_ocpu_in_gbs(self, storage_usage_limit_per_ocpu_in_gbs): + """ + Sets the storage_usage_limit_per_ocpu_in_gbs of this DeploymentEnvironmentSummary. + The multiplier value between CPU core count and storage usage limit size. + + + :param storage_usage_limit_per_ocpu_in_gbs: The storage_usage_limit_per_ocpu_in_gbs of this DeploymentEnvironmentSummary. + :type: int + """ + self._storage_usage_limit_per_ocpu_in_gbs = storage_usage_limit_per_ocpu_in_gbs + + 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/golden_gate/models/deployment_summary.py b/src/oci/golden_gate/models/deployment_summary.py index e50e77af9d..3854535bff 100644 --- a/src/oci/golden_gate/models/deployment_summary.py +++ b/src/oci/golden_gate/models/deployment_summary.py @@ -107,6 +107,26 @@ class DeploymentSummary(object): #: This constant has a value of "BRING_YOUR_OWN_LICENSE" LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = "BRING_YOUR_OWN_LICENSE" + #: A constant which can be used with the environment_type property of a DeploymentSummary. + #: This constant has a value of "PRODUCTION" + ENVIRONMENT_TYPE_PRODUCTION = "PRODUCTION" + + #: A constant which can be used with the environment_type property of a DeploymentSummary. + #: This constant has a value of "DEVELOPMENT_OR_TESTING" + ENVIRONMENT_TYPE_DEVELOPMENT_OR_TESTING = "DEVELOPMENT_OR_TESTING" + + #: A constant which can be used with the category property of a DeploymentSummary. + #: This constant has a value of "DATA_REPLICATION" + CATEGORY_DATA_REPLICATION = "DATA_REPLICATION" + + #: A constant which can be used with the category property of a DeploymentSummary. + #: This constant has a value of "STREAM_ANALYTICS" + CATEGORY_STREAM_ANALYTICS = "STREAM_ANALYTICS" + + #: A constant which can be used with the category property of a DeploymentSummary. + #: This constant has a value of "DATA_TRANSFORMS" + CATEGORY_DATA_TRANSFORMS = "DATA_TRANSFORMS" + #: A constant which can be used with the deployment_type property of a DeploymentSummary. #: This constant has a value of "OGG" DEPLOYMENT_TYPE_OGG = "OGG" @@ -214,6 +234,18 @@ def __init__(self, **kwargs): Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type license_model: str + :param environment_type: + The value to assign to the environment_type property of this DeploymentSummary. + Allowed values for this property are: "PRODUCTION", "DEVELOPMENT_OR_TESTING", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type environment_type: str + + :param category: + The value to assign to the category property of this DeploymentSummary. + Allowed values for this property are: "DATA_REPLICATION", "STREAM_ANALYTICS", "DATA_TRANSFORMS", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type category: str + :param fqdn: The value to assign to the fqdn property of this DeploymentSummary. :type fqdn: str @@ -289,6 +321,8 @@ def __init__(self, **kwargs): 'load_balancer_subnet_id': 'str', 'load_balancer_id': 'str', 'license_model': 'str', + 'environment_type': 'str', + 'category': 'str', 'fqdn': 'str', 'cpu_core_count': 'int', 'is_auto_scaling_enabled': 'bool', @@ -321,6 +355,8 @@ def __init__(self, **kwargs): 'load_balancer_subnet_id': 'loadBalancerSubnetId', 'load_balancer_id': 'loadBalancerId', 'license_model': 'licenseModel', + 'environment_type': 'environmentType', + 'category': 'category', 'fqdn': 'fqdn', 'cpu_core_count': 'cpuCoreCount', 'is_auto_scaling_enabled': 'isAutoScalingEnabled', @@ -352,6 +388,8 @@ def __init__(self, **kwargs): self._load_balancer_subnet_id = None self._load_balancer_id = None self._license_model = None + self._environment_type = None + self._category = None self._fqdn = None self._cpu_core_count = None self._is_auto_scaling_enabled = None @@ -799,6 +837,68 @@ def license_model(self, license_model): license_model = 'UNKNOWN_ENUM_VALUE' self._license_model = license_model + @property + def environment_type(self): + """ + Gets the environment_type of this DeploymentSummary. + Specifies whether the deployment is used in a production or development/testing environment. + + Allowed values for this property are: "PRODUCTION", "DEVELOPMENT_OR_TESTING", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The environment_type of this DeploymentSummary. + :rtype: str + """ + return self._environment_type + + @environment_type.setter + def environment_type(self, environment_type): + """ + Sets the environment_type of this DeploymentSummary. + Specifies whether the deployment is used in a production or development/testing environment. + + + :param environment_type: The environment_type of this DeploymentSummary. + :type: str + """ + allowed_values = ["PRODUCTION", "DEVELOPMENT_OR_TESTING"] + if not value_allowed_none_or_none_sentinel(environment_type, allowed_values): + environment_type = 'UNKNOWN_ENUM_VALUE' + self._environment_type = environment_type + + @property + def category(self): + """ + **[Required]** Gets the category of this DeploymentSummary. + The deployment category defines the broad separation of the deployment type into three categories. + Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'. + + Allowed values for this property are: "DATA_REPLICATION", "STREAM_ANALYTICS", "DATA_TRANSFORMS", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The category of this DeploymentSummary. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """ + Sets the category of this DeploymentSummary. + The deployment category defines the broad separation of the deployment type into three categories. + Currently the separation is 'DATA_REPLICATION', 'STREAM_ANALYTICS' and 'DATA_TRANSFORMS'. + + + :param category: The category of this DeploymentSummary. + :type: str + """ + allowed_values = ["DATA_REPLICATION", "STREAM_ANALYTICS", "DATA_TRANSFORMS"] + if not value_allowed_none_or_none_sentinel(category, allowed_values): + category = 'UNKNOWN_ENUM_VALUE' + self._category = category + @property def fqdn(self): """ @@ -1072,7 +1172,7 @@ def time_upgrade_required(self, time_upgrade_required): @property def deployment_type(self): """ - Gets the deployment_type of this DeploymentSummary. + **[Required]** Gets the deployment_type of this DeploymentSummary. The type of deployment, which can be any one of the Allowed values. NOTE: Use of the value 'OGG' is maintained for backward compatibility purposes. Its use is discouraged in favor of 'DATABASE_ORACLE'. @@ -1131,6 +1231,7 @@ def storage_utilization_in_bytes(self, storage_utilization_in_bytes): def is_storage_utilization_limit_exceeded(self): """ Gets the is_storage_utilization_limit_exceeded of this DeploymentSummary. + Deprecated: This field is not updated and will be removed in future versions. If storage utilization exceeds the limit, the respective warning message will appear in deployment messages, which can be accessed through /messages?deploymentId=. Indicator will be true if the amount of storage being utilized exceeds the allowable storage utilization limit. Exceeding the limit may be an indication of a misconfiguration of the deployment's GoldenGate service. @@ -1143,6 +1244,7 @@ def is_storage_utilization_limit_exceeded(self): def is_storage_utilization_limit_exceeded(self, is_storage_utilization_limit_exceeded): """ Sets the is_storage_utilization_limit_exceeded of this DeploymentSummary. + Deprecated: This field is not updated and will be removed in future versions. If storage utilization exceeds the limit, the respective warning message will appear in deployment messages, which can be accessed through /messages?deploymentId=. Indicator will be true if the amount of storage being utilized exceeds the allowable storage utilization limit. Exceeding the limit may be an indication of a misconfiguration of the deployment's GoldenGate service. diff --git a/src/oci/golden_gate/models/deployment_type_summary.py b/src/oci/golden_gate/models/deployment_type_summary.py index 82f60d8656..13eb64dfd9 100644 --- a/src/oci/golden_gate/models/deployment_type_summary.py +++ b/src/oci/golden_gate/models/deployment_type_summary.py @@ -13,6 +13,9 @@ class DeploymentTypeSummary(object): """ The meta-data specific on particular deployment type represented by deploymentType field. + + Deprecated properties: `sourceTechnologies` and `targetTechnologies` are not populated. They will be removed after September 15 2025. + The list of supported source and target technologies can be accessed using the url provided in `supportedTechnologiesUrl` property. """ #: A constant which can be used with the category property of a DeploymentTypeSummary. diff --git a/src/oci/golden_gate/models/group_to_roles_mapping_details.py b/src/oci/golden_gate/models/group_to_roles_mapping_details.py new file mode 100644 index 0000000000..7f9cc8c770 --- /dev/null +++ b/src/oci/golden_gate/models/group_to_roles_mapping_details.py @@ -0,0 +1,197 @@ +# 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: 20200407 + + +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 GroupToRolesMappingDetails(object): + """ + Defines the IDP Groups to GoldenGate roles mapping. This field is used only for IAM deployment and does not have any impact on non-IAM deployments. + For IAM deployment, when user does not specify this mapping, then it has null value and default mapping is used. + User belonging to each group can only perform the actions according to the role the respective group is mapped to. + """ + + def __init__(self, **kwargs): + """ + Initializes a new GroupToRolesMappingDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param security_group_id: + The value to assign to the security_group_id property of this GroupToRolesMappingDetails. + :type security_group_id: str + + :param administrator_group_id: + The value to assign to the administrator_group_id property of this GroupToRolesMappingDetails. + :type administrator_group_id: str + + :param operator_group_id: + The value to assign to the operator_group_id property of this GroupToRolesMappingDetails. + :type operator_group_id: str + + :param user_group_id: + The value to assign to the user_group_id property of this GroupToRolesMappingDetails. + :type user_group_id: str + + """ + self.swagger_types = { + 'security_group_id': 'str', + 'administrator_group_id': 'str', + 'operator_group_id': 'str', + 'user_group_id': 'str' + } + + self.attribute_map = { + 'security_group_id': 'securityGroupId', + 'administrator_group_id': 'administratorGroupId', + 'operator_group_id': 'operatorGroupId', + 'user_group_id': 'userGroupId' + } + + self._security_group_id = None + self._administrator_group_id = None + self._operator_group_id = None + self._user_group_id = None + + @property + def security_group_id(self): + """ + **[Required]** Gets the security_group_id of this GroupToRolesMappingDetails. + The `OCID`__ of the IDP group which will be mapped to goldengate role securityGroup. + It grants administration of security related objects and invoke security related service requests. This role has full privileges. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The security_group_id of this GroupToRolesMappingDetails. + :rtype: str + """ + return self._security_group_id + + @security_group_id.setter + def security_group_id(self, security_group_id): + """ + Sets the security_group_id of this GroupToRolesMappingDetails. + The `OCID`__ of the IDP group which will be mapped to goldengate role securityGroup. + It grants administration of security related objects and invoke security related service requests. This role has full privileges. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param security_group_id: The security_group_id of this GroupToRolesMappingDetails. + :type: str + """ + self._security_group_id = security_group_id + + @property + def administrator_group_id(self): + """ + Gets the administrator_group_id of this GroupToRolesMappingDetails. + The `OCID`__ of the IDP group which will be mapped to goldengate role administratorGroup. + It grants full access to the user, including the ability to alter general, non-security related operational parameters + and profiles of the server. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The administrator_group_id of this GroupToRolesMappingDetails. + :rtype: str + """ + return self._administrator_group_id + + @administrator_group_id.setter + def administrator_group_id(self, administrator_group_id): + """ + Sets the administrator_group_id of this GroupToRolesMappingDetails. + The `OCID`__ of the IDP group which will be mapped to goldengate role administratorGroup. + It grants full access to the user, including the ability to alter general, non-security related operational parameters + and profiles of the server. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param administrator_group_id: The administrator_group_id of this GroupToRolesMappingDetails. + :type: str + """ + self._administrator_group_id = administrator_group_id + + @property + def operator_group_id(self): + """ + Gets the operator_group_id of this GroupToRolesMappingDetails. + The `OCID`__ of the IDP group which will be mapped to goldengate role operatorGroup. + It allows users to perform only operational actions, like starting and stopping resources. + Operators cannot alter the operational parameters or profiles of the MA server. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The operator_group_id of this GroupToRolesMappingDetails. + :rtype: str + """ + return self._operator_group_id + + @operator_group_id.setter + def operator_group_id(self, operator_group_id): + """ + Sets the operator_group_id of this GroupToRolesMappingDetails. + The `OCID`__ of the IDP group which will be mapped to goldengate role operatorGroup. + It allows users to perform only operational actions, like starting and stopping resources. + Operators cannot alter the operational parameters or profiles of the MA server. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param operator_group_id: The operator_group_id of this GroupToRolesMappingDetails. + :type: str + """ + self._operator_group_id = operator_group_id + + @property + def user_group_id(self): + """ + Gets the user_group_id of this GroupToRolesMappingDetails. + The `OCID`__ of the IDP group which will be mapped to goldengate role userGroup. + It allows information-only service requests, which do not alter or affect the operation of either the MA. + Examples of query and read-only information include performance metric information and resource status and monitoring information + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The user_group_id of this GroupToRolesMappingDetails. + :rtype: str + """ + return self._user_group_id + + @user_group_id.setter + def user_group_id(self, user_group_id): + """ + Sets the user_group_id of this GroupToRolesMappingDetails. + The `OCID`__ of the IDP group which will be mapped to goldengate role userGroup. + It allows information-only service requests, which do not alter or affect the operation of either the MA. + Examples of query and read-only information include performance metric information and resource status and monitoring information + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param user_group_id: The user_group_id of this GroupToRolesMappingDetails. + :type: str + """ + self._user_group_id = user_group_id + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/golden_gate/models/ogg_deployment.py b/src/oci/golden_gate/models/ogg_deployment.py index 364b27220a..faa5987e3a 100644 --- a/src/oci/golden_gate/models/ogg_deployment.py +++ b/src/oci/golden_gate/models/ogg_deployment.py @@ -58,6 +58,10 @@ def __init__(self, **kwargs): The value to assign to the password_secret_id property of this OggDeployment. :type password_secret_id: str + :param group_to_roles_mapping: + The value to assign to the group_to_roles_mapping property of this OggDeployment. + :type group_to_roles_mapping: oci.golden_gate.models.GroupToRolesMappingDetails + """ self.swagger_types = { 'deployment_name': 'str', @@ -66,7 +70,8 @@ def __init__(self, **kwargs): 'certificate': 'str', 'credential_store': 'str', 'identity_domain_id': 'str', - 'password_secret_id': 'str' + 'password_secret_id': 'str', + 'group_to_roles_mapping': 'GroupToRolesMappingDetails' } self.attribute_map = { @@ -76,7 +81,8 @@ def __init__(self, **kwargs): 'certificate': 'certificate', 'credential_store': 'credentialStore', 'identity_domain_id': 'identityDomainId', - 'password_secret_id': 'passwordSecretId' + 'password_secret_id': 'passwordSecretId', + 'group_to_roles_mapping': 'groupToRolesMapping' } self._deployment_name = None @@ -86,6 +92,7 @@ def __init__(self, **kwargs): self._credential_store = None self._identity_domain_id = None self._password_secret_id = None + self._group_to_roles_mapping = None @property def deployment_name(self): @@ -271,6 +278,26 @@ def password_secret_id(self, password_secret_id): """ self._password_secret_id = password_secret_id + @property + def group_to_roles_mapping(self): + """ + Gets the group_to_roles_mapping of this OggDeployment. + + :return: The group_to_roles_mapping of this OggDeployment. + :rtype: oci.golden_gate.models.GroupToRolesMappingDetails + """ + return self._group_to_roles_mapping + + @group_to_roles_mapping.setter + def group_to_roles_mapping(self, group_to_roles_mapping): + """ + Sets the group_to_roles_mapping of this OggDeployment. + + :param group_to_roles_mapping: The group_to_roles_mapping of this OggDeployment. + :type: oci.golden_gate.models.GroupToRolesMappingDetails + """ + self._group_to_roles_mapping = group_to_roles_mapping + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/golden_gate/models/test_connection_assignment_result.py b/src/oci/golden_gate/models/test_connection_assignment_result.py index 5778d84b45..ca6e0fa4c0 100644 --- a/src/oci/golden_gate/models/test_connection_assignment_result.py +++ b/src/oci/golden_gate/models/test_connection_assignment_result.py @@ -13,6 +13,7 @@ class TestConnectionAssignmentResult(object): """ The result of the connectivity test performed between the GoldenGate deployment and the associated database / service. + The 'error' property is deprecated and will not contain values in the future. So, the error(s) will be returned in just the 'errors' property. """ #: A constant which can be used with the result_type property of a TestConnectionAssignmentResult. @@ -42,19 +43,26 @@ def __init__(self, **kwargs): The value to assign to the error property of this TestConnectionAssignmentResult. :type error: oci.golden_gate.models.TestConnectionAssignmentError + :param errors: + The value to assign to the errors property of this TestConnectionAssignmentResult. + :type errors: list[oci.golden_gate.models.TestConnectionAssignmentError] + """ self.swagger_types = { 'result_type': 'str', - 'error': 'TestConnectionAssignmentError' + 'error': 'TestConnectionAssignmentError', + 'errors': 'list[TestConnectionAssignmentError]' } self.attribute_map = { 'result_type': 'resultType', - 'error': 'error' + 'error': 'error', + 'errors': 'errors' } self._result_type = None self._error = None + self._errors = None @property def result_type(self): @@ -106,6 +114,30 @@ def error(self, error): """ self._error = error + @property + def errors(self): + """ + Gets the errors of this TestConnectionAssignmentResult. + List of test connection assignment error objects. + + + :return: The errors of this TestConnectionAssignmentResult. + :rtype: list[oci.golden_gate.models.TestConnectionAssignmentError] + """ + return self._errors + + @errors.setter + def errors(self, errors): + """ + Sets the errors of this TestConnectionAssignmentResult. + List of test connection assignment error objects. + + + :param errors: The errors of this TestConnectionAssignmentResult. + :type: list[oci.golden_gate.models.TestConnectionAssignmentError] + """ + self._errors = errors + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/golden_gate/models/update_database_registration_details.py b/src/oci/golden_gate/models/update_database_registration_details.py index 863bd3b927..c48525103d 100644 --- a/src/oci/golden_gate/models/update_database_registration_details.py +++ b/src/oci/golden_gate/models/update_database_registration_details.py @@ -363,8 +363,8 @@ def session_mode(self, session_mode): def wallet(self): """ Gets the wallet of this UpdateDatabaseRegistrationDetails. - The wallet contents Oracle GoldenGate uses to make connections to a database. This - attribute is expected to be base64 encoded. + The wallet contents Oracle GoldenGate uses to make connections to a database. + This attribute is expected to be base64 encoded. :return: The wallet of this UpdateDatabaseRegistrationDetails. @@ -376,8 +376,8 @@ def wallet(self): def wallet(self, wallet): """ Sets the wallet of this UpdateDatabaseRegistrationDetails. - The wallet contents Oracle GoldenGate uses to make connections to a database. This - attribute is expected to be base64 encoded. + The wallet contents Oracle GoldenGate uses to make connections to a database. + This attribute is expected to be base64 encoded. :param wallet: The wallet of this UpdateDatabaseRegistrationDetails. diff --git a/src/oci/golden_gate/models/update_deployment_details.py b/src/oci/golden_gate/models/update_deployment_details.py index 326d26576c..fff983a663 100644 --- a/src/oci/golden_gate/models/update_deployment_details.py +++ b/src/oci/golden_gate/models/update_deployment_details.py @@ -23,6 +23,14 @@ class UpdateDeploymentDetails(object): #: This constant has a value of "BRING_YOUR_OWN_LICENSE" LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = "BRING_YOUR_OWN_LICENSE" + #: A constant which can be used with the environment_type property of a UpdateDeploymentDetails. + #: This constant has a value of "PRODUCTION" + ENVIRONMENT_TYPE_PRODUCTION = "PRODUCTION" + + #: A constant which can be used with the environment_type property of a UpdateDeploymentDetails. + #: This constant has a value of "DEVELOPMENT_OR_TESTING" + ENVIRONMENT_TYPE_DEVELOPMENT_OR_TESTING = "DEVELOPMENT_OR_TESTING" + def __init__(self, **kwargs): """ Initializes a new UpdateDeploymentDetails object with values from keyword arguments. @@ -37,6 +45,11 @@ def __init__(self, **kwargs): Allowed values for this property are: "LICENSE_INCLUDED", "BRING_YOUR_OWN_LICENSE" :type license_model: str + :param environment_type: + The value to assign to the environment_type property of this UpdateDeploymentDetails. + Allowed values for this property are: "PRODUCTION", "DEVELOPMENT_OR_TESTING" + :type environment_type: str + :param description: The value to assign to the description property of this UpdateDeploymentDetails. :type description: str @@ -93,6 +106,7 @@ def __init__(self, **kwargs): self.swagger_types = { 'display_name': 'str', 'license_model': 'str', + 'environment_type': 'str', 'description': 'str', 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))', @@ -111,6 +125,7 @@ def __init__(self, **kwargs): self.attribute_map = { 'display_name': 'displayName', 'license_model': 'licenseModel', + 'environment_type': 'environmentType', 'description': 'description', 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags', @@ -128,6 +143,7 @@ def __init__(self, **kwargs): self._display_name = None self._license_model = None + self._environment_type = None self._description = None self._freeform_tags = None self._defined_tags = None @@ -197,6 +213,37 @@ def license_model(self, license_model): ) self._license_model = license_model + @property + def environment_type(self): + """ + Gets the environment_type of this UpdateDeploymentDetails. + Specifies whether the deployment is used in a production or development/testing environment. + + Allowed values for this property are: "PRODUCTION", "DEVELOPMENT_OR_TESTING" + + + :return: The environment_type of this UpdateDeploymentDetails. + :rtype: str + """ + return self._environment_type + + @environment_type.setter + def environment_type(self, environment_type): + """ + Sets the environment_type of this UpdateDeploymentDetails. + Specifies whether the deployment is used in a production or development/testing environment. + + + :param environment_type: The environment_type of this UpdateDeploymentDetails. + :type: str + """ + allowed_values = ["PRODUCTION", "DEVELOPMENT_OR_TESTING"] + if not value_allowed_none_or_none_sentinel(environment_type, allowed_values): + raise ValueError( + f"Invalid value for `environment_type`, must be None or one of {allowed_values}" + ) + self._environment_type = environment_type + @property def description(self): """ diff --git a/src/oci/golden_gate/models/update_group_to_roles_mapping_details.py b/src/oci/golden_gate/models/update_group_to_roles_mapping_details.py new file mode 100644 index 0000000000..990340cc82 --- /dev/null +++ b/src/oci/golden_gate/models/update_group_to_roles_mapping_details.py @@ -0,0 +1,197 @@ +# 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: 20200407 + + +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 UpdateGroupToRolesMappingDetails(object): + """ + Defines the IDP Groups to GoldenGate roles mapping. This field is used only for IAM deployment and does not have any impact on non-IAM deployments. + For IAM deployment, when user does not specify this mapping, then it has null value and default mapping is used. + User belonging to each group can only perform the actions according to the role the respective group is mapped to. + """ + + def __init__(self, **kwargs): + """ + Initializes a new UpdateGroupToRolesMappingDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param security_group_id: + The value to assign to the security_group_id property of this UpdateGroupToRolesMappingDetails. + :type security_group_id: str + + :param administrator_group_id: + The value to assign to the administrator_group_id property of this UpdateGroupToRolesMappingDetails. + :type administrator_group_id: str + + :param operator_group_id: + The value to assign to the operator_group_id property of this UpdateGroupToRolesMappingDetails. + :type operator_group_id: str + + :param user_group_id: + The value to assign to the user_group_id property of this UpdateGroupToRolesMappingDetails. + :type user_group_id: str + + """ + self.swagger_types = { + 'security_group_id': 'str', + 'administrator_group_id': 'str', + 'operator_group_id': 'str', + 'user_group_id': 'str' + } + + self.attribute_map = { + 'security_group_id': 'securityGroupId', + 'administrator_group_id': 'administratorGroupId', + 'operator_group_id': 'operatorGroupId', + 'user_group_id': 'userGroupId' + } + + self._security_group_id = None + self._administrator_group_id = None + self._operator_group_id = None + self._user_group_id = None + + @property + def security_group_id(self): + """ + Gets the security_group_id of this UpdateGroupToRolesMappingDetails. + The `OCID`__ of the IDP group which will be mapped to goldengate role securityGroup. + It grants administration of security related objects and invoke security related service requests. This role has full privileges. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The security_group_id of this UpdateGroupToRolesMappingDetails. + :rtype: str + """ + return self._security_group_id + + @security_group_id.setter + def security_group_id(self, security_group_id): + """ + Sets the security_group_id of this UpdateGroupToRolesMappingDetails. + The `OCID`__ of the IDP group which will be mapped to goldengate role securityGroup. + It grants administration of security related objects and invoke security related service requests. This role has full privileges. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param security_group_id: The security_group_id of this UpdateGroupToRolesMappingDetails. + :type: str + """ + self._security_group_id = security_group_id + + @property + def administrator_group_id(self): + """ + Gets the administrator_group_id of this UpdateGroupToRolesMappingDetails. + The `OCID`__ of the IDP group which will be mapped to goldengate role administratorGroup. + It grants full access to the user, including the ability to alter general, non-security related operational parameters + and profiles of the server. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The administrator_group_id of this UpdateGroupToRolesMappingDetails. + :rtype: str + """ + return self._administrator_group_id + + @administrator_group_id.setter + def administrator_group_id(self, administrator_group_id): + """ + Sets the administrator_group_id of this UpdateGroupToRolesMappingDetails. + The `OCID`__ of the IDP group which will be mapped to goldengate role administratorGroup. + It grants full access to the user, including the ability to alter general, non-security related operational parameters + and profiles of the server. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param administrator_group_id: The administrator_group_id of this UpdateGroupToRolesMappingDetails. + :type: str + """ + self._administrator_group_id = administrator_group_id + + @property + def operator_group_id(self): + """ + Gets the operator_group_id of this UpdateGroupToRolesMappingDetails. + The `OCID`__ of the IDP group which will be mapped to goldengate role operatorGroup. + It allows users to perform only operational actions, like starting and stopping resources. + Operators cannot alter the operational parameters or profiles of the MA server. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The operator_group_id of this UpdateGroupToRolesMappingDetails. + :rtype: str + """ + return self._operator_group_id + + @operator_group_id.setter + def operator_group_id(self, operator_group_id): + """ + Sets the operator_group_id of this UpdateGroupToRolesMappingDetails. + The `OCID`__ of the IDP group which will be mapped to goldengate role operatorGroup. + It allows users to perform only operational actions, like starting and stopping resources. + Operators cannot alter the operational parameters or profiles of the MA server. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param operator_group_id: The operator_group_id of this UpdateGroupToRolesMappingDetails. + :type: str + """ + self._operator_group_id = operator_group_id + + @property + def user_group_id(self): + """ + Gets the user_group_id of this UpdateGroupToRolesMappingDetails. + The `OCID`__ of the IDP group which will be mapped to goldengate role userGroup. + It allows information-only service requests, which do not alter or affect the operation of either the MA. + Examples of query and read-only information include performance metric information and resource status and monitoring information + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The user_group_id of this UpdateGroupToRolesMappingDetails. + :rtype: str + """ + return self._user_group_id + + @user_group_id.setter + def user_group_id(self, user_group_id): + """ + Sets the user_group_id of this UpdateGroupToRolesMappingDetails. + The `OCID`__ of the IDP group which will be mapped to goldengate role userGroup. + It allows information-only service requests, which do not alter or affect the operation of either the MA. + Examples of query and read-only information include performance metric information and resource status and monitoring information + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param user_group_id: The user_group_id of this UpdateGroupToRolesMappingDetails. + :type: str + """ + self._user_group_id = user_group_id + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/golden_gate/models/update_ogg_deployment_details.py b/src/oci/golden_gate/models/update_ogg_deployment_details.py index 4d4c1d63e7..f635bedf1f 100644 --- a/src/oci/golden_gate/models/update_ogg_deployment_details.py +++ b/src/oci/golden_gate/models/update_ogg_deployment_details.py @@ -57,6 +57,10 @@ def __init__(self, **kwargs): The value to assign to the key property of this UpdateOggDeploymentDetails. :type key: str + :param group_to_roles_mapping: + The value to assign to the group_to_roles_mapping property of this UpdateOggDeploymentDetails. + :type group_to_roles_mapping: oci.golden_gate.models.UpdateGroupToRolesMappingDetails + """ self.swagger_types = { 'credential_store': 'str', @@ -65,7 +69,8 @@ def __init__(self, **kwargs): 'admin_username': 'str', 'admin_password': 'str', 'certificate': 'str', - 'key': 'str' + 'key': 'str', + 'group_to_roles_mapping': 'UpdateGroupToRolesMappingDetails' } self.attribute_map = { @@ -75,7 +80,8 @@ def __init__(self, **kwargs): 'admin_username': 'adminUsername', 'admin_password': 'adminPassword', 'certificate': 'certificate', - 'key': 'key' + 'key': 'key', + 'group_to_roles_mapping': 'groupToRolesMapping' } self._credential_store = None @@ -85,6 +91,7 @@ def __init__(self, **kwargs): self._admin_password = None self._certificate = None self._key = None + self._group_to_roles_mapping = None @property def credential_store(self): @@ -275,6 +282,26 @@ def key(self, key): """ self._key = key + @property + def group_to_roles_mapping(self): + """ + Gets the group_to_roles_mapping of this UpdateOggDeploymentDetails. + + :return: The group_to_roles_mapping of this UpdateOggDeploymentDetails. + :rtype: oci.golden_gate.models.UpdateGroupToRolesMappingDetails + """ + return self._group_to_roles_mapping + + @group_to_roles_mapping.setter + def group_to_roles_mapping(self, group_to_roles_mapping): + """ + Sets the group_to_roles_mapping of this UpdateOggDeploymentDetails. + + :param group_to_roles_mapping: The group_to_roles_mapping of this UpdateOggDeploymentDetails. + :type: oci.golden_gate.models.UpdateGroupToRolesMappingDetails + """ + self._group_to_roles_mapping = group_to_roles_mapping + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/golden_gate/models/update_oracle_connection_details.py b/src/oci/golden_gate/models/update_oracle_connection_details.py index d3def498cf..5ad6d0c74f 100644 --- a/src/oci/golden_gate/models/update_oracle_connection_details.py +++ b/src/oci/golden_gate/models/update_oracle_connection_details.py @@ -266,8 +266,8 @@ def authentication_mode(self, authentication_mode): def wallet(self): """ Gets the wallet of this UpdateOracleConnectionDetails. - The wallet contents Oracle GoldenGate uses to make connections to a database. This - attribute is expected to be base64 encoded. + The wallet contents Oracle GoldenGate uses to make connections to a database. + This attribute is expected to be base64 encoded. :return: The wallet of this UpdateOracleConnectionDetails. @@ -279,8 +279,8 @@ def wallet(self): def wallet(self, wallet): """ Sets the wallet of this UpdateOracleConnectionDetails. - The wallet contents Oracle GoldenGate uses to make connections to a database. This - attribute is expected to be base64 encoded. + The wallet contents Oracle GoldenGate uses to make connections to a database. + This attribute is expected to be base64 encoded. :param wallet: The wallet of this UpdateOracleConnectionDetails. diff --git a/src/oci/jms/models/request_summarized_application_usage_details.py b/src/oci/jms/models/request_summarized_application_usage_details.py deleted file mode 100644 index 44c64dec77..0000000000 --- a/src/oci/jms/models/request_summarized_application_usage_details.py +++ /dev/null @@ -1,504 +0,0 @@ -# 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. - - -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 RequestSummarizedApplicationUsageDetails(object): - """ - Parameters for filtering applications. - """ - - #: A constant which can be used with the sort_order property of a RequestSummarizedApplicationUsageDetails. - #: This constant has a value of "ASC" - SORT_ORDER_ASC = "ASC" - - #: A constant which can be used with the sort_order property of a RequestSummarizedApplicationUsageDetails. - #: This constant has a value of "DESC" - SORT_ORDER_DESC = "DESC" - - #: A constant which can be used with the sort_by property of a RequestSummarizedApplicationUsageDetails. - #: This constant has a value of "timeFirstSeen" - SORT_BY_TIME_FIRST_SEEN = "timeFirstSeen" - - #: A constant which can be used with the sort_by property of a RequestSummarizedApplicationUsageDetails. - #: This constant has a value of "timeLastSeen" - SORT_BY_TIME_LAST_SEEN = "timeLastSeen" - - #: A constant which can be used with the sort_by property of a RequestSummarizedApplicationUsageDetails. - #: This constant has a value of "displayName" - SORT_BY_DISPLAY_NAME = "displayName" - - #: A constant which can be used with the sort_by property of a RequestSummarizedApplicationUsageDetails. - #: This constant has a value of "approximateJreCount" - SORT_BY_APPROXIMATE_JRE_COUNT = "approximateJreCount" - - #: A constant which can be used with the sort_by property of a RequestSummarizedApplicationUsageDetails. - #: This constant has a value of "approximateInstallationCount" - SORT_BY_APPROXIMATE_INSTALLATION_COUNT = "approximateInstallationCount" - - #: A constant which can be used with the sort_by property of a RequestSummarizedApplicationUsageDetails. - #: This constant has a value of "approximateManagedInstanceCount" - SORT_BY_APPROXIMATE_MANAGED_INSTANCE_COUNT = "approximateManagedInstanceCount" - - def __init__(self, **kwargs): - """ - Initializes a new RequestSummarizedApplicationUsageDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param time_start: - The value to assign to the time_start property of this RequestSummarizedApplicationUsageDetails. - :type time_start: datetime - - :param time_end: - The value to assign to the time_end property of this RequestSummarizedApplicationUsageDetails. - :type time_end: datetime - - :param display_name: - The value to assign to the display_name property of this RequestSummarizedApplicationUsageDetails. - :type display_name: str - - :param installation_path: - The value to assign to the installation_path property of this RequestSummarizedApplicationUsageDetails. - :type installation_path: str - - :param jre_vendor: - The value to assign to the jre_vendor property of this RequestSummarizedApplicationUsageDetails. - :type jre_vendor: str - - :param jre_distribution: - The value to assign to the jre_distribution property of this RequestSummarizedApplicationUsageDetails. - :type jre_distribution: str - - :param jre_version: - The value to assign to the jre_version property of this RequestSummarizedApplicationUsageDetails. - :type jre_version: str - - :param application_id: - The value to assign to the application_id property of this RequestSummarizedApplicationUsageDetails. - :type application_id: str - - :param application_type: - The value to assign to the application_type property of this RequestSummarizedApplicationUsageDetails. - :type application_type: str - - :param managed_instance_id: - The value to assign to the managed_instance_id property of this RequestSummarizedApplicationUsageDetails. - :type managed_instance_id: str - - :param sort_order: - The value to assign to the sort_order property of this RequestSummarizedApplicationUsageDetails. - Allowed values for this property are: "ASC", "DESC" - :type sort_order: str - - :param sort_by: - The value to assign to the sort_by property of this RequestSummarizedApplicationUsageDetails. - Allowed values for this property are: "timeFirstSeen", "timeLastSeen", "displayName", "approximateJreCount", "approximateInstallationCount", "approximateManagedInstanceCount" - :type sort_by: str - - :param fields: - The value to assign to the fields property of this RequestSummarizedApplicationUsageDetails. - :type fields: list[oci.jms.models.SummarizeApplicationUsageFields] - - """ - self.swagger_types = { - 'time_start': 'datetime', - 'time_end': 'datetime', - 'display_name': 'str', - 'installation_path': 'str', - 'jre_vendor': 'str', - 'jre_distribution': 'str', - 'jre_version': 'str', - 'application_id': 'str', - 'application_type': 'str', - 'managed_instance_id': 'str', - 'sort_order': 'str', - 'sort_by': 'str', - 'fields': 'list[SummarizeApplicationUsageFields]' - } - - self.attribute_map = { - 'time_start': 'timeStart', - 'time_end': 'timeEnd', - 'display_name': 'displayName', - 'installation_path': 'installationPath', - 'jre_vendor': 'jreVendor', - 'jre_distribution': 'jreDistribution', - 'jre_version': 'jreVersion', - 'application_id': 'applicationId', - 'application_type': 'applicationType', - 'managed_instance_id': 'managedInstanceId', - 'sort_order': 'sortOrder', - 'sort_by': 'sortBy', - 'fields': 'fields' - } - - self._time_start = None - self._time_end = None - self._display_name = None - self._installation_path = None - self._jre_vendor = None - self._jre_distribution = None - self._jre_version = None - self._application_id = None - self._application_type = None - self._managed_instance_id = None - self._sort_order = None - self._sort_by = None - self._fields = None - - @property - def time_start(self): - """ - Gets the time_start of this RequestSummarizedApplicationUsageDetails. - The start of the time period during which resources are searched (formatted according to RFC3339). Defaults to current time minus seven days. - - - :return: The time_start of this RequestSummarizedApplicationUsageDetails. - :rtype: datetime - """ - return self._time_start - - @time_start.setter - def time_start(self, time_start): - """ - Sets the time_start of this RequestSummarizedApplicationUsageDetails. - The start of the time period during which resources are searched (formatted according to RFC3339). Defaults to current time minus seven days. - - - :param time_start: The time_start of this RequestSummarizedApplicationUsageDetails. - :type: datetime - """ - self._time_start = time_start - - @property - def time_end(self): - """ - Gets the time_end of this RequestSummarizedApplicationUsageDetails. - The end of the time period during which resources are searched (formatted according to RFC3339). Defaults to current time. - - - :return: The time_end of this RequestSummarizedApplicationUsageDetails. - :rtype: datetime - """ - return self._time_end - - @time_end.setter - def time_end(self, time_end): - """ - Sets the time_end of this RequestSummarizedApplicationUsageDetails. - The end of the time period during which resources are searched (formatted according to RFC3339). Defaults to current time. - - - :param time_end: The time_end of this RequestSummarizedApplicationUsageDetails. - :type: datetime - """ - self._time_end = time_end - - @property - def display_name(self): - """ - Gets the display_name of this RequestSummarizedApplicationUsageDetails. - The display name of the application. - - - :return: The display_name of this RequestSummarizedApplicationUsageDetails. - :rtype: str - """ - return self._display_name - - @display_name.setter - def display_name(self, display_name): - """ - Sets the display_name of this RequestSummarizedApplicationUsageDetails. - The display name of the application. - - - :param display_name: The display_name of this RequestSummarizedApplicationUsageDetails. - :type: str - """ - self._display_name = display_name - - @property - def installation_path(self): - """ - Gets the installation_path of this RequestSummarizedApplicationUsageDetails. - The installation path of the related installation. - - - :return: The installation_path of this RequestSummarizedApplicationUsageDetails. - :rtype: str - """ - return self._installation_path - - @installation_path.setter - def installation_path(self, installation_path): - """ - Sets the installation_path of this RequestSummarizedApplicationUsageDetails. - The installation path of the related installation. - - - :param installation_path: The installation_path of this RequestSummarizedApplicationUsageDetails. - :type: str - """ - self._installation_path = installation_path - - @property - def jre_vendor(self): - """ - Gets the jre_vendor of this RequestSummarizedApplicationUsageDetails. - The vendor of the related Java Runtime. - - - :return: The jre_vendor of this RequestSummarizedApplicationUsageDetails. - :rtype: str - """ - return self._jre_vendor - - @jre_vendor.setter - def jre_vendor(self, jre_vendor): - """ - Sets the jre_vendor of this RequestSummarizedApplicationUsageDetails. - The vendor of the related Java Runtime. - - - :param jre_vendor: The jre_vendor of this RequestSummarizedApplicationUsageDetails. - :type: str - """ - self._jre_vendor = jre_vendor - - @property - def jre_distribution(self): - """ - Gets the jre_distribution of this RequestSummarizedApplicationUsageDetails. - The distribution of the related Java Runtime. - - - :return: The jre_distribution of this RequestSummarizedApplicationUsageDetails. - :rtype: str - """ - return self._jre_distribution - - @jre_distribution.setter - def jre_distribution(self, jre_distribution): - """ - Sets the jre_distribution of this RequestSummarizedApplicationUsageDetails. - The distribution of the related Java Runtime. - - - :param jre_distribution: The jre_distribution of this RequestSummarizedApplicationUsageDetails. - :type: str - """ - self._jre_distribution = jre_distribution - - @property - def jre_version(self): - """ - Gets the jre_version of this RequestSummarizedApplicationUsageDetails. - The version of the related Java Runtime. - - - :return: The jre_version of this RequestSummarizedApplicationUsageDetails. - :rtype: str - """ - return self._jre_version - - @jre_version.setter - def jre_version(self, jre_version): - """ - Sets the jre_version of this RequestSummarizedApplicationUsageDetails. - The version of the related Java Runtime. - - - :param jre_version: The jre_version of this RequestSummarizedApplicationUsageDetails. - :type: str - """ - self._jre_version = jre_version - - @property - def application_id(self): - """ - Gets the application_id of this RequestSummarizedApplicationUsageDetails. - The ID of the application. - - - :return: The application_id of this RequestSummarizedApplicationUsageDetails. - :rtype: str - """ - return self._application_id - - @application_id.setter - def application_id(self, application_id): - """ - Sets the application_id of this RequestSummarizedApplicationUsageDetails. - The ID of the application. - - - :param application_id: The application_id of this RequestSummarizedApplicationUsageDetails. - :type: str - """ - self._application_id = application_id - - @property - def application_type(self): - """ - Gets the application_type of this RequestSummarizedApplicationUsageDetails. - The way the application was started. - - - :return: The application_type of this RequestSummarizedApplicationUsageDetails. - :rtype: str - """ - return self._application_type - - @application_type.setter - def application_type(self, application_type): - """ - Sets the application_type of this RequestSummarizedApplicationUsageDetails. - The way the application was started. - - - :param application_type: The application_type of this RequestSummarizedApplicationUsageDetails. - :type: str - """ - self._application_type = application_type - - @property - def managed_instance_id(self): - """ - Gets the managed_instance_id of this RequestSummarizedApplicationUsageDetails. - The ID of the related managed instance. - - - :return: The managed_instance_id of this RequestSummarizedApplicationUsageDetails. - :rtype: str - """ - return self._managed_instance_id - - @managed_instance_id.setter - def managed_instance_id(self, managed_instance_id): - """ - Sets the managed_instance_id of this RequestSummarizedApplicationUsageDetails. - The ID of the related managed instance. - - - :param managed_instance_id: The managed_instance_id of this RequestSummarizedApplicationUsageDetails. - :type: str - """ - self._managed_instance_id = managed_instance_id - - @property - def sort_order(self): - """ - Gets the sort_order of this RequestSummarizedApplicationUsageDetails. - The sort order to use, either 'asc' or 'desc'. - - Allowed values for this property are: "ASC", "DESC" - - - :return: The sort_order of this RequestSummarizedApplicationUsageDetails. - :rtype: str - """ - return self._sort_order - - @sort_order.setter - def sort_order(self, sort_order): - """ - Sets the sort_order of this RequestSummarizedApplicationUsageDetails. - The sort order to use, either 'asc' or 'desc'. - - - :param sort_order: The sort_order of this RequestSummarizedApplicationUsageDetails. - :type: str - """ - allowed_values = ["ASC", "DESC"] - if not value_allowed_none_or_none_sentinel(sort_order, allowed_values): - raise ValueError( - "Invalid value for `sort_order`, must be None or one of {0}" - .format(allowed_values) - ) - self._sort_order = sort_order - - @property - def sort_by(self): - """ - Gets the sort_by of this RequestSummarizedApplicationUsageDetails. - The field to sort application views. Only one sort order may be provided. - Default order for _timeFirstSeen_, _timeLastSeen_, _approximateJreCount_, _approximateInstallationCount_ - and _approximateManagedInstanceCount_ is **descending**. - Default order for _displayName_ is **ascending**. - If no value is specified _timeLastSeen_ is default. - - Allowed values for this property are: "timeFirstSeen", "timeLastSeen", "displayName", "approximateJreCount", "approximateInstallationCount", "approximateManagedInstanceCount" - - - :return: The sort_by of this RequestSummarizedApplicationUsageDetails. - :rtype: str - """ - return self._sort_by - - @sort_by.setter - def sort_by(self, sort_by): - """ - Sets the sort_by of this RequestSummarizedApplicationUsageDetails. - The field to sort application views. Only one sort order may be provided. - Default order for _timeFirstSeen_, _timeLastSeen_, _approximateJreCount_, _approximateInstallationCount_ - and _approximateManagedInstanceCount_ is **descending**. - Default order for _displayName_ is **ascending**. - If no value is specified _timeLastSeen_ is default. - - - :param sort_by: The sort_by of this RequestSummarizedApplicationUsageDetails. - :type: str - """ - allowed_values = ["timeFirstSeen", "timeLastSeen", "displayName", "approximateJreCount", "approximateInstallationCount", "approximateManagedInstanceCount"] - if not value_allowed_none_or_none_sentinel(sort_by, allowed_values): - raise ValueError( - "Invalid value for `sort_by`, must be None or one of {0}" - .format(allowed_values) - ) - self._sort_by = sort_by - - @property - def fields(self): - """ - Gets the fields of this RequestSummarizedApplicationUsageDetails. - Additional fields to include into the returned model on top of the required ones. - This parameter can also include 'approximateJreCount', 'approximateInstallationCount' and 'approximateManagedInstanceCount'. - For example 'approximateJreCount,approximateInstallationCount'. - - - :return: The fields of this RequestSummarizedApplicationUsageDetails. - :rtype: list[oci.jms.models.SummarizeApplicationUsageFields] - """ - return self._fields - - @fields.setter - def fields(self, fields): - """ - Sets the fields of this RequestSummarizedApplicationUsageDetails. - Additional fields to include into the returned model on top of the required ones. - This parameter can also include 'approximateJreCount', 'approximateInstallationCount' and 'approximateManagedInstanceCount'. - For example 'approximateJreCount,approximateInstallationCount'. - - - :param fields: The fields of this RequestSummarizedApplicationUsageDetails. - :type: list[oci.jms.models.SummarizeApplicationUsageFields] - """ - self._fields = fields - - 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/jms/models/request_summarized_installation_usage_details.py b/src/oci/jms/models/request_summarized_installation_usage_details.py deleted file mode 100644 index 01d36d83b0..0000000000 --- a/src/oci/jms/models/request_summarized_installation_usage_details.py +++ /dev/null @@ -1,448 +0,0 @@ -# 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. - - -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 RequestSummarizedInstallationUsageDetails(object): - """ - Parameters for filtering installations. - """ - - #: A constant which can be used with the sort_order property of a RequestSummarizedInstallationUsageDetails. - #: This constant has a value of "ASC" - SORT_ORDER_ASC = "ASC" - - #: A constant which can be used with the sort_order property of a RequestSummarizedInstallationUsageDetails. - #: This constant has a value of "DESC" - SORT_ORDER_DESC = "DESC" - - #: A constant which can be used with the sort_by property of a RequestSummarizedInstallationUsageDetails. - #: This constant has a value of "jreDistribution" - SORT_BY_JRE_DISTRIBUTION = "jreDistribution" - - #: A constant which can be used with the sort_by property of a RequestSummarizedInstallationUsageDetails. - #: This constant has a value of "jreVendor" - SORT_BY_JRE_VENDOR = "jreVendor" - - #: A constant which can be used with the sort_by property of a RequestSummarizedInstallationUsageDetails. - #: This constant has a value of "jreVersion" - SORT_BY_JRE_VERSION = "jreVersion" - - #: A constant which can be used with the sort_by property of a RequestSummarizedInstallationUsageDetails. - #: This constant has a value of "path" - SORT_BY_PATH = "path" - - #: A constant which can be used with the sort_by property of a RequestSummarizedInstallationUsageDetails. - #: This constant has a value of "timeFirstSeen" - SORT_BY_TIME_FIRST_SEEN = "timeFirstSeen" - - #: A constant which can be used with the sort_by property of a RequestSummarizedInstallationUsageDetails. - #: This constant has a value of "timeLastSeen" - SORT_BY_TIME_LAST_SEEN = "timeLastSeen" - - #: A constant which can be used with the sort_by property of a RequestSummarizedInstallationUsageDetails. - #: This constant has a value of "approximateApplicationCount" - SORT_BY_APPROXIMATE_APPLICATION_COUNT = "approximateApplicationCount" - - #: A constant which can be used with the sort_by property of a RequestSummarizedInstallationUsageDetails. - #: This constant has a value of "approximateManagedInstanceCount" - SORT_BY_APPROXIMATE_MANAGED_INSTANCE_COUNT = "approximateManagedInstanceCount" - - def __init__(self, **kwargs): - """ - Initializes a new RequestSummarizedInstallationUsageDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param time_start: - The value to assign to the time_start property of this RequestSummarizedInstallationUsageDetails. - :type time_start: datetime - - :param time_end: - The value to assign to the time_end property of this RequestSummarizedInstallationUsageDetails. - :type time_end: datetime - - :param installation_path: - The value to assign to the installation_path property of this RequestSummarizedInstallationUsageDetails. - :type installation_path: str - - :param jre_vendor: - The value to assign to the jre_vendor property of this RequestSummarizedInstallationUsageDetails. - :type jre_vendor: str - - :param jre_distribution: - The value to assign to the jre_distribution property of this RequestSummarizedInstallationUsageDetails. - :type jre_distribution: str - - :param jre_version: - The value to assign to the jre_version property of this RequestSummarizedInstallationUsageDetails. - :type jre_version: str - - :param application_id: - The value to assign to the application_id property of this RequestSummarizedInstallationUsageDetails. - :type application_id: str - - :param managed_instance_id: - The value to assign to the managed_instance_id property of this RequestSummarizedInstallationUsageDetails. - :type managed_instance_id: str - - :param sort_order: - The value to assign to the sort_order property of this RequestSummarizedInstallationUsageDetails. - Allowed values for this property are: "ASC", "DESC" - :type sort_order: str - - :param sort_by: - The value to assign to the sort_by property of this RequestSummarizedInstallationUsageDetails. - Allowed values for this property are: "jreDistribution", "jreVendor", "jreVersion", "path", "timeFirstSeen", "timeLastSeen", "approximateApplicationCount", "approximateManagedInstanceCount" - :type sort_by: str - - :param fields: - The value to assign to the fields property of this RequestSummarizedInstallationUsageDetails. - :type fields: list[oci.jms.models.SummarizeInstallationUsageFields] - - """ - self.swagger_types = { - 'time_start': 'datetime', - 'time_end': 'datetime', - 'installation_path': 'str', - 'jre_vendor': 'str', - 'jre_distribution': 'str', - 'jre_version': 'str', - 'application_id': 'str', - 'managed_instance_id': 'str', - 'sort_order': 'str', - 'sort_by': 'str', - 'fields': 'list[SummarizeInstallationUsageFields]' - } - - self.attribute_map = { - 'time_start': 'timeStart', - 'time_end': 'timeEnd', - 'installation_path': 'installationPath', - 'jre_vendor': 'jreVendor', - 'jre_distribution': 'jreDistribution', - 'jre_version': 'jreVersion', - 'application_id': 'applicationId', - 'managed_instance_id': 'managedInstanceId', - 'sort_order': 'sortOrder', - 'sort_by': 'sortBy', - 'fields': 'fields' - } - - self._time_start = None - self._time_end = None - self._installation_path = None - self._jre_vendor = None - self._jre_distribution = None - self._jre_version = None - self._application_id = None - self._managed_instance_id = None - self._sort_order = None - self._sort_by = None - self._fields = None - - @property - def time_start(self): - """ - Gets the time_start of this RequestSummarizedInstallationUsageDetails. - The start of the time period during which resources are searched (formatted according to RFC3339). Defaults to current time minus seven days. - - - :return: The time_start of this RequestSummarizedInstallationUsageDetails. - :rtype: datetime - """ - return self._time_start - - @time_start.setter - def time_start(self, time_start): - """ - Sets the time_start of this RequestSummarizedInstallationUsageDetails. - The start of the time period during which resources are searched (formatted according to RFC3339). Defaults to current time minus seven days. - - - :param time_start: The time_start of this RequestSummarizedInstallationUsageDetails. - :type: datetime - """ - self._time_start = time_start - - @property - def time_end(self): - """ - Gets the time_end of this RequestSummarizedInstallationUsageDetails. - The end of the time period during which resources are searched (formatted according to RFC3339). Defaults to current time. - - - :return: The time_end of this RequestSummarizedInstallationUsageDetails. - :rtype: datetime - """ - return self._time_end - - @time_end.setter - def time_end(self, time_end): - """ - Sets the time_end of this RequestSummarizedInstallationUsageDetails. - The end of the time period during which resources are searched (formatted according to RFC3339). Defaults to current time. - - - :param time_end: The time_end of this RequestSummarizedInstallationUsageDetails. - :type: datetime - """ - self._time_end = time_end - - @property - def installation_path(self): - """ - Gets the installation_path of this RequestSummarizedInstallationUsageDetails. - The path of the installation. - - - :return: The installation_path of this RequestSummarizedInstallationUsageDetails. - :rtype: str - """ - return self._installation_path - - @installation_path.setter - def installation_path(self, installation_path): - """ - Sets the installation_path of this RequestSummarizedInstallationUsageDetails. - The path of the installation. - - - :param installation_path: The installation_path of this RequestSummarizedInstallationUsageDetails. - :type: str - """ - self._installation_path = installation_path - - @property - def jre_vendor(self): - """ - Gets the jre_vendor of this RequestSummarizedInstallationUsageDetails. - The vendor of the related Java Runtime. - - - :return: The jre_vendor of this RequestSummarizedInstallationUsageDetails. - :rtype: str - """ - return self._jre_vendor - - @jre_vendor.setter - def jre_vendor(self, jre_vendor): - """ - Sets the jre_vendor of this RequestSummarizedInstallationUsageDetails. - The vendor of the related Java Runtime. - - - :param jre_vendor: The jre_vendor of this RequestSummarizedInstallationUsageDetails. - :type: str - """ - self._jre_vendor = jre_vendor - - @property - def jre_distribution(self): - """ - Gets the jre_distribution of this RequestSummarizedInstallationUsageDetails. - The distribution of the related Java Runtime. - - - :return: The jre_distribution of this RequestSummarizedInstallationUsageDetails. - :rtype: str - """ - return self._jre_distribution - - @jre_distribution.setter - def jre_distribution(self, jre_distribution): - """ - Sets the jre_distribution of this RequestSummarizedInstallationUsageDetails. - The distribution of the related Java Runtime. - - - :param jre_distribution: The jre_distribution of this RequestSummarizedInstallationUsageDetails. - :type: str - """ - self._jre_distribution = jre_distribution - - @property - def jre_version(self): - """ - Gets the jre_version of this RequestSummarizedInstallationUsageDetails. - The version of the related Java Runtime. - - - :return: The jre_version of this RequestSummarizedInstallationUsageDetails. - :rtype: str - """ - return self._jre_version - - @jre_version.setter - def jre_version(self, jre_version): - """ - Sets the jre_version of this RequestSummarizedInstallationUsageDetails. - The version of the related Java Runtime. - - - :param jre_version: The jre_version of this RequestSummarizedInstallationUsageDetails. - :type: str - """ - self._jre_version = jre_version - - @property - def application_id(self): - """ - Gets the application_id of this RequestSummarizedInstallationUsageDetails. - The ID of the related application. - - - :return: The application_id of this RequestSummarizedInstallationUsageDetails. - :rtype: str - """ - return self._application_id - - @application_id.setter - def application_id(self, application_id): - """ - Sets the application_id of this RequestSummarizedInstallationUsageDetails. - The ID of the related application. - - - :param application_id: The application_id of this RequestSummarizedInstallationUsageDetails. - :type: str - """ - self._application_id = application_id - - @property - def managed_instance_id(self): - """ - Gets the managed_instance_id of this RequestSummarizedInstallationUsageDetails. - The ID of the related managed instance. - - - :return: The managed_instance_id of this RequestSummarizedInstallationUsageDetails. - :rtype: str - """ - return self._managed_instance_id - - @managed_instance_id.setter - def managed_instance_id(self, managed_instance_id): - """ - Sets the managed_instance_id of this RequestSummarizedInstallationUsageDetails. - The ID of the related managed instance. - - - :param managed_instance_id: The managed_instance_id of this RequestSummarizedInstallationUsageDetails. - :type: str - """ - self._managed_instance_id = managed_instance_id - - @property - def sort_order(self): - """ - Gets the sort_order of this RequestSummarizedInstallationUsageDetails. - The sort order to use, either 'asc' or 'desc'. - - Allowed values for this property are: "ASC", "DESC" - - - :return: The sort_order of this RequestSummarizedInstallationUsageDetails. - :rtype: str - """ - return self._sort_order - - @sort_order.setter - def sort_order(self, sort_order): - """ - Sets the sort_order of this RequestSummarizedInstallationUsageDetails. - The sort order to use, either 'asc' or 'desc'. - - - :param sort_order: The sort_order of this RequestSummarizedInstallationUsageDetails. - :type: str - """ - allowed_values = ["ASC", "DESC"] - if not value_allowed_none_or_none_sentinel(sort_order, allowed_values): - raise ValueError( - "Invalid value for `sort_order`, must be None or one of {0}" - .format(allowed_values) - ) - self._sort_order = sort_order - - @property - def sort_by(self): - """ - Gets the sort_by of this RequestSummarizedInstallationUsageDetails. - The field to sort installation views. Only one sort order may be provided. - Default order for _timeFirstSeen_, _timeLastSeen_, _jreVersion_, _approximateApplicationCount_ - and _approximateManagedInstanceCount_ is **descending**. - Default order for _jreDistribution_ and _jreVendor_ is **ascending**. If no value is specified _timeLastSeen_ is default. - - Allowed values for this property are: "jreDistribution", "jreVendor", "jreVersion", "path", "timeFirstSeen", "timeLastSeen", "approximateApplicationCount", "approximateManagedInstanceCount" - - - :return: The sort_by of this RequestSummarizedInstallationUsageDetails. - :rtype: str - """ - return self._sort_by - - @sort_by.setter - def sort_by(self, sort_by): - """ - Sets the sort_by of this RequestSummarizedInstallationUsageDetails. - The field to sort installation views. Only one sort order may be provided. - Default order for _timeFirstSeen_, _timeLastSeen_, _jreVersion_, _approximateApplicationCount_ - and _approximateManagedInstanceCount_ is **descending**. - Default order for _jreDistribution_ and _jreVendor_ is **ascending**. If no value is specified _timeLastSeen_ is default. - - - :param sort_by: The sort_by of this RequestSummarizedInstallationUsageDetails. - :type: str - """ - allowed_values = ["jreDistribution", "jreVendor", "jreVersion", "path", "timeFirstSeen", "timeLastSeen", "approximateApplicationCount", "approximateManagedInstanceCount"] - if not value_allowed_none_or_none_sentinel(sort_by, allowed_values): - raise ValueError( - "Invalid value for `sort_by`, must be None or one of {0}" - .format(allowed_values) - ) - self._sort_by = sort_by - - @property - def fields(self): - """ - Gets the fields of this RequestSummarizedInstallationUsageDetails. - Additional fields to include into the returned model on top of the required ones. - This parameter can also include 'approximateApplicationCount' and 'approximateManagedInstanceCount'. - For example 'approximateApplicationCount,approximateManagedInstanceCount'. - - - :return: The fields of this RequestSummarizedInstallationUsageDetails. - :rtype: list[oci.jms.models.SummarizeInstallationUsageFields] - """ - return self._fields - - @fields.setter - def fields(self, fields): - """ - Sets the fields of this RequestSummarizedInstallationUsageDetails. - Additional fields to include into the returned model on top of the required ones. - This parameter can also include 'approximateApplicationCount' and 'approximateManagedInstanceCount'. - For example 'approximateApplicationCount,approximateManagedInstanceCount'. - - - :param fields: The fields of this RequestSummarizedInstallationUsageDetails. - :type: list[oci.jms.models.SummarizeInstallationUsageFields] - """ - self._fields = fields - - 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/jms/models/request_summarized_jre_usage_details.py b/src/oci/jms/models/request_summarized_jre_usage_details.py deleted file mode 100644 index 18e99b84d8..0000000000 --- a/src/oci/jms/models/request_summarized_jre_usage_details.py +++ /dev/null @@ -1,421 +0,0 @@ -# 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. - - -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 RequestSummarizedJreUsageDetails(object): - """ - Parameters for filtering Java Runtime Usages. - """ - - #: A constant which can be used with the sort_order property of a RequestSummarizedJreUsageDetails. - #: This constant has a value of "ASC" - SORT_ORDER_ASC = "ASC" - - #: A constant which can be used with the sort_order property of a RequestSummarizedJreUsageDetails. - #: This constant has a value of "DESC" - SORT_ORDER_DESC = "DESC" - - #: A constant which can be used with the sort_by property of a RequestSummarizedJreUsageDetails. - #: This constant has a value of "distribution" - SORT_BY_DISTRIBUTION = "distribution" - - #: A constant which can be used with the sort_by property of a RequestSummarizedJreUsageDetails. - #: This constant has a value of "timeFirstSeen" - SORT_BY_TIME_FIRST_SEEN = "timeFirstSeen" - - #: A constant which can be used with the sort_by property of a RequestSummarizedJreUsageDetails. - #: This constant has a value of "timeLastSeen" - SORT_BY_TIME_LAST_SEEN = "timeLastSeen" - - #: A constant which can be used with the sort_by property of a RequestSummarizedJreUsageDetails. - #: This constant has a value of "vendor" - SORT_BY_VENDOR = "vendor" - - #: A constant which can be used with the sort_by property of a RequestSummarizedJreUsageDetails. - #: This constant has a value of "version" - SORT_BY_VERSION = "version" - - #: A constant which can be used with the sort_by property of a RequestSummarizedJreUsageDetails. - #: This constant has a value of "approximateInstallationCount" - SORT_BY_APPROXIMATE_INSTALLATION_COUNT = "approximateInstallationCount" - - #: A constant which can be used with the sort_by property of a RequestSummarizedJreUsageDetails. - #: This constant has a value of "approximateApplicationCount" - SORT_BY_APPROXIMATE_APPLICATION_COUNT = "approximateApplicationCount" - - #: A constant which can be used with the sort_by property of a RequestSummarizedJreUsageDetails. - #: This constant has a value of "approximateManagedInstanceCount" - SORT_BY_APPROXIMATE_MANAGED_INSTANCE_COUNT = "approximateManagedInstanceCount" - - def __init__(self, **kwargs): - """ - Initializes a new RequestSummarizedJreUsageDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param time_start: - The value to assign to the time_start property of this RequestSummarizedJreUsageDetails. - :type time_start: datetime - - :param time_end: - The value to assign to the time_end property of this RequestSummarizedJreUsageDetails. - :type time_end: datetime - - :param jre_vendor: - The value to assign to the jre_vendor property of this RequestSummarizedJreUsageDetails. - :type jre_vendor: str - - :param jre_distribution: - The value to assign to the jre_distribution property of this RequestSummarizedJreUsageDetails. - :type jre_distribution: str - - :param jre_version: - The value to assign to the jre_version property of this RequestSummarizedJreUsageDetails. - :type jre_version: str - - :param application_id: - The value to assign to the application_id property of this RequestSummarizedJreUsageDetails. - :type application_id: str - - :param managed_instance_id: - The value to assign to the managed_instance_id property of this RequestSummarizedJreUsageDetails. - :type managed_instance_id: str - - :param sort_order: - The value to assign to the sort_order property of this RequestSummarizedJreUsageDetails. - Allowed values for this property are: "ASC", "DESC" - :type sort_order: str - - :param sort_by: - The value to assign to the sort_by property of this RequestSummarizedJreUsageDetails. - Allowed values for this property are: "distribution", "timeFirstSeen", "timeLastSeen", "vendor", "version", "approximateInstallationCount", "approximateApplicationCount", "approximateManagedInstanceCount" - :type sort_by: str - - :param fields: - The value to assign to the fields property of this RequestSummarizedJreUsageDetails. - :type fields: list[oci.jms.models.SummarizeJreUsageFields] - - """ - self.swagger_types = { - 'time_start': 'datetime', - 'time_end': 'datetime', - 'jre_vendor': 'str', - 'jre_distribution': 'str', - 'jre_version': 'str', - 'application_id': 'str', - 'managed_instance_id': 'str', - 'sort_order': 'str', - 'sort_by': 'str', - 'fields': 'list[SummarizeJreUsageFields]' - } - - self.attribute_map = { - 'time_start': 'timeStart', - 'time_end': 'timeEnd', - 'jre_vendor': 'jreVendor', - 'jre_distribution': 'jreDistribution', - 'jre_version': 'jreVersion', - 'application_id': 'applicationId', - 'managed_instance_id': 'managedInstanceId', - 'sort_order': 'sortOrder', - 'sort_by': 'sortBy', - 'fields': 'fields' - } - - self._time_start = None - self._time_end = None - self._jre_vendor = None - self._jre_distribution = None - self._jre_version = None - self._application_id = None - self._managed_instance_id = None - self._sort_order = None - self._sort_by = None - self._fields = None - - @property - def time_start(self): - """ - Gets the time_start of this RequestSummarizedJreUsageDetails. - The start of the time period during which resources are searched (formatted according to RFC3339). Defaults to current time minus seven days. - - - :return: The time_start of this RequestSummarizedJreUsageDetails. - :rtype: datetime - """ - return self._time_start - - @time_start.setter - def time_start(self, time_start): - """ - Sets the time_start of this RequestSummarizedJreUsageDetails. - The start of the time period during which resources are searched (formatted according to RFC3339). Defaults to current time minus seven days. - - - :param time_start: The time_start of this RequestSummarizedJreUsageDetails. - :type: datetime - """ - self._time_start = time_start - - @property - def time_end(self): - """ - Gets the time_end of this RequestSummarizedJreUsageDetails. - The end of the time period during which resources are searched (formatted according to RFC3339). Defaults to current time. - - - :return: The time_end of this RequestSummarizedJreUsageDetails. - :rtype: datetime - """ - return self._time_end - - @time_end.setter - def time_end(self, time_end): - """ - Sets the time_end of this RequestSummarizedJreUsageDetails. - The end of the time period during which resources are searched (formatted according to RFC3339). Defaults to current time. - - - :param time_end: The time_end of this RequestSummarizedJreUsageDetails. - :type: datetime - """ - self._time_end = time_end - - @property - def jre_vendor(self): - """ - Gets the jre_vendor of this RequestSummarizedJreUsageDetails. - The vendor of the Java Runtime. - - - :return: The jre_vendor of this RequestSummarizedJreUsageDetails. - :rtype: str - """ - return self._jre_vendor - - @jre_vendor.setter - def jre_vendor(self, jre_vendor): - """ - Sets the jre_vendor of this RequestSummarizedJreUsageDetails. - The vendor of the Java Runtime. - - - :param jre_vendor: The jre_vendor of this RequestSummarizedJreUsageDetails. - :type: str - """ - self._jre_vendor = jre_vendor - - @property - def jre_distribution(self): - """ - Gets the jre_distribution of this RequestSummarizedJreUsageDetails. - The distribution of the Java Runtime. - - - :return: The jre_distribution of this RequestSummarizedJreUsageDetails. - :rtype: str - """ - return self._jre_distribution - - @jre_distribution.setter - def jre_distribution(self, jre_distribution): - """ - Sets the jre_distribution of this RequestSummarizedJreUsageDetails. - The distribution of the Java Runtime. - - - :param jre_distribution: The jre_distribution of this RequestSummarizedJreUsageDetails. - :type: str - """ - self._jre_distribution = jre_distribution - - @property - def jre_version(self): - """ - Gets the jre_version of this RequestSummarizedJreUsageDetails. - The version of the Java Runtime. - - - :return: The jre_version of this RequestSummarizedJreUsageDetails. - :rtype: str - """ - return self._jre_version - - @jre_version.setter - def jre_version(self, jre_version): - """ - Sets the jre_version of this RequestSummarizedJreUsageDetails. - The version of the Java Runtime. - - - :param jre_version: The jre_version of this RequestSummarizedJreUsageDetails. - :type: str - """ - self._jre_version = jre_version - - @property - def application_id(self): - """ - Gets the application_id of this RequestSummarizedJreUsageDetails. - The ID of the related application. - - - :return: The application_id of this RequestSummarizedJreUsageDetails. - :rtype: str - """ - return self._application_id - - @application_id.setter - def application_id(self, application_id): - """ - Sets the application_id of this RequestSummarizedJreUsageDetails. - The ID of the related application. - - - :param application_id: The application_id of this RequestSummarizedJreUsageDetails. - :type: str - """ - self._application_id = application_id - - @property - def managed_instance_id(self): - """ - Gets the managed_instance_id of this RequestSummarizedJreUsageDetails. - The `OCID`__ of the related managed instance. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :return: The managed_instance_id of this RequestSummarizedJreUsageDetails. - :rtype: str - """ - return self._managed_instance_id - - @managed_instance_id.setter - def managed_instance_id(self, managed_instance_id): - """ - Sets the managed_instance_id of this RequestSummarizedJreUsageDetails. - The `OCID`__ of the related managed instance. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :param managed_instance_id: The managed_instance_id of this RequestSummarizedJreUsageDetails. - :type: str - """ - self._managed_instance_id = managed_instance_id - - @property - def sort_order(self): - """ - Gets the sort_order of this RequestSummarizedJreUsageDetails. - The sort order to use, either 'asc' or 'desc'. - - Allowed values for this property are: "ASC", "DESC" - - - :return: The sort_order of this RequestSummarizedJreUsageDetails. - :rtype: str - """ - return self._sort_order - - @sort_order.setter - def sort_order(self, sort_order): - """ - Sets the sort_order of this RequestSummarizedJreUsageDetails. - The sort order to use, either 'asc' or 'desc'. - - - :param sort_order: The sort_order of this RequestSummarizedJreUsageDetails. - :type: str - """ - allowed_values = ["ASC", "DESC"] - if not value_allowed_none_or_none_sentinel(sort_order, allowed_values): - raise ValueError( - "Invalid value for `sort_order`, must be None or one of {0}" - .format(allowed_values) - ) - self._sort_order = sort_order - - @property - def sort_by(self): - """ - Gets the sort_by of this RequestSummarizedJreUsageDetails. - The field to sort Java Runtime views. Only one sort order may be provided. - Default order for _timeFirstSeen_, _timeLastSeen_, _version_, _approximateInstallationCount_, - _approximateApplicationCount_ and _approximateManagedInstanceCount_ is **descending**. - Default order for _distribution_ and _vendor_ is **ascending**. If no value is specified _timeLastSeen_ is default. - - Allowed values for this property are: "distribution", "timeFirstSeen", "timeLastSeen", "vendor", "version", "approximateInstallationCount", "approximateApplicationCount", "approximateManagedInstanceCount" - - - :return: The sort_by of this RequestSummarizedJreUsageDetails. - :rtype: str - """ - return self._sort_by - - @sort_by.setter - def sort_by(self, sort_by): - """ - Sets the sort_by of this RequestSummarizedJreUsageDetails. - The field to sort Java Runtime views. Only one sort order may be provided. - Default order for _timeFirstSeen_, _timeLastSeen_, _version_, _approximateInstallationCount_, - _approximateApplicationCount_ and _approximateManagedInstanceCount_ is **descending**. - Default order for _distribution_ and _vendor_ is **ascending**. If no value is specified _timeLastSeen_ is default. - - - :param sort_by: The sort_by of this RequestSummarizedJreUsageDetails. - :type: str - """ - allowed_values = ["distribution", "timeFirstSeen", "timeLastSeen", "vendor", "version", "approximateInstallationCount", "approximateApplicationCount", "approximateManagedInstanceCount"] - if not value_allowed_none_or_none_sentinel(sort_by, allowed_values): - raise ValueError( - "Invalid value for `sort_by`, must be None or one of {0}" - .format(allowed_values) - ) - self._sort_by = sort_by - - @property - def fields(self): - """ - Gets the fields of this RequestSummarizedJreUsageDetails. - Additional fields to include into the returned model on top of the required ones. - This parameter can also include 'approximateApplicationCount', 'approximateInstallationCount' and 'approximateManagedInstanceCount'. - For example 'approximateApplicationCount,approximateManagedInstanceCount'. - - - :return: The fields of this RequestSummarizedJreUsageDetails. - :rtype: list[oci.jms.models.SummarizeJreUsageFields] - """ - return self._fields - - @fields.setter - def fields(self, fields): - """ - Sets the fields of this RequestSummarizedJreUsageDetails. - Additional fields to include into the returned model on top of the required ones. - This parameter can also include 'approximateApplicationCount', 'approximateInstallationCount' and 'approximateManagedInstanceCount'. - For example 'approximateApplicationCount,approximateManagedInstanceCount'. - - - :param fields: The fields of this RequestSummarizedJreUsageDetails. - :type: list[oci.jms.models.SummarizeJreUsageFields] - """ - self._fields = fields - - 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/jms/models/request_summarized_managed_instance_usage_details.py b/src/oci/jms/models/request_summarized_managed_instance_usage_details.py deleted file mode 100644 index e34b67e410..0000000000 --- a/src/oci/jms/models/request_summarized_managed_instance_usage_details.py +++ /dev/null @@ -1,480 +0,0 @@ -# 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. - - -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 RequestSummarizedManagedInstanceUsageDetails(object): - """ - Parameters for filtering managed instances. - """ - - #: A constant which can be used with the managed_instance_type property of a RequestSummarizedManagedInstanceUsageDetails. - #: This constant has a value of "ORACLE_MANAGEMENT_AGENT" - MANAGED_INSTANCE_TYPE_ORACLE_MANAGEMENT_AGENT = "ORACLE_MANAGEMENT_AGENT" - - #: A constant which can be used with the sort_order property of a RequestSummarizedManagedInstanceUsageDetails. - #: This constant has a value of "ASC" - SORT_ORDER_ASC = "ASC" - - #: A constant which can be used with the sort_order property of a RequestSummarizedManagedInstanceUsageDetails. - #: This constant has a value of "DESC" - SORT_ORDER_DESC = "DESC" - - #: A constant which can be used with the sort_by property of a RequestSummarizedManagedInstanceUsageDetails. - #: This constant has a value of "timeFirstSeen" - SORT_BY_TIME_FIRST_SEEN = "timeFirstSeen" - - #: A constant which can be used with the sort_by property of a RequestSummarizedManagedInstanceUsageDetails. - #: This constant has a value of "timeLastSeen" - SORT_BY_TIME_LAST_SEEN = "timeLastSeen" - - #: A constant which can be used with the sort_by property of a RequestSummarizedManagedInstanceUsageDetails. - #: This constant has a value of "approximateJreCount" - SORT_BY_APPROXIMATE_JRE_COUNT = "approximateJreCount" - - #: A constant which can be used with the sort_by property of a RequestSummarizedManagedInstanceUsageDetails. - #: This constant has a value of "approximateInstallationCount" - SORT_BY_APPROXIMATE_INSTALLATION_COUNT = "approximateInstallationCount" - - #: A constant which can be used with the sort_by property of a RequestSummarizedManagedInstanceUsageDetails. - #: This constant has a value of "approximateApplicationCount" - SORT_BY_APPROXIMATE_APPLICATION_COUNT = "approximateApplicationCount" - - def __init__(self, **kwargs): - """ - Initializes a new RequestSummarizedManagedInstanceUsageDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param time_start: - The value to assign to the time_start property of this RequestSummarizedManagedInstanceUsageDetails. - :type time_start: datetime - - :param time_end: - The value to assign to the time_end property of this RequestSummarizedManagedInstanceUsageDetails. - :type time_end: datetime - - :param installation_path: - The value to assign to the installation_path property of this RequestSummarizedManagedInstanceUsageDetails. - :type installation_path: str - - :param jre_vendor: - The value to assign to the jre_vendor property of this RequestSummarizedManagedInstanceUsageDetails. - :type jre_vendor: str - - :param jre_distribution: - The value to assign to the jre_distribution property of this RequestSummarizedManagedInstanceUsageDetails. - :type jre_distribution: str - - :param jre_version: - The value to assign to the jre_version property of this RequestSummarizedManagedInstanceUsageDetails. - :type jre_version: str - - :param application_id: - The value to assign to the application_id property of this RequestSummarizedManagedInstanceUsageDetails. - :type application_id: str - - :param managed_instance_id: - The value to assign to the managed_instance_id property of this RequestSummarizedManagedInstanceUsageDetails. - :type managed_instance_id: str - - :param managed_instance_type: - The value to assign to the managed_instance_type property of this RequestSummarizedManagedInstanceUsageDetails. - Allowed values for this property are: "ORACLE_MANAGEMENT_AGENT" - :type managed_instance_type: str - - :param sort_order: - The value to assign to the sort_order property of this RequestSummarizedManagedInstanceUsageDetails. - Allowed values for this property are: "ASC", "DESC" - :type sort_order: str - - :param sort_by: - The value to assign to the sort_by property of this RequestSummarizedManagedInstanceUsageDetails. - Allowed values for this property are: "timeFirstSeen", "timeLastSeen", "approximateJreCount", "approximateInstallationCount", "approximateApplicationCount" - :type sort_by: str - - :param fields: - The value to assign to the fields property of this RequestSummarizedManagedInstanceUsageDetails. - :type fields: list[oci.jms.models.SummarizeManagedInstanceUsageFields] - - """ - self.swagger_types = { - 'time_start': 'datetime', - 'time_end': 'datetime', - 'installation_path': 'str', - 'jre_vendor': 'str', - 'jre_distribution': 'str', - 'jre_version': 'str', - 'application_id': 'str', - 'managed_instance_id': 'str', - 'managed_instance_type': 'str', - 'sort_order': 'str', - 'sort_by': 'str', - 'fields': 'list[SummarizeManagedInstanceUsageFields]' - } - - self.attribute_map = { - 'time_start': 'timeStart', - 'time_end': 'timeEnd', - 'installation_path': 'installationPath', - 'jre_vendor': 'jreVendor', - 'jre_distribution': 'jreDistribution', - 'jre_version': 'jreVersion', - 'application_id': 'applicationId', - 'managed_instance_id': 'managedInstanceId', - 'managed_instance_type': 'managedInstanceType', - 'sort_order': 'sortOrder', - 'sort_by': 'sortBy', - 'fields': 'fields' - } - - self._time_start = None - self._time_end = None - self._installation_path = None - self._jre_vendor = None - self._jre_distribution = None - self._jre_version = None - self._application_id = None - self._managed_instance_id = None - self._managed_instance_type = None - self._sort_order = None - self._sort_by = None - self._fields = None - - @property - def time_start(self): - """ - Gets the time_start of this RequestSummarizedManagedInstanceUsageDetails. - The start of the time period during which resources are searched (formatted according to RFC3339). Defaults to current time minus seven days. - - - :return: The time_start of this RequestSummarizedManagedInstanceUsageDetails. - :rtype: datetime - """ - return self._time_start - - @time_start.setter - def time_start(self, time_start): - """ - Sets the time_start of this RequestSummarizedManagedInstanceUsageDetails. - The start of the time period during which resources are searched (formatted according to RFC3339). Defaults to current time minus seven days. - - - :param time_start: The time_start of this RequestSummarizedManagedInstanceUsageDetails. - :type: datetime - """ - self._time_start = time_start - - @property - def time_end(self): - """ - Gets the time_end of this RequestSummarizedManagedInstanceUsageDetails. - The end of the time period during which resources are searched (formatted according to RFC3339). Defaults to current time. - - - :return: The time_end of this RequestSummarizedManagedInstanceUsageDetails. - :rtype: datetime - """ - return self._time_end - - @time_end.setter - def time_end(self, time_end): - """ - Sets the time_end of this RequestSummarizedManagedInstanceUsageDetails. - The end of the time period during which resources are searched (formatted according to RFC3339). Defaults to current time. - - - :param time_end: The time_end of this RequestSummarizedManagedInstanceUsageDetails. - :type: datetime - """ - self._time_end = time_end - - @property - def installation_path(self): - """ - Gets the installation_path of this RequestSummarizedManagedInstanceUsageDetails. - The installation path of the related installation. - - - :return: The installation_path of this RequestSummarizedManagedInstanceUsageDetails. - :rtype: str - """ - return self._installation_path - - @installation_path.setter - def installation_path(self, installation_path): - """ - Sets the installation_path of this RequestSummarizedManagedInstanceUsageDetails. - The installation path of the related installation. - - - :param installation_path: The installation_path of this RequestSummarizedManagedInstanceUsageDetails. - :type: str - """ - self._installation_path = installation_path - - @property - def jre_vendor(self): - """ - Gets the jre_vendor of this RequestSummarizedManagedInstanceUsageDetails. - The vendor of the related Java Runtime. - - - :return: The jre_vendor of this RequestSummarizedManagedInstanceUsageDetails. - :rtype: str - """ - return self._jre_vendor - - @jre_vendor.setter - def jre_vendor(self, jre_vendor): - """ - Sets the jre_vendor of this RequestSummarizedManagedInstanceUsageDetails. - The vendor of the related Java Runtime. - - - :param jre_vendor: The jre_vendor of this RequestSummarizedManagedInstanceUsageDetails. - :type: str - """ - self._jre_vendor = jre_vendor - - @property - def jre_distribution(self): - """ - Gets the jre_distribution of this RequestSummarizedManagedInstanceUsageDetails. - The distribution of the related Java Runtime. - - - :return: The jre_distribution of this RequestSummarizedManagedInstanceUsageDetails. - :rtype: str - """ - return self._jre_distribution - - @jre_distribution.setter - def jre_distribution(self, jre_distribution): - """ - Sets the jre_distribution of this RequestSummarizedManagedInstanceUsageDetails. - The distribution of the related Java Runtime. - - - :param jre_distribution: The jre_distribution of this RequestSummarizedManagedInstanceUsageDetails. - :type: str - """ - self._jre_distribution = jre_distribution - - @property - def jre_version(self): - """ - Gets the jre_version of this RequestSummarizedManagedInstanceUsageDetails. - The version of the related Java Runtime. - - - :return: The jre_version of this RequestSummarizedManagedInstanceUsageDetails. - :rtype: str - """ - return self._jre_version - - @jre_version.setter - def jre_version(self, jre_version): - """ - Sets the jre_version of this RequestSummarizedManagedInstanceUsageDetails. - The version of the related Java Runtime. - - - :param jre_version: The jre_version of this RequestSummarizedManagedInstanceUsageDetails. - :type: str - """ - self._jre_version = jre_version - - @property - def application_id(self): - """ - Gets the application_id of this RequestSummarizedManagedInstanceUsageDetails. - The ID of the related application. - - - :return: The application_id of this RequestSummarizedManagedInstanceUsageDetails. - :rtype: str - """ - return self._application_id - - @application_id.setter - def application_id(self, application_id): - """ - Sets the application_id of this RequestSummarizedManagedInstanceUsageDetails. - The ID of the related application. - - - :param application_id: The application_id of this RequestSummarizedManagedInstanceUsageDetails. - :type: str - """ - self._application_id = application_id - - @property - def managed_instance_id(self): - """ - Gets the managed_instance_id of this RequestSummarizedManagedInstanceUsageDetails. - The ID of the managed instance. - - - :return: The managed_instance_id of this RequestSummarizedManagedInstanceUsageDetails. - :rtype: str - """ - return self._managed_instance_id - - @managed_instance_id.setter - def managed_instance_id(self, managed_instance_id): - """ - Sets the managed_instance_id of this RequestSummarizedManagedInstanceUsageDetails. - The ID of the managed instance. - - - :param managed_instance_id: The managed_instance_id of this RequestSummarizedManagedInstanceUsageDetails. - :type: str - """ - self._managed_instance_id = managed_instance_id - - @property - def managed_instance_type(self): - """ - Gets the managed_instance_type of this RequestSummarizedManagedInstanceUsageDetails. - type of the managed instance - - Allowed values for this property are: "ORACLE_MANAGEMENT_AGENT" - - - :return: The managed_instance_type of this RequestSummarizedManagedInstanceUsageDetails. - :rtype: str - """ - return self._managed_instance_type - - @managed_instance_type.setter - def managed_instance_type(self, managed_instance_type): - """ - Sets the managed_instance_type of this RequestSummarizedManagedInstanceUsageDetails. - type of the managed instance - - - :param managed_instance_type: The managed_instance_type of this RequestSummarizedManagedInstanceUsageDetails. - :type: str - """ - allowed_values = ["ORACLE_MANAGEMENT_AGENT"] - if not value_allowed_none_or_none_sentinel(managed_instance_type, allowed_values): - raise ValueError( - "Invalid value for `managed_instance_type`, must be None or one of {0}" - .format(allowed_values) - ) - self._managed_instance_type = managed_instance_type - - @property - def sort_order(self): - """ - Gets the sort_order of this RequestSummarizedManagedInstanceUsageDetails. - The sort order to use, either 'asc' or 'desc'. - - Allowed values for this property are: "ASC", "DESC" - - - :return: The sort_order of this RequestSummarizedManagedInstanceUsageDetails. - :rtype: str - """ - return self._sort_order - - @sort_order.setter - def sort_order(self, sort_order): - """ - Sets the sort_order of this RequestSummarizedManagedInstanceUsageDetails. - The sort order to use, either 'asc' or 'desc'. - - - :param sort_order: The sort_order of this RequestSummarizedManagedInstanceUsageDetails. - :type: str - """ - allowed_values = ["ASC", "DESC"] - if not value_allowed_none_or_none_sentinel(sort_order, allowed_values): - raise ValueError( - "Invalid value for `sort_order`, must be None or one of {0}" - .format(allowed_values) - ) - self._sort_order = sort_order - - @property - def sort_by(self): - """ - Gets the sort_by of this RequestSummarizedManagedInstanceUsageDetails. - The field to sort managed instance views. Only one sort order may be provided. - Default order for _timeFirstSeen_, _timeLastSeen_, approximateJreCount_, _approximateInstallationCount_ - and _approximateApplicationCount_ is **descending**. - If no value is specified _timeLastSeen_ is default. - - Allowed values for this property are: "timeFirstSeen", "timeLastSeen", "approximateJreCount", "approximateInstallationCount", "approximateApplicationCount" - - - :return: The sort_by of this RequestSummarizedManagedInstanceUsageDetails. - :rtype: str - """ - return self._sort_by - - @sort_by.setter - def sort_by(self, sort_by): - """ - Sets the sort_by of this RequestSummarizedManagedInstanceUsageDetails. - The field to sort managed instance views. Only one sort order may be provided. - Default order for _timeFirstSeen_, _timeLastSeen_, approximateJreCount_, _approximateInstallationCount_ - and _approximateApplicationCount_ is **descending**. - If no value is specified _timeLastSeen_ is default. - - - :param sort_by: The sort_by of this RequestSummarizedManagedInstanceUsageDetails. - :type: str - """ - allowed_values = ["timeFirstSeen", "timeLastSeen", "approximateJreCount", "approximateInstallationCount", "approximateApplicationCount"] - if not value_allowed_none_or_none_sentinel(sort_by, allowed_values): - raise ValueError( - "Invalid value for `sort_by`, must be None or one of {0}" - .format(allowed_values) - ) - self._sort_by = sort_by - - @property - def fields(self): - """ - Gets the fields of this RequestSummarizedManagedInstanceUsageDetails. - Additional fields to include into the returned model on top of the required ones. - This parameter can also include 'approximateJreCount', 'approximateInstallationCount' and 'approximateApplicationCount'. - For example 'approximateJreCount,approximateInstallationCount'. - - - :return: The fields of this RequestSummarizedManagedInstanceUsageDetails. - :rtype: list[oci.jms.models.SummarizeManagedInstanceUsageFields] - """ - return self._fields - - @fields.setter - def fields(self, fields): - """ - Sets the fields of this RequestSummarizedManagedInstanceUsageDetails. - Additional fields to include into the returned model on top of the required ones. - This parameter can also include 'approximateJreCount', 'approximateInstallationCount' and 'approximateApplicationCount'. - For example 'approximateJreCount,approximateInstallationCount'. - - - :param fields: The fields of this RequestSummarizedManagedInstanceUsageDetails. - :type: list[oci.jms.models.SummarizeManagedInstanceUsageFields] - """ - self._fields = fields - - 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/log_analytics/models/agent_upload.py b/src/oci/log_analytics/models/agent_upload.py deleted file mode 100644 index 1091d83402..0000000000 --- a/src/oci/log_analytics/models/agent_upload.py +++ /dev/null @@ -1,70 +0,0 @@ -# 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. - - -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 AgentUpload(object): - """ - Upload is a container that can be used to optionally put all the relevant and related agent upload based log files. - """ - - def __init__(self, **kwargs): - """ - Initializes a new AgentUpload 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 AgentUpload. - :type name: str - - """ - self.swagger_types = { - 'name': 'str' - } - - self.attribute_map = { - 'name': 'name' - } - - self._name = None - - @property - def name(self): - """ - Gets the name of this AgentUpload. - The name of the upload container - - - :return: The name of this AgentUpload. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this AgentUpload. - The name of the upload container - - - :param name: The name of this AgentUpload. - :type: str - """ - self._name = name - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/log_analytics/models/attribute.py b/src/oci/log_analytics/models/attribute.py deleted file mode 100644 index ec58baa306..0000000000 --- a/src/oci/log_analytics/models/attribute.py +++ /dev/null @@ -1,602 +0,0 @@ -# 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. - - -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 Attribute(object): - """ - Attribute - """ - - #: A constant which can be used with the maximum_len property of a Attribute. - #: This constant has a value of "LENGTH_FIVE" - MAXIMUM_LEN_LENGTH_FIVE = "LENGTH_FIVE" - - #: A constant which can be used with the maximum_len property of a Attribute. - #: This constant has a value of "LENGTH_SIXTEEN" - MAXIMUM_LEN_LENGTH_SIXTEEN = "LENGTH_SIXTEEN" - - #: A constant which can be used with the maximum_len property of a Attribute. - #: This constant has a value of "LENGTH_THIRTYTWO" - MAXIMUM_LEN_LENGTH_THIRTYTWO = "LENGTH_THIRTYTWO" - - #: A constant which can be used with the maximum_len property of a Attribute. - #: This constant has a value of "LENGTH_SIXTYFOUR" - MAXIMUM_LEN_LENGTH_SIXTYFOUR = "LENGTH_SIXTYFOUR" - - #: A constant which can be used with the maximum_len property of a Attribute. - #: This constant has a value of "LENGTH_ONETWOEIGHT" - MAXIMUM_LEN_LENGTH_ONETWOEIGHT = "LENGTH_ONETWOEIGHT" - - #: A constant which can be used with the maximum_len property of a Attribute. - #: This constant has a value of "LENGTH_TWOFIFTYSIX" - MAXIMUM_LEN_LENGTH_TWOFIFTYSIX = "LENGTH_TWOFIFTYSIX" - - #: A constant which can be used with the maximum_len property of a Attribute. - #: This constant has a value of "LENGTH_FIVETWELVE" - MAXIMUM_LEN_LENGTH_FIVETWELVE = "LENGTH_FIVETWELVE" - - #: A constant which can be used with the maximum_len property of a Attribute. - #: This constant has a value of "LENGTH_SEVENFIFTY" - MAXIMUM_LEN_LENGTH_SEVENFIFTY = "LENGTH_SEVENFIFTY" - - #: A constant which can be used with the maximum_len property of a Attribute. - #: This constant has a value of "LENGTH_ONE_THOUSAND" - MAXIMUM_LEN_LENGTH_ONE_THOUSAND = "LENGTH_ONE_THOUSAND" - - #: A constant which can be used with the maximum_len property of a Attribute. - #: This constant has a value of "LENGTH_TWO_THOUSAND" - MAXIMUM_LEN_LENGTH_TWO_THOUSAND = "LENGTH_TWO_THOUSAND" - - #: A constant which can be used with the maximum_len property of a Attribute. - #: This constant has a value of "LENGTH_FOUR_THOUSAND" - MAXIMUM_LEN_LENGTH_FOUR_THOUSAND = "LENGTH_FOUR_THOUSAND" - - #: A constant which can be used with the populated_by property of a Attribute. - #: This constant has a value of "BACKEND_GEN" - POPULATED_BY_BACKEND_GEN = "BACKEND_GEN" - - #: A constant which can be used with the populated_by property of a Attribute. - #: This constant has a value of "CALLER_GEN" - POPULATED_BY_CALLER_GEN = "CALLER_GEN" - - #: A constant which can be used with the required_in_json property of a Attribute. - #: This constant has a value of "MANDATORY" - REQUIRED_IN_JSON_MANDATORY = "MANDATORY" - - #: A constant which can be used with the required_in_json property of a Attribute. - #: This constant has a value of "OPTIONAL" - REQUIRED_IN_JSON_OPTIONAL = "OPTIONAL" - - #: A constant which can be used with the usage_senario property of a Attribute. - #: This constant has a value of "CREATE" - USAGE_SENARIO_CREATE = "CREATE" - - #: A constant which can be used with the usage_senario property of a Attribute. - #: This constant has a value of "UPDATE" - USAGE_SENARIO_UPDATE = "UPDATE" - - #: A constant which can be used with the usage_senario property of a Attribute. - #: This constant has a value of "CREATE_AND_UPDATE" - USAGE_SENARIO_CREATE_AND_UPDATE = "CREATE_AND_UPDATE" - - #: A constant which can be used with the usage_senario property of a Attribute. - #: This constant has a value of "DELETE" - USAGE_SENARIO_DELETE = "DELETE" - - #: A constant which can be used with the usage_senario property of a Attribute. - #: This constant has a value of "RE_CREATE" - USAGE_SENARIO_RE_CREATE = "RE_CREATE" - - #: A constant which can be used with the usage_senario property of a Attribute. - #: This constant has a value of "DETAIL" - USAGE_SENARIO_DETAIL = "DETAIL" - - #: A constant which can be used with the usage_senario property of a Attribute. - #: This constant has a value of "LIST" - USAGE_SENARIO_LIST = "LIST" - - #: A constant which can be used with the usage_senario property of a Attribute. - #: This constant has a value of "FUNCTION_WITH_LOOKUP" - USAGE_SENARIO_FUNCTION_WITH_LOOKUP = "FUNCTION_WITH_LOOKUP" - - #: A constant which can be used with the usage_senario property of a Attribute. - #: This constant has a value of "DB_PATTERN" - USAGE_SENARIO_DB_PATTERN = "DB_PATTERN" - - #: A constant which can be used with the usage_senario property of a Attribute. - #: This constant has a value of "CREATE_FIRSTTIME_T1" - USAGE_SENARIO_CREATE_FIRSTTIME_T1 = "CREATE_FIRSTTIME_T1" - - #: A constant which can be used with the usage_senario property of a Attribute. - #: This constant has a value of "UPDATE_OOB_METRIC" - USAGE_SENARIO_UPDATE_OOB_METRIC = "UPDATE_OOB_METRIC" - - #: A constant which can be used with the value_data_type property of a Attribute. - #: This constant has a value of "INTEGER" - VALUE_DATA_TYPE_INTEGER = "INTEGER" - - #: A constant which can be used with the value_data_type property of a Attribute. - #: This constant has a value of "LONG" - VALUE_DATA_TYPE_LONG = "LONG" - - #: A constant which can be used with the value_data_type property of a Attribute. - #: This constant has a value of "FLOAT" - VALUE_DATA_TYPE_FLOAT = "FLOAT" - - #: A constant which can be used with the value_data_type property of a Attribute. - #: This constant has a value of "STRING" - VALUE_DATA_TYPE_STRING = "STRING" - - #: A constant which can be used with the value_data_type property of a Attribute. - #: This constant has a value of "TIMESTAMP" - VALUE_DATA_TYPE_TIMESTAMP = "TIMESTAMP" - - #: A constant which can be used with the value_data_type property of a Attribute. - #: This constant has a value of "DATE" - VALUE_DATA_TYPE_DATE = "DATE" - - #: A constant which can be used with the value_data_type property of a Attribute. - #: This constant has a value of "CLOB" - VALUE_DATA_TYPE_CLOB = "CLOB" - - #: A constant which can be used with the value_data_type property of a Attribute. - #: This constant has a value of "TAG_REF" - VALUE_DATA_TYPE_TAG_REF = "TAG_REF" - - #: A constant which can be used with the value_data_type property of a Attribute. - #: This constant has a value of "PARSER_REF" - VALUE_DATA_TYPE_PARSER_REF = "PARSER_REF" - - #: A constant which can be used with the value_data_type property of a Attribute. - #: This constant has a value of "STT_REF" - VALUE_DATA_TYPE_STT_REF = "STT_REF" - - #: A constant which can be used with the value_data_type property of a Attribute. - #: This constant has a value of "LOOKUP_REF" - VALUE_DATA_TYPE_LOOKUP_REF = "LOOKUP_REF" - - #: A constant which can be used with the value_data_type property of a Attribute. - #: This constant has a value of "META_FUNCTION_REF" - VALUE_DATA_TYPE_META_FUNCTION_REF = "META_FUNCTION_REF" - - #: A constant which can be used with the value_data_type property of a Attribute. - #: This constant has a value of "COMMON_FIELD_REF" - VALUE_DATA_TYPE_COMMON_FIELD_REF = "COMMON_FIELD_REF" - - #: A constant which can be used with the value_population_priority property of a Attribute. - #: This constant has a value of "NONE" - VALUE_POPULATION_PRIORITY_NONE = "NONE" - - #: A constant which can be used with the value_population_priority property of a Attribute. - #: This constant has a value of "LOW" - VALUE_POPULATION_PRIORITY_LOW = "LOW" - - #: A constant which can be used with the value_population_priority property of a Attribute. - #: This constant has a value of "HIGH" - VALUE_POPULATION_PRIORITY_HIGH = "HIGH" - - def __init__(self, **kwargs): - """ - Initializes a new Attribute object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param default_value: - The value to assign to the default_value property of this Attribute. - :type default_value: object - - :param dynamic_value_range_ref_attr: - The value to assign to the dynamic_value_range_ref_attr property of this Attribute. - :type dynamic_value_range_ref_attr: str - - :param maximum_len: - The value to assign to the maximum_len property of this Attribute. - Allowed values for this property are: "LENGTH_FIVE", "LENGTH_SIXTEEN", "LENGTH_THIRTYTWO", "LENGTH_SIXTYFOUR", "LENGTH_ONETWOEIGHT", "LENGTH_TWOFIFTYSIX", "LENGTH_FIVETWELVE", "LENGTH_SEVENFIFTY", "LENGTH_ONE_THOUSAND", "LENGTH_TWO_THOUSAND", "LENGTH_FOUR_THOUSAND" - :type maximum_len: str - - :param name: - The value to assign to the name property of this Attribute. - :type name: str - - :param populated_by: - The value to assign to the populated_by property of this Attribute. - Allowed values for this property are: "BACKEND_GEN", "CALLER_GEN" - :type populated_by: str - - :param required_in_json: - The value to assign to the required_in_json property of this Attribute. - Allowed values for this property are: "MANDATORY", "OPTIONAL" - :type required_in_json: str - - :param schema_column: - The value to assign to the schema_column property of this Attribute. - :type schema_column: str - - :param is_string_exceed_maximum_length: - The value to assign to the is_string_exceed_maximum_length property of this Attribute. - :type is_string_exceed_maximum_length: bool - - :param usage_senario: - The value to assign to the usage_senario property of this Attribute. - Allowed values for this property are: "CREATE", "UPDATE", "CREATE_AND_UPDATE", "DELETE", "RE_CREATE", "DETAIL", "LIST", "FUNCTION_WITH_LOOKUP", "DB_PATTERN", "CREATE_FIRSTTIME_T1", "UPDATE_OOB_METRIC" - :type usage_senario: str - - :param value_data_type: - The value to assign to the value_data_type property of this Attribute. - Allowed values for this property are: "INTEGER", "LONG", "FLOAT", "STRING", "TIMESTAMP", "DATE", "CLOB", "TAG_REF", "PARSER_REF", "STT_REF", "LOOKUP_REF", "META_FUNCTION_REF", "COMMON_FIELD_REF" - :type value_data_type: str - - :param value_population_priority: - The value to assign to the value_population_priority property of this Attribute. - Allowed values for this property are: "NONE", "LOW", "HIGH" - :type value_population_priority: str - - """ - self.swagger_types = { - 'default_value': 'object', - 'dynamic_value_range_ref_attr': 'str', - 'maximum_len': 'str', - 'name': 'str', - 'populated_by': 'str', - 'required_in_json': 'str', - 'schema_column': 'str', - 'is_string_exceed_maximum_length': 'bool', - 'usage_senario': 'str', - 'value_data_type': 'str', - 'value_population_priority': 'str' - } - - self.attribute_map = { - 'default_value': 'defaultValue', - 'dynamic_value_range_ref_attr': 'dynamicValueRangeRefAttr', - 'maximum_len': 'maximumLen', - 'name': 'name', - 'populated_by': 'populatedBy', - 'required_in_json': 'requiredInJSON', - 'schema_column': 'schemaColumn', - 'is_string_exceed_maximum_length': 'isStringExceedMaximumLength', - 'usage_senario': 'usageSenario', - 'value_data_type': 'valueDataType', - 'value_population_priority': 'valuePopulationPriority' - } - - self._default_value = None - self._dynamic_value_range_ref_attr = None - self._maximum_len = None - self._name = None - self._populated_by = None - self._required_in_json = None - self._schema_column = None - self._is_string_exceed_maximum_length = None - self._usage_senario = None - self._value_data_type = None - self._value_population_priority = None - - @property - def default_value(self): - """ - Gets the default_value of this Attribute. - default value - - - :return: The default_value of this Attribute. - :rtype: object - """ - return self._default_value - - @default_value.setter - def default_value(self, default_value): - """ - Sets the default_value of this Attribute. - default value - - - :param default_value: The default_value of this Attribute. - :type: object - """ - self._default_value = default_value - - @property - def dynamic_value_range_ref_attr(self): - """ - Gets the dynamic_value_range_ref_attr of this Attribute. - dynamic value range reference attribute - - - :return: The dynamic_value_range_ref_attr of this Attribute. - :rtype: str - """ - return self._dynamic_value_range_ref_attr - - @dynamic_value_range_ref_attr.setter - def dynamic_value_range_ref_attr(self, dynamic_value_range_ref_attr): - """ - Sets the dynamic_value_range_ref_attr of this Attribute. - dynamic value range reference attribute - - - :param dynamic_value_range_ref_attr: The dynamic_value_range_ref_attr of this Attribute. - :type: str - """ - self._dynamic_value_range_ref_attr = dynamic_value_range_ref_attr - - @property - def maximum_len(self): - """ - Gets the maximum_len of this Attribute. - maximum length - - Allowed values for this property are: "LENGTH_FIVE", "LENGTH_SIXTEEN", "LENGTH_THIRTYTWO", "LENGTH_SIXTYFOUR", "LENGTH_ONETWOEIGHT", "LENGTH_TWOFIFTYSIX", "LENGTH_FIVETWELVE", "LENGTH_SEVENFIFTY", "LENGTH_ONE_THOUSAND", "LENGTH_TWO_THOUSAND", "LENGTH_FOUR_THOUSAND" - - - :return: The maximum_len of this Attribute. - :rtype: str - """ - return self._maximum_len - - @maximum_len.setter - def maximum_len(self, maximum_len): - """ - Sets the maximum_len of this Attribute. - maximum length - - - :param maximum_len: The maximum_len of this Attribute. - :type: str - """ - allowed_values = ["LENGTH_FIVE", "LENGTH_SIXTEEN", "LENGTH_THIRTYTWO", "LENGTH_SIXTYFOUR", "LENGTH_ONETWOEIGHT", "LENGTH_TWOFIFTYSIX", "LENGTH_FIVETWELVE", "LENGTH_SEVENFIFTY", "LENGTH_ONE_THOUSAND", "LENGTH_TWO_THOUSAND", "LENGTH_FOUR_THOUSAND"] - if not value_allowed_none_or_none_sentinel(maximum_len, allowed_values): - raise ValueError( - "Invalid value for `maximum_len`, must be None or one of {0}" - .format(allowed_values) - ) - self._maximum_len = maximum_len - - @property - def name(self): - """ - Gets the name of this Attribute. - name - - - :return: The name of this Attribute. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this Attribute. - name - - - :param name: The name of this Attribute. - :type: str - """ - self._name = name - - @property - def populated_by(self): - """ - Gets the populated_by of this Attribute. - populated by - - Allowed values for this property are: "BACKEND_GEN", "CALLER_GEN" - - - :return: The populated_by of this Attribute. - :rtype: str - """ - return self._populated_by - - @populated_by.setter - def populated_by(self, populated_by): - """ - Sets the populated_by of this Attribute. - populated by - - - :param populated_by: The populated_by of this Attribute. - :type: str - """ - allowed_values = ["BACKEND_GEN", "CALLER_GEN"] - if not value_allowed_none_or_none_sentinel(populated_by, allowed_values): - raise ValueError( - "Invalid value for `populated_by`, must be None or one of {0}" - .format(allowed_values) - ) - self._populated_by = populated_by - - @property - def required_in_json(self): - """ - Gets the required_in_json of this Attribute. - required in JSON - - Allowed values for this property are: "MANDATORY", "OPTIONAL" - - - :return: The required_in_json of this Attribute. - :rtype: str - """ - return self._required_in_json - - @required_in_json.setter - def required_in_json(self, required_in_json): - """ - Sets the required_in_json of this Attribute. - required in JSON - - - :param required_in_json: The required_in_json of this Attribute. - :type: str - """ - allowed_values = ["MANDATORY", "OPTIONAL"] - if not value_allowed_none_or_none_sentinel(required_in_json, allowed_values): - raise ValueError( - "Invalid value for `required_in_json`, must be None or one of {0}" - .format(allowed_values) - ) - self._required_in_json = required_in_json - - @property - def schema_column(self): - """ - Gets the schema_column of this Attribute. - schema column - - - :return: The schema_column of this Attribute. - :rtype: str - """ - return self._schema_column - - @schema_column.setter - def schema_column(self, schema_column): - """ - Sets the schema_column of this Attribute. - schema column - - - :param schema_column: The schema_column of this Attribute. - :type: str - """ - self._schema_column = schema_column - - @property - def is_string_exceed_maximum_length(self): - """ - Gets the is_string_exceed_maximum_length of this Attribute. - is string exceed maximum length - - - :return: The is_string_exceed_maximum_length of this Attribute. - :rtype: bool - """ - return self._is_string_exceed_maximum_length - - @is_string_exceed_maximum_length.setter - def is_string_exceed_maximum_length(self, is_string_exceed_maximum_length): - """ - Sets the is_string_exceed_maximum_length of this Attribute. - is string exceed maximum length - - - :param is_string_exceed_maximum_length: The is_string_exceed_maximum_length of this Attribute. - :type: bool - """ - self._is_string_exceed_maximum_length = is_string_exceed_maximum_length - - @property - def usage_senario(self): - """ - Gets the usage_senario of this Attribute. - usage senario - - Allowed values for this property are: "CREATE", "UPDATE", "CREATE_AND_UPDATE", "DELETE", "RE_CREATE", "DETAIL", "LIST", "FUNCTION_WITH_LOOKUP", "DB_PATTERN", "CREATE_FIRSTTIME_T1", "UPDATE_OOB_METRIC" - - - :return: The usage_senario of this Attribute. - :rtype: str - """ - return self._usage_senario - - @usage_senario.setter - def usage_senario(self, usage_senario): - """ - Sets the usage_senario of this Attribute. - usage senario - - - :param usage_senario: The usage_senario of this Attribute. - :type: str - """ - allowed_values = ["CREATE", "UPDATE", "CREATE_AND_UPDATE", "DELETE", "RE_CREATE", "DETAIL", "LIST", "FUNCTION_WITH_LOOKUP", "DB_PATTERN", "CREATE_FIRSTTIME_T1", "UPDATE_OOB_METRIC"] - if not value_allowed_none_or_none_sentinel(usage_senario, allowed_values): - raise ValueError( - "Invalid value for `usage_senario`, must be None or one of {0}" - .format(allowed_values) - ) - self._usage_senario = usage_senario - - @property - def value_data_type(self): - """ - Gets the value_data_type of this Attribute. - value data type - - Allowed values for this property are: "INTEGER", "LONG", "FLOAT", "STRING", "TIMESTAMP", "DATE", "CLOB", "TAG_REF", "PARSER_REF", "STT_REF", "LOOKUP_REF", "META_FUNCTION_REF", "COMMON_FIELD_REF" - - - :return: The value_data_type of this Attribute. - :rtype: str - """ - return self._value_data_type - - @value_data_type.setter - def value_data_type(self, value_data_type): - """ - Sets the value_data_type of this Attribute. - value data type - - - :param value_data_type: The value_data_type of this Attribute. - :type: str - """ - allowed_values = ["INTEGER", "LONG", "FLOAT", "STRING", "TIMESTAMP", "DATE", "CLOB", "TAG_REF", "PARSER_REF", "STT_REF", "LOOKUP_REF", "META_FUNCTION_REF", "COMMON_FIELD_REF"] - if not value_allowed_none_or_none_sentinel(value_data_type, allowed_values): - raise ValueError( - "Invalid value for `value_data_type`, must be None or one of {0}" - .format(allowed_values) - ) - self._value_data_type = value_data_type - - @property - def value_population_priority(self): - """ - Gets the value_population_priority of this Attribute. - value population priority - - Allowed values for this property are: "NONE", "LOW", "HIGH" - - - :return: The value_population_priority of this Attribute. - :rtype: str - """ - return self._value_population_priority - - @value_population_priority.setter - def value_population_priority(self, value_population_priority): - """ - Sets the value_population_priority of this Attribute. - value population priority - - - :param value_population_priority: The value_population_priority of this Attribute. - :type: str - """ - allowed_values = ["NONE", "LOW", "HIGH"] - if not value_allowed_none_or_none_sentinel(value_population_priority, allowed_values): - raise ValueError( - "Invalid value for `value_population_priority`, must be None or one of {0}" - .format(allowed_values) - ) - self._value_population_priority = value_population_priority - - 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/log_analytics/models/create_namespace_details.py b/src/oci/log_analytics/models/create_namespace_details.py deleted file mode 100644 index 2f879cfece..0000000000 --- a/src/oci/log_analytics/models/create_namespace_details.py +++ /dev/null @@ -1,70 +0,0 @@ -# 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. - - -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 CreateNamespaceDetails(object): - """ - Onboard a tenancy request parameter in Logan Analytics application - """ - - def __init__(self, **kwargs): - """ - Initializes a new CreateNamespaceDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param compartment_id: - The value to assign to the compartment_id property of this CreateNamespaceDetails. - :type compartment_id: str - - """ - self.swagger_types = { - 'compartment_id': 'str' - } - - self.attribute_map = { - 'compartment_id': 'compartmentId' - } - - self._compartment_id = None - - @property - def compartment_id(self): - """ - **[Required]** Gets the compartment_id of this CreateNamespaceDetails. - Tenancy ID - - - :return: The compartment_id of this CreateNamespaceDetails. - :rtype: str - """ - return self._compartment_id - - @compartment_id.setter - def compartment_id(self, compartment_id): - """ - Sets the compartment_id of this CreateNamespaceDetails. - Tenancy ID - - - :param compartment_id: The compartment_id of this CreateNamespaceDetails. - :type: str - """ - self._compartment_id = compartment_id - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/log_analytics/models/field_map.py b/src/oci/log_analytics/models/field_map.py deleted file mode 100644 index 442672a71a..0000000000 --- a/src/oci/log_analytics/models/field_map.py +++ /dev/null @@ -1,101 +0,0 @@ -# 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. - - -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 FieldMap(object): - """ - FieldMap - """ - - def __init__(self, **kwargs): - """ - Initializes a new FieldMap object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param lookup_field: - The value to assign to the lookup_field property of this FieldMap. - :type lookup_field: str - - :param maps_to: - The value to assign to the maps_to property of this FieldMap. - :type maps_to: str - - """ - self.swagger_types = { - 'lookup_field': 'str', - 'maps_to': 'str' - } - - self.attribute_map = { - 'lookup_field': 'lookupField', - 'maps_to': 'mapsTo' - } - - self._lookup_field = None - self._maps_to = None - - @property - def lookup_field(self): - """ - Gets the lookup_field of this FieldMap. - loopup field - - - :return: The lookup_field of this FieldMap. - :rtype: str - """ - return self._lookup_field - - @lookup_field.setter - def lookup_field(self, lookup_field): - """ - Sets the lookup_field of this FieldMap. - loopup field - - - :param lookup_field: The lookup_field of this FieldMap. - :type: str - """ - self._lookup_field = lookup_field - - @property - def maps_to(self): - """ - Gets the maps_to of this FieldMap. - maps to - - - :return: The maps_to of this FieldMap. - :rtype: str - """ - return self._maps_to - - @maps_to.setter - def maps_to(self, maps_to): - """ - Sets the maps_to of this FieldMap. - maps to - - - :param maps_to: The maps_to of this FieldMap. - :type: str - """ - self._maps_to = maps_to - - 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/log_analytics/models/generate_agent_object_name_details.py b/src/oci/log_analytics/models/generate_agent_object_name_details.py deleted file mode 100644 index cad0944747..0000000000 --- a/src/oci/log_analytics/models/generate_agent_object_name_details.py +++ /dev/null @@ -1,163 +0,0 @@ -# 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. - - -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 GenerateAgentObjectNameDetails(object): - """ - Generate agent upload name for the given properties - """ - - def __init__(self, **kwargs): - """ - Initializes a new GenerateAgentObjectNameDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param log_group_id: - The value to assign to the log_group_id property of this GenerateAgentObjectNameDetails. - :type log_group_id: str - - :param unique_id: - The value to assign to the unique_id property of this GenerateAgentObjectNameDetails. - :type unique_id: str - - :param meta_properties: - The value to assign to the meta_properties property of this GenerateAgentObjectNameDetails. - :type meta_properties: str - - :param time_created: - The value to assign to the time_created property of this GenerateAgentObjectNameDetails. - :type time_created: datetime - - """ - self.swagger_types = { - 'log_group_id': 'str', - 'unique_id': 'str', - 'meta_properties': 'str', - 'time_created': 'datetime' - } - - self.attribute_map = { - 'log_group_id': 'logGroupId', - 'unique_id': 'uniqueId', - 'meta_properties': 'metaProperties', - 'time_created': 'timeCreated' - } - - self._log_group_id = None - self._unique_id = None - self._meta_properties = None - self._time_created = None - - @property - def log_group_id(self): - """ - **[Required]** Gets the log_group_id of this GenerateAgentObjectNameDetails. - Log group OCID - - - :return: The log_group_id of this GenerateAgentObjectNameDetails. - :rtype: str - """ - return self._log_group_id - - @log_group_id.setter - def log_group_id(self, log_group_id): - """ - Sets the log_group_id of this GenerateAgentObjectNameDetails. - Log group OCID - - - :param log_group_id: The log_group_id of this GenerateAgentObjectNameDetails. - :type: str - """ - self._log_group_id = log_group_id - - @property - def unique_id(self): - """ - **[Required]** Gets the unique_id of this GenerateAgentObjectNameDetails. - Internal identifier used to uniquely identify the agent upload request - - - :return: The unique_id of this GenerateAgentObjectNameDetails. - :rtype: str - """ - return self._unique_id - - @unique_id.setter - def unique_id(self, unique_id): - """ - Sets the unique_id of this GenerateAgentObjectNameDetails. - Internal identifier used to uniquely identify the agent upload request - - - :param unique_id: The unique_id of this GenerateAgentObjectNameDetails. - :type: str - """ - self._unique_id = unique_id - - @property - def meta_properties(self): - """ - **[Required]** Gets the meta_properties of this GenerateAgentObjectNameDetails. - Metadata associated with the upload used during processing - - - :return: The meta_properties of this GenerateAgentObjectNameDetails. - :rtype: str - """ - return self._meta_properties - - @meta_properties.setter - def meta_properties(self, meta_properties): - """ - Sets the meta_properties of this GenerateAgentObjectNameDetails. - Metadata associated with the upload used during processing - - - :param meta_properties: The meta_properties of this GenerateAgentObjectNameDetails. - :type: str - """ - self._meta_properties = meta_properties - - @property - def time_created(self): - """ - **[Required]** Gets the time_created of this GenerateAgentObjectNameDetails. - The time when this upload is created. An RFC3339 formatted datetime string - - - :return: The time_created of this GenerateAgentObjectNameDetails. - :rtype: datetime - """ - return self._time_created - - @time_created.setter - def time_created(self, time_created): - """ - Sets the time_created of this GenerateAgentObjectNameDetails. - The time when this upload is created. An RFC3339 formatted datetime string - - - :param time_created: The time_created of this GenerateAgentObjectNameDetails. - :type: datetime - """ - self._time_created = time_created - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/log_analytics/models/log_analytics.py b/src/oci/log_analytics/models/log_analytics.py deleted file mode 100644 index c45815b94b..0000000000 --- a/src/oci/log_analytics/models/log_analytics.py +++ /dev/null @@ -1,370 +0,0 @@ -# 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. - - -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 LogAnalytics(object): - """ - Description of LogAnalytics. - """ - - #: A constant which can be used with the lifecycle_state property of a LogAnalytics. - #: This constant has a value of "ACTIVE" - LIFECYCLE_STATE_ACTIVE = "ACTIVE" - - #: A constant which can be used with the lifecycle_state property of a LogAnalytics. - #: This constant has a value of "DELETED" - LIFECYCLE_STATE_DELETED = "DELETED" - - def __init__(self, **kwargs): - """ - Initializes a new LogAnalytics 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 LogAnalytics. - :type id: str - - :param display_name: - The value to assign to the display_name property of this LogAnalytics. - :type display_name: str - - :param compartment_id: - The value to assign to the compartment_id property of this LogAnalytics. - :type compartment_id: str - - :param log_analytics_type: - The value to assign to the log_analytics_type property of this LogAnalytics. - :type log_analytics_type: str - - :param time_created: - The value to assign to the time_created property of this LogAnalytics. - :type time_created: datetime - - :param time_updated: - The value to assign to the time_updated property of this LogAnalytics. - :type time_updated: datetime - - :param lifecycle_state: - The value to assign to the lifecycle_state property of this LogAnalytics. - Allowed values for this property are: "ACTIVE", "DELETED" - :type lifecycle_state: str - - :param lifecyle_details: - The value to assign to the lifecyle_details property of this LogAnalytics. - :type lifecyle_details: str - - :param freeform_tags: - The value to assign to the freeform_tags property of this LogAnalytics. - :type freeform_tags: dict(str, str) - - :param defined_tags: - The value to assign to the defined_tags property of this LogAnalytics. - :type defined_tags: dict(str, dict(str, object)) - - """ - self.swagger_types = { - 'id': 'str', - 'display_name': 'str', - 'compartment_id': 'str', - 'log_analytics_type': 'str', - 'time_created': 'datetime', - 'time_updated': 'datetime', - 'lifecycle_state': 'str', - 'lifecyle_details': 'str', - 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' - } - - self.attribute_map = { - 'id': 'id', - 'display_name': 'displayName', - 'compartment_id': 'compartmentId', - 'log_analytics_type': 'logAnalyticsType', - 'time_created': 'timeCreated', - 'time_updated': 'timeUpdated', - 'lifecycle_state': 'lifecycleState', - 'lifecyle_details': 'lifecyleDetails', - 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' - } - - self._id = None - self._display_name = None - self._compartment_id = None - self._log_analytics_type = None - self._time_created = None - self._time_updated = None - self._lifecycle_state = None - self._lifecyle_details = None - self._freeform_tags = None - self._defined_tags = None - - @property - def id(self): - """ - **[Required]** Gets the id of this LogAnalytics. - Unique identifier that is immutable on creation - - - :return: The id of this LogAnalytics. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this LogAnalytics. - Unique identifier that is immutable on creation - - - :param id: The id of this LogAnalytics. - :type: str - """ - self._id = id - - @property - def display_name(self): - """ - Gets the display_name of this LogAnalytics. - LogAnalytics Identifier, can be renamed - - - :return: The display_name of this LogAnalytics. - :rtype: str - """ - return self._display_name - - @display_name.setter - def display_name(self, display_name): - """ - Sets the display_name of this LogAnalytics. - LogAnalytics Identifier, can be renamed - - - :param display_name: The display_name of this LogAnalytics. - :type: str - """ - self._display_name = display_name - - @property - def compartment_id(self): - """ - **[Required]** Gets the compartment_id of this LogAnalytics. - Compartment Identifier - - - :return: The compartment_id of this LogAnalytics. - :rtype: str - """ - return self._compartment_id - - @compartment_id.setter - def compartment_id(self, compartment_id): - """ - Sets the compartment_id of this LogAnalytics. - Compartment Identifier - - - :param compartment_id: The compartment_id of this LogAnalytics. - :type: str - """ - self._compartment_id = compartment_id - - @property - def log_analytics_type(self): - """ - **[Required]** Gets the log_analytics_type of this LogAnalytics. - Type of the LogAnalytics. - - - :return: The log_analytics_type of this LogAnalytics. - :rtype: str - """ - return self._log_analytics_type - - @log_analytics_type.setter - def log_analytics_type(self, log_analytics_type): - """ - Sets the log_analytics_type of this LogAnalytics. - Type of the LogAnalytics. - - - :param log_analytics_type: The log_analytics_type of this LogAnalytics. - :type: str - """ - self._log_analytics_type = log_analytics_type - - @property - def time_created(self): - """ - Gets the time_created of this LogAnalytics. - The time the the LogAnalytics was created. An RFC3339 formatted datetime string - - - :return: The time_created of this LogAnalytics. - :rtype: datetime - """ - return self._time_created - - @time_created.setter - def time_created(self, time_created): - """ - Sets the time_created of this LogAnalytics. - The time the the LogAnalytics was created. An RFC3339 formatted datetime string - - - :param time_created: The time_created of this LogAnalytics. - :type: datetime - """ - self._time_created = time_created - - @property - def time_updated(self): - """ - Gets the time_updated of this LogAnalytics. - The time the LogAnalytics was updated. An RFC3339 formatted datetime string - - - :return: The time_updated of this LogAnalytics. - :rtype: datetime - """ - return self._time_updated - - @time_updated.setter - def time_updated(self, time_updated): - """ - Sets the time_updated of this LogAnalytics. - The time the LogAnalytics was updated. An RFC3339 formatted datetime string - - - :param time_updated: The time_updated of this LogAnalytics. - :type: datetime - """ - self._time_updated = time_updated - - @property - def lifecycle_state(self): - """ - Gets the lifecycle_state of this LogAnalytics. - The current state of the LogAnalytics. - - Allowed values for this property are: "ACTIVE", "DELETED" - - - :return: The lifecycle_state of this LogAnalytics. - :rtype: str - """ - return self._lifecycle_state - - @lifecycle_state.setter - def lifecycle_state(self, lifecycle_state): - """ - Sets the lifecycle_state of this LogAnalytics. - The current state of the LogAnalytics. - - - :param lifecycle_state: The lifecycle_state of this LogAnalytics. - :type: str - """ - allowed_values = ["ACTIVE", "DELETED"] - if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): - raise ValueError( - "Invalid value for `lifecycle_state`, must be None or one of {0}" - .format(allowed_values) - ) - self._lifecycle_state = lifecycle_state - - @property - def lifecyle_details(self): - """ - Gets the lifecyle_details of this LogAnalytics. - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. - - - :return: The lifecyle_details of this LogAnalytics. - :rtype: str - """ - return self._lifecyle_details - - @lifecyle_details.setter - def lifecyle_details(self, lifecyle_details): - """ - Sets the lifecyle_details of this LogAnalytics. - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. - - - :param lifecyle_details: The lifecyle_details of this LogAnalytics. - :type: str - """ - self._lifecyle_details = lifecyle_details - - @property - def freeform_tags(self): - """ - Gets the freeform_tags of this LogAnalytics. - 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 LogAnalytics. - :rtype: dict(str, str) - """ - return self._freeform_tags - - @freeform_tags.setter - def freeform_tags(self, freeform_tags): - """ - Sets the freeform_tags of this LogAnalytics. - 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 LogAnalytics. - :type: dict(str, str) - """ - self._freeform_tags = freeform_tags - - @property - def defined_tags(self): - """ - Gets the defined_tags of this LogAnalytics. - 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 LogAnalytics. - :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 LogAnalytics. - 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 LogAnalytics. - :type: dict(str, dict(str, object)) - """ - self._defined_tags = defined_tags - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/log_analytics/models/log_analytics_collection_warning.py b/src/oci/log_analytics/models/log_analytics_collection_warning.py deleted file mode 100644 index 0c12fc532f..0000000000 --- a/src/oci/log_analytics/models/log_analytics_collection_warning.py +++ /dev/null @@ -1,70 +0,0 @@ -# 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. - - -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 LogAnalyticsCollectionWarning(object): - """ - Defines the resource kind for collection warning. - """ - - def __init__(self, **kwargs): - """ - Initializes a new LogAnalyticsCollectionWarning 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 LogAnalyticsCollectionWarning. - :type id: str - - """ - self.swagger_types = { - 'id': 'str' - } - - self.attribute_map = { - 'id': 'id' - } - - self._id = None - - @property - def id(self): - """ - Gets the id of this LogAnalyticsCollectionWarning. - The id of the collection warning - - - :return: The id of this LogAnalyticsCollectionWarning. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this LogAnalyticsCollectionWarning. - The id of the collection warning - - - :param id: The id of this LogAnalyticsCollectionWarning. - :type: str - """ - self._id = id - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/log_analytics/models/log_analytics_summary.py b/src/oci/log_analytics/models/log_analytics_summary.py deleted file mode 100644 index e30a1bf954..0000000000 --- a/src/oci/log_analytics/models/log_analytics_summary.py +++ /dev/null @@ -1,304 +0,0 @@ -# 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. - - -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 LogAnalyticsSummary(object): - """ - Summary of the LogAnalytics. - """ - - #: A constant which can be used with the lifecycle_state property of a LogAnalyticsSummary. - #: This constant has a value of "ACTIVE" - LIFECYCLE_STATE_ACTIVE = "ACTIVE" - - #: A constant which can be used with the lifecycle_state property of a LogAnalyticsSummary. - #: This constant has a value of "DELETED" - LIFECYCLE_STATE_DELETED = "DELETED" - - def __init__(self, **kwargs): - """ - Initializes a new LogAnalyticsSummary 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 LogAnalyticsSummary. - :type id: str - - :param display_name: - The value to assign to the display_name property of this LogAnalyticsSummary. - :type display_name: str - - :param compartment_id: - The value to assign to the compartment_id property of this LogAnalyticsSummary. - :type compartment_id: str - - :param log_analytics_type: - The value to assign to the log_analytics_type property of this LogAnalyticsSummary. - :type log_analytics_type: str - - :param time_created: - The value to assign to the time_created property of this LogAnalyticsSummary. - :type time_created: datetime - - :param time_updated: - The value to assign to the time_updated property of this LogAnalyticsSummary. - :type time_updated: datetime - - :param lifecycle_state: - The value to assign to the lifecycle_state property of this LogAnalyticsSummary. - Allowed values for this property are: "ACTIVE", "DELETED" - :type lifecycle_state: str - - :param lifecycle_details: - The value to assign to the lifecycle_details property of this LogAnalyticsSummary. - :type lifecycle_details: str - - """ - self.swagger_types = { - 'id': 'str', - 'display_name': 'str', - 'compartment_id': 'str', - 'log_analytics_type': 'str', - 'time_created': 'datetime', - 'time_updated': 'datetime', - 'lifecycle_state': 'str', - 'lifecycle_details': 'str' - } - - self.attribute_map = { - 'id': 'id', - 'display_name': 'displayName', - 'compartment_id': 'compartmentId', - 'log_analytics_type': 'logAnalyticsType', - 'time_created': 'timeCreated', - 'time_updated': 'timeUpdated', - 'lifecycle_state': 'lifecycleState', - 'lifecycle_details': 'lifecycleDetails' - } - - self._id = None - self._display_name = None - self._compartment_id = None - self._log_analytics_type = None - self._time_created = None - self._time_updated = None - self._lifecycle_state = None - self._lifecycle_details = None - - @property - def id(self): - """ - **[Required]** Gets the id of this LogAnalyticsSummary. - Unique identifier that is immutable on creation - - - :return: The id of this LogAnalyticsSummary. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this LogAnalyticsSummary. - Unique identifier that is immutable on creation - - - :param id: The id of this LogAnalyticsSummary. - :type: str - """ - self._id = id - - @property - def display_name(self): - """ - Gets the display_name of this LogAnalyticsSummary. - LogAnalytics Identifier, can be renamed - - - :return: The display_name of this LogAnalyticsSummary. - :rtype: str - """ - return self._display_name - - @display_name.setter - def display_name(self, display_name): - """ - Sets the display_name of this LogAnalyticsSummary. - LogAnalytics Identifier, can be renamed - - - :param display_name: The display_name of this LogAnalyticsSummary. - :type: str - """ - self._display_name = display_name - - @property - def compartment_id(self): - """ - **[Required]** Gets the compartment_id of this LogAnalyticsSummary. - Compartment Identifier - - - :return: The compartment_id of this LogAnalyticsSummary. - :rtype: str - """ - return self._compartment_id - - @compartment_id.setter - def compartment_id(self, compartment_id): - """ - Sets the compartment_id of this LogAnalyticsSummary. - Compartment Identifier - - - :param compartment_id: The compartment_id of this LogAnalyticsSummary. - :type: str - """ - self._compartment_id = compartment_id - - @property - def log_analytics_type(self): - """ - **[Required]** Gets the log_analytics_type of this LogAnalyticsSummary. - Type of the LogAnalytics. - - - :return: The log_analytics_type of this LogAnalyticsSummary. - :rtype: str - """ - return self._log_analytics_type - - @log_analytics_type.setter - def log_analytics_type(self, log_analytics_type): - """ - Sets the log_analytics_type of this LogAnalyticsSummary. - Type of the LogAnalytics. - - - :param log_analytics_type: The log_analytics_type of this LogAnalyticsSummary. - :type: str - """ - self._log_analytics_type = log_analytics_type - - @property - def time_created(self): - """ - Gets the time_created of this LogAnalyticsSummary. - The time the the LogAnalytics was created. An RFC3339 formatted datetime string - - - :return: The time_created of this LogAnalyticsSummary. - :rtype: datetime - """ - return self._time_created - - @time_created.setter - def time_created(self, time_created): - """ - Sets the time_created of this LogAnalyticsSummary. - The time the the LogAnalytics was created. An RFC3339 formatted datetime string - - - :param time_created: The time_created of this LogAnalyticsSummary. - :type: datetime - """ - self._time_created = time_created - - @property - def time_updated(self): - """ - Gets the time_updated of this LogAnalyticsSummary. - The time the LogAnalytics was updated. An RFC3339 formatted datetime string - - - :return: The time_updated of this LogAnalyticsSummary. - :rtype: datetime - """ - return self._time_updated - - @time_updated.setter - def time_updated(self, time_updated): - """ - Sets the time_updated of this LogAnalyticsSummary. - The time the LogAnalytics was updated. An RFC3339 formatted datetime string - - - :param time_updated: The time_updated of this LogAnalyticsSummary. - :type: datetime - """ - self._time_updated = time_updated - - @property - def lifecycle_state(self): - """ - Gets the lifecycle_state of this LogAnalyticsSummary. - The current state of the LogAnalytics. - - Allowed values for this property are: "ACTIVE", "DELETED" - - - :return: The lifecycle_state of this LogAnalyticsSummary. - :rtype: str - """ - return self._lifecycle_state - - @lifecycle_state.setter - def lifecycle_state(self, lifecycle_state): - """ - Sets the lifecycle_state of this LogAnalyticsSummary. - The current state of the LogAnalytics. - - - :param lifecycle_state: The lifecycle_state of this LogAnalyticsSummary. - :type: str - """ - allowed_values = ["ACTIVE", "DELETED"] - if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): - raise ValueError( - "Invalid value for `lifecycle_state`, must be None or one of {0}" - .format(allowed_values) - ) - self._lifecycle_state = lifecycle_state - - @property - def lifecycle_details(self): - """ - Gets the lifecycle_details of this LogAnalyticsSummary. - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. - - - :return: The lifecycle_details of this LogAnalyticsSummary. - :rtype: str - """ - return self._lifecycle_details - - @lifecycle_details.setter - def lifecycle_details(self, lifecycle_details): - """ - Sets the lifecycle_details of this LogAnalyticsSummary. - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. - - - :param lifecycle_details: The lifecycle_details of this LogAnalyticsSummary. - :type: str - """ - self._lifecycle_details = lifecycle_details - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/log_analytics/models/out_of_box_entity_type_details.py b/src/oci/log_analytics/models/out_of_box_entity_type_details.py deleted file mode 100644 index 3afdc4b950..0000000000 --- a/src/oci/log_analytics/models/out_of_box_entity_type_details.py +++ /dev/null @@ -1,211 +0,0 @@ -# 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. - - -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 OutOfBoxEntityTypeDetails(object): - """ - A Single Entity Type Definition - """ - - #: A constant which can be used with the cloud_type property of a OutOfBoxEntityTypeDetails. - #: This constant has a value of "CLOUD" - CLOUD_TYPE_CLOUD = "CLOUD" - - #: A constant which can be used with the cloud_type property of a OutOfBoxEntityTypeDetails. - #: This constant has a value of "NON_CLOUD" - CLOUD_TYPE_NON_CLOUD = "NON_CLOUD" - - def __init__(self, **kwargs): - """ - Initializes a new OutOfBoxEntityTypeDetails 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 OutOfBoxEntityTypeDetails. - :type name: str - - :param internal_name: - The value to assign to the internal_name property of this OutOfBoxEntityTypeDetails. - :type internal_name: str - - :param category: - The value to assign to the category property of this OutOfBoxEntityTypeDetails. - :type category: str - - :param cloud_type: - The value to assign to the cloud_type property of this OutOfBoxEntityTypeDetails. - Allowed values for this property are: "CLOUD", "NON_CLOUD" - :type cloud_type: str - - :param properties: - The value to assign to the properties property of this OutOfBoxEntityTypeDetails. - :type properties: list[EntityTypeProperty] - - """ - self.swagger_types = { - 'name': 'str', - 'internal_name': 'str', - 'category': 'str', - 'cloud_type': 'str', - 'properties': 'list[EntityTypeProperty]' - } - - self.attribute_map = { - 'name': 'name', - 'internal_name': 'internalName', - 'category': 'category', - 'cloud_type': 'cloudType', - 'properties': 'properties' - } - - self._name = None - self._internal_name = None - self._category = None - self._cloud_type = None - self._properties = None - - @property - def name(self): - """ - **[Required]** Gets the name of this OutOfBoxEntityTypeDetails. - Log analytics entity type name. - - - :return: The name of this OutOfBoxEntityTypeDetails. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this OutOfBoxEntityTypeDetails. - Log analytics entity type name. - - - :param name: The name of this OutOfBoxEntityTypeDetails. - :type: str - """ - self._name = name - - @property - def internal_name(self): - """ - **[Required]** Gets the internal_name of this OutOfBoxEntityTypeDetails. - Internal name for the log analytics entity type. - - - :return: The internal_name of this OutOfBoxEntityTypeDetails. - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """ - Sets the internal_name of this OutOfBoxEntityTypeDetails. - Internal name for the log analytics entity type. - - - :param internal_name: The internal_name of this OutOfBoxEntityTypeDetails. - :type: str - """ - self._internal_name = internal_name - - @property - def category(self): - """ - **[Required]** Gets the category of this OutOfBoxEntityTypeDetails. - Log analytics entity type category. Category will be used for grouping and filtering. - - - :return: The category of this OutOfBoxEntityTypeDetails. - :rtype: str - """ - return self._category - - @category.setter - def category(self, category): - """ - Sets the category of this OutOfBoxEntityTypeDetails. - Log analytics entity type category. Category will be used for grouping and filtering. - - - :param category: The category of this OutOfBoxEntityTypeDetails. - :type: str - """ - self._category = category - - @property - def cloud_type(self): - """ - **[Required]** Gets the cloud_type of this OutOfBoxEntityTypeDetails. - Log analytics entity type group. Supported values: ClOUD, NON_CLOUD. - - Allowed values for this property are: "CLOUD", "NON_CLOUD" - - - :return: The cloud_type of this OutOfBoxEntityTypeDetails. - :rtype: str - """ - return self._cloud_type - - @cloud_type.setter - def cloud_type(self, cloud_type): - """ - Sets the cloud_type of this OutOfBoxEntityTypeDetails. - Log analytics entity type group. Supported values: ClOUD, NON_CLOUD. - - - :param cloud_type: The cloud_type of this OutOfBoxEntityTypeDetails. - :type: str - """ - allowed_values = ["CLOUD", "NON_CLOUD"] - if not value_allowed_none_or_none_sentinel(cloud_type, allowed_values): - raise ValueError( - "Invalid value for `cloud_type`, must be None or one of {0}" - .format(allowed_values) - ) - self._cloud_type = cloud_type - - @property - def properties(self): - """ - Gets the properties of this OutOfBoxEntityTypeDetails. - A Single Entity Type Property Definition - - - :return: The properties of this OutOfBoxEntityTypeDetails. - :rtype: list[EntityTypeProperty] - """ - return self._properties - - @properties.setter - def properties(self, properties): - """ - Sets the properties of this OutOfBoxEntityTypeDetails. - A Single Entity Type Property Definition - - - :param properties: The properties of this OutOfBoxEntityTypeDetails. - :type: list[EntityTypeProperty] - """ - self._properties = properties - - 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/log_analytics/models/query.py b/src/oci/log_analytics/models/query.py deleted file mode 100644 index 43e074327a..0000000000 --- a/src/oci/log_analytics/models/query.py +++ /dev/null @@ -1,70 +0,0 @@ -# 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. - - -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 Query(object): - """ - Query (search) Resource for authorization usage - """ - - def __init__(self, **kwargs): - """ - Initializes a new Query object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param compartment_id: - The value to assign to the compartment_id property of this Query. - :type compartment_id: str - - """ - self.swagger_types = { - 'compartment_id': 'str' - } - - self.attribute_map = { - 'compartment_id': 'compartmentId' - } - - self._compartment_id = None - - @property - def compartment_id(self): - """ - **[Required]** Gets the compartment_id of this Query. - Tenancy ID - - - :return: The compartment_id of this Query. - :rtype: str - """ - return self._compartment_id - - @compartment_id.setter - def compartment_id(self, compartment_id): - """ - Sets the compartment_id of this Query. - Tenancy ID - - - :param compartment_id: The compartment_id of this Query. - :type: str - """ - self._compartment_id = compartment_id - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/log_analytics/models/query_work_request_resource.py b/src/oci/log_analytics/models/query_work_request_resource.py deleted file mode 100644 index eb8c4df3f5..0000000000 --- a/src/oci/log_analytics/models/query_work_request_resource.py +++ /dev/null @@ -1,70 +0,0 @@ -# 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. - - -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 QueryWorkRequestResource(object): - """ - Query (search) Work Request Resource for authorization usage - """ - - def __init__(self, **kwargs): - """ - Initializes a new QueryWorkRequestResource object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param compartment_id: - The value to assign to the compartment_id property of this QueryWorkRequestResource. - :type compartment_id: str - - """ - self.swagger_types = { - 'compartment_id': 'str' - } - - self.attribute_map = { - 'compartment_id': 'compartmentId' - } - - self._compartment_id = None - - @property - def compartment_id(self): - """ - **[Required]** Gets the compartment_id of this QueryWorkRequestResource. - Tenancy ID - - - :return: The compartment_id of this QueryWorkRequestResource. - :rtype: str - """ - return self._compartment_id - - @compartment_id.setter - def compartment_id(self, compartment_id): - """ - Sets the compartment_id of this QueryWorkRequestResource. - Tenancy ID - - - :param compartment_id: The compartment_id of this QueryWorkRequestResource. - :type: str - """ - self._compartment_id = compartment_id - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/log_analytics/models/register_entity_types_details.py b/src/oci/log_analytics/models/register_entity_types_details.py deleted file mode 100644 index 76a35fa363..0000000000 --- a/src/oci/log_analytics/models/register_entity_types_details.py +++ /dev/null @@ -1,70 +0,0 @@ -# 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. - - -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 RegisterEntityTypesDetails(object): - """ - Entity Types Definition - """ - - def __init__(self, **kwargs): - """ - Initializes a new RegisterEntityTypesDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param entity_types: - The value to assign to the entity_types property of this RegisterEntityTypesDetails. - :type entity_types: list[OutOfBoxEntityTypeDetails] - - """ - self.swagger_types = { - 'entity_types': 'list[OutOfBoxEntityTypeDetails]' - } - - self.attribute_map = { - 'entity_types': 'entityTypes' - } - - self._entity_types = None - - @property - def entity_types(self): - """ - **[Required]** Gets the entity_types of this RegisterEntityTypesDetails. - New Entity Type Create Definition - - - :return: The entity_types of this RegisterEntityTypesDetails. - :rtype: list[OutOfBoxEntityTypeDetails] - """ - return self._entity_types - - @entity_types.setter - def entity_types(self, entity_types): - """ - Sets the entity_types of this RegisterEntityTypesDetails. - New Entity Type Create Definition - - - :param entity_types: The entity_types of this RegisterEntityTypesDetails. - :type: list[OutOfBoxEntityTypeDetails] - """ - self._entity_types = entity_types - - 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/log_analytics/models/service_tenancy.py b/src/oci/log_analytics/models/service_tenancy.py deleted file mode 100644 index 04c4371dcf..0000000000 --- a/src/oci/log_analytics/models/service_tenancy.py +++ /dev/null @@ -1,70 +0,0 @@ -# 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. - - -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 ServiceTenancy(object): - """ - Tenancy where Log Analytics Application belongs to - """ - - def __init__(self, **kwargs): - """ - Initializes a new ServiceTenancy object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param tenancy_id: - The value to assign to the tenancy_id property of this ServiceTenancy. - :type tenancy_id: str - - """ - self.swagger_types = { - 'tenancy_id': 'str' - } - - self.attribute_map = { - 'tenancy_id': 'tenancyId' - } - - self._tenancy_id = None - - @property - def tenancy_id(self): - """ - **[Required]** Gets the tenancy_id of this ServiceTenancy. - Tenancy ID - - - :return: The tenancy_id of this ServiceTenancy. - :rtype: str - """ - return self._tenancy_id - - @tenancy_id.setter - def tenancy_id(self, tenancy_id): - """ - Sets the tenancy_id of this ServiceTenancy. - Tenancy ID - - - :param tenancy_id: The tenancy_id of this ServiceTenancy. - :type: str - """ - self._tenancy_id = tenancy_id - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/log_analytics/models/string_list_details.py b/src/oci/log_analytics/models/string_list_details.py deleted file mode 100644 index b70120ba01..0000000000 --- a/src/oci/log_analytics/models/string_list_details.py +++ /dev/null @@ -1,70 +0,0 @@ -# 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. - - -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 StringListDetails(object): - """ - StringListDetails - """ - - def __init__(self, **kwargs): - """ - Initializes a new StringListDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param list: - The value to assign to the list property of this StringListDetails. - :type list: list[str] - - """ - self.swagger_types = { - 'list': 'list[str]' - } - - self.attribute_map = { - 'list': 'list' - } - - self._list = None - - @property - def list(self): - """ - Gets the list of this StringListDetails. - string list - - - :return: The list of this StringListDetails. - :rtype: list[str] - """ - return self._list - - @list.setter - def list(self, list): - """ - Sets the list of this StringListDetails. - string list - - - :param list: The list of this StringListDetails. - :type: list[str] - """ - self._list = list - - 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/logging/models/log_included_search.py b/src/oci/logging/models/log_included_search.py deleted file mode 100644 index 20af362b14..0000000000 --- a/src/oci/logging/models/log_included_search.py +++ /dev/null @@ -1,307 +0,0 @@ -# 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. - - -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 LogIncludedSearch(object): - """ - A search provided by OCI that serves common customer needs. - """ - - def __init__(self, **kwargs): - """ - Initializes a new LogIncludedSearch 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 LogIncludedSearch. - :type id: str - - :param display_name: - The value to assign to the display_name property of this LogIncludedSearch. - :type display_name: str - - :param time_created: - The value to assign to the time_created property of this LogIncludedSearch. - :type time_created: datetime - - :param time_last_modified: - The value to assign to the time_last_modified property of this LogIncludedSearch. - :type time_last_modified: datetime - - :param description: - The value to assign to the description property of this LogIncludedSearch. - :type description: str - - :param query: - The value to assign to the query property of this LogIncludedSearch. - :type query: str - - :param defined_tags: - The value to assign to the defined_tags property of this LogIncludedSearch. - :type defined_tags: dict(str, dict(str, object)) - - :param freeform_tags: - The value to assign to the freeform_tags property of this LogIncludedSearch. - :type freeform_tags: dict(str, str) - - """ - self.swagger_types = { - 'id': 'str', - 'display_name': 'str', - 'time_created': 'datetime', - 'time_last_modified': 'datetime', - 'description': 'str', - 'query': 'str', - 'defined_tags': 'dict(str, dict(str, object))', - 'freeform_tags': 'dict(str, str)' - } - - self.attribute_map = { - 'id': 'id', - 'display_name': 'displayName', - 'time_created': 'timeCreated', - 'time_last_modified': 'timeLastModified', - 'description': 'description', - 'query': 'query', - 'defined_tags': 'definedTags', - 'freeform_tags': 'freeformTags' - } - - self._id = None - self._display_name = None - self._time_created = None - self._time_last_modified = None - self._description = None - self._query = None - self._defined_tags = None - self._freeform_tags = None - - @property - def id(self): - """ - **[Required]** Gets the id of this LogIncludedSearch. - The OCID of the resource. - - - :return: The id of this LogIncludedSearch. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this LogIncludedSearch. - The OCID of the resource. - - - :param id: The id of this LogIncludedSearch. - :type: str - """ - self._id = id - - @property - def display_name(self): - """ - **[Required]** Gets the display_name of this LogIncludedSearch. - The user-friendly display name. This must be unique within the enclosing resource, - and it's changeable. Avoid entering confidential information. - - - :return: The display_name of this LogIncludedSearch. - :rtype: str - """ - return self._display_name - - @display_name.setter - def display_name(self, display_name): - """ - Sets the display_name of this LogIncludedSearch. - The user-friendly display name. This must be unique within the enclosing resource, - and it's changeable. Avoid entering confidential information. - - - :param display_name: The display_name of this LogIncludedSearch. - :type: str - """ - self._display_name = display_name - - @property - def time_created(self): - """ - Gets the time_created of this LogIncludedSearch. - Time the resource was created. - - - :return: The time_created of this LogIncludedSearch. - :rtype: datetime - """ - return self._time_created - - @time_created.setter - def time_created(self, time_created): - """ - Sets the time_created of this LogIncludedSearch. - Time the resource was created. - - - :param time_created: The time_created of this LogIncludedSearch. - :type: datetime - """ - self._time_created = time_created - - @property - def time_last_modified(self): - """ - Gets the time_last_modified of this LogIncludedSearch. - Time the resource was last modified. - - - :return: The time_last_modified of this LogIncludedSearch. - :rtype: datetime - """ - return self._time_last_modified - - @time_last_modified.setter - def time_last_modified(self, time_last_modified): - """ - Sets the time_last_modified of this LogIncludedSearch. - Time the resource was last modified. - - - :param time_last_modified: The time_last_modified of this LogIncludedSearch. - :type: datetime - """ - self._time_last_modified = time_last_modified - - @property - def description(self): - """ - Gets the description of this LogIncludedSearch. - Description for this resource. - - - :return: The description of this LogIncludedSearch. - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """ - Sets the description of this LogIncludedSearch. - Description for this resource. - - - :param description: The description of this LogIncludedSearch. - :type: str - """ - self._description = description - - @property - def query(self): - """ - **[Required]** Gets the query of this LogIncludedSearch. - The search query that is saved. - - - :return: The query of this LogIncludedSearch. - :rtype: str - """ - return self._query - - @query.setter - def query(self, query): - """ - Sets the query of this LogIncludedSearch. - The search query that is saved. - - - :param query: The query of this LogIncludedSearch. - :type: str - """ - self._query = query - - @property - def defined_tags(self): - """ - Gets the defined_tags of this LogIncludedSearch. - Defined tags for this resource. Each key is predefined and scoped to a - namespace. For more information, see `Resource Tags`__. - - Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` - - __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm - - - :return: The defined_tags of this LogIncludedSearch. - :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 LogIncludedSearch. - Defined tags for this resource. Each key is predefined and scoped to a - namespace. For more information, see `Resource Tags`__. - - Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` - - __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm - - - :param defined_tags: The defined_tags of this LogIncludedSearch. - :type: dict(str, dict(str, object)) - """ - self._defined_tags = defined_tags - - @property - def freeform_tags(self): - """ - Gets the freeform_tags of this LogIncludedSearch. - Free-form tags for this resource. Each tag is a simple key-value pair with no - predefined name, type, or namespace. For more information, see `Resource Tags`__. - Example: `{\"Department\": \"Finance\"}` - - __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm - - - :return: The freeform_tags of this LogIncludedSearch. - :rtype: dict(str, str) - """ - return self._freeform_tags - - @freeform_tags.setter - def freeform_tags(self, freeform_tags): - """ - Sets the freeform_tags of this LogIncludedSearch. - Free-form tags for this resource. Each tag is a simple key-value pair with no - predefined name, type, or namespace. For more information, see `Resource Tags`__. - Example: `{\"Department\": \"Finance\"}` - - __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm - - - :param freeform_tags: The freeform_tags of this LogIncludedSearch. - :type: dict(str, str) - """ - self._freeform_tags = freeform_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/logging/models/log_included_search_summary.py b/src/oci/logging/models/log_included_search_summary.py deleted file mode 100644 index 4c68fe365a..0000000000 --- a/src/oci/logging/models/log_included_search_summary.py +++ /dev/null @@ -1,165 +0,0 @@ -# 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. - - -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 LogIncludedSearchSummary(object): - """ - A summary of what the OCI included search does. - """ - - def __init__(self, **kwargs): - """ - Initializes a new LogIncludedSearchSummary 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 LogIncludedSearchSummary. - :type id: str - - :param display_name: - The value to assign to the display_name property of this LogIncludedSearchSummary. - :type display_name: str - - :param time_created: - The value to assign to the time_created property of this LogIncludedSearchSummary. - :type time_created: datetime - - :param time_last_modified: - The value to assign to the time_last_modified property of this LogIncludedSearchSummary. - :type time_last_modified: datetime - - """ - self.swagger_types = { - 'id': 'str', - 'display_name': 'str', - 'time_created': 'datetime', - 'time_last_modified': 'datetime' - } - - self.attribute_map = { - 'id': 'id', - 'display_name': 'displayName', - 'time_created': 'timeCreated', - 'time_last_modified': 'timeLastModified' - } - - self._id = None - self._display_name = None - self._time_created = None - self._time_last_modified = None - - @property - def id(self): - """ - **[Required]** Gets the id of this LogIncludedSearchSummary. - The OCID of the resource. - - - :return: The id of this LogIncludedSearchSummary. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this LogIncludedSearchSummary. - The OCID of the resource. - - - :param id: The id of this LogIncludedSearchSummary. - :type: str - """ - self._id = id - - @property - def display_name(self): - """ - **[Required]** Gets the display_name of this LogIncludedSearchSummary. - The user-friendly display name. This must be unique within the enclosing resource, - and it's changeable. Avoid entering confidential information. - - - :return: The display_name of this LogIncludedSearchSummary. - :rtype: str - """ - return self._display_name - - @display_name.setter - def display_name(self, display_name): - """ - Sets the display_name of this LogIncludedSearchSummary. - The user-friendly display name. This must be unique within the enclosing resource, - and it's changeable. Avoid entering confidential information. - - - :param display_name: The display_name of this LogIncludedSearchSummary. - :type: str - """ - self._display_name = display_name - - @property - def time_created(self): - """ - Gets the time_created of this LogIncludedSearchSummary. - Time the resource was created. - - - :return: The time_created of this LogIncludedSearchSummary. - :rtype: datetime - """ - return self._time_created - - @time_created.setter - def time_created(self, time_created): - """ - Sets the time_created of this LogIncludedSearchSummary. - Time the resource was created. - - - :param time_created: The time_created of this LogIncludedSearchSummary. - :type: datetime - """ - self._time_created = time_created - - @property - def time_last_modified(self): - """ - Gets the time_last_modified of this LogIncludedSearchSummary. - Time the resource was last modified. - - - :return: The time_last_modified of this LogIncludedSearchSummary. - :rtype: datetime - """ - return self._time_last_modified - - @time_last_modified.setter - def time_last_modified(self, time_last_modified): - """ - Sets the time_last_modified of this LogIncludedSearchSummary. - Time the resource was last modified. - - - :param time_last_modified: The time_last_modified of this LogIncludedSearchSummary. - :type: datetime - """ - self._time_last_modified = time_last_modified - - 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/logging/models/log_included_search_summary_collection.py b/src/oci/logging/models/log_included_search_summary_collection.py deleted file mode 100644 index c3c7adfc0f..0000000000 --- a/src/oci/logging/models/log_included_search_summary_collection.py +++ /dev/null @@ -1,70 +0,0 @@ -# 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. - - -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 LogIncludedSearchSummaryCollection(object): - """ - A set of LogIncludedSummary - """ - - def __init__(self, **kwargs): - """ - Initializes a new LogIncludedSearchSummaryCollection 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 LogIncludedSearchSummaryCollection. - :type items: list[oci.logging.models.LogIncludedSearchSummary] - - """ - self.swagger_types = { - 'items': 'list[LogIncludedSearchSummary]' - } - - self.attribute_map = { - 'items': 'items' - } - - self._items = None - - @property - def items(self): - """ - **[Required]** Gets the items of this LogIncludedSearchSummaryCollection. - The list of summaries - - - :return: The items of this LogIncludedSearchSummaryCollection. - :rtype: list[oci.logging.models.LogIncludedSearchSummary] - """ - return self._items - - @items.setter - def items(self, items): - """ - Sets the items of this LogIncludedSearchSummaryCollection. - The list of summaries - - - :param items: The items of this LogIncludedSearchSummaryCollection. - :type: list[oci.logging.models.LogIncludedSearchSummary] - """ - 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/media_services/models/media_workflow_job_fact.py b/src/oci/media_services/models/media_workflow_job_fact.py deleted file mode 100644 index da88ec260f..0000000000 --- a/src/oci/media_services/models/media_workflow_job_fact.py +++ /dev/null @@ -1,198 +0,0 @@ -# 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: 20211101 - - -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 MediaWorkflowJobFact(object): - """ - One fact of a list of facts associated to a MediaWorkflowJob that presents a point-in-time - snapshot of the resources, data and events that were composed to generate a runnable job. - This information will be used internally to trouble-shoot problematic workflows or jobs. - """ - - def __init__(self, **kwargs): - """ - Initializes a new MediaWorkflowJobFact object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param media_workflow_job_id: - The value to assign to the media_workflow_job_id property of this MediaWorkflowJobFact. - :type media_workflow_job_id: str - - :param key: - The value to assign to the key property of this MediaWorkflowJobFact. - :type key: int - - :param name: - The value to assign to the name property of this MediaWorkflowJobFact. - :type name: str - - :param type: - The value to assign to the type property of this MediaWorkflowJobFact. - :type type: str - - :param detail: - The value to assign to the detail property of this MediaWorkflowJobFact. - :type detail: dict(str, object) - - """ - self.swagger_types = { - 'media_workflow_job_id': 'str', - 'key': 'int', - 'name': 'str', - 'type': 'str', - 'detail': 'dict(str, object)' - } - - self.attribute_map = { - 'media_workflow_job_id': 'mediaWorkflowJobId', - 'key': 'key', - 'name': 'name', - 'type': 'type', - 'detail': 'detail' - } - - self._media_workflow_job_id = None - self._key = None - self._name = None - self._type = None - self._detail = None - - @property - def media_workflow_job_id(self): - """ - **[Required]** Gets the media_workflow_job_id of this MediaWorkflowJobFact. - Reference to the parent job. - - - :return: The media_workflow_job_id of this MediaWorkflowJobFact. - :rtype: str - """ - return self._media_workflow_job_id - - @media_workflow_job_id.setter - def media_workflow_job_id(self, media_workflow_job_id): - """ - Sets the media_workflow_job_id of this MediaWorkflowJobFact. - Reference to the parent job. - - - :param media_workflow_job_id: The media_workflow_job_id of this MediaWorkflowJobFact. - :type: str - """ - self._media_workflow_job_id = media_workflow_job_id - - @property - def key(self): - """ - **[Required]** Gets the key of this MediaWorkflowJobFact. - System generated serial number to uniquely identify a detail in order within a MediaWorkflowJob. - - - :return: The key of this MediaWorkflowJobFact. - :rtype: int - """ - return self._key - - @key.setter - def key(self, key): - """ - Sets the key of this MediaWorkflowJobFact. - System generated serial number to uniquely identify a detail in order within a MediaWorkflowJob. - - - :param key: The key of this MediaWorkflowJobFact. - :type: int - """ - self._key = key - - @property - def name(self): - """ - **[Required]** Gets the name of this MediaWorkflowJobFact. - Unique name. It is read-only and generated for the fact. - - - :return: The name of this MediaWorkflowJobFact. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this MediaWorkflowJobFact. - Unique name. It is read-only and generated for the fact. - - - :param name: The name of this MediaWorkflowJobFact. - :type: str - """ - self._name = name - - @property - def type(self): - """ - **[Required]** Gets the type of this MediaWorkflowJobFact. - The type of information contained in this detail. - - - :return: The type of this MediaWorkflowJobFact. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this MediaWorkflowJobFact. - The type of information contained in this detail. - - - :param type: The type of this MediaWorkflowJobFact. - :type: str - """ - self._type = type - - @property - def detail(self): - """ - **[Required]** Gets the detail of this MediaWorkflowJobFact. - The body of the detail captured as JSON. - - - :return: The detail of this MediaWorkflowJobFact. - :rtype: dict(str, object) - """ - return self._detail - - @detail.setter - def detail(self, detail): - """ - Sets the detail of this MediaWorkflowJobFact. - The body of the detail captured as JSON. - - - :param detail: The detail of this MediaWorkflowJobFact. - :type: dict(str, object) - """ - self._detail = detail - - 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/media_services/models/media_workflow_job_fact_collection.py b/src/oci/media_services/models/media_workflow_job_fact_collection.py deleted file mode 100644 index a6fdbbcd27..0000000000 --- a/src/oci/media_services/models/media_workflow_job_fact_collection.py +++ /dev/null @@ -1,72 +0,0 @@ -# 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: 20211101 - - -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 MediaWorkflowJobFactCollection(object): - """ - Results of a jobDetail search, a list of MediaWorkflowJobFacts items and metadata of the search. - """ - - def __init__(self, **kwargs): - """ - Initializes a new MediaWorkflowJobFactCollection 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 MediaWorkflowJobFactCollection. - :type items: list[oci.media_services.models.MediaWorkflowJobFactSummary] - - """ - self.swagger_types = { - 'items': 'list[MediaWorkflowJobFactSummary]' - } - - self.attribute_map = { - 'items': 'items' - } - - self._items = None - - @property - def items(self): - """ - **[Required]** Gets the items of this MediaWorkflowJobFactCollection. - List of mediaWorkflowJob items. - - - :return: The items of this MediaWorkflowJobFactCollection. - :rtype: list[oci.media_services.models.MediaWorkflowJobFactSummary] - """ - return self._items - - @items.setter - def items(self, items): - """ - Sets the items of this MediaWorkflowJobFactCollection. - List of mediaWorkflowJob items. - - - :param items: The items of this MediaWorkflowJobFactCollection. - :type: list[oci.media_services.models.MediaWorkflowJobFactSummary] - """ - 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/media_services/models/media_workflow_job_fact_summary.py b/src/oci/media_services/models/media_workflow_job_fact_summary.py deleted file mode 100644 index 6ac99fdc16..0000000000 --- a/src/oci/media_services/models/media_workflow_job_fact_summary.py +++ /dev/null @@ -1,165 +0,0 @@ -# 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: 20211101 - - -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 MediaWorkflowJobFactSummary(object): - """ - Summary of a MediaWorkflowJobFact - """ - - def __init__(self, **kwargs): - """ - Initializes a new MediaWorkflowJobFactSummary object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param media_workflow_job_id: - The value to assign to the media_workflow_job_id property of this MediaWorkflowJobFactSummary. - :type media_workflow_job_id: str - - :param key: - The value to assign to the key property of this MediaWorkflowJobFactSummary. - :type key: int - - :param name: - The value to assign to the name property of this MediaWorkflowJobFactSummary. - :type name: str - - :param type: - The value to assign to the type property of this MediaWorkflowJobFactSummary. - :type type: str - - """ - self.swagger_types = { - 'media_workflow_job_id': 'str', - 'key': 'int', - 'name': 'str', - 'type': 'str' - } - - self.attribute_map = { - 'media_workflow_job_id': 'mediaWorkflowJobId', - 'key': 'key', - 'name': 'name', - 'type': 'type' - } - - self._media_workflow_job_id = None - self._key = None - self._name = None - self._type = None - - @property - def media_workflow_job_id(self): - """ - **[Required]** Gets the media_workflow_job_id of this MediaWorkflowJobFactSummary. - Reference to the parent job. - - - :return: The media_workflow_job_id of this MediaWorkflowJobFactSummary. - :rtype: str - """ - return self._media_workflow_job_id - - @media_workflow_job_id.setter - def media_workflow_job_id(self, media_workflow_job_id): - """ - Sets the media_workflow_job_id of this MediaWorkflowJobFactSummary. - Reference to the parent job. - - - :param media_workflow_job_id: The media_workflow_job_id of this MediaWorkflowJobFactSummary. - :type: str - """ - self._media_workflow_job_id = media_workflow_job_id - - @property - def key(self): - """ - **[Required]** Gets the key of this MediaWorkflowJobFactSummary. - System generated serial number to uniquely identify a detail in order within a MediaWorkflowJob. - - - :return: The key of this MediaWorkflowJobFactSummary. - :rtype: int - """ - return self._key - - @key.setter - def key(self, key): - """ - Sets the key of this MediaWorkflowJobFactSummary. - System generated serial number to uniquely identify a detail in order within a MediaWorkflowJob. - - - :param key: The key of this MediaWorkflowJobFactSummary. - :type: int - """ - self._key = key - - @property - def name(self): - """ - **[Required]** Gets the name of this MediaWorkflowJobFactSummary. - Unique name. It is read-only and generated for the fact. - - - :return: The name of this MediaWorkflowJobFactSummary. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this MediaWorkflowJobFactSummary. - Unique name. It is read-only and generated for the fact. - - - :param name: The name of this MediaWorkflowJobFactSummary. - :type: str - """ - self._name = name - - @property - def type(self): - """ - **[Required]** Gets the type of this MediaWorkflowJobFactSummary. - The type of information contained in this detail. - - - :return: The type of this MediaWorkflowJobFactSummary. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this MediaWorkflowJobFactSummary. - The type of information contained in this detail. - - - :param type: The type of this MediaWorkflowJobFactSummary. - :type: str - """ - self._type = type - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/mysql/models/add_analytics_cluster_details.py b/src/oci/mysql/models/add_analytics_cluster_details.py deleted file mode 100644 index 1199adad5f..0000000000 --- a/src/oci/mysql/models/add_analytics_cluster_details.py +++ /dev/null @@ -1,108 +0,0 @@ -# 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: 20190415 - - -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 AddAnalyticsClusterDetails(object): - """ - DEPRECATED -- please use HeatWave API instead. - Details required to add an Analytics Cluster. - """ - - def __init__(self, **kwargs): - """ - Initializes a new AddAnalyticsClusterDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param shape_name: - The value to assign to the shape_name property of this AddAnalyticsClusterDetails. - :type shape_name: str - - :param cluster_size: - The value to assign to the cluster_size property of this AddAnalyticsClusterDetails. - :type cluster_size: int - - """ - self.swagger_types = { - 'shape_name': 'str', - 'cluster_size': 'int' - } - - self.attribute_map = { - 'shape_name': 'shapeName', - 'cluster_size': 'clusterSize' - } - - self._shape_name = None - self._cluster_size = None - - @property - def shape_name(self): - """ - **[Required]** Gets the shape_name of this AddAnalyticsClusterDetails. - The shape determines resources to allocate to the Analytics - Cluster nodes - CPU cores, memory. - - - :return: The shape_name of this AddAnalyticsClusterDetails. - :rtype: str - """ - return self._shape_name - - @shape_name.setter - def shape_name(self, shape_name): - """ - Sets the shape_name of this AddAnalyticsClusterDetails. - The shape determines resources to allocate to the Analytics - Cluster nodes - CPU cores, memory. - - - :param shape_name: The shape_name of this AddAnalyticsClusterDetails. - :type: str - """ - self._shape_name = shape_name - - @property - def cluster_size(self): - """ - **[Required]** Gets the cluster_size of this AddAnalyticsClusterDetails. - The number of analytics-processing nodes provisioned for the - Analytics Cluster. - - - :return: The cluster_size of this AddAnalyticsClusterDetails. - :rtype: int - """ - return self._cluster_size - - @cluster_size.setter - def cluster_size(self, cluster_size): - """ - Sets the cluster_size of this AddAnalyticsClusterDetails. - The number of analytics-processing nodes provisioned for the - Analytics Cluster. - - - :param cluster_size: The cluster_size of this AddAnalyticsClusterDetails. - :type: int - """ - self._cluster_size = cluster_size - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/mysql/models/analytics_cluster.py b/src/oci/mysql/models/analytics_cluster.py deleted file mode 100644 index 13f9ffd926..0000000000 --- a/src/oci/mysql/models/analytics_cluster.py +++ /dev/null @@ -1,338 +0,0 @@ -# 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: 20190415 - - -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 AnalyticsCluster(object): - """ - DEPRECATED -- please use HeatWave API instead. - An Analytics Cluster is a database accelerator for a DB System. - """ - - #: A constant which can be used with the lifecycle_state property of a AnalyticsCluster. - #: This constant has a value of "CREATING" - LIFECYCLE_STATE_CREATING = "CREATING" - - #: A constant which can be used with the lifecycle_state property of a AnalyticsCluster. - #: This constant has a value of "ACTIVE" - LIFECYCLE_STATE_ACTIVE = "ACTIVE" - - #: A constant which can be used with the lifecycle_state property of a AnalyticsCluster. - #: This constant has a value of "INACTIVE" - LIFECYCLE_STATE_INACTIVE = "INACTIVE" - - #: A constant which can be used with the lifecycle_state property of a AnalyticsCluster. - #: This constant has a value of "UPDATING" - LIFECYCLE_STATE_UPDATING = "UPDATING" - - #: A constant which can be used with the lifecycle_state property of a AnalyticsCluster. - #: This constant has a value of "DELETING" - LIFECYCLE_STATE_DELETING = "DELETING" - - #: A constant which can be used with the lifecycle_state property of a AnalyticsCluster. - #: This constant has a value of "DELETED" - LIFECYCLE_STATE_DELETED = "DELETED" - - #: A constant which can be used with the lifecycle_state property of a AnalyticsCluster. - #: This constant has a value of "FAILED" - LIFECYCLE_STATE_FAILED = "FAILED" - - def __init__(self, **kwargs): - """ - Initializes a new AnalyticsCluster object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param db_system_id: - The value to assign to the db_system_id property of this AnalyticsCluster. - :type db_system_id: str - - :param shape_name: - The value to assign to the shape_name property of this AnalyticsCluster. - :type shape_name: str - - :param cluster_size: - The value to assign to the cluster_size property of this AnalyticsCluster. - :type cluster_size: int - - :param cluster_nodes: - The value to assign to the cluster_nodes property of this AnalyticsCluster. - :type cluster_nodes: list[oci.mysql.models.AnalyticsClusterNode] - - :param lifecycle_state: - The value to assign to the lifecycle_state property of this AnalyticsCluster. - Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. - Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. - :type lifecycle_state: str - - :param lifecycle_details: - The value to assign to the lifecycle_details property of this AnalyticsCluster. - :type lifecycle_details: str - - :param time_created: - The value to assign to the time_created property of this AnalyticsCluster. - :type time_created: datetime - - :param time_updated: - The value to assign to the time_updated property of this AnalyticsCluster. - :type time_updated: datetime - - """ - self.swagger_types = { - 'db_system_id': 'str', - 'shape_name': 'str', - 'cluster_size': 'int', - 'cluster_nodes': 'list[AnalyticsClusterNode]', - 'lifecycle_state': 'str', - 'lifecycle_details': 'str', - 'time_created': 'datetime', - 'time_updated': 'datetime' - } - - self.attribute_map = { - 'db_system_id': 'dbSystemId', - 'shape_name': 'shapeName', - 'cluster_size': 'clusterSize', - 'cluster_nodes': 'clusterNodes', - 'lifecycle_state': 'lifecycleState', - 'lifecycle_details': 'lifecycleDetails', - 'time_created': 'timeCreated', - 'time_updated': 'timeUpdated' - } - - self._db_system_id = None - self._shape_name = None - self._cluster_size = None - self._cluster_nodes = None - self._lifecycle_state = None - self._lifecycle_details = None - self._time_created = None - self._time_updated = None - - @property - def db_system_id(self): - """ - **[Required]** Gets the db_system_id of this AnalyticsCluster. - The OCID of the parent DB System this Analytics Cluster is attached to. - - - :return: The db_system_id of this AnalyticsCluster. - :rtype: str - """ - return self._db_system_id - - @db_system_id.setter - def db_system_id(self, db_system_id): - """ - Sets the db_system_id of this AnalyticsCluster. - The OCID of the parent DB System this Analytics Cluster is attached to. - - - :param db_system_id: The db_system_id of this AnalyticsCluster. - :type: str - """ - self._db_system_id = db_system_id - - @property - def shape_name(self): - """ - **[Required]** Gets the shape_name of this AnalyticsCluster. - The shape determines resources to allocate to the Analytics - Cluster nodes - CPU cores, memory. - - - :return: The shape_name of this AnalyticsCluster. - :rtype: str - """ - return self._shape_name - - @shape_name.setter - def shape_name(self, shape_name): - """ - Sets the shape_name of this AnalyticsCluster. - The shape determines resources to allocate to the Analytics - Cluster nodes - CPU cores, memory. - - - :param shape_name: The shape_name of this AnalyticsCluster. - :type: str - """ - self._shape_name = shape_name - - @property - def cluster_size(self): - """ - **[Required]** Gets the cluster_size of this AnalyticsCluster. - The number of analytics-processing compute instances, of the - specified shape, in the Analytics Cluster. - - - :return: The cluster_size of this AnalyticsCluster. - :rtype: int - """ - return self._cluster_size - - @cluster_size.setter - def cluster_size(self, cluster_size): - """ - Sets the cluster_size of this AnalyticsCluster. - The number of analytics-processing compute instances, of the - specified shape, in the Analytics Cluster. - - - :param cluster_size: The cluster_size of this AnalyticsCluster. - :type: int - """ - self._cluster_size = cluster_size - - @property - def cluster_nodes(self): - """ - **[Required]** Gets the cluster_nodes of this AnalyticsCluster. - An Analytics Cluster Node is a compute host that is part of an Analytics Cluster. - - - :return: The cluster_nodes of this AnalyticsCluster. - :rtype: list[oci.mysql.models.AnalyticsClusterNode] - """ - return self._cluster_nodes - - @cluster_nodes.setter - def cluster_nodes(self, cluster_nodes): - """ - Sets the cluster_nodes of this AnalyticsCluster. - An Analytics Cluster Node is a compute host that is part of an Analytics Cluster. - - - :param cluster_nodes: The cluster_nodes of this AnalyticsCluster. - :type: list[oci.mysql.models.AnalyticsClusterNode] - """ - self._cluster_nodes = cluster_nodes - - @property - def lifecycle_state(self): - """ - **[Required]** Gets the lifecycle_state of this AnalyticsCluster. - The current state of the Analytics Cluster. - - Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. - Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. - - - :return: The lifecycle_state of this AnalyticsCluster. - :rtype: str - """ - return self._lifecycle_state - - @lifecycle_state.setter - def lifecycle_state(self, lifecycle_state): - """ - Sets the lifecycle_state of this AnalyticsCluster. - The current state of the Analytics Cluster. - - - :param lifecycle_state: The lifecycle_state of this AnalyticsCluster. - :type: str - """ - allowed_values = ["CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"] - if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): - lifecycle_state = 'UNKNOWN_ENUM_VALUE' - self._lifecycle_state = lifecycle_state - - @property - def lifecycle_details(self): - """ - Gets the lifecycle_details of this AnalyticsCluster. - Additional information about the current lifecycleState. - - - :return: The lifecycle_details of this AnalyticsCluster. - :rtype: str - """ - return self._lifecycle_details - - @lifecycle_details.setter - def lifecycle_details(self, lifecycle_details): - """ - Sets the lifecycle_details of this AnalyticsCluster. - Additional information about the current lifecycleState. - - - :param lifecycle_details: The lifecycle_details of this AnalyticsCluster. - :type: str - """ - self._lifecycle_details = lifecycle_details - - @property - def time_created(self): - """ - **[Required]** Gets the time_created of this AnalyticsCluster. - The date and time the Analytics Cluster was created, as described by `RFC 3339`__. - - __ https://tools.ietf.org/rfc/rfc3339 - - - :return: The time_created of this AnalyticsCluster. - :rtype: datetime - """ - return self._time_created - - @time_created.setter - def time_created(self, time_created): - """ - Sets the time_created of this AnalyticsCluster. - The date and time the Analytics Cluster was created, as described by `RFC 3339`__. - - __ https://tools.ietf.org/rfc/rfc3339 - - - :param time_created: The time_created of this AnalyticsCluster. - :type: datetime - """ - self._time_created = time_created - - @property - def time_updated(self): - """ - **[Required]** Gets the time_updated of this AnalyticsCluster. - The time the Analytics Cluster was last updated, as described by `RFC 3339`__. - - __ https://tools.ietf.org/rfc/rfc3339 - - - :return: The time_updated of this AnalyticsCluster. - :rtype: datetime - """ - return self._time_updated - - @time_updated.setter - def time_updated(self, time_updated): - """ - Sets the time_updated of this AnalyticsCluster. - The time the Analytics Cluster was last updated, as described by `RFC 3339`__. - - __ https://tools.ietf.org/rfc/rfc3339 - - - :param time_updated: The time_updated of this AnalyticsCluster. - :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/mysql/models/analytics_cluster_memory_estimate.py b/src/oci/mysql/models/analytics_cluster_memory_estimate.py deleted file mode 100644 index 160e82e28c..0000000000 --- a/src/oci/mysql/models/analytics_cluster_memory_estimate.py +++ /dev/null @@ -1,241 +0,0 @@ -# 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: 20190415 - - -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 AnalyticsClusterMemoryEstimate(object): - """ - DEPRECATED -- please use HeatWave API instead. - Analytics Cluster memory estimate - that can be used to determine a suitable Analytics Cluster size. For each MySQL user table the estimated memory - footprint when the table is loaded to the Analytics Cluster memory is returned. - """ - - #: A constant which can be used with the status property of a AnalyticsClusterMemoryEstimate. - #: This constant has a value of "ACCEPTED" - STATUS_ACCEPTED = "ACCEPTED" - - #: A constant which can be used with the status property of a AnalyticsClusterMemoryEstimate. - #: This constant has a value of "IN_PROGRESS" - STATUS_IN_PROGRESS = "IN_PROGRESS" - - #: A constant which can be used with the status property of a AnalyticsClusterMemoryEstimate. - #: This constant has a value of "FAILED" - STATUS_FAILED = "FAILED" - - #: A constant which can be used with the status property of a AnalyticsClusterMemoryEstimate. - #: This constant has a value of "SUCCEEDED" - STATUS_SUCCEEDED = "SUCCEEDED" - - #: A constant which can be used with the status property of a AnalyticsClusterMemoryEstimate. - #: This constant has a value of "CANCELING" - STATUS_CANCELING = "CANCELING" - - #: A constant which can be used with the status property of a AnalyticsClusterMemoryEstimate. - #: This constant has a value of "CANCELED" - STATUS_CANCELED = "CANCELED" - - def __init__(self, **kwargs): - """ - Initializes a new AnalyticsClusterMemoryEstimate object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param db_system_id: - The value to assign to the db_system_id property of this AnalyticsClusterMemoryEstimate. - :type db_system_id: str - - :param status: - The value to assign to the status property of this AnalyticsClusterMemoryEstimate. - Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. - Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. - :type status: str - - :param time_created: - The value to assign to the time_created property of this AnalyticsClusterMemoryEstimate. - :type time_created: datetime - - :param time_updated: - The value to assign to the time_updated property of this AnalyticsClusterMemoryEstimate. - :type time_updated: datetime - - :param table_schemas: - The value to assign to the table_schemas property of this AnalyticsClusterMemoryEstimate. - :type table_schemas: list[oci.mysql.models.AnalyticsClusterSchemaMemoryEstimate] - - """ - self.swagger_types = { - 'db_system_id': 'str', - 'status': 'str', - 'time_created': 'datetime', - 'time_updated': 'datetime', - 'table_schemas': 'list[AnalyticsClusterSchemaMemoryEstimate]' - } - - self.attribute_map = { - 'db_system_id': 'dbSystemId', - 'status': 'status', - 'time_created': 'timeCreated', - 'time_updated': 'timeUpdated', - 'table_schemas': 'tableSchemas' - } - - self._db_system_id = None - self._status = None - self._time_created = None - self._time_updated = None - self._table_schemas = None - - @property - def db_system_id(self): - """ - **[Required]** Gets the db_system_id of this AnalyticsClusterMemoryEstimate. - The OCID of the DB System the Analytics Cluster memory estimate is associated with. - - - :return: The db_system_id of this AnalyticsClusterMemoryEstimate. - :rtype: str - """ - return self._db_system_id - - @db_system_id.setter - def db_system_id(self, db_system_id): - """ - Sets the db_system_id of this AnalyticsClusterMemoryEstimate. - The OCID of the DB System the Analytics Cluster memory estimate is associated with. - - - :param db_system_id: The db_system_id of this AnalyticsClusterMemoryEstimate. - :type: str - """ - self._db_system_id = db_system_id - - @property - def status(self): - """ - **[Required]** Gets the status of this AnalyticsClusterMemoryEstimate. - Current status of the Work Request generating the Analytics Cluster memory estimate. - - Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. - Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. - - - :return: The status of this AnalyticsClusterMemoryEstimate. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this AnalyticsClusterMemoryEstimate. - Current status of the Work Request generating the Analytics Cluster memory estimate. - - - :param status: The status of this AnalyticsClusterMemoryEstimate. - :type: str - """ - allowed_values = ["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"] - if not value_allowed_none_or_none_sentinel(status, allowed_values): - status = 'UNKNOWN_ENUM_VALUE' - self._status = status - - @property - def time_created(self): - """ - **[Required]** Gets the time_created of this AnalyticsClusterMemoryEstimate. - The date and time that the Work Request to generate the Analytics Cluster memory estimate was issued, as described by `RFC 3339`__. - - __ https://tools.ietf.org/rfc/rfc333 - - - :return: The time_created of this AnalyticsClusterMemoryEstimate. - :rtype: datetime - """ - return self._time_created - - @time_created.setter - def time_created(self, time_created): - """ - Sets the time_created of this AnalyticsClusterMemoryEstimate. - The date and time that the Work Request to generate the Analytics Cluster memory estimate was issued, as described by `RFC 3339`__. - - __ https://tools.ietf.org/rfc/rfc333 - - - :param time_created: The time_created of this AnalyticsClusterMemoryEstimate. - :type: datetime - """ - self._time_created = time_created - - @property - def time_updated(self): - """ - **[Required]** Gets the time_updated of this AnalyticsClusterMemoryEstimate. - The date and time that the Analytics Cluster memory estimate was generated, as described by `RFC 3339`__. - - __ https://tools.ietf.org/rfc/rfc333 - - - :return: The time_updated of this AnalyticsClusterMemoryEstimate. - :rtype: datetime - """ - return self._time_updated - - @time_updated.setter - def time_updated(self, time_updated): - """ - Sets the time_updated of this AnalyticsClusterMemoryEstimate. - The date and time that the Analytics Cluster memory estimate was generated, as described by `RFC 3339`__. - - __ https://tools.ietf.org/rfc/rfc333 - - - :param time_updated: The time_updated of this AnalyticsClusterMemoryEstimate. - :type: datetime - """ - self._time_updated = time_updated - - @property - def table_schemas(self): - """ - **[Required]** Gets the table_schemas of this AnalyticsClusterMemoryEstimate. - Collection of schemas with estimated memory footprints for MySQL user tables of each schema - when loaded to Analytics Cluster memory. - - - :return: The table_schemas of this AnalyticsClusterMemoryEstimate. - :rtype: list[oci.mysql.models.AnalyticsClusterSchemaMemoryEstimate] - """ - return self._table_schemas - - @table_schemas.setter - def table_schemas(self, table_schemas): - """ - Sets the table_schemas of this AnalyticsClusterMemoryEstimate. - Collection of schemas with estimated memory footprints for MySQL user tables of each schema - when loaded to Analytics Cluster memory. - - - :param table_schemas: The table_schemas of this AnalyticsClusterMemoryEstimate. - :type: list[oci.mysql.models.AnalyticsClusterSchemaMemoryEstimate] - """ - self._table_schemas = table_schemas - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/mysql/models/analytics_cluster_node.py b/src/oci/mysql/models/analytics_cluster_node.py deleted file mode 100644 index 1c33328f12..0000000000 --- a/src/oci/mysql/models/analytics_cluster_node.py +++ /dev/null @@ -1,210 +0,0 @@ -# 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: 20190415 - - -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 AnalyticsClusterNode(object): - """ - DEPRECATED -- please use HeatWave API instead. - An Analytics Cluster Node is a compute host that is part of an Analytics Cluster. - """ - - #: A constant which can be used with the lifecycle_state property of a AnalyticsClusterNode. - #: This constant has a value of "CREATING" - LIFECYCLE_STATE_CREATING = "CREATING" - - #: A constant which can be used with the lifecycle_state property of a AnalyticsClusterNode. - #: This constant has a value of "ACTIVE" - LIFECYCLE_STATE_ACTIVE = "ACTIVE" - - #: A constant which can be used with the lifecycle_state property of a AnalyticsClusterNode. - #: This constant has a value of "INACTIVE" - LIFECYCLE_STATE_INACTIVE = "INACTIVE" - - #: A constant which can be used with the lifecycle_state property of a AnalyticsClusterNode. - #: This constant has a value of "UPDATING" - LIFECYCLE_STATE_UPDATING = "UPDATING" - - #: A constant which can be used with the lifecycle_state property of a AnalyticsClusterNode. - #: This constant has a value of "DELETING" - LIFECYCLE_STATE_DELETING = "DELETING" - - #: A constant which can be used with the lifecycle_state property of a AnalyticsClusterNode. - #: This constant has a value of "DELETED" - LIFECYCLE_STATE_DELETED = "DELETED" - - #: A constant which can be used with the lifecycle_state property of a AnalyticsClusterNode. - #: This constant has a value of "FAILED" - LIFECYCLE_STATE_FAILED = "FAILED" - - def __init__(self, **kwargs): - """ - Initializes a new AnalyticsClusterNode object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param node_id: - The value to assign to the node_id property of this AnalyticsClusterNode. - :type node_id: str - - :param lifecycle_state: - The value to assign to the lifecycle_state property of this AnalyticsClusterNode. - Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. - Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. - :type lifecycle_state: str - - :param time_created: - The value to assign to the time_created property of this AnalyticsClusterNode. - :type time_created: datetime - - :param time_updated: - The value to assign to the time_updated property of this AnalyticsClusterNode. - :type time_updated: datetime - - """ - self.swagger_types = { - 'node_id': 'str', - 'lifecycle_state': 'str', - 'time_created': 'datetime', - 'time_updated': 'datetime' - } - - self.attribute_map = { - 'node_id': 'nodeId', - 'lifecycle_state': 'lifecycleState', - 'time_created': 'timeCreated', - 'time_updated': 'timeUpdated' - } - - self._node_id = None - self._lifecycle_state = None - self._time_created = None - self._time_updated = None - - @property - def node_id(self): - """ - **[Required]** Gets the node_id of this AnalyticsClusterNode. - The ID of the node within MySQL Analytics Cluster. - - - :return: The node_id of this AnalyticsClusterNode. - :rtype: str - """ - return self._node_id - - @node_id.setter - def node_id(self, node_id): - """ - Sets the node_id of this AnalyticsClusterNode. - The ID of the node within MySQL Analytics Cluster. - - - :param node_id: The node_id of this AnalyticsClusterNode. - :type: str - """ - self._node_id = node_id - - @property - def lifecycle_state(self): - """ - **[Required]** Gets the lifecycle_state of this AnalyticsClusterNode. - The current state of the MySQL Analytics Cluster node. - - Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. - Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. - - - :return: The lifecycle_state of this AnalyticsClusterNode. - :rtype: str - """ - return self._lifecycle_state - - @lifecycle_state.setter - def lifecycle_state(self, lifecycle_state): - """ - Sets the lifecycle_state of this AnalyticsClusterNode. - The current state of the MySQL Analytics Cluster node. - - - :param lifecycle_state: The lifecycle_state of this AnalyticsClusterNode. - :type: str - """ - allowed_values = ["CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"] - if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): - lifecycle_state = 'UNKNOWN_ENUM_VALUE' - self._lifecycle_state = lifecycle_state - - @property - def time_created(self): - """ - Gets the time_created of this AnalyticsClusterNode. - The date and time the MySQL Analytics Cluster node was created, as described by `RFC 3339`__. - - __ https://tools.ietf.org/rfc/rfc3339 - - - :return: The time_created of this AnalyticsClusterNode. - :rtype: datetime - """ - return self._time_created - - @time_created.setter - def time_created(self, time_created): - """ - Sets the time_created of this AnalyticsClusterNode. - The date and time the MySQL Analytics Cluster node was created, as described by `RFC 3339`__. - - __ https://tools.ietf.org/rfc/rfc3339 - - - :param time_created: The time_created of this AnalyticsClusterNode. - :type: datetime - """ - self._time_created = time_created - - @property - def time_updated(self): - """ - Gets the time_updated of this AnalyticsClusterNode. - The date and time the MySQL Analytics Cluster node was updated, as described by `RFC 3339`__. - - __ https://tools.ietf.org/rfc/rfc3339 - - - :return: The time_updated of this AnalyticsClusterNode. - :rtype: datetime - """ - return self._time_updated - - @time_updated.setter - def time_updated(self, time_updated): - """ - Sets the time_updated of this AnalyticsClusterNode. - The date and time the MySQL Analytics Cluster node was updated, as described by `RFC 3339`__. - - __ https://tools.ietf.org/rfc/rfc3339 - - - :param time_updated: The time_updated of this AnalyticsClusterNode. - :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/mysql/models/analytics_cluster_schema_memory_estimate.py b/src/oci/mysql/models/analytics_cluster_schema_memory_estimate.py deleted file mode 100644 index fcd016a34a..0000000000 --- a/src/oci/mysql/models/analytics_cluster_schema_memory_estimate.py +++ /dev/null @@ -1,107 +0,0 @@ -# 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: 20190415 - - -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 AnalyticsClusterSchemaMemoryEstimate(object): - """ - DEPRECATED -- please use HeatWave API instead. - Schema with estimated memory footprints for each MySQL user table - of the schema when loaded to Analytics Cluster memory. - """ - - def __init__(self, **kwargs): - """ - Initializes a new AnalyticsClusterSchemaMemoryEstimate object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param schema_name: - The value to assign to the schema_name property of this AnalyticsClusterSchemaMemoryEstimate. - :type schema_name: str - - :param per_table_estimates: - The value to assign to the per_table_estimates property of this AnalyticsClusterSchemaMemoryEstimate. - :type per_table_estimates: list[oci.mysql.models.AnalyticsClusterTableMemoryEstimate] - - """ - self.swagger_types = { - 'schema_name': 'str', - 'per_table_estimates': 'list[AnalyticsClusterTableMemoryEstimate]' - } - - self.attribute_map = { - 'schema_name': 'schemaName', - 'per_table_estimates': 'perTableEstimates' - } - - self._schema_name = None - self._per_table_estimates = None - - @property - def schema_name(self): - """ - **[Required]** Gets the schema_name of this AnalyticsClusterSchemaMemoryEstimate. - The name of the schema. - - - :return: The schema_name of this AnalyticsClusterSchemaMemoryEstimate. - :rtype: str - """ - return self._schema_name - - @schema_name.setter - def schema_name(self, schema_name): - """ - Sets the schema_name of this AnalyticsClusterSchemaMemoryEstimate. - The name of the schema. - - - :param schema_name: The schema_name of this AnalyticsClusterSchemaMemoryEstimate. - :type: str - """ - self._schema_name = schema_name - - @property - def per_table_estimates(self): - """ - **[Required]** Gets the per_table_estimates of this AnalyticsClusterSchemaMemoryEstimate. - Estimated memory footprints for MySQL user tables of the schema - when loaded to Analytics Cluster memory. - - - :return: The per_table_estimates of this AnalyticsClusterSchemaMemoryEstimate. - :rtype: list[oci.mysql.models.AnalyticsClusterTableMemoryEstimate] - """ - return self._per_table_estimates - - @per_table_estimates.setter - def per_table_estimates(self, per_table_estimates): - """ - Sets the per_table_estimates of this AnalyticsClusterSchemaMemoryEstimate. - Estimated memory footprints for MySQL user tables of the schema - when loaded to Analytics Cluster memory. - - - :param per_table_estimates: The per_table_estimates of this AnalyticsClusterSchemaMemoryEstimate. - :type: list[oci.mysql.models.AnalyticsClusterTableMemoryEstimate] - """ - self._per_table_estimates = per_table_estimates - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/mysql/models/analytics_cluster_summary.py b/src/oci/mysql/models/analytics_cluster_summary.py deleted file mode 100644 index 985016c5c4..0000000000 --- a/src/oci/mysql/models/analytics_cluster_summary.py +++ /dev/null @@ -1,209 +0,0 @@ -# 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: 20190415 - - -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 AnalyticsClusterSummary(object): - """ - DEPRECATED -- please use HeatWave API instead. - A summary of an Analytics Cluster. - """ - - def __init__(self, **kwargs): - """ - Initializes a new AnalyticsClusterSummary object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param shape_name: - The value to assign to the shape_name property of this AnalyticsClusterSummary. - :type shape_name: str - - :param cluster_size: - The value to assign to the cluster_size property of this AnalyticsClusterSummary. - :type cluster_size: int - - :param lifecycle_state: - The value to assign to the lifecycle_state property of this AnalyticsClusterSummary. - :type lifecycle_state: str - - :param time_created: - The value to assign to the time_created property of this AnalyticsClusterSummary. - :type time_created: datetime - - :param time_updated: - The value to assign to the time_updated property of this AnalyticsClusterSummary. - :type time_updated: datetime - - """ - self.swagger_types = { - 'shape_name': 'str', - 'cluster_size': 'int', - 'lifecycle_state': 'str', - 'time_created': 'datetime', - 'time_updated': 'datetime' - } - - self.attribute_map = { - 'shape_name': 'shapeName', - 'cluster_size': 'clusterSize', - 'lifecycle_state': 'lifecycleState', - 'time_created': 'timeCreated', - 'time_updated': 'timeUpdated' - } - - self._shape_name = None - self._cluster_size = None - self._lifecycle_state = None - self._time_created = None - self._time_updated = None - - @property - def shape_name(self): - """ - **[Required]** Gets the shape_name of this AnalyticsClusterSummary. - The shape determines resources to allocate to the Analytics - Cluster nodes - CPU cores, memory. - - - :return: The shape_name of this AnalyticsClusterSummary. - :rtype: str - """ - return self._shape_name - - @shape_name.setter - def shape_name(self, shape_name): - """ - Sets the shape_name of this AnalyticsClusterSummary. - The shape determines resources to allocate to the Analytics - Cluster nodes - CPU cores, memory. - - - :param shape_name: The shape_name of this AnalyticsClusterSummary. - :type: str - """ - self._shape_name = shape_name - - @property - def cluster_size(self): - """ - **[Required]** Gets the cluster_size of this AnalyticsClusterSummary. - The number of analytics-processing compute instances, of the - specified shape, in the Analytics Cluster. - - - :return: The cluster_size of this AnalyticsClusterSummary. - :rtype: int - """ - return self._cluster_size - - @cluster_size.setter - def cluster_size(self, cluster_size): - """ - Sets the cluster_size of this AnalyticsClusterSummary. - The number of analytics-processing compute instances, of the - specified shape, in the Analytics Cluster. - - - :param cluster_size: The cluster_size of this AnalyticsClusterSummary. - :type: int - """ - self._cluster_size = cluster_size - - @property - def lifecycle_state(self): - """ - **[Required]** Gets the lifecycle_state of this AnalyticsClusterSummary. - The current state of the MySQL Analytics Cluster. - - - :return: The lifecycle_state of this AnalyticsClusterSummary. - :rtype: str - """ - return self._lifecycle_state - - @lifecycle_state.setter - def lifecycle_state(self, lifecycle_state): - """ - Sets the lifecycle_state of this AnalyticsClusterSummary. - The current state of the MySQL Analytics Cluster. - - - :param lifecycle_state: The lifecycle_state of this AnalyticsClusterSummary. - :type: str - """ - self._lifecycle_state = lifecycle_state - - @property - def time_created(self): - """ - **[Required]** Gets the time_created of this AnalyticsClusterSummary. - The date and time the Analytics Cluster was created, as described by `RFC 3339`__. - - __ https://tools.ietf.org/rfc/rfc3339 - - - :return: The time_created of this AnalyticsClusterSummary. - :rtype: datetime - """ - return self._time_created - - @time_created.setter - def time_created(self, time_created): - """ - Sets the time_created of this AnalyticsClusterSummary. - The date and time the Analytics Cluster was created, as described by `RFC 3339`__. - - __ https://tools.ietf.org/rfc/rfc3339 - - - :param time_created: The time_created of this AnalyticsClusterSummary. - :type: datetime - """ - self._time_created = time_created - - @property - def time_updated(self): - """ - **[Required]** Gets the time_updated of this AnalyticsClusterSummary. - The time the Analytics Cluster was last updated, as described by `RFC 3339`__. - - __ https://tools.ietf.org/rfc/rfc3339 - - - :return: The time_updated of this AnalyticsClusterSummary. - :rtype: datetime - """ - return self._time_updated - - @time_updated.setter - def time_updated(self, time_updated): - """ - Sets the time_updated of this AnalyticsClusterSummary. - The time the Analytics Cluster was last updated, as described by `RFC 3339`__. - - __ https://tools.ietf.org/rfc/rfc3339 - - - :param time_updated: The time_updated of this AnalyticsClusterSummary. - :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/mysql/models/analytics_cluster_table_memory_estimate.py b/src/oci/mysql/models/analytics_cluster_table_memory_estimate.py deleted file mode 100644 index ed5aef9c84..0000000000 --- a/src/oci/mysql/models/analytics_cluster_table_memory_estimate.py +++ /dev/null @@ -1,239 +0,0 @@ -# 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: 20190415 - - -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 AnalyticsClusterTableMemoryEstimate(object): - """ - DEPRECATED -- please use HeatWave API instead. - Estimated memory footprint for a MySQL user table - when loaded to the Analytics Cluster memory. - """ - - def __init__(self, **kwargs): - """ - Initializes a new AnalyticsClusterTableMemoryEstimate object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param table_name: - The value to assign to the table_name property of this AnalyticsClusterTableMemoryEstimate. - :type table_name: str - - :param to_load_column_count: - The value to assign to the to_load_column_count property of this AnalyticsClusterTableMemoryEstimate. - :type to_load_column_count: int - - :param varlen_column_count: - The value to assign to the varlen_column_count property of this AnalyticsClusterTableMemoryEstimate. - :type varlen_column_count: int - - :param estimated_row_count: - The value to assign to the estimated_row_count property of this AnalyticsClusterTableMemoryEstimate. - :type estimated_row_count: int - - :param analytical_footprint_in_mbs: - The value to assign to the analytical_footprint_in_mbs property of this AnalyticsClusterTableMemoryEstimate. - :type analytical_footprint_in_mbs: int - - :param error_comment: - The value to assign to the error_comment property of this AnalyticsClusterTableMemoryEstimate. - :type error_comment: str - - """ - self.swagger_types = { - 'table_name': 'str', - 'to_load_column_count': 'int', - 'varlen_column_count': 'int', - 'estimated_row_count': 'int', - 'analytical_footprint_in_mbs': 'int', - 'error_comment': 'str' - } - - self.attribute_map = { - 'table_name': 'tableName', - 'to_load_column_count': 'toLoadColumnCount', - 'varlen_column_count': 'varlenColumnCount', - 'estimated_row_count': 'estimatedRowCount', - 'analytical_footprint_in_mbs': 'analyticalFootprintInMbs', - 'error_comment': 'errorComment' - } - - self._table_name = None - self._to_load_column_count = None - self._varlen_column_count = None - self._estimated_row_count = None - self._analytical_footprint_in_mbs = None - self._error_comment = None - - @property - def table_name(self): - """ - **[Required]** Gets the table_name of this AnalyticsClusterTableMemoryEstimate. - The table name. - - - :return: The table_name of this AnalyticsClusterTableMemoryEstimate. - :rtype: str - """ - return self._table_name - - @table_name.setter - def table_name(self, table_name): - """ - Sets the table_name of this AnalyticsClusterTableMemoryEstimate. - The table name. - - - :param table_name: The table_name of this AnalyticsClusterTableMemoryEstimate. - :type: str - """ - self._table_name = table_name - - @property - def to_load_column_count(self): - """ - **[Required]** Gets the to_load_column_count of this AnalyticsClusterTableMemoryEstimate. - The number of columns to be loaded to Analytics Cluster memory. - These columns contribute to the analytical memory footprint. - - - :return: The to_load_column_count of this AnalyticsClusterTableMemoryEstimate. - :rtype: int - """ - return self._to_load_column_count - - @to_load_column_count.setter - def to_load_column_count(self, to_load_column_count): - """ - Sets the to_load_column_count of this AnalyticsClusterTableMemoryEstimate. - The number of columns to be loaded to Analytics Cluster memory. - These columns contribute to the analytical memory footprint. - - - :param to_load_column_count: The to_load_column_count of this AnalyticsClusterTableMemoryEstimate. - :type: int - """ - self._to_load_column_count = to_load_column_count - - @property - def varlen_column_count(self): - """ - **[Required]** Gets the varlen_column_count of this AnalyticsClusterTableMemoryEstimate. - The number of variable-length columns to be loaded to Analytics Cluster memory. - These columns contribute to the analytical memory footprint. - - - :return: The varlen_column_count of this AnalyticsClusterTableMemoryEstimate. - :rtype: int - """ - return self._varlen_column_count - - @varlen_column_count.setter - def varlen_column_count(self, varlen_column_count): - """ - Sets the varlen_column_count of this AnalyticsClusterTableMemoryEstimate. - The number of variable-length columns to be loaded to Analytics Cluster memory. - These columns contribute to the analytical memory footprint. - - - :param varlen_column_count: The varlen_column_count of this AnalyticsClusterTableMemoryEstimate. - :type: int - """ - self._varlen_column_count = varlen_column_count - - @property - def estimated_row_count(self): - """ - **[Required]** Gets the estimated_row_count of this AnalyticsClusterTableMemoryEstimate. - The estimated number of rows in the table. This number was used to - derive the analytical memory footprint. - - - :return: The estimated_row_count of this AnalyticsClusterTableMemoryEstimate. - :rtype: int - """ - return self._estimated_row_count - - @estimated_row_count.setter - def estimated_row_count(self, estimated_row_count): - """ - Sets the estimated_row_count of this AnalyticsClusterTableMemoryEstimate. - The estimated number of rows in the table. This number was used to - derive the analytical memory footprint. - - - :param estimated_row_count: The estimated_row_count of this AnalyticsClusterTableMemoryEstimate. - :type: int - """ - self._estimated_row_count = estimated_row_count - - @property - def analytical_footprint_in_mbs(self): - """ - **[Required]** Gets the analytical_footprint_in_mbs of this AnalyticsClusterTableMemoryEstimate. - The estimated memory footprint of the table in MBs when loaded to - Analytics Cluster memory (null if the table cannot be loaded to the - Analytics Cluster). - - - :return: The analytical_footprint_in_mbs of this AnalyticsClusterTableMemoryEstimate. - :rtype: int - """ - return self._analytical_footprint_in_mbs - - @analytical_footprint_in_mbs.setter - def analytical_footprint_in_mbs(self, analytical_footprint_in_mbs): - """ - Sets the analytical_footprint_in_mbs of this AnalyticsClusterTableMemoryEstimate. - The estimated memory footprint of the table in MBs when loaded to - Analytics Cluster memory (null if the table cannot be loaded to the - Analytics Cluster). - - - :param analytical_footprint_in_mbs: The analytical_footprint_in_mbs of this AnalyticsClusterTableMemoryEstimate. - :type: int - """ - self._analytical_footprint_in_mbs = analytical_footprint_in_mbs - - @property - def error_comment(self): - """ - **[Required]** Gets the error_comment of this AnalyticsClusterTableMemoryEstimate. - Error comment (empty string if no errors occured). - - - :return: The error_comment of this AnalyticsClusterTableMemoryEstimate. - :rtype: str - """ - return self._error_comment - - @error_comment.setter - def error_comment(self, error_comment): - """ - Sets the error_comment of this AnalyticsClusterTableMemoryEstimate. - Error comment (empty string if no errors occured). - - - :param error_comment: The error_comment of this AnalyticsClusterTableMemoryEstimate. - :type: str - """ - self._error_comment = error_comment - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/mysql/models/update_analytics_cluster_details.py b/src/oci/mysql/models/update_analytics_cluster_details.py deleted file mode 100644 index 14e59dbc8a..0000000000 --- a/src/oci/mysql/models/update_analytics_cluster_details.py +++ /dev/null @@ -1,120 +0,0 @@ -# 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: 20190415 - - -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 UpdateAnalyticsClusterDetails(object): - """ - DEPRECATED -- please use HeatWave API instead. - Details about the Analytics Cluster properties to be updated. - """ - - def __init__(self, **kwargs): - """ - Initializes a new UpdateAnalyticsClusterDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param shape_name: - The value to assign to the shape_name property of this UpdateAnalyticsClusterDetails. - :type shape_name: str - - :param cluster_size: - The value to assign to the cluster_size property of this UpdateAnalyticsClusterDetails. - :type cluster_size: int - - """ - self.swagger_types = { - 'shape_name': 'str', - 'cluster_size': 'int' - } - - self.attribute_map = { - 'shape_name': 'shapeName', - 'cluster_size': 'clusterSize' - } - - self._shape_name = None - self._cluster_size = None - - @property - def shape_name(self): - """ - Gets the shape_name of this UpdateAnalyticsClusterDetails. - A change to the shape of the nodes in the Analytics Cluster will - result in the entire cluster being torn down and re-created with - Compute instances of the new Shape. This may result in significant - downtime for the analytics capability while the Analytics Cluster is - re-provisioned. - - - :return: The shape_name of this UpdateAnalyticsClusterDetails. - :rtype: str - """ - return self._shape_name - - @shape_name.setter - def shape_name(self, shape_name): - """ - Sets the shape_name of this UpdateAnalyticsClusterDetails. - A change to the shape of the nodes in the Analytics Cluster will - result in the entire cluster being torn down and re-created with - Compute instances of the new Shape. This may result in significant - downtime for the analytics capability while the Analytics Cluster is - re-provisioned. - - - :param shape_name: The shape_name of this UpdateAnalyticsClusterDetails. - :type: str - """ - self._shape_name = shape_name - - @property - def cluster_size(self): - """ - Gets the cluster_size of this UpdateAnalyticsClusterDetails. - A change to the number of nodes in the Analytics Cluster will result - in the entire cluster being torn down and re-created with the new - cluster of nodes. This may result in a significant downtime for the - analytics capability while the Analytics Cluster is - re-provisioned. - - - :return: The cluster_size of this UpdateAnalyticsClusterDetails. - :rtype: int - """ - return self._cluster_size - - @cluster_size.setter - def cluster_size(self, cluster_size): - """ - Sets the cluster_size of this UpdateAnalyticsClusterDetails. - A change to the number of nodes in the Analytics Cluster will result - in the entire cluster being torn down and re-created with the new - cluster of nodes. This may result in a significant downtime for the - analytics capability while the Analytics Cluster is - re-provisioned. - - - :param cluster_size: The cluster_size of this UpdateAnalyticsClusterDetails. - :type: int - """ - self._cluster_size = cluster_size - - 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/network_firewall/models/tcp_application.py b/src/oci/network_firewall/models/tcp_application.py deleted file mode 100644 index 2a86796d0d..0000000000 --- a/src/oci/network_firewall/models/tcp_application.py +++ /dev/null @@ -1,112 +0,0 @@ -# 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: 20211001 - -from .application import Application -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 TcpApplication(Application): - """ - TCP Application used on the firewall policy rules. - """ - - def __init__(self, **kwargs): - """ - Initializes a new TcpApplication object with values from keyword arguments. The default value of the :py:attr:`~oci.network_firewall.models.TcpApplication.type` attribute - of this class is ``TCP`` and it should not be changed. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param type: - The value to assign to the type property of this TcpApplication. - :type type: str - - :param minimum_port: - The value to assign to the minimum_port property of this TcpApplication. - :type minimum_port: int - - :param maximum_port: - The value to assign to the maximum_port property of this TcpApplication. - :type maximum_port: int - - """ - self.swagger_types = { - 'type': 'str', - 'minimum_port': 'int', - 'maximum_port': 'int' - } - - self.attribute_map = { - 'type': 'type', - 'minimum_port': 'minimumPort', - 'maximum_port': 'maximumPort' - } - - self._type = None - self._minimum_port = None - self._maximum_port = None - self._type = 'TCP' - - @property - def minimum_port(self): - """ - **[Required]** Gets the minimum_port of this TcpApplication. - The minimum port in the range (inclusive), or the sole port of a single-port range. - - - :return: The minimum_port of this TcpApplication. - :rtype: int - """ - return self._minimum_port - - @minimum_port.setter - def minimum_port(self, minimum_port): - """ - Sets the minimum_port of this TcpApplication. - The minimum port in the range (inclusive), or the sole port of a single-port range. - - - :param minimum_port: The minimum_port of this TcpApplication. - :type: int - """ - self._minimum_port = minimum_port - - @property - def maximum_port(self): - """ - Gets the maximum_port of this TcpApplication. - The maximum port in the range (inclusive), which may be absent for a single-port range. - - - :return: The maximum_port of this TcpApplication. - :rtype: int - """ - return self._maximum_port - - @maximum_port.setter - def maximum_port(self, maximum_port): - """ - Sets the maximum_port of this TcpApplication. - The maximum port in the range (inclusive), which may be absent for a single-port range. - - - :param maximum_port: The maximum_port of this TcpApplication. - :type: int - """ - self._maximum_port = maximum_port - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/network_firewall/models/udp_application.py b/src/oci/network_firewall/models/udp_application.py deleted file mode 100644 index 29874b05ce..0000000000 --- a/src/oci/network_firewall/models/udp_application.py +++ /dev/null @@ -1,112 +0,0 @@ -# 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: 20211001 - -from .application import Application -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 UdpApplication(Application): - """ - UDP Application used on the firewall policy rules. - """ - - def __init__(self, **kwargs): - """ - Initializes a new UdpApplication object with values from keyword arguments. The default value of the :py:attr:`~oci.network_firewall.models.UdpApplication.type` attribute - of this class is ``UDP`` and it should not be changed. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param type: - The value to assign to the type property of this UdpApplication. - :type type: str - - :param minimum_port: - The value to assign to the minimum_port property of this UdpApplication. - :type minimum_port: int - - :param maximum_port: - The value to assign to the maximum_port property of this UdpApplication. - :type maximum_port: int - - """ - self.swagger_types = { - 'type': 'str', - 'minimum_port': 'int', - 'maximum_port': 'int' - } - - self.attribute_map = { - 'type': 'type', - 'minimum_port': 'minimumPort', - 'maximum_port': 'maximumPort' - } - - self._type = None - self._minimum_port = None - self._maximum_port = None - self._type = 'UDP' - - @property - def minimum_port(self): - """ - **[Required]** Gets the minimum_port of this UdpApplication. - The minimum port in the range (inclusive), or the sole port of a single-port range. - - - :return: The minimum_port of this UdpApplication. - :rtype: int - """ - return self._minimum_port - - @minimum_port.setter - def minimum_port(self, minimum_port): - """ - Sets the minimum_port of this UdpApplication. - The minimum port in the range (inclusive), or the sole port of a single-port range. - - - :param minimum_port: The minimum_port of this UdpApplication. - :type: int - """ - self._minimum_port = minimum_port - - @property - def maximum_port(self): - """ - Gets the maximum_port of this UdpApplication. - The maximum port in the range (inclusive), which may be absent for a single-port range. - - - :return: The maximum_port of this UdpApplication. - :rtype: int - """ - return self._maximum_port - - @maximum_port.setter - def maximum_port(self, maximum_port): - """ - Sets the maximum_port of this UdpApplication. - The maximum port in the range (inclusive), which may be absent for a single-port range. - - - :param maximum_port: The maximum_port of this UdpApplication. - :type: int - """ - self._maximum_port = maximum_port - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/oce/models/delete_oce_instance_details.py b/src/oci/oce/models/delete_oce_instance_details.py deleted file mode 100644 index 69527d58b3..0000000000 --- a/src/oci/oce/models/delete_oce_instance_details.py +++ /dev/null @@ -1,70 +0,0 @@ -# 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. - - -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 DeleteOceInstanceDetails(object): - """ - The information about the resource to be deleted. - """ - - def __init__(self, **kwargs): - """ - Initializes a new DeleteOceInstanceDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param idcs_access_token: - The value to assign to the idcs_access_token property of this DeleteOceInstanceDetails. - :type idcs_access_token: str - - """ - self.swagger_types = { - 'idcs_access_token': 'str' - } - - self.attribute_map = { - 'idcs_access_token': 'idcsAccessToken' - } - - self._idcs_access_token = None - - @property - def idcs_access_token(self): - """ - **[Required]** Gets the idcs_access_token of this DeleteOceInstanceDetails. - IDCS access token identifying a stripe and service administrator user - - - :return: The idcs_access_token of this DeleteOceInstanceDetails. - :rtype: str - """ - return self._idcs_access_token - - @idcs_access_token.setter - def idcs_access_token(self, idcs_access_token): - """ - Sets the idcs_access_token of this DeleteOceInstanceDetails. - IDCS access token identifying a stripe and service administrator user - - - :param idcs_access_token: The idcs_access_token of this DeleteOceInstanceDetails. - :type: str - """ - self._idcs_access_token = idcs_access_token - - 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/ocvp/models/datastore_summary.py b/src/oci/ocvp/models/datastore_summary.py deleted file mode 100644 index 655b229396..0000000000 --- a/src/oci/ocvp/models/datastore_summary.py +++ /dev/null @@ -1,154 +0,0 @@ -# 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: 20200501 - - -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 DatastoreSummary(object): - """ - Datastore summary for a getting an Sddc. - """ - - #: A constant which can be used with the datastore_type property of a DatastoreSummary. - #: This constant has a value of "MANAGEMENT" - DATASTORE_TYPE_MANAGEMENT = "MANAGEMENT" - - #: A constant which can be used with the datastore_type property of a DatastoreSummary. - #: This constant has a value of "WORKLOAD" - DATASTORE_TYPE_WORKLOAD = "WORKLOAD" - - def __init__(self, **kwargs): - """ - Initializes a new DatastoreSummary object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param block_volume_ids: - The value to assign to the block_volume_ids property of this DatastoreSummary. - :type block_volume_ids: list[str] - - :param datastore_type: - The value to assign to the datastore_type property of this DatastoreSummary. - Allowed values for this property are: "MANAGEMENT", "WORKLOAD", 'UNKNOWN_ENUM_VALUE'. - Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. - :type datastore_type: str - - :param capacity: - The value to assign to the capacity property of this DatastoreSummary. - :type capacity: float - - """ - self.swagger_types = { - 'block_volume_ids': 'list[str]', - 'datastore_type': 'str', - 'capacity': 'float' - } - - self.attribute_map = { - 'block_volume_ids': 'blockVolumeIds', - 'datastore_type': 'datastoreType', - 'capacity': 'capacity' - } - - self._block_volume_ids = None - self._datastore_type = None - self._capacity = None - - @property - def block_volume_ids(self): - """ - **[Required]** Gets the block_volume_ids of this DatastoreSummary. - A list of `OCID`__s of Block Storage Volumes. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :return: The block_volume_ids of this DatastoreSummary. - :rtype: list[str] - """ - return self._block_volume_ids - - @block_volume_ids.setter - def block_volume_ids(self, block_volume_ids): - """ - Sets the block_volume_ids of this DatastoreSummary. - A list of `OCID`__s of Block Storage Volumes. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - - - :param block_volume_ids: The block_volume_ids of this DatastoreSummary. - :type: list[str] - """ - self._block_volume_ids = block_volume_ids - - @property - def datastore_type(self): - """ - **[Required]** Gets the datastore_type of this DatastoreSummary. - Type of the datastore. - - Allowed values for this property are: "MANAGEMENT", "WORKLOAD", 'UNKNOWN_ENUM_VALUE'. - Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. - - - :return: The datastore_type of this DatastoreSummary. - :rtype: str - """ - return self._datastore_type - - @datastore_type.setter - def datastore_type(self, datastore_type): - """ - Sets the datastore_type of this DatastoreSummary. - Type of the datastore. - - - :param datastore_type: The datastore_type of this DatastoreSummary. - :type: str - """ - allowed_values = ["MANAGEMENT", "WORKLOAD"] - if not value_allowed_none_or_none_sentinel(datastore_type, allowed_values): - datastore_type = 'UNKNOWN_ENUM_VALUE' - self._datastore_type = datastore_type - - @property - def capacity(self): - """ - **[Required]** Gets the capacity of this DatastoreSummary. - Size of the Block Storage Volume in GB. - - - :return: The capacity of this DatastoreSummary. - :rtype: float - """ - return self._capacity - - @capacity.setter - def capacity(self, capacity): - """ - Sets the capacity of this DatastoreSummary. - Size of the Block Storage Volume in GB. - - - :param capacity: The capacity of this DatastoreSummary. - :type: float - """ - self._capacity = capacity - - 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/ocvp/models/supported_sku_summary.py b/src/oci/ocvp/models/supported_sku_summary.py deleted file mode 100644 index 07d0c751d4..0000000000 --- a/src/oci/ocvp/models/supported_sku_summary.py +++ /dev/null @@ -1,96 +0,0 @@ -# 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: 20200501 - - -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 SupportedSkuSummary(object): - """ - A specific SKU. - """ - - #: A constant which can be used with the name property of a SupportedSkuSummary. - #: This constant has a value of "HOUR" - NAME_HOUR = "HOUR" - - #: A constant which can be used with the name property of a SupportedSkuSummary. - #: This constant has a value of "MONTH" - NAME_MONTH = "MONTH" - - #: A constant which can be used with the name property of a SupportedSkuSummary. - #: This constant has a value of "ONE_YEAR" - NAME_ONE_YEAR = "ONE_YEAR" - - #: A constant which can be used with the name property of a SupportedSkuSummary. - #: This constant has a value of "THREE_YEARS" - NAME_THREE_YEARS = "THREE_YEARS" - - def __init__(self, **kwargs): - """ - Initializes a new SupportedSkuSummary 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 SupportedSkuSummary. - Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS", 'UNKNOWN_ENUM_VALUE'. - Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. - :type name: str - - """ - self.swagger_types = { - 'name': 'str' - } - - self.attribute_map = { - 'name': 'name' - } - - self._name = None - - @property - def name(self): - """ - **[Required]** Gets the name of this SupportedSkuSummary. - name of SKU - - Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS", 'UNKNOWN_ENUM_VALUE'. - Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. - - - :return: The name of this SupportedSkuSummary. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this SupportedSkuSummary. - name of SKU - - - :param name: The name of this SupportedSkuSummary. - :type: str - """ - allowed_values = ["HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS"] - if not value_allowed_none_or_none_sentinel(name, allowed_values): - name = 'UNKNOWN_ENUM_VALUE' - self._name = name - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/ocvp/models/supported_sku_summary_collection.py b/src/oci/ocvp/models/supported_sku_summary_collection.py deleted file mode 100644 index 351926a57b..0000000000 --- a/src/oci/ocvp/models/supported_sku_summary_collection.py +++ /dev/null @@ -1,72 +0,0 @@ -# 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: 20200501 - - -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 SupportedSkuSummaryCollection(object): - """ - A specific SKU. - """ - - def __init__(self, **kwargs): - """ - Initializes a new SupportedSkuSummaryCollection 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 SupportedSkuSummaryCollection. - :type items: list[oci.ocvp.models.SupportedSkuSummary] - - """ - self.swagger_types = { - 'items': 'list[SupportedSkuSummary]' - } - - self.attribute_map = { - 'items': 'items' - } - - self._items = None - - @property - def items(self): - """ - **[Required]** Gets the items of this SupportedSkuSummaryCollection. - A list of the supported SKUs. - - - :return: The items of this SupportedSkuSummaryCollection. - :rtype: list[oci.ocvp.models.SupportedSkuSummary] - """ - return self._items - - @items.setter - def items(self, items): - """ - Sets the items of this SupportedSkuSummaryCollection. - A list of the supported SKUs. - - - :param items: The items of this SupportedSkuSummaryCollection. - :type: list[oci.ocvp.models.SupportedSkuSummary] - """ - 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/os_management/models/errata_id.py b/src/oci/os_management/models/errata_id.py deleted file mode 100644 index f4a4f6d747..0000000000 --- a/src/oci/os_management/models/errata_id.py +++ /dev/null @@ -1,101 +0,0 @@ -# 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. - - -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 ErrataId(object): - """ - Identifying information for an errata - """ - - def __init__(self, **kwargs): - """ - Initializes a new ErrataId 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 ErrataId. - :type name: str - - :param id: - The value to assign to the id property of this ErrataId. - :type id: str - - """ - self.swagger_types = { - 'name': 'str', - 'id': 'str' - } - - self.attribute_map = { - 'name': 'name', - 'id': 'id' - } - - self._name = None - self._id = None - - @property - def name(self): - """ - Gets the name of this ErrataId. - errata name - - - :return: The name of this ErrataId. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this ErrataId. - errata name - - - :param name: The name of this ErrataId. - :type: str - """ - self._name = name - - @property - def id(self): - """ - **[Required]** Gets the id of this ErrataId. - errata identifier - - - :return: The id of this ErrataId. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this ErrataId. - errata identifier - - - :param id: The id of this ErrataId. - :type: str - """ - self._id = id - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/os_management/models/managed_instance_update_details.py b/src/oci/os_management/models/managed_instance_update_details.py deleted file mode 100644 index e79e75cc88..0000000000 --- a/src/oci/os_management/models/managed_instance_update_details.py +++ /dev/null @@ -1,101 +0,0 @@ -# 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. - - -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 ManagedInstanceUpdateDetails(object): - """ - Updated information for the managed instance - """ - - def __init__(self, **kwargs): - """ - Initializes a new ManagedInstanceUpdateDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param display_name: - The value to assign to the display_name property of this ManagedInstanceUpdateDetails. - :type display_name: str - - :param description: - The value to assign to the description property of this ManagedInstanceUpdateDetails. - :type description: str - - """ - self.swagger_types = { - 'display_name': 'str', - 'description': 'str' - } - - self.attribute_map = { - 'display_name': 'displayName', - 'description': 'description' - } - - self._display_name = None - self._description = None - - @property - def display_name(self): - """ - **[Required]** Gets the display_name of this ManagedInstanceUpdateDetails. - Managed Instance identifier - - - :return: The display_name of this ManagedInstanceUpdateDetails. - :rtype: str - """ - return self._display_name - - @display_name.setter - def display_name(self, display_name): - """ - Sets the display_name of this ManagedInstanceUpdateDetails. - Managed Instance identifier - - - :param display_name: The display_name of this ManagedInstanceUpdateDetails. - :type: str - """ - self._display_name = display_name - - @property - def description(self): - """ - Gets the description of this ManagedInstanceUpdateDetails. - Information specified by the user about the managed instance - - - :return: The description of this ManagedInstanceUpdateDetails. - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """ - Sets the description of this ManagedInstanceUpdateDetails. - Information specified by the user about the managed instance - - - :param description: The description of this ManagedInstanceUpdateDetails. - :type: str - """ - self._description = description - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/os_management/models/updatable_package_summary.py b/src/oci/os_management/models/updatable_package_summary.py deleted file mode 100644 index 8206ab4867..0000000000 --- a/src/oci/os_management/models/updatable_package_summary.py +++ /dev/null @@ -1,287 +0,0 @@ -# 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. - - -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 UpdatablePackageSummary(object): - """ - A software package available for update on a managed instance - """ - - def __init__(self, **kwargs): - """ - Initializes a new UpdatablePackageSummary object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param display_name: - The value to assign to the display_name property of this UpdatablePackageSummary. - :type display_name: str - - :param name: - The value to assign to the name property of this UpdatablePackageSummary. - :type name: str - - :param available_package_name: - The value to assign to the available_package_name property of this UpdatablePackageSummary. - :type available_package_name: str - - :param type: - The value to assign to the type property of this UpdatablePackageSummary. - :type type: str - - :param installed_version: - The value to assign to the installed_version property of this UpdatablePackageSummary. - :type installed_version: str - - :param available_version: - The value to assign to the available_version property of this UpdatablePackageSummary. - :type available_version: str - - :param architecture: - The value to assign to the architecture property of this UpdatablePackageSummary. - :type architecture: str - - :param software_sources: - The value to assign to the software_sources property of this UpdatablePackageSummary. - :type software_sources: list[SoftwareSourceId] - - """ - self.swagger_types = { - 'display_name': 'str', - 'name': 'str', - 'available_package_name': 'str', - 'type': 'str', - 'installed_version': 'str', - 'available_version': 'str', - 'architecture': 'str', - 'software_sources': 'list[SoftwareSourceId]' - } - - self.attribute_map = { - 'display_name': 'displayName', - 'name': 'name', - 'available_package_name': 'availablePackageName', - 'type': 'type', - 'installed_version': 'installedVersion', - 'available_version': 'availableVersion', - 'architecture': 'architecture', - 'software_sources': 'softwareSources' - } - - self._display_name = None - self._name = None - self._available_package_name = None - self._type = None - self._installed_version = None - self._available_version = None - self._architecture = None - self._software_sources = None - - @property - def display_name(self): - """ - **[Required]** Gets the display_name of this UpdatablePackageSummary. - Package name - - - :return: The display_name of this UpdatablePackageSummary. - :rtype: str - """ - return self._display_name - - @display_name.setter - def display_name(self, display_name): - """ - Sets the display_name of this UpdatablePackageSummary. - Package name - - - :param display_name: The display_name of this UpdatablePackageSummary. - :type: str - """ - self._display_name = display_name - - @property - def name(self): - """ - **[Required]** Gets the name of this UpdatablePackageSummary. - Unique name for the package. - - - :return: The name of this UpdatablePackageSummary. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this UpdatablePackageSummary. - Unique name for the package. - - - :param name: The name of this UpdatablePackageSummary. - :type: str - """ - self._name = name - - @property - def available_package_name(self): - """ - Gets the available_package_name of this UpdatablePackageSummary. - Unique name for the package available for update. - - - :return: The available_package_name of this UpdatablePackageSummary. - :rtype: str - """ - return self._available_package_name - - @available_package_name.setter - def available_package_name(self, available_package_name): - """ - Sets the available_package_name of this UpdatablePackageSummary. - Unique name for the package available for update. - - - :param available_package_name: The available_package_name of this UpdatablePackageSummary. - :type: str - """ - self._available_package_name = available_package_name - - @property - def type(self): - """ - **[Required]** Gets the type of this UpdatablePackageSummary. - Type of the update. - - - :return: The type of this UpdatablePackageSummary. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this UpdatablePackageSummary. - Type of the update. - - - :param type: The type of this UpdatablePackageSummary. - :type: str - """ - self._type = type - - @property - def installed_version(self): - """ - **[Required]** Gets the installed_version of this UpdatablePackageSummary. - Version of the installed package - - - :return: The installed_version of this UpdatablePackageSummary. - :rtype: str - """ - return self._installed_version - - @installed_version.setter - def installed_version(self, installed_version): - """ - Sets the installed_version of this UpdatablePackageSummary. - Version of the installed package - - - :param installed_version: The installed_version of this UpdatablePackageSummary. - :type: str - """ - self._installed_version = installed_version - - @property - def available_version(self): - """ - **[Required]** Gets the available_version of this UpdatablePackageSummary. - Version of the package available for update - - - :return: The available_version of this UpdatablePackageSummary. - :rtype: str - """ - return self._available_version - - @available_version.setter - def available_version(self, available_version): - """ - Sets the available_version of this UpdatablePackageSummary. - Version of the package available for update - - - :param available_version: The available_version of this UpdatablePackageSummary. - :type: str - """ - self._available_version = available_version - - @property - def architecture(self): - """ - Gets the architecture of this UpdatablePackageSummary. - The architecture for which this package was built - - - :return: The architecture of this UpdatablePackageSummary. - :rtype: str - """ - return self._architecture - - @architecture.setter - def architecture(self, architecture): - """ - Sets the architecture of this UpdatablePackageSummary. - The architecture for which this package was built - - - :param architecture: The architecture of this UpdatablePackageSummary. - :type: str - """ - self._architecture = architecture - - @property - def software_sources(self): - """ - Gets the software_sources of this UpdatablePackageSummary. - list of software sources that provide the software package - - - :return: The software_sources of this UpdatablePackageSummary. - :rtype: list[SoftwareSourceId] - """ - return self._software_sources - - @software_sources.setter - def software_sources(self, software_sources): - """ - Sets the software_sources of this UpdatablePackageSummary. - list of software sources that provide the software package - - - :param software_sources: The software_sources of this UpdatablePackageSummary. - :type: list[SoftwareSourceId] - """ - self._software_sources = software_sources - - 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/osp_gateway/models/billing_address.py b/src/oci/osp_gateway/models/billing_address.py deleted file mode 100644 index 4f522939d3..0000000000 --- a/src/oci/osp_gateway/models/billing_address.py +++ /dev/null @@ -1,382 +0,0 @@ -# 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: 20191001 - - -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 BillingAddress(object): - """ - Billing address details model. - """ - - def __init__(self, **kwargs): - """ - Initializes a new BillingAddress object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param address_key: - The value to assign to the address_key property of this BillingAddress. - :type address_key: str - - :param line1: - The value to assign to the line1 property of this BillingAddress. - :type line1: str - - :param line2: - The value to assign to the line2 property of this BillingAddress. - :type line2: str - - :param city: - The value to assign to the city property of this BillingAddress. - :type city: str - - :param country: - The value to assign to the country property of this BillingAddress. - :type country: str - - :param postal_code: - The value to assign to the postal_code property of this BillingAddress. - :type postal_code: str - - :param state: - The value to assign to the state property of this BillingAddress. - :type state: str - - :param email_address: - The value to assign to the email_address property of this BillingAddress. - :type email_address: str - - :param company_name: - The value to assign to the company_name property of this BillingAddress. - :type company_name: str - - :param first_name: - The value to assign to the first_name property of this BillingAddress. - :type first_name: str - - :param last_name: - The value to assign to the last_name property of this BillingAddress. - :type last_name: str - - """ - self.swagger_types = { - 'address_key': 'str', - 'line1': 'str', - 'line2': 'str', - 'city': 'str', - 'country': 'str', - 'postal_code': 'str', - 'state': 'str', - 'email_address': 'str', - 'company_name': 'str', - 'first_name': 'str', - 'last_name': 'str' - } - - self.attribute_map = { - 'address_key': 'addressKey', - 'line1': 'line1', - 'line2': 'line2', - 'city': 'city', - 'country': 'country', - 'postal_code': 'postalCode', - 'state': 'state', - 'email_address': 'emailAddress', - 'company_name': 'companyName', - 'first_name': 'firstName', - 'last_name': 'lastName' - } - - self._address_key = None - self._line1 = None - self._line2 = None - self._city = None - self._country = None - self._postal_code = None - self._state = None - self._email_address = None - self._company_name = None - self._first_name = None - self._last_name = None - - @property - def address_key(self): - """ - Gets the address_key of this BillingAddress. - Address identifier. - - - :return: The address_key of this BillingAddress. - :rtype: str - """ - return self._address_key - - @address_key.setter - def address_key(self, address_key): - """ - Sets the address_key of this BillingAddress. - Address identifier. - - - :param address_key: The address_key of this BillingAddress. - :type: str - """ - self._address_key = address_key - - @property - def line1(self): - """ - Gets the line1 of this BillingAddress. - Address line 1. - - - :return: The line1 of this BillingAddress. - :rtype: str - """ - return self._line1 - - @line1.setter - def line1(self, line1): - """ - Sets the line1 of this BillingAddress. - Address line 1. - - - :param line1: The line1 of this BillingAddress. - :type: str - """ - self._line1 = line1 - - @property - def line2(self): - """ - Gets the line2 of this BillingAddress. - Address line 2. - - - :return: The line2 of this BillingAddress. - :rtype: str - """ - return self._line2 - - @line2.setter - def line2(self, line2): - """ - Sets the line2 of this BillingAddress. - Address line 2. - - - :param line2: The line2 of this BillingAddress. - :type: str - """ - self._line2 = line2 - - @property - def city(self): - """ - Gets the city of this BillingAddress. - Name of the city. - - - :return: The city of this BillingAddress. - :rtype: str - """ - return self._city - - @city.setter - def city(self, city): - """ - Sets the city of this BillingAddress. - Name of the city. - - - :param city: The city of this BillingAddress. - :type: str - """ - self._city = city - - @property - def country(self): - """ - Gets the country of this BillingAddress. - Country of the address. - - - :return: The country of this BillingAddress. - :rtype: str - """ - return self._country - - @country.setter - def country(self, country): - """ - Sets the country of this BillingAddress. - Country of the address. - - - :param country: The country of this BillingAddress. - :type: str - """ - self._country = country - - @property - def postal_code(self): - """ - Gets the postal_code of this BillingAddress. - Post code of the address. - - - :return: The postal_code of this BillingAddress. - :rtype: str - """ - return self._postal_code - - @postal_code.setter - def postal_code(self, postal_code): - """ - Sets the postal_code of this BillingAddress. - Post code of the address. - - - :param postal_code: The postal_code of this BillingAddress. - :type: str - """ - self._postal_code = postal_code - - @property - def state(self): - """ - Gets the state of this BillingAddress. - State of the address. - - - :return: The state of this BillingAddress. - :rtype: str - """ - return self._state - - @state.setter - def state(self, state): - """ - Sets the state of this BillingAddress. - State of the address. - - - :param state: The state of this BillingAddress. - :type: str - """ - self._state = state - - @property - def email_address(self): - """ - Gets the email_address of this BillingAddress. - Contact person email address. - - - :return: The email_address of this BillingAddress. - :rtype: str - """ - return self._email_address - - @email_address.setter - def email_address(self, email_address): - """ - Sets the email_address of this BillingAddress. - Contact person email address. - - - :param email_address: The email_address of this BillingAddress. - :type: str - """ - self._email_address = email_address - - @property - def company_name(self): - """ - Gets the company_name of this BillingAddress. - Name of the customer company. - - - :return: The company_name of this BillingAddress. - :rtype: str - """ - return self._company_name - - @company_name.setter - def company_name(self, company_name): - """ - Sets the company_name of this BillingAddress. - Name of the customer company. - - - :param company_name: The company_name of this BillingAddress. - :type: str - """ - self._company_name = company_name - - @property - def first_name(self): - """ - Gets the first_name of this BillingAddress. - First name of the contact person. - - - :return: The first_name of this BillingAddress. - :rtype: str - """ - return self._first_name - - @first_name.setter - def first_name(self, first_name): - """ - Sets the first_name of this BillingAddress. - First name of the contact person. - - - :param first_name: The first_name of this BillingAddress. - :type: str - """ - self._first_name = first_name - - @property - def last_name(self): - """ - Gets the last_name of this BillingAddress. - Last name of the contact person. - - - :return: The last_name of this BillingAddress. - :rtype: str - """ - return self._last_name - - @last_name.setter - def last_name(self, last_name): - """ - Sets the last_name of this BillingAddress. - Last name of the contact person. - - - :param last_name: The last_name of this BillingAddress. - :type: str - """ - self._last_name = last_name - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/security_attribute/security_attribute_client.py b/src/oci/security_attribute/security_attribute_client.py index ab65549a5a..853a51cf97 100644 --- a/src/oci/security_attribute/security_attribute_client.py +++ b/src/oci/security_attribute/security_attribute_client.py @@ -175,7 +175,7 @@ def bulk_delete_security_attributes(self, bulk_delete_security_attributes_detail resource_path = "/securityAttributes/actions/bulkDelete" method = "POST" operation_name = "bulk_delete_security_attributes" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/security-attribute/20240815/SecurityAttribute/BulkDeleteSecurityAttributes" # Don't accept unknown kwargs expected_kwargs = [ @@ -283,7 +283,7 @@ def bulk_edit_security_attributes(self, **kwargs): resource_path = "/securityAttributes/actions/bulkEdit" method = "POST" operation_name = "bulk_edit_security_attributes" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/security-attribute/20240815/SecurityAttribute/BulkEditSecurityAttributes" # Don't accept unknown kwargs expected_kwargs = [ @@ -407,7 +407,7 @@ def cascading_delete_security_attribute_namespace(self, security_attribute_names resource_path = "/securityAttributeNamespaces/{securityAttributeNamespaceId}/actions/cascadeDelete" method = "POST" operation_name = "cascading_delete_security_attribute_namespace" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/security-attribute/20240815/SecurityAttributeNamespace/CascadingDeleteSecurityAttributeNamespace" # Don't accept unknown kwargs expected_kwargs = [ @@ -534,7 +534,7 @@ def change_security_attribute_namespace_compartment(self, security_attribute_nam resource_path = "/securityAttributeNamespaces/{securityAttributeNamespaceId}/actions/changeCompartment" method = "POST" operation_name = "change_security_attribute_namespace_compartment" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/security-attribute/20240815/SecurityAttributeNamespace/ChangeSecurityAttributeNamespaceCompartment" # Don't accept unknown kwargs expected_kwargs = [ @@ -666,7 +666,7 @@ def create_security_attribute(self, security_attribute_namespace_id, create_secu resource_path = "/securityAttributeNamespaces/{securityAttributeNamespaceId}/securityAttributes" method = "POST" operation_name = "create_security_attribute" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/security-attribute/20240815/SecurityAttribute/CreateSecurityAttribute" # Don't accept unknown kwargs expected_kwargs = [ @@ -792,7 +792,7 @@ def create_security_attribute_namespace(self, create_security_attribute_namespac resource_path = "/securityAttributeNamespaces" method = "POST" operation_name = "create_security_attribute_namespace" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/security-attribute/20240815/SecurityAttributeNamespace/CreateSecurityAttributeNamespace" # Don't accept unknown kwargs expected_kwargs = [ @@ -915,7 +915,7 @@ def delete_security_attribute(self, security_attribute_namespace_id, security_at resource_path = "/securityAttributeNamespaces/{securityAttributeNamespaceId}/securityAttributes/{securityAttributeName}" method = "DELETE" operation_name = "delete_security_attribute" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/security-attribute/20240815/SecurityAttribute/DeleteSecurityAttribute" # Don't accept unknown kwargs expected_kwargs = [ @@ -1035,7 +1035,7 @@ def delete_security_attribute_namespace(self, security_attribute_namespace_id, * resource_path = "/securityAttributeNamespaces/{securityAttributeNamespaceId}" method = "DELETE" operation_name = "delete_security_attribute_namespace" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/security-attribute/20240815/SecurityAttributeNamespace/DeleteSecurityAttributeNamespace" # Don't accept unknown kwargs expected_kwargs = [ @@ -1142,7 +1142,7 @@ def get_security_attribute(self, security_attribute_namespace_id, security_attri resource_path = "/securityAttributeNamespaces/{securityAttributeNamespaceId}/securityAttributes/{securityAttributeName}" method = "GET" operation_name = "get_security_attribute" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/security-attribute/20240815/SecurityAttribute/GetSecurityAttribute" # Don't accept unknown kwargs expected_kwargs = [ @@ -1244,7 +1244,7 @@ def get_security_attribute_namespace(self, security_attribute_namespace_id, **kw resource_path = "/securityAttributeNamespaces/{securityAttributeNamespaceId}" method = "GET" operation_name = "get_security_attribute_namespace" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/security-attribute/20240815/SecurityAttributeNamespace/GetSecurityAttributeNamespace" # Don't accept unknown kwargs expected_kwargs = [ @@ -1346,7 +1346,7 @@ def get_security_attribute_work_request(self, work_request_id, **kwargs): resource_path = "/securityAttributeWorkRequests/{workRequestId}" method = "GET" operation_name = "get_security_attribute_work_request" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/security-attribute/20240815/SecurityAttributeWorkRequest/GetSecurityAttributeWorkRequest" # Don't accept unknown kwargs expected_kwargs = [ @@ -1484,7 +1484,7 @@ def list_security_attribute_namespaces(self, **kwargs): resource_path = "/securityAttributeNamespaces" method = "GET" operation_name = "list_security_attribute_namespaces" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/security-attribute/20240815/SecurityAttributeNamespaceSummary/ListSecurityAttributeNamespaces" # Don't accept unknown kwargs expected_kwargs = [ @@ -1622,7 +1622,7 @@ def list_security_attribute_work_request_errors(self, work_request_id, **kwargs) resource_path = "/securityAttributeWorkRequests/{workRequestId}/errors" method = "GET" operation_name = "list_security_attribute_work_request_errors" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/security-attribute/20240815/SecurityAttributeWorkRequestErrorSummary/ListSecurityAttributeWorkRequestErrors" # Don't accept unknown kwargs expected_kwargs = [ @@ -1739,7 +1739,7 @@ def list_security_attribute_work_request_logs(self, work_request_id, **kwargs): resource_path = "/securityAttributeWorkRequests/{workRequestId}/logs" method = "GET" operation_name = "list_security_attribute_work_request_logs" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/security-attribute/20240815/SecurityAttributeWorkRequestLogSummary/ListSecurityAttributeWorkRequestLogs" # Don't accept unknown kwargs expected_kwargs = [ @@ -1861,7 +1861,7 @@ def list_security_attribute_work_requests(self, **kwargs): resource_path = "/securityAttributeWorkRequests" method = "GET" operation_name = "list_security_attribute_work_requests" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/security-attribute/20240815/SecurityAttributeWorkRequestSummary/ListSecurityAttributeWorkRequests" # Don't accept unknown kwargs expected_kwargs = [ @@ -1975,7 +1975,7 @@ def list_security_attributes(self, security_attribute_namespace_id, **kwargs): resource_path = "/securityAttributeNamespaces/{securityAttributeNamespaceId}/securityAttributes" method = "GET" operation_name = "list_security_attributes" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/security-attribute/20240815/SecurityAttributeSummary/ListSecurityAttributes" # Don't accept unknown kwargs expected_kwargs = [ @@ -2114,7 +2114,7 @@ def update_security_attribute(self, security_attribute_namespace_id, security_at resource_path = "/securityAttributeNamespaces/{securityAttributeNamespaceId}/securityAttributes/{securityAttributeName}" method = "PUT" operation_name = "update_security_attribute" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/security-attribute/20240815/SecurityAttribute/UpdateSecurityAttribute" # Don't accept unknown kwargs expected_kwargs = [ @@ -2249,7 +2249,7 @@ def update_security_attribute_namespace(self, security_attribute_namespace_id, u resource_path = "/securityAttributeNamespaces/{securityAttributeNamespaceId}" method = "PUT" operation_name = "update_security_attribute_namespace" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/security-attribute/20240815/SecurityAttributeNamespace/UpdateSecurityAttributeNamespace" # Don't accept unknown kwargs expected_kwargs = [ diff --git a/src/oci/service_mesh/models/create_ingress_gateway_mutual_transport_layer_security_details.py b/src/oci/service_mesh/models/create_ingress_gateway_mutual_transport_layer_security_details.py deleted file mode 100644 index be4247b32c..0000000000 --- a/src/oci/service_mesh/models/create_ingress_gateway_mutual_transport_layer_security_details.py +++ /dev/null @@ -1,76 +0,0 @@ -# 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. - - -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 CreateIngressGatewayMutualTransportLayerSecurityDetails(object): - """ - Mutual TLS settings used when sending requests to virtual services within the mesh. - """ - - def __init__(self, **kwargs): - """ - Initializes a new CreateIngressGatewayMutualTransportLayerSecurityDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param maximum_validity: - The value to assign to the maximum_validity property of this CreateIngressGatewayMutualTransportLayerSecurityDetails. - :type maximum_validity: int - - """ - self.swagger_types = { - 'maximum_validity': 'int' - } - - self.attribute_map = { - 'maximum_validity': 'maximumValidity' - } - - self._maximum_validity = None - - @property - def maximum_validity(self): - """ - Gets the maximum_validity of this CreateIngressGatewayMutualTransportLayerSecurityDetails. - The number of days the mTLS certificate is valid. This value should be less than the Maximum Validity Duration - for Certificates (Days) setting on the Certificate Authority associated with this Mesh. The certificate will - be automatically renewed after 2/3 of the validity period, so a certificate with a maximum validity of 45 days - will be renewed every 30 days. - - - :return: The maximum_validity of this CreateIngressGatewayMutualTransportLayerSecurityDetails. - :rtype: int - """ - return self._maximum_validity - - @maximum_validity.setter - def maximum_validity(self, maximum_validity): - """ - Sets the maximum_validity of this CreateIngressGatewayMutualTransportLayerSecurityDetails. - The number of days the mTLS certificate is valid. This value should be less than the Maximum Validity Duration - for Certificates (Days) setting on the Certificate Authority associated with this Mesh. The certificate will - be automatically renewed after 2/3 of the validity period, so a certificate with a maximum validity of 45 days - will be renewed every 30 days. - - - :param maximum_validity: The maximum_validity of this CreateIngressGatewayMutualTransportLayerSecurityDetails. - :type: int - """ - self._maximum_validity = maximum_validity - - 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/service_mesh/models/create_mutual_transport_layer_security_details.py b/src/oci/service_mesh/models/create_mutual_transport_layer_security_details.py deleted file mode 100644 index 500d3a263a..0000000000 --- a/src/oci/service_mesh/models/create_mutual_transport_layer_security_details.py +++ /dev/null @@ -1,111 +0,0 @@ -# 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. - - -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 CreateMutualTransportLayerSecurityDetails(object): - """ - The mTLS authentication mode to use when receiving requests from other virtual services or ingress gateways within the mesh. - """ - - def __init__(self, **kwargs): - """ - Initializes a new CreateMutualTransportLayerSecurityDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param maximum_validity: - The value to assign to the maximum_validity property of this CreateMutualTransportLayerSecurityDetails. - :type maximum_validity: int - - :param mode: - The value to assign to the mode property of this CreateMutualTransportLayerSecurityDetails. - :type mode: str - - """ - self.swagger_types = { - 'maximum_validity': 'int', - 'mode': 'str' - } - - self.attribute_map = { - 'maximum_validity': 'maximumValidity', - 'mode': 'mode' - } - - self._maximum_validity = None - self._mode = None - - @property - def maximum_validity(self): - """ - Gets the maximum_validity of this CreateMutualTransportLayerSecurityDetails. - The number of days the mTLS certificate is valid. This value should be less than the Maximum Validity Duration - for Certificates (Days) setting on the Certificate Authority associated with this Mesh. The certificate will - be automatically renewed after 2/3 of the validity period, so a certificate with a maximum validity of 45 days - will be renewed every 30 days. - - - :return: The maximum_validity of this CreateMutualTransportLayerSecurityDetails. - :rtype: int - """ - return self._maximum_validity - - @maximum_validity.setter - def maximum_validity(self, maximum_validity): - """ - Sets the maximum_validity of this CreateMutualTransportLayerSecurityDetails. - The number of days the mTLS certificate is valid. This value should be less than the Maximum Validity Duration - for Certificates (Days) setting on the Certificate Authority associated with this Mesh. The certificate will - be automatically renewed after 2/3 of the validity period, so a certificate with a maximum validity of 45 days - will be renewed every 30 days. - - - :param maximum_validity: The maximum_validity of this CreateMutualTransportLayerSecurityDetails. - :type: int - """ - self._maximum_validity = maximum_validity - - @property - def mode(self): - """ - **[Required]** Gets the mode of this CreateMutualTransportLayerSecurityDetails. - DISABLED: Connection is not tunneled. - PERMISSIVE: Connection can be either plaintext or an mTLS tunnel. - STRICT: Connection is an mTLS tunnel. Clients without a valid certificate will be rejected. - - - :return: The mode of this CreateMutualTransportLayerSecurityDetails. - :rtype: str - """ - return self._mode - - @mode.setter - def mode(self, mode): - """ - Sets the mode of this CreateMutualTransportLayerSecurityDetails. - DISABLED: Connection is not tunneled. - PERMISSIVE: Connection can be either plaintext or an mTLS tunnel. - STRICT: Connection is an mTLS tunnel. Clients without a valid certificate will be rejected. - - - :param mode: The mode of this CreateMutualTransportLayerSecurityDetails. - :type: str - """ - self._mode = mode - - def __repr__(self): - return formatted_flat_dict(self) - - def __eq__(self, other): - if other is None: - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not self == other diff --git a/src/oci/usage_api/models/create_schedule_report_details.py b/src/oci/usage_api/models/create_schedule_report_details.py deleted file mode 100644 index be04a8ab74..0000000000 --- a/src/oci/usage_api/models/create_schedule_report_details.py +++ /dev/null @@ -1,128 +0,0 @@ -# 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. - - -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 CreateScheduleReportDetails(object): - """ - New custom table detail. - """ - - def __init__(self, **kwargs): - """ - Initializes a new CreateScheduleReportDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param compartment_id: - The value to assign to the compartment_id property of this CreateScheduleReportDetails. - :type compartment_id: str - - :param query_id: - The value to assign to the query_id property of this CreateScheduleReportDetails. - :type query_id: str - - :param saved_schedule_report: - The value to assign to the saved_schedule_report property of this CreateScheduleReportDetails. - :type saved_schedule_report: oci.usage_api.models.SavedScheduleReport - - """ - self.swagger_types = { - 'compartment_id': 'str', - 'query_id': 'str', - 'saved_schedule_report': 'SavedScheduleReport' - } - - self.attribute_map = { - 'compartment_id': 'compartmentId', - 'query_id': 'queryId', - 'saved_schedule_report': 'savedScheduleReport' - } - - self._compartment_id = None - self._query_id = None - self._saved_schedule_report = None - - @property - def compartment_id(self): - """ - **[Required]** Gets the compartment_id of this CreateScheduleReportDetails. - The compartment OCID. - - - :return: The compartment_id of this CreateScheduleReportDetails. - :rtype: str - """ - return self._compartment_id - - @compartment_id.setter - def compartment_id(self, compartment_id): - """ - Sets the compartment_id of this CreateScheduleReportDetails. - The compartment OCID. - - - :param compartment_id: The compartment_id of this CreateScheduleReportDetails. - :type: str - """ - self._compartment_id = compartment_id - - @property - def query_id(self): - """ - **[Required]** Gets the query_id of this CreateScheduleReportDetails. - The query OCID. - - - :return: The query_id of this CreateScheduleReportDetails. - :rtype: str - """ - return self._query_id - - @query_id.setter - def query_id(self, query_id): - """ - Sets the query_id of this CreateScheduleReportDetails. - The query OCID. - - - :param query_id: The query_id of this CreateScheduleReportDetails. - :type: str - """ - self._query_id = query_id - - @property - def saved_schedule_report(self): - """ - Gets the saved_schedule_report of this CreateScheduleReportDetails. - - :return: The saved_schedule_report of this CreateScheduleReportDetails. - :rtype: oci.usage_api.models.SavedScheduleReport - """ - return self._saved_schedule_report - - @saved_schedule_report.setter - def saved_schedule_report(self, saved_schedule_report): - """ - Sets the saved_schedule_report of this CreateScheduleReportDetails. - - :param saved_schedule_report: The saved_schedule_report of this CreateScheduleReportDetails. - :type: oci.usage_api.models.SavedScheduleReport - """ - self._saved_schedule_report = saved_schedule_report - - 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/usage_api/models/saved_schedule_report.py b/src/oci/usage_api/models/saved_schedule_report.py deleted file mode 100644 index 00bb29a062..0000000000 --- a/src/oci/usage_api/models/saved_schedule_report.py +++ /dev/null @@ -1,145 +0,0 @@ -# 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. - - -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 SavedScheduleReport(object): - """ - notification to customer. - """ - - #: A constant which can be used with the notification_type property of a SavedScheduleReport. - #: This constant has a value of "EMAIL" - NOTIFICATION_TYPE_EMAIL = "EMAIL" - - def __init__(self, **kwargs): - """ - Initializes a new SavedScheduleReport object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param display_name: - The value to assign to the display_name property of this SavedScheduleReport. - :type display_name: str - - :param notification_type: - The value to assign to the notification_type property of this SavedScheduleReport. - Allowed values for this property are: "EMAIL" - :type notification_type: str - - :param notification_target: - The value to assign to the notification_target property of this SavedScheduleReport. - :type notification_target: str - - """ - self.swagger_types = { - 'display_name': 'str', - 'notification_type': 'str', - 'notification_target': 'str' - } - - self.attribute_map = { - 'display_name': 'displayName', - 'notification_type': 'notificationType', - 'notification_target': 'notificationTarget' - } - - self._display_name = None - self._notification_type = None - self._notification_target = None - - @property - def display_name(self): - """ - **[Required]** Gets the display_name of this SavedScheduleReport. - the name of notification - - - :return: The display_name of this SavedScheduleReport. - :rtype: str - """ - return self._display_name - - @display_name.setter - def display_name(self, display_name): - """ - Sets the display_name of this SavedScheduleReport. - the name of notification - - - :param display_name: The display_name of this SavedScheduleReport. - :type: str - """ - self._display_name = display_name - - @property - def notification_type(self): - """ - Gets the notification_type of this SavedScheduleReport. - notification type, eg EMAIL. - - Allowed values for this property are: "EMAIL" - - - :return: The notification_type of this SavedScheduleReport. - :rtype: str - """ - return self._notification_type - - @notification_type.setter - def notification_type(self, notification_type): - """ - Sets the notification_type of this SavedScheduleReport. - notification type, eg EMAIL. - - - :param notification_type: The notification_type of this SavedScheduleReport. - :type: str - """ - allowed_values = ["EMAIL"] - if not value_allowed_none_or_none_sentinel(notification_type, allowed_values): - raise ValueError( - "Invalid value for `notification_type`, must be None or one of {0}" - .format(allowed_values) - ) - self._notification_type = notification_type - - @property - def notification_target(self): - """ - Gets the notification_target of this SavedScheduleReport. - notification destination. - - - :return: The notification_target of this SavedScheduleReport. - :rtype: str - """ - return self._notification_target - - @notification_target.setter - def notification_target(self, notification_target): - """ - Sets the notification_target of this SavedScheduleReport. - notification destination. - - - :param notification_target: The notification_target of this SavedScheduleReport. - :type: str - """ - self._notification_target = notification_target - - 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/usage_api/models/schedule_report.py b/src/oci/usage_api/models/schedule_report.py deleted file mode 100644 index ed196d87e3..0000000000 --- a/src/oci/usage_api/models/schedule_report.py +++ /dev/null @@ -1,159 +0,0 @@ -# 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. - - -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 ScheduleReport(object): - """ - schedule report. - """ - - def __init__(self, **kwargs): - """ - Initializes a new ScheduleReport 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 ScheduleReport. - :type id: str - - :param query_id: - The value to assign to the query_id property of this ScheduleReport. - :type query_id: str - - :param compartment_id: - The value to assign to the compartment_id property of this ScheduleReport. - :type compartment_id: str - - :param saved_schedule_report: - The value to assign to the saved_schedule_report property of this ScheduleReport. - :type saved_schedule_report: oci.usage_api.models.SavedScheduleReport - - """ - self.swagger_types = { - 'id': 'str', - 'query_id': 'str', - 'compartment_id': 'str', - 'saved_schedule_report': 'SavedScheduleReport' - } - - self.attribute_map = { - 'id': 'id', - 'query_id': 'queryId', - 'compartment_id': 'compartmentId', - 'saved_schedule_report': 'savedScheduleReport' - } - - self._id = None - self._query_id = None - self._compartment_id = None - self._saved_schedule_report = None - - @property - def id(self): - """ - **[Required]** Gets the id of this ScheduleReport. - The ocid of schedule report. - - - :return: The id of this ScheduleReport. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this ScheduleReport. - The ocid of schedule report. - - - :param id: The id of this ScheduleReport. - :type: str - """ - self._id = id - - @property - def query_id(self): - """ - Gets the query_id of this ScheduleReport. - The query OCID. - - - :return: The query_id of this ScheduleReport. - :rtype: str - """ - return self._query_id - - @query_id.setter - def query_id(self, query_id): - """ - Sets the query_id of this ScheduleReport. - The query OCID. - - - :param query_id: The query_id of this ScheduleReport. - :type: str - """ - self._query_id = query_id - - @property - def compartment_id(self): - """ - Gets the compartment_id of this ScheduleReport. - The compartment ocid of schedule report. - - - :return: The compartment_id of this ScheduleReport. - :rtype: str - """ - return self._compartment_id - - @compartment_id.setter - def compartment_id(self, compartment_id): - """ - Sets the compartment_id of this ScheduleReport. - The compartment ocid of schedule report. - - - :param compartment_id: The compartment_id of this ScheduleReport. - :type: str - """ - self._compartment_id = compartment_id - - @property - def saved_schedule_report(self): - """ - Gets the saved_schedule_report of this ScheduleReport. - - :return: The saved_schedule_report of this ScheduleReport. - :rtype: oci.usage_api.models.SavedScheduleReport - """ - return self._saved_schedule_report - - @saved_schedule_report.setter - def saved_schedule_report(self, saved_schedule_report): - """ - Sets the saved_schedule_report of this ScheduleReport. - - :param saved_schedule_report: The saved_schedule_report of this ScheduleReport. - :type: oci.usage_api.models.SavedScheduleReport - """ - self._saved_schedule_report = saved_schedule_report - - 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/usage_api/models/schedule_report_collection.py b/src/oci/usage_api/models/schedule_report_collection.py deleted file mode 100644 index 86113b5388..0000000000 --- a/src/oci/usage_api/models/schedule_report_collection.py +++ /dev/null @@ -1,70 +0,0 @@ -# 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. - - -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 ScheduleReportCollection(object): - """ - A schedule report list. - """ - - def __init__(self, **kwargs): - """ - Initializes a new ScheduleReportCollection 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 ScheduleReportCollection. - :type items: list[oci.usage_api.models.ScheduleReportSummary] - - """ - self.swagger_types = { - 'items': 'list[ScheduleReportSummary]' - } - - self.attribute_map = { - 'items': 'items' - } - - self._items = None - - @property - def items(self): - """ - **[Required]** Gets the items of this ScheduleReportCollection. - schedule report list. - - - :return: The items of this ScheduleReportCollection. - :rtype: list[oci.usage_api.models.ScheduleReportSummary] - """ - return self._items - - @items.setter - def items(self, items): - """ - Sets the items of this ScheduleReportCollection. - schedule report list. - - - :param items: The items of this ScheduleReportCollection. - :type: list[oci.usage_api.models.ScheduleReportSummary] - """ - 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/usage_api/models/schedule_report_summary.py b/src/oci/usage_api/models/schedule_report_summary.py deleted file mode 100644 index 6c6c822c95..0000000000 --- a/src/oci/usage_api/models/schedule_report_summary.py +++ /dev/null @@ -1,97 +0,0 @@ -# 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. - - -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 ScheduleReportSummary(object): - """ - Schedule report in list request. - """ - - def __init__(self, **kwargs): - """ - Initializes a new ScheduleReportSummary 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 ScheduleReportSummary. - :type id: str - - :param saved_schedule_report: - The value to assign to the saved_schedule_report property of this ScheduleReportSummary. - :type saved_schedule_report: oci.usage_api.models.SavedScheduleReport - - """ - self.swagger_types = { - 'id': 'str', - 'saved_schedule_report': 'SavedScheduleReport' - } - - self.attribute_map = { - 'id': 'id', - 'saved_schedule_report': 'savedScheduleReport' - } - - self._id = None - self._saved_schedule_report = None - - @property - def id(self): - """ - **[Required]** Gets the id of this ScheduleReportSummary. - The Schedule report OCID. - - - :return: The id of this ScheduleReportSummary. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this ScheduleReportSummary. - The Schedule report OCID. - - - :param id: The id of this ScheduleReportSummary. - :type: str - """ - self._id = id - - @property - def saved_schedule_report(self): - """ - Gets the saved_schedule_report of this ScheduleReportSummary. - - :return: The saved_schedule_report of this ScheduleReportSummary. - :rtype: oci.usage_api.models.SavedScheduleReport - """ - return self._saved_schedule_report - - @saved_schedule_report.setter - def saved_schedule_report(self, saved_schedule_report): - """ - Sets the saved_schedule_report of this ScheduleReportSummary. - - :param saved_schedule_report: The saved_schedule_report of this ScheduleReportSummary. - :type: oci.usage_api.models.SavedScheduleReport - """ - self._saved_schedule_report = saved_schedule_report - - 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/usage_api/models/update_schedule_report_details.py b/src/oci/usage_api/models/update_schedule_report_details.py deleted file mode 100644 index 1cbe539d56..0000000000 --- a/src/oci/usage_api/models/update_schedule_report_details.py +++ /dev/null @@ -1,66 +0,0 @@ -# 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. - - -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 UpdateScheduleReportDetails(object): - """ - Details for updating schedule report. - """ - - def __init__(self, **kwargs): - """ - Initializes a new UpdateScheduleReportDetails object with values from keyword arguments. - The following keyword arguments are supported (corresponding to the getters/setters of this class): - - :param saved_schedule_report: - The value to assign to the saved_schedule_report property of this UpdateScheduleReportDetails. - :type saved_schedule_report: oci.usage_api.models.SavedScheduleReport - - """ - self.swagger_types = { - 'saved_schedule_report': 'SavedScheduleReport' - } - - self.attribute_map = { - 'saved_schedule_report': 'savedScheduleReport' - } - - self._saved_schedule_report = None - - @property - def saved_schedule_report(self): - """ - **[Required]** Gets the saved_schedule_report of this UpdateScheduleReportDetails. - - :return: The saved_schedule_report of this UpdateScheduleReportDetails. - :rtype: oci.usage_api.models.SavedScheduleReport - """ - return self._saved_schedule_report - - @saved_schedule_report.setter - def saved_schedule_report(self, saved_schedule_report): - """ - Sets the saved_schedule_report of this UpdateScheduleReportDetails. - - :param saved_schedule_report: The saved_schedule_report of this UpdateScheduleReportDetails. - :type: oci.usage_api.models.SavedScheduleReport - """ - self._saved_schedule_report = saved_schedule_report - - 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/util.py b/src/oci/util.py index c149b00dbb..5e876aea3a 100644 --- a/src/oci/util.py +++ b/src/oci/util.py @@ -92,7 +92,8 @@ def formatted_flat_dict(model): return json.dumps( as_dict, indent=2, - sort_keys=True + sort_keys=True, + ensure_ascii=False ) diff --git a/src/oci/version.py b/src/oci/version.py index 78fcb10abd..f485ad08de 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.2" +__version__ = "2.136.0" diff --git a/src/oci/zpr/zpr_client.py b/src/oci/zpr/zpr_client.py index 9c536d28bc..3fde142140 100644 --- a/src/oci/zpr/zpr_client.py +++ b/src/oci/zpr/zpr_client.py @@ -165,7 +165,7 @@ def create_configuration(self, create_configuration_details, **kwargs): resource_path = "/configuration" method = "POST" operation_name = "create_configuration" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/zero-trust-packet-routing/20240301/Configuration/CreateConfiguration" # Don't accept unknown kwargs expected_kwargs = [ @@ -270,7 +270,7 @@ def create_zpr_policy(self, create_zpr_policy_details, **kwargs): resource_path = "/zprPolicies" method = "POST" operation_name = "create_zpr_policy" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/zero-trust-packet-routing/20240301/ZprPolicy/CreateZprPolicy" # Don't accept unknown kwargs expected_kwargs = [ @@ -378,7 +378,7 @@ def delete_zpr_policy(self, zpr_policy_id, **kwargs): resource_path = "/zprPolicies/{zprPolicyId}" method = "DELETE" operation_name = "delete_zpr_policy" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/zero-trust-packet-routing/20240301/ZprPolicy/DeleteZprPolicy" # Don't accept unknown kwargs expected_kwargs = [ @@ -484,7 +484,7 @@ def get_configuration(self, **kwargs): resource_path = "/configuration" method = "GET" operation_name = "get_configuration" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/zero-trust-packet-routing/20240301/Configuration/GetConfiguration" # Don't accept unknown kwargs expected_kwargs = [ @@ -583,7 +583,7 @@ def get_zpr_configuration_work_request(self, work_request_id, **kwargs): resource_path = "/zprConfigurationWorkRequests/{workRequestId}" method = "GET" operation_name = "get_zpr_configuration_work_request" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/zero-trust-packet-routing/20240301/WorkRequest/GetZprConfigurationWorkRequest" # Don't accept unknown kwargs expected_kwargs = [ @@ -686,7 +686,7 @@ def get_zpr_policy(self, zpr_policy_id, **kwargs): resource_path = "/zprPolicies/{zprPolicyId}" method = "GET" operation_name = "get_zpr_policy" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/zero-trust-packet-routing/20240301/ZprPolicy/GetZprPolicy" # Don't accept unknown kwargs expected_kwargs = [ @@ -789,7 +789,7 @@ def get_zpr_policy_work_request(self, work_request_id, **kwargs): resource_path = "/zprPolicyWorkRequests/{workRequestId}" method = "GET" operation_name = "get_zpr_policy_work_request" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/zero-trust-packet-routing/20240301/WorkRequest/GetZprPolicyWorkRequest" # Don't accept unknown kwargs expected_kwargs = [ @@ -916,7 +916,7 @@ def list_zpr_configuration_work_request_errors(self, work_request_id, **kwargs): resource_path = "/zprConfigurationWorkRequests/{workRequestId}/errors" method = "GET" operation_name = "list_zpr_configuration_work_request_errors" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/zero-trust-packet-routing/20240301/WorkRequestError/ListZprConfigurationWorkRequestErrors" # Don't accept unknown kwargs expected_kwargs = [ @@ -1071,7 +1071,7 @@ def list_zpr_configuration_work_request_logs(self, work_request_id, **kwargs): resource_path = "/zprConfigurationWorkRequests/{workRequestId}/logs" method = "GET" operation_name = "list_zpr_configuration_work_request_logs" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/zero-trust-packet-routing/20240301/WorkRequestLogEntry/ListZprConfigurationWorkRequestLogs" # Don't accept unknown kwargs expected_kwargs = [ @@ -1241,7 +1241,7 @@ def list_zpr_configuration_work_requests(self, **kwargs): resource_path = "/zprConfigurationWorkRequests" method = "GET" operation_name = "list_zpr_configuration_work_requests" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/zero-trust-packet-routing/20240301/WorkRequest/ListZprConfigurationWorkRequests" # Don't accept unknown kwargs expected_kwargs = [ @@ -1414,7 +1414,7 @@ def list_zpr_policies(self, **kwargs): resource_path = "/zprPolicies" method = "GET" operation_name = "list_zpr_policies" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/zero-trust-packet-routing/20240301/ZprPolicyCollection/ListZprPolicies" # Don't accept unknown kwargs expected_kwargs = [ @@ -1572,7 +1572,7 @@ def list_zpr_policy_work_request_errors(self, work_request_id, **kwargs): resource_path = "/zprPolicyWorkRequests/{workRequestId}/errors" method = "GET" operation_name = "list_zpr_policy_work_request_errors" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/zero-trust-packet-routing/20240301/WorkRequestError/ListZprPolicyWorkRequestErrors" # Don't accept unknown kwargs expected_kwargs = [ @@ -1727,7 +1727,7 @@ def list_zpr_policy_work_request_logs(self, work_request_id, **kwargs): resource_path = "/zprPolicyWorkRequests/{workRequestId}/logs" method = "GET" operation_name = "list_zpr_policy_work_request_logs" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/zero-trust-packet-routing/20240301/WorkRequestLogEntry/ListZprPolicyWorkRequestLogs" # Don't accept unknown kwargs expected_kwargs = [ @@ -1897,7 +1897,7 @@ def list_zpr_policy_work_requests(self, **kwargs): resource_path = "/zprPolicyWorkRequests" method = "GET" operation_name = "list_zpr_policy_work_requests" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/zero-trust-packet-routing/20240301/WorkRequest/ListZprPolicyWorkRequests" # Don't accept unknown kwargs expected_kwargs = [ @@ -2051,7 +2051,7 @@ def update_zpr_policy(self, zpr_policy_id, update_zpr_policy_details, **kwargs): resource_path = "/zprPolicies/{zprPolicyId}" method = "PUT" operation_name = "update_zpr_policy" - api_reference_link = "" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/zero-trust-packet-routing/20240301/ZprPolicy/UpdateZprPolicy" # Don't accept unknown kwargs expected_kwargs = [