
    	                         d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ  G d	 d
e	j                        Zy)z'Command to delete a Membership Binding.    )absolute_import)division)unicode_literals)client)util)base)	resourcesc                   &    e Zd ZdZed        Zd Zy)DeleteaB  Delete a Membership Binding.

  This command can fail for the following reasons:
  * The Membership specified does not exist.
  * The Membership Binding specified does not exist.
  * The caller does not have permission to access the given Membership.
  * The caller did not specify the location (--location) if referring to
  location other than global.

  ## EXAMPLES

  To delete Membership Binding `BINDING_NAME` in global Membership
  `MEMBERSHIP_NAME` for a global membership:

    $ {command} BINDING_NAME --membership=MEMBERSHIP_NAME

  To delete a Binding `BINDING_NAME` associated with regional membership
  `MEMBERSHIP_NAME`, provide the location LOCATION_NAME for the Membership where
  the Binding belongs along with the membership name.

  $ {command} BINDING_NAME --membership=MEMBERSHIP_NAME --location=LOCATION_NAME
  c                 r    t        j                  |t        j                  | j	                            d       y )NzrName of the Membership Binding to be deleted.Must comply with RFC 1123 (up to 63 characters, alphanumeric and '-'))api_versionbinding_help)r	   AddMembershipBindingResourceArgr   VERSION_MAPReleaseTrack)clsparsers     :lib/surface/container/fleet/memberships/bindings/delete.pyArgszDelete.Args3   s/    --$$S%5%5%7802    c                     t        j                  | j                               }|j                  t	        j
                  |            S )N)release_track)r   FleetClientr   DeleteMembershipBindingr	   MembershipBindingResourceName)selfargsfleetclients      r   Runz
Delete.Run<   s<    $$43D3D3FGK..//57 7r   N)__name__
__module____qualname____doc__classmethodr   r    r   r   r   r      s     . 2 27r   r   N)r#   
__future__r   r   r   &googlecloudsdk.api_lib.container.fleetr   r   googlecloudsdk.callioper   *googlecloudsdk.command_lib.container.fleetr	   DeleteCommandr   r%   r   r   <module>r+      s1    . &  ' 9 7 ( @$7T $7r   