
    	                         d Z ddlZddlmZ ddlmZ ddlmZ dZdZ	ej                  ej                   ej                  ej                  j                         G d d	ej                                             Zy)
z*services mcp content-security get command.    N)serviceusage)base)
propertieszprojects/%sz/mcpPolicies/defaultc                   &    e Zd ZdZed        Zd Zy)GetaR  Get content security providers from MCP policy of a project.

  Get content security providers from MCP policy of a project.

  ## EXAMPLES

  Get content security providers from MCP policy of a project:

    $ {command}

  Get content security providers from MCP policy of a project `my-project`:

    $ {command} --project=my-project
  c                 :    | j                   j                  d       y )NzJ
          table(
            contentSecurityProvider
          )
        )display_info	AddFormat)parsers    0lib/surface/services/mcp/content_security/get.pyArgszGet.Args/   s    
!! #     c                    |j                  d      rt        |j                  z  }n=t        j                  j
                  j                  j                  d      }t        |z  }t        j                  |t        z         j                  }g }t        j                  ddg      }|j                  D ]#  }|j                   ||j                               % |S )zRun command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation.

    Returns:
      The content security providers for a project.
    projectT)requiredContentSecurityProvidercontentSecurityProvider)IsSpecified_PROJECT_RESOURCEr   r   VALUEScorer   r   GetMcpPolicy_MCP_POLICY_DEFAULTcontentSecuritycollections
namedtuplecontentSecurityProvidersappendname)selfargsresource_namer   content_securitycontent_security_providersresultscontent_security_providers           r   RunzGet.Run7   s     	"'$,,6m!!&&..22D2Ag''1m#00++o  "$$$!$=#>G &6%N%N! ''0I0N0N(OP &O &%r   N)__name__
__module____qualname____doc__staticmethodr   r'    r   r   r   r      s       &r   r   )r+   r   googlecloudsdk.api_lib.servicesr   googlecloudsdk.callioper   googlecloudsdk.corer   r   r   UniverseCompatibleHiddenReleaseTracksReleaseTrackALPHACommandr   r-   r   r   <module>r7      st    1  8 ( *! ,  D%%++,5&$,, 5& -  5&r   