
    L                        d Z ddlmZ ddlmZ ddlmZ dddZej                   ej                  ej                  j                         G d d	ej                                      Zej                   ej                  ej                  j                         G d
 de                    Zej                   ej                  ej                  j"                         G d de                    Zy)z"Command to update Resource Bundle.    )resource_bundles)base)flagsz{description}z         To update Resource Bundle `cert-manager` in `us-central1`, run:

          $ {command} cert-manager --location=us-central1 ...
        )DESCRIPTIONEXAMPLESc                   .    e Zd ZdZeZdZed        Zd Z	y)Update(Update Package Rollouts Resource Bundle.v1c                     t        j                  |        t        j                  |        t        j                  |        y )N)r   AddNameFlagAddLocationFlagAddDescriptionFlag)parsers    ?lib/surface/container/fleet/packages/resource_bundles/update.pyArgszUpdate.Args'   s,    	f	&!	V$    c                     t        j                  | j                        }t        j                  |      }t        j
                  |      }|j                  |||j                  |j                        S )zRun the update command.)projectlocationnamedescription)	apisResourceBundlesClient_api_versionr   
GetProjectGetLocationr	   r   r   )selfargsclientr   r   s        r   Runz
Update.Run-   sd    ''(9(9:Ft$G  &H==YY$$	   r   N)
__name__
__module____qualname____doc___DETAILED_HELPdetailed_helpr   staticmethodr   r!    r   r   r	   r	      s(     1 -,% %

r   r	   c                       e Zd ZdZdZy)
UpdateBetar
   v1betaNr"   r#   r$   r%   r   r)   r   r   r+   r+   :   s     1,r   r+   c                       e Zd ZdZdZy)UpdateAlphar
   v1alphaNr-   r)   r   r   r/   r/   B   s     1,r   r/   N)r%   /googlecloudsdk.api_lib.container.fleet.packagesr   r   googlecloudsdk.callioper   3googlecloudsdk.command_lib.container.fleet.packagesr   r&   DefaultUniverseOnlyReleaseTracksReleaseTrackGAUpdateCommandr	   BETAr+   ALPHAr/   r)   r   r   <module>r;      s    ) T ( E # D%%(()T  * 2 D%%**+  ,  D%%++,&  - r   