
    W                     8   S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  SSKJr  SS	KJr  \
R                  " \
R                   R"                  \
R                   R$                  \
R                   R&                  5       " S
 S\
R(                  5      5       rg)z&gcloud dns record-sets delete command.    )absolute_import)division)unicode_literals)util)apis)base)flags)logc                   >    \ rS rSrSr\S 5       r\S 5       rS rSr	g)Delete   a	  Delete a record-set in a managed-zone.

This command deletes a record-set contained within the specified
managed-zone.

## EXAMPLES

To delete a record-set with dnsName foo.bar.com. and record type A, rrdata
run:

  $ {command} foo.bar.com. --type=A --zone=my_zone
c                     U R                  5       [        R                   R                  [        R                   R                  4;   $ )N)ReleaseTrackr   BETAALPHA)clss    %lib/surface/dns/record_sets/delete.py_BetaOrAlphaDelete._BetaOrAlpha,   s:    $"3"3"8"8"&"3"3"9"9"; ; ;    c                 \   [         R                  " 5       R                  U5        [         R                  " 5       R                  U5        [         R                  " S5      R                  U5        [         R
                  " 5       R                  U5        UR                  R                  S 5        g )NT)r	   
GetZoneArgAddToParserGetResourceRecordSetsNameArgGetResourceRecordSetsTypeArgGetLocationArgdisplay_infoAddCacheUpdater)r   parsers     r   ArgsDelete.Args1   st    	""6*	&&(44V<	&&t,88@	&&v.
''-r   c                 
   [         R                  " U R                  5       U5      n[        R                  " SU5      n[         R
                  " U5      n[         R                  " U5      R                  UR                  [         R                  " X!5      SS9n[         R                  " X!SS9nUR                  US'   [         R                  " U5      R                  UR                  USS9nUR                  UR                  UR                  5       [         R                  " UR                  5      UR                  S9nUS	:X  a  UR                   Ul        UR"                  R%                  U5      n	[&        R(                  " U5        U	$ )
Ndnszdns.managedZones)params
collectionmanagedZones)parentnamezdns.resourceRecordSets)projectmanagedZoner(   typev2)r   GetApiFromTrackAndArgsr   r   GetMessagesModuleGetApiClientGetRegistryParsezoneGetParamsForRegistryr(   r+   "DnsResourceRecordSetsDeleteRequestr)   NameAppendTrailingDotlocationresourceRecordSetsr   r
   DeletedResource)
selfargsapi_versionmessages
dns_clientzone_refparam
rrsets_refrequestresults
             r   Run
Delete.Run9   sF   --d.?.?.A4HK%%e[9H"";/J,22		((;% 3 'H %%kOEIIE&M!!+.44		+ 5 -J
 99  MMO##DII.YY	 : G dg**11':F
#Mr    N)
__name__
__module____qualname____firstlineno____doc__classmethodr   r    rD   __static_attributes__rF   r   r   r   r      s4     ; ; . .r   r   N)rK   
__future__r   r   r   googlecloudsdk.api_lib.dnsr   googlecloudsdk.api_lib.utilr   googlecloudsdk.callioper   googlecloudsdk.command_lib.dnsr	   googlecloudsdk.corer
   ReleaseTracksr   GAr   r   DeleteCommandr   rF   r   r   <module>rW      sy    - &  ' + , ( 0 # D%%(($*;*;*@*@%%++-9T 9-9r   