| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/google-cloud-sdk/lib/surface/transfer/agents/__pycache__/ |
Upload File : |
�
��L � �r � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddl
mZ d Zd
Z
dZdZd
ZdZd� Zej ej ej j � � G d� dej � � � � � � Zej ej ej j � � G d� de� � � � � � ZdS )z"Command to delete transfer agents.� )�absolute_import)�division)�unicode_literals)�arg_parsers)�base)�agents_util)�resource_printerz�To delete specific agents on your machine, run the following command:
{container_manager} stop {container_ids}
Note: If you encounter a permission error or cannot find the agent, you may need
to add "sudo" before "{container_manager}".
a7 To delete all agents on your machine, run the following command:
{container_manager} stop $({container_manager} container list --quiet --all --filter ancestor=gcr.io/cloud-ingest/tsop-agent)
Note: If you encounter a permission error, you may need to add "sudo" before both instances of "{container_manager}".
a� To delete all agents on your machine and uninstall the machine's agent container image, run the following commands:
{container_manager} stop $({container_manager} container list --quiet --all --filter ancestor=gcr.io/cloud-ingest/tsop-agent)
# May take a moment for containers to shutdown before you can run:
{container_manager} image rm gcr.io/cloud-ingest/tsop-agent
Note: If you encounter a permission error, you may need to add "sudo" before all three instances of "{container_manager}".
z�Pick which agents to delete. You can include --all to delete all agents on your machine or --ids to specify agent IDs. You can find agent IDs by running:
{container_manager} container list --all --filter ancestor=gcr.io/cloud-ingest/tsop-agent
z2Delete Transfer Service agents from your machine.
z�If you plan to delete specific agents, you can list which agents are running on your machine by running:
$ {container_managers} container list --all --filter ancestor=gcr.io/cloud-ingest/tsop-agent
Then run:
$ {{command}} --ids=id1,id2,...
c �~ � | t j j k }|rdnd}t t � |�� � d�S )z�Returns the detailed help text for the delete command.
Args:
release_track (base.ReleaseTrack): The release track.
Returns:
A dict containing keys DESCRIPTION, EXAMPLES that provides detailed help.
zdocker (or podman)�docker)�container_managers)�DESCRIPTION�EXAMPLES)r �ReleaseTrack�ALPHA� _DELETE_COMMAND_DESCRIPTION_TEXT�_DELETE_COMMAND_EXAMPLES_TEXT�format)�
release_track�is_alphar s �%lib/surface/transfer/agents/delete.py�_get_detailed_help_textr J sR � � �d�/�5�
5�(�/7�E�+�+�X��5�/�6�6�/� 7� � �
�
� � c �^ � e Zd ZdZ eej j � � Ze d� � � Z
d� Zd� ZdS )�Delete�(Delete Transfer Service transfer agents.c �� � | � dd�� � }|� dt j � � dd�� � |� dd d
�� � |� dd d
�� � d S )NTF)�mutex� sort_argsz--ids�IDSzwThe IDs of the agents you want to delete. Separate multiple agent IDs with commas, with no spaces following the commas.)�type�metavar�helpz--all�
store_truez*Delete all agents running on your machine.)�actionr"