
    !	                         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
\R                  5      rg)zCommand to disable billing.    )absolute_import)division)unicode_literals)billing_client)base)flags)utilsc                   :    \ rS rSrSrSSSS.r\S 5       rS rS	r	g
)Unlink   z2Unlink the account (if any) linked with a project.a@            This command unlinks a project from its associated billing account.
          This action disables billing on the project. Any billable resources
          and services in use in your project are stopped, and your application
          stops functioning. Any costs accrued prior to disabling billing on
          the project are charged to the previously associated billing account.

          Note: To link a project to a different billing account, use the
          `billing projects link` command. You do not need to unlink the
          project first.
          z          To unlink the project `my-project` from its linked billing account,
          run:

            $ {command} my-project
          z          This command uses the *cloudbilling/v1* API. The full documentation
          for this API can be found at:
          https://cloud.google.com/billing/v1/getting-started
          )DESCRIPTIONEXAMPLESzAPI REFERENCEc                 L    [         R                  " 5       R                  U 5        g N)r   GetProjectIdArgumentAddToParser)parsers    &lib/surface/billing/projects/unlink.pyArgsUnlink.Args6   s    	 ,,V4    c                     [         R                  " 5       n[        R                  " UR                  5      nUR                  US 5      $ r   )r   ProjectsClientr	   ParseProject
project_idLink)selfargsclientproject_refs       r   Run
Unlink.Run:   s5    **,F$$T__5K;;{D))r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r!   __static_attributes__r#   r   r   r   r      s4    :
%-2 5 5*r   r   N)r(   
__future__r   r   r   googlecloudsdk.api_lib.billingr   googlecloudsdk.callioper   "googlecloudsdk.command_lib.billingr   r	   Commandr   r#   r   r   <module>r1      s/    " &  ' 9 ( 4 4"*T\\ "*r   