
                         f    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  SSKJr   " S S	\5      rg
)z7Useful commands for interacting with the Cloud SCC API.    )	Generator)
list_pager)apis)util)log)$securitycentermanagement_v1_messagesc                      \ rS rSrSrS rS\S\R                  4S jr	S\
S\S	\
S\\R                  S
\R                  4   4S jrS\S\S\R                  R                  S\R                  R                   S\S\R                  4S jrSrg
)SecurityCenterServicesClient   zXClient for Security Center Services interaction with the Security Center Management API.c                 P    [         R                  " SS5      R                  U l        g )Nsecuritycentermanagementv1)r   GetClientInstance)projects_locations_securityCenterServices_client)selfs    9lib/googlecloudsdk/api_lib/scc/manage/services/clients.py__init__%SecurityCenterServicesClient.__init__   s$     ))"D// 	L    namereturnc                 `    [         R                  " US9nU R                  R                  U5      $ )zGet a Security Center Service.)r   )messagesISecuritycentermanagementProjectsLocationsSecurityCenterServicesGetRequestr   Get)r   r   reqs      r   r    SecurityCenterServicesClient.Get$   s.     
\
\C <<C  r   	page_sizeparentlimitNc           	      p    [         R                  " XS9n[        R                  " U R                  UUSUSS9$ )z/List the details of a Security Center Services.)pageSizer    securityCenterServicesr#   )requestr!   field
batch_sizebatch_size_attribute)r   JSecuritycentermanagementProjectsLocationsSecurityCenterServicesListRequestr   YieldFromListr   )r   r   r    r!   r   s        r   List!SecurityCenterServicesClient.List,   sB     
]
]C ##&' r   validate_onlymodule_configenablement_stateupdate_maskc                 :   [         R                  " UUUS9n[         R                  " UU[        R                  " U5      US9nU R
                  R                  U5      nU(       a!  [        R                  R                  S5        U$ [        R                  " U5        U$ )z!Update a Security Center Service.)modulesintendedEnablementStater   )securityCenterServicer   
updateMaskvalidateOnlyzRequest is valid.)r   SecurityCenterServiceKSecuritycentermanagementProjectsLocationsSecurityCenterServicesPatchRequestscc_utilCleanUpUserMaskInputr   Patchr   statusPrintUpdatedResource)	r   r   r-   r.   r/   r0   security_center_servicer   responses	            r   Update#SecurityCenterServicesClient.Update?   s     '<< 0 
^
^500="	C ||!!#&H	jj*+oOr   )r   )__name__
__module____qualname____firstlineno____doc__r   strr   r7   r   intr   "ListSecurityCenterServicesResponser+   boolModulesValue&IntendedEnablementStateValueValuesEnumrA   __static_attributes__ r   r   r
   r
      s    `0!c !h<< !C  S Y$$
113> &  33@@	
 !66]]  %%r   r
   N)rG   typingr   apitools.base.pyr   googlecloudsdk.api_lib.utilr   googlecloudsdk.command_lib.sccr   r9   googlecloudsdk.corer   Agooglecloudsdk.generated_clients.apis.securitycentermanagement.v1r   r   objectr
   rO   r   r   <module>rW      s*    >  ' , ; # ~@6 @r   