
                             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	 e	j                  j                  fdZe	j                  j                  fdZy	)
z4Utilities for calling the Metastore Federations API.    )absolute_import)division)unicode_literals)util)basec                 B    t        j                  |       j                  S )Nrelease_track)api_utilGetClientInstanceprojects_locations_federationsr	   s    8lib/googlecloudsdk/api_lib/metastore/federations_util.pyGetFederationr      s    		#	#!
##A#AB    c                     t        |      j                  t        j                  |      j	                  |             S )a  Calls the Metastore Federations.Delete method.

  Args:
    relative_resource_name: str, the relative resource name of the Metastore
      federation to delete.
    release_track: base.ReleaseTrack, the release track of command. Will dictate
      which Metastore client library will be used.

  Returns:
    Operation: the operation corresponding to the deletion of the federation.
  r	   )name)r   Deleter   GetMessagesModule2MetastoreProjectsLocationsFederationsDeleteRequest)relative_resource_namer
   s     r   r   r      s=     
]	3	:	:  }=99% : '
( (r   N)__doc__
__future__r   r   r    googlecloudsdk.api_lib.metastorer   r   googlecloudsdk.callioper   ReleaseTrackGAr   r    r   r   <module>r      sF    ; &  ' = ( !% 1 1 4 4 B
 261B1B1E1E (r   