
    hiq                       d dl mZ d dlmZ d dlZddlmZmZmZm	Z	m
Z
mZmZ ddlmZmZ ddlmZ ddlmZmZ dd	lmZmZmZmZ dd
lmZmZ ddlmZmZ ddl m!Z!m"Z"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/ ddgZ0 G d de      Z1 G d de      Z2 G d d      Z3 G d d      Z4 G d d      Z5 G d d      Z6y)    )annotations)LiteralN   )BodyOmitQueryHeadersNotGivenomit	not_given)maybe_transformasync_maybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)to_raw_response_wrapperto_streamed_response_wrapperasync_to_raw_response_wrapper"async_to_streamed_response_wrapper)SyncDefaultFlatPaginationAsyncDefaultFlatPagination)AsyncPaginatormake_request_options)action_list_params$action_set_wireless_blocklist_params*action_set_private_wireless_gateway_params)SimCardGroupAction)ActionRetrieveResponse)"ActionSetWirelessBlocklistResponse)%ActionRemoveWirelessBlocklistResponse)'ActionSetPrivateWirelessGatewayResponse)*ActionRemovePrivateWirelessGatewayResponseActionsResourceAsyncActionsResourcec            
      N   e Zd Zedd       Zedd       Zddded	 	 	 	 	 	 	 	 	 	 	 ddZeeeeeddded		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZ	ddded	 	 	 	 	 	 	 	 	 	 	 ddZ
ddded	 	 	 	 	 	 	 	 	 	 	 dd	Zddded	 	 	 	 	 	 	 	 	 	 	 	 	 dd
Zddded	 	 	 	 	 	 	 	 	 	 	 	 	 ddZy)r#   c                    t        |       S a  
        This property can be used as a prefix for any HTTP method call to return
        the raw response object instead of the parsed content.

        For more information, see https://www.github.com/team-telnyx/telnyx-python#accessing-raw-response-data-eg-headers
        )ActionsResourceWithRawResponseselfs    k/mnt/e/genesis-system/.venv_telnyx/lib/python3.12/site-packages/telnyx/resources/sim_card_groups/actions.pywith_raw_responsez!ActionsResource.with_raw_response)   s     .d33    c                    t        |       S z
        An alternative to `.with_raw_response` that doesn't eagerly read the response body.

        For more information, see https://www.github.com/team-telnyx/telnyx-python#with_streaming_response
        )$ActionsResourceWithStreamingResponser)   s    r+   with_streaming_responsez'ActionsResource.with_streaming_response3   s     4D99r-   Nextra_headersextra_query
extra_bodytimeoutc          	     r    |st        d|      | j                  d| t        ||||      t              S )  
        This API allows fetching detailed information about a SIM card group action
        resource to make follow-ups in an existing asynchronous operation.

        Args:
          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        1Expected a non-empty value for `id` but received /sim_card_group_actions/r2   optionscast_to
ValueError_getr   r   r*   idr3   r4   r5   r6   s         r+   retrievezActionsResource.retrieve<   sT    0 PQSPVWXXyy&rd+(+Q[el +  
 	
r-   	filter_sim_card_group_idfilter_statusfilter_typepage_number	page_sizer3   r4   r5   r6   c       	            | j                  dt        t           t        ||||	t	        |||||dt
        j                              t              S a  This API allows listing a paginated collection a SIM card group actions.

        It
        allows to explore a collection of existing asynchronous operation using specific
        filters.

        Args:
          filter_sim_card_group_id: A valid SIM card group ID.

          filter_status: Filter by a specific status of the resource's lifecycle.

          filter_type: Filter by action type.

          page_number: The page number to load.

          page_size: The size of the page.

          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        z/sim_card_group_actions)rE   rF   rG   rH   rI   )r3   r4   r5   r6   query)pager<   model)_get_api_listr   r   r   r   r   ActionListParams
