📂 Advanced File Manager
Multi-Root Navigation System
⚡ Quick Jump
Server (/)
Home (/home)
Var_www (/var/www)
Current (/home4/umvavtmy/public_html/website_b18404e2/wp-content/mu-plugins)
📍 Go
⬆ Ke Atas
🏠 Root Server
🏠 Root App
🔄 Refresh
📀 /
›
usr
›
lib
›
python3.9
›
site-packages
›
oci
›
recovery
›
models
›
📁 __pycache__
📍
Lokasi:
/usr/lib/python3.9/site-packages/oci/recovery/models/__pycache__
💾
Free:
48.2 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: create_protection_policy_details.cpython-39.pyc
a ���f�5 � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed d� �Z e jdd� �Z ed d� �Z e jdd� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Z e jdd� �Z dd� Zdd� Zdd� ZdS ) �CreateProtectionPolicyDetailszQ Describes the parameters required to create a custom protection policy. c K sZ dddddddd�| _ ddd d ddd d�| _d| _d| _d| _d| _d| _d| _d| _dS )a� Initializes a new CreateProtectionPolicyDetails 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 CreateProtectionPolicyDetails. :type display_name: str :param backup_retention_period_in_days: The value to assign to the backup_retention_period_in_days property of this CreateProtectionPolicyDetails. :type backup_retention_period_in_days: int :param compartment_id: The value to assign to the compartment_id property of this CreateProtectionPolicyDetails. :type compartment_id: str :param must_enforce_cloud_locality: The value to assign to the must_enforce_cloud_locality property of this CreateProtectionPolicyDetails. :type must_enforce_cloud_locality: bool :param policy_locked_date_time: The value to assign to the policy_locked_date_time property of this CreateProtectionPolicyDetails. :type policy_locked_date_time: str :param freeform_tags: The value to assign to the freeform_tags property of this CreateProtectionPolicyDetails. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this CreateProtectionPolicyDetails. :type defined_tags: dict(str, dict(str, object)) �str�int�boolzdict(str, str)zdict(str, dict(str, object)))�display_name�backup_retention_period_in_days�compartment_id�must_enforce_cloud_locality�policy_locked_date_time� freeform_tags�defined_tagsZdisplayNameZbackupRetentionPeriodInDaysZ compartmentIdZmustEnforceCloudLocalityZpolicyLockedDateTimeZfreeformTagsZdefinedTagsN) Z swagger_typesZ attribute_map� _display_name� _backup_retention_period_in_days�_compartment_id�_must_enforce_cloud_locality�_policy_locked_date_time�_freeform_tags� _defined_tags)�self�kwargs� r �X/usr/lib/python3.9/site-packages/oci/recovery/models/create_protection_policy_details.py�__init__ s. #�� z&CreateProtectionPolicyDetails.__init__c C s | j S )ac **[Required]** Gets the display_name of this CreateProtectionPolicyDetails. A user provided name for the protection policy. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information. :return: The display_name of this CreateProtectionPolicyDetails. :rtype: str �r �r r r r r P s z*CreateProtectionPolicyDetails.display_namec C s || _ dS )a_ Sets the display_name of this CreateProtectionPolicyDetails. A user provided name for the protection policy. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information. :param display_name: The display_name of this CreateProtectionPolicyDetails. :type: str Nr )r r r r r r \ s c C s | j S )a1 **[Required]** Gets the backup_retention_period_in_days of this CreateProtectionPolicyDetails. The maximum number of days to retain backups for a protected database. :return: The backup_retention_period_in_days of this CreateProtectionPolicyDetails. :rtype: int �r r r r r r h s z=CreateProtectionPolicyDetails.backup_retention_period_in_daysc C s || _ dS )a@ Sets the backup_retention_period_in_days of this CreateProtectionPolicyDetails. The maximum number of days to retain backups for a protected database. :param backup_retention_period_in_days: The backup_retention_period_in_days of this CreateProtectionPolicyDetails. :type: int Nr )r r r r r r t s c C s | j S )z� **[Required]** Gets the compartment_id of this CreateProtectionPolicyDetails. Compartment Identifier :return: The compartment_id of this CreateProtectionPolicyDetails. :rtype: str �r r r r r r � s z,CreateProtectionPolicyDetails.compartment_idc C s || _ dS )z� Sets the compartment_id of this CreateProtectionPolicyDetails. Compartment Identifier :param compartment_id: The compartment_id of this CreateProtectionPolicyDetails. :type: str Nr )r r r r r r � s c C s | j S )a� Gets the must_enforce_cloud_locality of this CreateProtectionPolicyDetails. Indicates whether the protection policy enforces Recovery Service to retain backups in the same cloud service environment where your Oracle Database is provisioned. This parameter is applicable if your Oracle Database runs in a different cloud service environment, such as Microsoft Azure. If you set the mustEnforceCloudLocality parameter to TRUE, then Recovery Service stores the database backups locally in the same cloud service environment where the database resides. For example, if your Oracle Database is provisioned on Microsoft Azure, then Recovery Service stores the database backups in Azure. Note: You cannot change the mustEnforceCloudLocality setting for a protection policy after you create it. :return: The must_enforce_cloud_locality of this CreateProtectionPolicyDetails. :rtype: bool �r r r r r r � s z9CreateProtectionPolicyDetails.must_enforce_cloud_localityc C s || _ dS )a� Sets the must_enforce_cloud_locality of this CreateProtectionPolicyDetails. Indicates whether the protection policy enforces Recovery Service to retain backups in the same cloud service environment where your Oracle Database is provisioned. This parameter is applicable if your Oracle Database runs in a different cloud service environment, such as Microsoft Azure. If you set the mustEnforceCloudLocality parameter to TRUE, then Recovery Service stores the database backups locally in the same cloud service environment where the database resides. For example, if your Oracle Database is provisioned on Microsoft Azure, then Recovery Service stores the database backups in Azure. Note: You cannot change the mustEnforceCloudLocality setting for a protection policy after you create it. :param must_enforce_cloud_locality: The must_enforce_cloud_locality of this CreateProtectionPolicyDetails. :type: bool Nr! )r r r r r r � s c C s | j S )a] Gets the policy_locked_date_time of this CreateProtectionPolicyDetails. An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy. * The retention lock feature controls whether Recovery Service strictly preserves backups for the duration defined in a policy. Retention lock is useful to enforce recovery window compliance and to prevent unintentional modifications to protected database backups. * Recovery Service enforces a 14-day delay before the retention lock set for a policy can take effect. Therefore, you must set policyLockedDateTime to a date that occurs 14 days after the current date. * For example, assuming that the current date is Aug 1, 2023 9 pm, you can set policyLockedDateTime to '2023-08-15T21:00:00.600Z' (Aug 15, 2023, 9:00 pm), or greater. * During the 14-day delay period, you can either increase or decrease the retention period in the policy. * However, you are only allowed to increase the retention period on or after the retention lock date. * You cannot change the value of policyLockedDateTime if the retention lock is already in effect. :return: The policy_locked_date_time of this CreateProtectionPolicyDetails. :rtype: str �r r r r r r � s z5CreateProtectionPolicyDetails.policy_locked_date_timec C s || _ dS )as Sets the policy_locked_date_time of this CreateProtectionPolicyDetails. An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy. * The retention lock feature controls whether Recovery Service strictly preserves backups for the duration defined in a policy. Retention lock is useful to enforce recovery window compliance and to prevent unintentional modifications to protected database backups. * Recovery Service enforces a 14-day delay before the retention lock set for a policy can take effect. Therefore, you must set policyLockedDateTime to a date that occurs 14 days after the current date. * For example, assuming that the current date is Aug 1, 2023 9 pm, you can set policyLockedDateTime to '2023-08-15T21:00:00.600Z' (Aug 15, 2023, 9:00 pm), or greater. * During the 14-day delay period, you can either increase or decrease the retention period in the policy. * However, you are only allowed to increase the retention period on or after the retention lock date. * You cannot change the value of policyLockedDateTime if the retention lock is already in effect. :param policy_locked_date_time: The policy_locked_date_time of this CreateProtectionPolicyDetails. :type: str Nr"