
    (                         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Z	dZ
d	Zd
ZdZefdZefdZ G d de      Z G d dej$                        Zy)z7Useful commands for interacting with the Cloud SCC API.    )absolute_import)division)unicode_literals)apis)
exceptionssecuritycenterv1beta1v1	v1p1beta1v2c                 6    t        j                  t        |       S )zImport and return the appropriate Cloud SCC client.

  Args:
    version: str, the version of the API desired.

  Returns:
    Cloud SCC client for the appropriate release track.
  )r   GetClientInstanceAPI_NAMEversions    7lib/googlecloudsdk/api_lib/scc/securitycenter_client.py	GetClientr      s     
		'	22    c                 6    t        j                  t        |       S )z<Import and return the appropriate Cloud SCC messages module.)r   GetMessagesModuler   r   s    r   GetMessagesr   +   s    			'	22r   c                        e Zd ZdZddZddZy)AssetsClientz=Client for Security Center service in the for the Asset APIs.Nc                     |xs
 t               | _        |xs
 t               | _        | j                  j                  | _        y N)r   clientr   messagesorganizations_assets_assetservice)selfr   r   s      r   __init__zAssetsClient.__init__3   s0    'IKDK-DM99Dr   c                 x    | j                   j                  } |||      }| j                  j                  |      S )N)parentfilter)r   ,SecuritycenterOrganizationsAssetsListRequestr   List)r    r#   request_filterlist_req_typelist_reqs        r   r&   zAssetsClient.List8   s4    ]]OOMF>BH""8,,r   )NNr   )__name__
__module____qualname____doc__r!   r&    r   r   r   r   0   s    E:
-r   r   c                       e Zd ZdZy)Errorz)Base class for exceptions in this module.N)r*   r+   r,   r-   r.   r   r   r0   r0   @   s    1r   r0   N)r-   
__future__r   r   r   googlecloudsdk.api_lib.utilr   googlecloudsdk.corer   r   BETA_API_VERSIONV1_API_VERSIONV1P1BETA1_API_VERSIONV2_API_VERSIONr   r   objectr   r0   r.   r   r   <module>r9      sf    > &  ' , * #  % 	3 ' 3
-6 - 2J 2r   