r*   rE   rF   rG   rH   rI   r3   r4   r5   r6   s
             r+   listzActionsResource.list^   si    \ !!%*+=>(+'%%4L)6'2'2%. '77	  %' " 
 	
r-   c          	     t    |st        d|      | j                  d| dt        ||||      t              S )U  
        This action will asynchronously remove an existing Private Wireless Gateway
        definition from a SIM card group. Completing this operation defines that all SIM
        cards in the SIM card group will get their traffic handled by Telnyx's default
        mobile network configuration.

        Args:
          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        r9   /sim_card_groups/(/actions/remove_private_wireless_gatewayr2   r;   r?   _postr   r"   rA   s         r+   remove_private_wireless_gatewayz/ActionsResource.remove_private_wireless_gateway   sW    4 PQSPVWXXzzt#KL(+Q[el ?  
 	
r-   c          	     t    |st        d|      | j                  d| dt        ||||      t              S )  
        This action will asynchronously remove an existing Wireless Blocklist to all the
        SIMs in the SIM card group.

        Args:
          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        r9   rU   "/actions/remove_wireless_blocklistr2   r;   r?   rX   r   r    rA   s         r+   remove_wireless_blocklistz)ActionsResource.remove_wireless_blocklist   sW    0 PQSPVWXXzzt#EF(+Q[el :  
 	
r-   c          
         |st        d|      | j                  d| dt        d|it        j                        t        ||||      t              S )  
        This action will asynchronously assign a provisioned Private Wireless Gateway to
        the SIM card group. Completing this operation defines that all SIM cards in the
        SIM card group will get their traffic controlled by the associated Private
        Wireless Gateway. This operation will also imply that new SIM cards assigned to
        a group will inherit its network definitions. If it's moved to a different group
        that doesn't have a Private Wireless Gateway, it'll use Telnyx's default mobile
        network configuration.

        Args:
          private_wireless_gateway_id: The identification of the related Private Wireless Gateway resource.

          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        r9   rU   %/actions/set_private_wireless_gatewayprivate_wireless_gateway_idr2   bodyr<   r=   )r?   rX   r   r   %ActionSetPrivateWirelessGatewayParamsr   r!   r*   rB   rb   r3   r4   r5   r6   s          r+   set_private_wireless_gatewayz,ActionsResource.set_private_wireless_gateway   st    @ PQSPVWXXzzt#HI .0KL:`` )+Q[el <  

 
	
r-   c          
         |st        d|      | j                  d| dt        d|it        j                        t        ||||      t              S )  
        This action will asynchronously assign a Wireless Blocklist to all the SIMs in
        the SIM card group.

        Args:
          wireless_blocklist_id: The identification of the related Wireless Blocklist resource.

          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        r9   rU   /actions/set_wireless_blocklistwireless_blocklist_idr2   rc   )r?   rX   r   r    ActionSetWirelessBlocklistParamsr   r   r*   rB   rk   r3   r4   r5   r6   s          r+   set_wireless_blocklistz&ActionsResource.set_wireless_blocklist  ss    6 PQSPVWXXzzt#BC (*?@4UU )+Q[el 7  

 
	
r-   )returnr(   )ro   r0   rB   strr3   Headers | Noner4   Query | Noner5   Body | Noner6   'float | httpx.Timeout | None | NotGivenro   r   )rE   
str | OmitrF   4Literal['in-progress', 'completed', 'failed'] | OmitrG   Literal['set_private_wireless_gateway', 'remove_private_wireless_gateway', 'set_wireless_blocklist', 'remove_wireless_blocklist'] | OmitrH   
int | OmitrI   ry   r3   rr   r4   rs   r5   rt   r6   ru   ro   z-SyncDefaultFlatPagination[SimCardGroupAction]rB   rq   r3   rr   r4   rs   r5   rt   r6   ru   ro   r"   rB   rq   r3   rr   r4   rs   r5   rt   r6   ru   ro   r    rB   rq   rb   rq   r3   rr   r4   rs   r5   rt   r6   ru   ro   r!   rB   rq   rk   rq   r3   rr   r4   rs   r5   rt   r6   ru   ro   r   __name__
__module____qualname__r   r,   r1   r   rC   r   rR   rY   r^   rg   rn    r-   r+   r#   r#   (   sX   4 4 : : )-$("&;D 
 
 & 
 " 
   
 9 
 
  
