
                             d Z ddlmZ ddlmZ ddlmZ ddlmZ ej                   ej                  ej                  j                         G d dej                                      Zy)	zEImplementation of disable command for disabling storage intelligence.    )storage_intelligence_api)base)flags)logc                   0    e Zd ZdZdddZed        Zd Zy)DisablezDisables storage intelligence.z[
          Disable storage intelligence for the organization, sub-folder or project.
      z
          The following command disables storage intelligence for the project. 

            $ {command} --project=my-project
      )DESCRIPTIONEXAMPLESc                 .    t        j                  |       y )N)r   ,add_storage_intelligence_configs_level_flags)clsparsers     3lib/surface/storage/intelligence_configs/disable.pyArgszDisable.Args(   s    	66v>    c                 t   t        j                         }|j                  r|j                  |j                        }nC|j                  r|j                  |j                        }n|j                  |j                        }t        j                  j                  dj                  |j                               |S )Nz8Successfully disabled storage intelligence plan for {}.
)r   StorageIntelligenceApi
sub_folder&disable_sub_folder_intelligence_configproject#disable_project_intelligence_config(disable_organization_intelligence_configorganizationr   statusPrintformatname)selfargsclientintelligence_configs       r   RunzDisable.Run,   s    %<<>F"II
// 
"FF
,, #KK


 JJCJJ$$	

 r   N)__name__
__module____qualname____doc__detailed_helpclassmethodr   r"    r   r   r   r      s1     '

	- ? ?r   r   N)r&   googlecloudsdk.api_lib.storager   googlecloudsdk.callioper   "googlecloudsdk.command_lib.storager   googlecloudsdk.corer   DefaultUniverseOnlyReleaseTracksReleaseTrackALPHACommandr   r)   r   r   <module>r3      s]    L C ( 4 #
 D%%++,&dll & - &r   