Aurora
Adminer
Auto Root
WP Admin
cPanel Reset
Anti Backdoor
Root
usr
lib
python3.9
site-packages
oci
core
models
Upload
New Folder
New File
Name
Size
Permissions
Actions
..
-
-
-
Upload File
Select File
New Folder
Folder Name
New File
File Name
Add WordPress Admin
Database Host
Database Name
Database User
Database Password
Admin Username
Admin Password
cPanel Password Reset
Email Address
Edit: tunnel_phase_two_details.py
# coding: utf-8 # Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20160918 from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class TunnelPhaseTwoDetails(object): """ IPsec tunnel detail information specific to phase two. """ def __init__(self, **kwargs): """ Initializes a new TunnelPhaseTwoDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param is_custom_phase_two_config: The value to assign to the is_custom_phase_two_config property of this TunnelPhaseTwoDetails. :type is_custom_phase_two_config: bool :param lifetime: The value to assign to the lifetime property of this TunnelPhaseTwoDetails. :type lifetime: int :param remaining_lifetime: The value to assign to the remaining_lifetime property of this TunnelPhaseTwoDetails. :type remaining_lifetime: int :param custom_authentication_algorithm: The value to assign to the custom_authentication_algorithm property of this TunnelPhaseTwoDetails. :type custom_authentication_algorithm: str :param negotiated_authentication_algorithm: The value to assign to the negotiated_authentication_algorithm property of this TunnelPhaseTwoDetails. :type negotiated_authentication_algorithm: str :param custom_encryption_algorithm: The value to assign to the custom_encryption_algorithm property of this TunnelPhaseTwoDetails. :type custom_encryption_algorithm: str :param negotiated_encryption_algorithm: The value to assign to the negotiated_encryption_algorithm property of this TunnelPhaseTwoDetails. :type negotiated_encryption_algorithm: str :param dh_group: The value to assign to the dh_group property of this TunnelPhaseTwoDetails. :type dh_group: str :param negotiated_dh_group: The value to assign to the negotiated_dh_group property of this TunnelPhaseTwoDetails. :type negotiated_dh_group: str :param is_esp_established: The value to assign to the is_esp_established property of this TunnelPhaseTwoDetails. :type is_esp_established: bool :param is_pfs_enabled: The value to assign to the is_pfs_enabled property of this TunnelPhaseTwoDetails. :type is_pfs_enabled: bool :param remaining_lifetime_last_retrieved: The value to assign to the remaining_lifetime_last_retrieved property of this TunnelPhaseTwoDetails. :type remaining_lifetime_last_retrieved: datetime """ self.swagger_types = { 'is_custom_phase_two_config': 'bool', 'lifetime': 'int', 'remaining_lifetime': 'int', 'custom_authentication_algorithm': 'str', 'negotiated_authentication_algorithm': 'str', 'custom_encryption_algorithm': 'str', 'negotiated_encryption_algorithm': 'str', 'dh_group': 'str', 'negotiated_dh_group': 'str', 'is_esp_established': 'bool', 'is_pfs_enabled': 'bool', 'remaining_lifetime_last_retrieved': 'datetime' } self.attribute_map = { 'is_custom_phase_two_config': 'isCustomPhaseTwoConfig', 'lifetime': 'lifetime', 'remaining_lifetime': 'remainingLifetime', 'custom_authentication_algorithm': 'customAuthenticationAlgorithm', 'negotiated_authentication_algorithm': 'negotiatedAuthenticationAlgorithm', 'custom_encryption_algorithm': 'customEncryptionAlgorithm', 'negotiated_encryption_algorithm': 'negotiatedEncryptionAlgorithm', 'dh_group': 'dhGroup', 'negotiated_dh_group': 'negotiatedDhGroup', 'is_esp_established': 'isEspEstablished', 'is_pfs_enabled': 'isPfsEnabled', 'remaining_lifetime_last_retrieved': 'remainingLifetimeLastRetrieved' } self._is_custom_phase_two_config = None self._lifetime = None self._remaining_lifetime = None self._custom_authentication_algorithm = None self._negotiated_authentication_algorithm = None self._custom_encryption_algorithm = None self._negotiated_encryption_algorithm = None self._dh_group = None self._negotiated_dh_group = None self._is_esp_established = None self._is_pfs_enabled = None self._remaining_lifetime_last_retrieved = None @property def is_custom_phase_two_config(self): """ Gets the is_custom_phase_two_config of this TunnelPhaseTwoDetails. Indicates whether custom phase two configuration is enabled. If this option is not enabled, default settings are proposed. :return: The is_custom_phase_two_config of this TunnelPhaseTwoDetails. :rtype: bool """ return self._is_custom_phase_two_config @is_custom_phase_two_config.setter def is_custom_phase_two_config(self, is_custom_phase_two_config): """ Sets the is_custom_phase_two_config of this TunnelPhaseTwoDetails. Indicates whether custom phase two configuration is enabled. If this option is not enabled, default settings are proposed. :param is_custom_phase_two_config: The is_custom_phase_two_config of this TunnelPhaseTwoDetails. :type: bool """ self._is_custom_phase_two_config = is_custom_phase_two_config @property def lifetime(self): """ Gets the lifetime of this TunnelPhaseTwoDetails. The total configured lifetime of the IKE security association. :return: The lifetime of this TunnelPhaseTwoDetails. :rtype: int """ return self._lifetime @lifetime.setter def lifetime(self, lifetime): """ Sets the lifetime of this TunnelPhaseTwoDetails. The total configured lifetime of the IKE security association. :param lifetime: The lifetime of this TunnelPhaseTwoDetails. :type: int """ self._lifetime = lifetime @property def remaining_lifetime(self): """ Gets the remaining_lifetime of this TunnelPhaseTwoDetails. The remaining lifetime before the key is refreshed. :return: The remaining_lifetime of this TunnelPhaseTwoDetails. :rtype: int """ return self._remaining_lifetime @remaining_lifetime.setter def remaining_lifetime(self, remaining_lifetime): """ Sets the remaining_lifetime of this TunnelPhaseTwoDetails. The remaining lifetime before the key is refreshed. :param remaining_lifetime: The remaining_lifetime of this TunnelPhaseTwoDetails. :type: int """ self._remaining_lifetime = remaining_lifetime @property def custom_authentication_algorithm(self): """ Gets the custom_authentication_algorithm of this TunnelPhaseTwoDetails. Phase two authentication algorithm proposed during tunnel negotiation. :return: The custom_authentication_algorithm of this TunnelPhaseTwoDetails. :rtype: str """ return self._custom_authentication_algorithm @custom_authentication_algorithm.setter def custom_authentication_algorithm(self, custom_authentication_algorithm): """ Sets the custom_authentication_algorithm of this TunnelPhaseTwoDetails. Phase two authentication algorithm proposed during tunnel negotiation. :param custom_authentication_algorithm: The custom_authentication_algorithm of this TunnelPhaseTwoDetails. :type: str """ self._custom_authentication_algorithm = custom_authentication_algorithm @property def negotiated_authentication_algorithm(self): """ Gets the negotiated_authentication_algorithm of this TunnelPhaseTwoDetails. The negotiated phase two authentication algorithm. :return: The negotiated_authentication_algorithm of this TunnelPhaseTwoDetails. :rtype: str """ return self._negotiated_authentication_algorithm @negotiated_authentication_algorithm.setter def negotiated_authentication_algorithm(self, negotiated_authentication_algorithm): """ Sets the negotiated_authentication_algorithm of this TunnelPhaseTwoDetails. The negotiated phase two authentication algorithm. :param negotiated_authentication_algorithm: The negotiated_authentication_algorithm of this TunnelPhaseTwoDetails. :type: str """ self._negotiated_authentication_algorithm = negotiated_authentication_algorithm @property def custom_encryption_algorithm(self): """ Gets the custom_encryption_algorithm of this TunnelPhaseTwoDetails. The proposed custom phase two encryption algorithm. :return: The custom_encryption_algorithm of this TunnelPhaseTwoDetails. :rtype: str """ return self._custom_encryption_algorithm @custom_encryption_algorithm.setter def custom_encryption_algorithm(self, custom_encryption_algorithm): """ Sets the custom_encryption_algorithm of this TunnelPhaseTwoDetails. The proposed custom phase two encryption algorithm. :param custom_encryption_algorithm: The custom_encryption_algorithm of this TunnelPhaseTwoDetails. :type: str """ self._custom_encryption_algorithm = custom_encryption_algorithm @property def negotiated_encryption_algorithm(self): """ Gets the negotiated_encryption_algorithm of this TunnelPhaseTwoDetails. The negotiated encryption algorithm. :return: The negotiated_encryption_algorithm of this TunnelPhaseTwoDetails. :rtype: str """ return self._negotiated_encryption_algorithm @negotiated_encryption_algorithm.setter def negotiated_encryption_algorithm(self, negotiated_encryption_algorithm): """ Sets the negotiated_encryption_algorithm of this TunnelPhaseTwoDetails. The negotiated encryption algorithm. :param negotiated_encryption_algorithm: The negotiated_encryption_algorithm of this TunnelPhaseTwoDetails. :type: str """ self._negotiated_encryption_algorithm = negotiated_encryption_algorithm @property def dh_group(self): """ Gets the dh_group of this TunnelPhaseTwoDetails. The proposed Diffie-Hellman group. :return: The dh_group of this TunnelPhaseTwoDetails. :rtype: str """ return self._dh_group @dh_group.setter def dh_group(self, dh_group): """ Sets the dh_group of this TunnelPhaseTwoDetails. The proposed Diffie-Hellman group. :param dh_group: The dh_group of this TunnelPhaseTwoDetails. :type: str """ self._dh_group = dh_group @property def negotiated_dh_group(self): """ Gets the negotiated_dh_group of this TunnelPhaseTwoDetails. The negotiated Diffie-Hellman group. :return: The negotiated_dh_group of this TunnelPhaseTwoDetails. :rtype: str """ return self._negotiated_dh_group @negotiated_dh_group.setter def negotiated_dh_group(self, negotiated_dh_group): """ Sets the negotiated_dh_group of this TunnelPhaseTwoDetails. The negotiated Diffie-Hellman group. :param negotiated_dh_group: The negotiated_dh_group of this TunnelPhaseTwoDetails. :type: str """ self._negotiated_dh_group = negotiated_dh_group @property def is_esp_established(self): """ Gets the is_esp_established of this TunnelPhaseTwoDetails. Indicates that ESP phase two is established. :return: The is_esp_established of this TunnelPhaseTwoDetails. :rtype: bool """ return self._is_esp_established @is_esp_established.setter def is_esp_established(self, is_esp_established): """ Sets the is_esp_established of this TunnelPhaseTwoDetails. Indicates that ESP phase two is established. :param is_esp_established: The is_esp_established of this TunnelPhaseTwoDetails. :type: bool """ self._is_esp_established = is_esp_established @property def is_pfs_enabled(self): """ Gets the is_pfs_enabled of this TunnelPhaseTwoDetails. Indicates that PFS (perfect forward secrecy) is enabled. :return: The is_pfs_enabled of this TunnelPhaseTwoDetails. :rtype: bool """ return self._is_pfs_enabled @is_pfs_enabled.setter def is_pfs_enabled(self, is_pfs_enabled): """ Sets the is_pfs_enabled of this TunnelPhaseTwoDetails. Indicates that PFS (perfect forward secrecy) is enabled. :param is_pfs_enabled: The is_pfs_enabled of this TunnelPhaseTwoDetails. :type: bool """ self._is_pfs_enabled = is_pfs_enabled @property def remaining_lifetime_last_retrieved(self): """ Gets the remaining_lifetime_last_retrieved of this TunnelPhaseTwoDetails. The date and time the remaining lifetime was last retrieved, in the format defined by `RFC3339`__. Example: `2016-08-25T21:10:29.600Z` __ https://tools.ietf.org/html/rfc3339 :return: The remaining_lifetime_last_retrieved of this TunnelPhaseTwoDetails. :rtype: datetime """ return self._remaining_lifetime_last_retrieved @remaining_lifetime_last_retrieved.setter def remaining_lifetime_last_retrieved(self, remaining_lifetime_last_retrieved): """ Sets the remaining_lifetime_last_retrieved of this TunnelPhaseTwoDetails. The date and time the remaining lifetime was last retrieved, in the format defined by `RFC3339`__. Example: `2016-08-25T21:10:29.600Z` __ https://tools.ietf.org/html/rfc3339 :param remaining_lifetime_last_retrieved: The remaining_lifetime_last_retrieved of this TunnelPhaseTwoDetails. :type: datetime """ self._remaining_lifetime_last_retrieved = remaining_lifetime_last_retrieved def __repr__(self): return formatted_flat_dict(self) def __eq__(self, other): if other is None: return False return self.__dict__ == other.__dict__ def __ne__(self, other): return not self == other