J 04NR "& $ )-$("&;D'B
 #-B
 L	B

B
  B
 B
  &!B
" "#B
$  %B
& 9'B
( 
7)B
T )-$("&;D"
"
 &"
 ""
  "
 9"
 
4"
T )-$("&;D 
 
 & 
 " 
   
 9 
 
/ 
R )-$("&;D,
,
 &)	,
 &,
 ",
  ,
 9,
 
1,
j )-$("&;D'
'
  #	'
 &'
 "'
  '
 9'
 
,'
r-   c            
      N   e Zd Zedd       Zedd       Zddded	 	 	 	 	 	 	 	 	 	 	 ddZeeeeeddded		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZ	ddded	 	 	 	 	 	 	 	 	 	 	 ddZ
ddded	 	 	 	 	 	 	 	 	 	 	 dd	Zddded	 	 	 	 	 	 	 	 	 	 	 	 	 dd
Zddded	 	 	 	 	 	 	 	 	 	 	 	 	 ddZy)r$   c                    t        |       S r'   )#AsyncActionsResourceWithRawResponser)   s    r+   r,   z&AsyncActionsResource.with_raw_responseA  s     3488r-   c                    t        |       S r/   ))AsyncActionsResourceWithStreamingResponser)   s    r+   r1   z,AsyncActionsResource.with_streaming_responseK  s     9>>r-   Nr2   c          	        K   |st        d|      | j                  d| t        ||||      t               d{   S 7 w)r8   r9   r:   r2   r;   Nr>   rA   s         r+   rC   zAsyncActionsResource.retrieveT  sb     0 PQSPVWXXYY&rd+(+Q[el +  
 
 	
 
