
                             S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  \R                   " S S\R                  5      5       rg	)
z9Command to describe a Spectrum Access System's operation.    )absolute_import)division)unicode_literals)sas_portal_api)basec                   .    \ rS rSrSr\S 5       rS rSrg)Setup   zSetup SAS Analytics for the current project.

This will create the necessary Pub/Sub Schemas/Topics/Subscriptions and the
BigQuery tables that will store the data.

## EXAMPLES

  $ gcloud cbrs-spectrum-access analytics setup
c                 &    U R                  SSSS9  g )Nz	--user-idFzUser ID to provision analytics for. This is useful when reusing the same project to provision analytics for multiple user IDs. Otherwise the user ID associated with the current Google Cloud project is used.)requiredhelp)add_argument)parsers    3lib/surface/cbrs_spectrum_access/analytics/setup.pyArgs
Setup.Args&   s     
 	  	    c                    [         R                  " 5         [        R                  " 5       R                  n[        R
                  " 5       nUR                  5       nUR                  (       a  UR                  Ul        UR                  U5      nU$ )N)
r   EnableUserProjectQuotar   GetClientInstance	customersGetMessagesModule!SasPortalSetupSasAnalyticsRequestuser_iduserIdSetupSasAnalytics)selfargsclientmessage_modulereqresults         r   Run	Setup.Run3   se    !--/99F#557N

:
:
<C||<<cj%%c*FMr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r#   __static_attributes__r%   r   r   r	   r	      s      
 

r   r	   N)r*   
__future__r   r   r   &googlecloudsdk.api_lib.spectrum_accessr   googlecloudsdk.callioper   HiddenDescribeCommandr	   r%   r   r   <module>r2      s?     @ &  ' A ( "D   " "r   