
    O
                         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                  e	j                  j                        e	j                   G d	 d
e	j                                       Zy)zRCommand for describing a Cloud Security Command Center RemediationIntent resource.    )absolute_import)division)print_function)unicode_literals)sps_api)base)flagsc                   0    e Zd ZdZdddZed        Zd Zy)Describez(Describes a remediation intent resource.z
        Describe a Cloud Security Command Center (SCC)
        RemediationIntent resource.
        The resource is returned as the response of the command.a  
          Sample usage:
          Describe a remediation intent resource of id 1234 under organization 12345 and location global:
          $ {{command}} scc remediation-intents describe organizations/12345/locations/global/remediationIntents/1234
          )DESCRIPTIONEXAMPLESc                 .    t        j                  |        y )N)r	   AddRemediationIntentResourceArg)parsers    /lib/surface/scc/remediation_intents/describe.pyArgszDescribe.Args-   s    	))&1    c                 ~   t        j                  t        j                  j                        }t        j
                  t        j                  j                        }|j                  j                  j                         }|j                         }|j                  |      }|j                  j                  |      }|S )zThe main function which is called when the user runs this command.

    Args:
      args: An argparse namespace. All the arguments that were provided to this
        command invocation.
    Returns:
      RemediationIntent resource.
    )name)request)r   GetClientInstancer   ReleaseTrackALPHAGetMessagesModuleCONCEPTSremediationintentParseRelativeNameASecuritypostureOrganizationsLocationsRemediationIntentsGetRequest*organizations_locations_remediationIntentsGet)selfargsclientmessagesri_refri_namer   responses           r   RunzDescribe.Run1   s     &&t'8'8'>'>?F(():):)@)@AH ]],,224F!!#GXX Y G
 @@DD E H Or   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r)    r   r   r   r      s2     1D
- 2 2r   r   N)r-   
__future__r   r   r   r   .googlecloudsdk.api_lib.scc.remediation_intentsr   googlecloudsdk.callioper   2googlecloudsdk.command_lib.scc.remediation_intentsr	   ReleaseTracksr   r   UniverseCompatibleDescribeCommandr   r0   r   r   <module>r8      sh    Y &  % ' B ( D D%%++,-t## -  --r   