s   <AAArD   c       	            | j                  dt        t           t        ||||	t	        |||||dt
        j                              t              S rK   )rO   r   r   r   r   r   rP   rQ   s
             r+   rR   zAsyncActionsResource.listv  si    \ !!%+,>?(+'%%4L)6'2'2%. '77	  %' " 
 	
r-   c          	        K   |st        d|      | j                  d| dt        ||||      t               d{   S 7 w)rT   r9   rU   rV   r2   r;   NrW   rA   s         r+   rY   z4AsyncActionsResource.remove_private_wireless_gateway  se     4 PQSPVWXXZZt#KL(+Q[el ?   
 
 	
 
   =AA Ac          	        K   |st        d|      | j                  d| dt        ||||      t               d{   S 7 w)r[   r9   rU   r\   r2   r;   Nr]   rA   s         r+   r^   z.AsyncActionsResource.remove_wireless_blocklist  se     0 PQSPVWXXZZt#EF(+Q[el :   
 
 	
 
r   c          
        K   |st        d|      | j                  d| dt        d|it        j                         d{   t        ||||      t               d{   S 7 $7 w)r`   r9   rU   ra   rb   Nr2   rc   )r?   rX   r   r   re   r   r!   rf   s          r+   rg   z1AsyncActionsResource.set_private_wireless_gateway   s     @ PQSPVWXXZZt#HI,.0KL:``  )+Q[el <   

 

 
	


$   A A+A'
A+"A)#A+)A+c          
        K   |st        d|      | j                  d| dt        d|it        j                         d{   t        ||||      t               d{   S 7 $7 w)ri   r9   rU   rj   rk   Nr2   rc   )r?   rX   r   r   rl   r   r   rm   s          r+   rn   z+AsyncActionsResource.set_wireless_blocklist.  s     6 PQSPVWXXZZt#BC,(*?@4UU  )+Q[el 7   

 

 
	


r   )ro   r   )ro   r   rp   )rE   rv   rF   rw   rG   rx   rH   ry   rI   ry   r3   rr   r4   rs   r5   rt   r6   ru   ro   zRAsyncPaginator[SimCardGroupAction, AsyncDefaultFlatPagination[SimCardGroupAction]]rz   r{   r|   r}   r~   r   r-   r+   r$   r$   @  sY   9 9 ? ? )-$("&;D 
 
 & 
 " 
   
 9 
 
  
J 04NR "& $ )-$("&;D'B
 #-B
 L	B

B
  B
 B
  &!B
" "#B
$  %B
& 9'B
( 
\)B
T )-$("&;D"
"
 &"
 ""
  "
 9"
 
4"
T )-$("&;D 
 
 & 
 " 
   
 9 
 
/ 
R )-$("&;D,
,
 &)	,
 &,
 ",
  ,
 9,
 
1,
j )-$("&;D'
'
  #	'
 &'
 "'
  '
 9'
 
,'
r-   c                      e Zd ZddZy)r(   c                J   || _         t        |j                        | _        t        |j                        | _        t        |j                        | _        t        |j
                        | _        t        |j                        | _        t        |j                        | _        y N)_actionsr   rC   rR   rY   r^   rg   rn   r*   actionss     r+   __init__z'ActionsResourceWithRawResponse.__init__Y  s    /
 ,LL
	 0G330
, *A--*
& -D00-
) '>**'
#r-   Nr   r#   ro   Noner   r   r   r   r   r-   r+   r(   r(   X      
r-   r(   c                      e Zd ZddZy)r   c                J   || _         t        |j                        | _        t        |j                        | _        t        |j                        | _        t        |j
                        | _        t        |j                        | _        t        |j                        | _        y r   )r   r   rC   rR   rY   r^   rg   rn   r   s     r+   r   z,AsyncActionsResourceWithRawResponse.__init__q  s    5
 2LL
	 0M330
, *G--*
& -J00-
) 'D**'
#r-   Nr   r$   ro   r   r   r   r-   r+   r   r   p  r   r-   r   c                      e Zd ZddZy)r0   c                J   || _         t        |j                        | _        t        |j                        | _        t        |j                        | _        t        |j
                        | _        t        |j                        | _        t        |j                        | _        y r   )r   r   rC   rR   rY   r^   rg   rn   r   s     r+   r   z-ActionsResourceWithStreamingResponse.__init__  s    4
 1LL
	 0L330
, *F--*
& -I00-
) 'C**'
#r-   Nr   r   r   r-   r+   r0   r0     r   r-   r0   c                      e Zd ZddZy)r   c                J   || _         t        |j                        | _        t        |j                        | _        t        |j                        | _        t        |j
                        | _        t        |j                        | _        t        |j                        | _        y r   )r   r   rC   rR   rY   r^   rg   rn   r   s     r+   r   z2AsyncActionsResourceWithStreamingResponse.__init__  s    :
 7LL
	 0R330
, *L--*
& -O00-
) 'I**'
#r-   Nr   r   r   r-   r+   r   r     r   r-   r   )7
__future__r   typing_extensionsr   httpx_typesr   r   r   r	   r
   r   r   _utilsr   r   _compatr   	_resourcer   r   	_responser   r   r   r   
paginationr   r   _base_clientr   r   types.sim_card_groupsr   r   r   +types.sim_card_groups.sim_card_group_actionr   .types.sim_card_groups.action_retrieve_responser   <types.sim_card_groups.action_set_wireless_blocklist_responser   ?types.sim_card_groups.action_remove_wireless_blocklist_responser    Btypes.sim_card_groups.action_set_private_wireless_gateway_responser!   Etypes.sim_card_groups.action_remove_private_wireless_gateway_responser"   __all__r#   r$   r(   r   r0   r   r   r-   r+   <module>r      s    # %  K K K < & :  P @ 
 N T n t 4
5U
o U
pU
+ U
p
 
0
 
0
 
0
 
r-   