
    	                         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 ej                   G d	 d
ej                               Zy)zDImplementation command for deleting inventory report configurations.    )absolute_import)division)unicode_literals)insights_api)base)resource_args)logc                   0    e Zd ZdZdddZed        Zd Zy)Deletez"Delete an inventory report config.z0
      Delete an inventory report config.
      a  
      To delete an inventory report config with ID=1234,
      location=us-central1 and project=foo:

        $ {command} 1234 --location=us-central1 --project=foo

      To delete the same inventory report config with fully specified name:

        $ {command} /projects/foo/locations/us-central1/reportConfigs/1234

      To delete the report config with all generated report details:

        $ {command} /projects/foo/locations/us-central1/reportConfigs/1234 --force
      )DESCRIPTIONEXAMPLESc                 X    t        j                  | d       | j                  ddd       y )Nz	to deletez--force
store_truezBIf set, all report details for this report config will be deleted.)actionhelp)r   add_report_config_resource_argadd_argument)parsers    8lib/surface/storage/insights/inventory_reports/delete.pyArgszDelete.Args5   s0    00E
      c                     |j                   j                  j                         j                         }t	        j
                         j                  ||j                         t        j                  j                  dj                  |             y )NzDeleted report config: {})CONCEPTSreport_configParseRelativeNamer   InsightsApidelete_inventory_reportforcer	   statusPrintformat)selfargsreport_config_names      r   Runz
Delete.Run?   si    44::<IIK66DJJ JJ077 r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r&    r   r   r   r      s/    *

-,  r   r   N)r*   
__future__r   r   r   googlecloudsdk.api_lib.storager   googlecloudsdk.callioper   =googlecloudsdk.command_lib.storage.insights.inventory_reportsr   googlecloudsdk.corer	   DefaultUniverseOnlyCommandr   r-   r   r   <module>r5      sE    K &  ' 7 ( W # )T\\ ) )r   