0x1949 Team - FAZEMRX - MANAGER
Edit File: __init__.cpython-310.pyc
o �(�f/# � @ sj d dl Z d dlZd dlmZ d dlmZmZmZmZ d dl m Z d dlmZ d dl mZ d dlmZ d dlmZ d d lmZ d d lmZ d dlmZ d dlmZmZ d d lmZ d dlmZ d dl m!Z! d dl"m#Z# d dl$m%Z%m&Z& d dl'm(Z( eeeeeej)ej*ej+eee!e%e&g Z, d>dede-de-de.de.deee- fdd�Z/d?dede.dee- fdd �Z0ded!ee- dee- fd"d#�Z1e j2G d$d%� d%e j3��Z4dedee- fd&d'�Z5dedee- fd(d)�Z6ded*ee d+e4d,ee-e.f d-ee- f d.d/�Z7ded+e4dee- fd0d1�Z8d2ee- defd3d4�Z9dede j:fd5d6�Z;d7d8� Z<dede.fd9d:�Z=d@ded;e-fd<d=�Z>dS )A� N)�defaultdict)�Dict�List�Optional�Type)� exceptions)�UAConfig)�fips)�AnboxEntitlement)� UAEntitlement)�CommonCriteriaEntitlement)�CISEntitlement)�ApplicabilityStatus)�ESMAppsEntitlement�ESMInfraEntitlement)�LandscapeEntitlement)�LivepatchEntitlement)�RealtimeKernelEntitlement)�RepoEntitlement)�ROSEntitlement�ROSUpdatesEntitlement)�EntitlementNotFoundError� F�cfg�name�variant�purge�access_only� extra_argsc C sj t D ]-}|| ||||d�}||jv r/|s| S ||jv r*|j| | |||d� S t|d��qt|d��)a� Returns a UAEntitlement object based on the provided name. The return type is Optional[Type[UAEntitlement]]. It cannot be explicit because of the Python version on Xenial (3.5.2). :param cfg: UAConfig instance :param name: The name of the entitlement to return :param variant: The variant name to be used :param purge: If purge operation is enabled :param access_only: If entitlement should be set with access only :param extra_args: Extra parameters to create the entitlement :raise EntitlementNotFoundError: If not_found_okay is False and no entitlement with the given name is found, then raises this error. )r r �called_namer r )r r r r )�entitlement_name)�ENTITLEMENT_CLASSES�valid_names�variantsr )r r r r r r �entitlement�ent� r&