
    >                     V    d Z ddlmZ ddlmZ ddlmZ  G d dej                        Z	y)z;Generated client library for anthosevents version v1alpha1.    )absolute_import)base_api)anthosevents_v1alpha1_messagesc                        e Zd ZdZeZdZdZdZdgZ	dZ
dZdZd	Zd ZdZd
Z	 	 	 	 	 d fd	Z G d dej&                        Z G d dej&                        Z G d dej&                        Z xZS )AnthoseventsV1alpha1zCGenerated client library for service anthosevents version v1alpha1.z$https://anthosevents.googleapis.com/z)https://anthosevents.mtls.googleapis.com/anthoseventsz.https://www.googleapis.com/auth/userinfo.emailv1alpha1	CLIENT_IDCLIENT_SECRETzgoogle-cloud-sdkNc                     |xs | j                   }t        t        |   |||||||||	|
|       | j	                  |       | _        | j                  |       | _        | j                  |       | _	        y)z!Create a new anthosevents handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)
BASE_URLsuperr   __init__KuberunsServicekuberunsNamespacesCloudrunsServicenamespaces_cloudrunsNamespacesService
namespaces)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               _lib/googlecloudsdk/generated_clients/apis/anthosevents/v1alpha1/anthosevents_v1alpha1_client.pyr   zAnthoseventsV1alpha1.__init__   s~     
C	
.'d%l)3 7+ / - ((.DM $ ? ? ED,,T2DO    c                        e Zd ZdZdZ fdZddZd e_        ddZd e_        ddZ	d	 e	_        dd
Z
d e
_        ddZd e_        ddZd e_         xZS )$AnthoseventsV1alpha1.KuberunsServicez(Service class for the kuberuns resource.r   c                 N    t         t        j                  |   |       i | _        y N)r   r   r   r   _upload_configsr    clientr"   s     r#   r   z-AnthoseventsV1alpha1.KuberunsService.__init__3   s#     00$@Hdr$   c                 L    | j                  d      }| j                  |||      S )zCreates a new KubeRun resource.

      Args:
        request: (AnthoseventsKuberunsCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (KubeRun) The response message.
      Createglobal_paramsGetMethodConfig
_RunMethodr    requestr/   configs       r#   r-   z+AnthoseventsV1alpha1.KuberunsService.Create8   1     ##H-f__
'  8 8r$   c                  B    t        j                  ddg g dgddddd	
      S )
NPOSTzanthosevents.kuberuns.createparent4apis/operator.run.cloud.google.com/v1alpha1/kuberunskubeRun!AnthoseventsKuberunsCreateRequestKubeRunF
http_method	method_idordered_paramspath_paramsquery_paramsrelative_pathrequest_fieldrequest_type_nameresponse_type_namesupports_downloadr   ApiMethodInfo r$   r#   <lambda>z-AnthoseventsV1alpha1.KuberunsService.<lambda>E   s/    8#9#90ZL=$$r$   c                 L    | j                  d      }| j                  |||      S )zRpc to delete a KubeRun.

      Args:
        request: (AnthoseventsKuberunsDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      Deleter.   r0   r3   s       r#   rN   z+AnthoseventsV1alpha1.KuberunsService.DeleteR   r6   r$   c                  F    t        j                  ddddgdgg ddddd	
      S )NAapis/operator.run.cloud.google.com/v1alpha1/kuberuns/{kuberunsId}DELETEzanthosevents.kuberuns.deletename3apis/operator.run.cloud.google.com/v1alpha1/{+name} !AnthoseventsKuberunsDeleteRequestEmptyF	flat_pathr?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rK   r$   r#   rL   z-AnthoseventsV1alpha1.KuberunsService.<lambda>_   s4    8#9#9U0xHK="$r$   c                 L    | j                  d      }| j                  |||      S )a  Rpc to get information about a KubeRun resource.

      Args:
        request: (AnthoseventsKuberunsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (KubeRun) The response message.
      Getr.   r0   r3   s       r#   rZ   z(AnthoseventsV1alpha1.KuberunsService.Getm   1     ##E*f__
'  8 8r$   c                  F    t        j                  ddddgdgg ddddd	
      S )NrP   GETzanthosevents.kuberuns.getrR   rS   rT   AnthoseventsKuberunsGetRequestr=   FrW   rI   rK   r$   r#   rL   z-AnthoseventsV1alpha1.KuberunsService.<lambda>z   s4     6 6U-xHK:$!r$   c                 L    | j                  d      }| j                  |||      S )a  Rpc to list KubeRun resources.

      Args:
        request: (AnthoseventsKuberunsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListKubeRunsResponse) The response message.
      Listr.   r0   r3   s       r#   r`   z)AnthoseventsV1alpha1.KuberunsService.List   1     ##F+f__
'  8 8r$   c                  D    t        j                  ddg g g dddddd	
      S )
Nr]   zanthosevents.kuberuns.list)	continue_fieldSelectorlabelSelectorlimitr9   resourceVersionwatchr:   rT   AnthoseventsKuberunsListRequestListKubeRunsResponseFr>   rI   rK   r$   r#   rL   z-AnthoseventsV1alpha1.KuberunsService.<lambda>   s-    !7!7.sL;1"r$   c                 L    | j                  d      }| j                  |||      S )zRpc to update a KubeRun resource.

      Args:
        request: (AnthoseventsKuberunsPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (KubeRun) The response message.
      Patchr.   r0   r3   s       r#   rl   z*AnthoseventsV1alpha1.KuberunsService.Patch   1     ##G,f__
'  8 8r$   c                  F    t        j                  ddddgdgg ddddd	
      S )NrP   PATCHzanthosevents.kuberuns.patchrR   rS   r;    AnthoseventsKuberunsPatchRequestr=   FrW   rI   rK   r$   r#   rL   z-AnthoseventsV1alpha1.KuberunsService.<lambda>   s4    ("8"8U/xHK<$#r$   c                 L    | j                  d      }| j                  |||      S )a  Rpc to replace a KubeRun resource. Only the spec and metadata labels and annotations are modifiable. After the Update request, KubeRun will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control.

      Args:
        request: (AnthoseventsKuberunsReplaceKubeRunRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (KubeRun) The response message.
      ReplaceKubeRunr.   r0   r3   s       r#   rr   z3AnthoseventsV1alpha1.KuberunsService.ReplaceKubeRun   s2     ##$45f__
'  8 8r$   c                  F    t        j                  ddddgdgg ddddd	
      S )NrP   PUTz$anthosevents.kuberuns.replaceKubeRunrR   rS   r;   )AnthoseventsKuberunsReplaceKubeRunRequestr=   FrW   rI   rK   r$   r#   rL   z-AnthoseventsV1alpha1.KuberunsService.<lambda>   s4    8+A+AU8xHKE$,r$   r(   )__name__
__module____qualname____doc___NAMEr   r-   method_configrN   rZ   r`   rl   rr   __classcell__r"   s   @r#   r   r&   .   sm    2E
8F8F8C8D8E8$N  r$   r   c                        e Zd ZdZdZ fdZddZd e_        ddZd e_        ddZ	d	 e	_        dd
Z
d e
_        ddZd e_        ddZd e_         xZS )/AnthoseventsV1alpha1.NamespacesCloudrunsServicez4Service class for the namespaces_cloudruns resource.r   c                 N    t         t        j                  |   |       i | _        y r(   )r   r   r   r   r)   r*   s     r#   r   z8AnthoseventsV1alpha1.NamespacesCloudrunsService.__init__   s#     ;;TKFSdr$   c                 L    | j                  d      }| j                  |||      S )a  Creates a new CloudRun resource.

      Args:
        request: (AnthoseventsNamespacesCloudrunsCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (CloudRun) The response message.
      r-   r.   r0   r3   s       r#   r-   z6AnthoseventsV1alpha1.NamespacesCloudrunsService.Create   r6   r$   c                  F    t        j                  ddddgdgg ddddd	
      S )NOapis/operator.run.cloud.google.com/v1alpha1/namespaces/{namespacesId}/cloudrunsr8   z(anthosevents.namespaces.cloudruns.creater9   ?apis/operator.run.cloud.google.com/v1alpha1/{+parent}/cloudrunscloudRun,AnthoseventsNamespacesCloudrunsCreateRequestCloudRunFrW   rI   rK   r$   r#   rL   z8AnthoseventsV1alpha1.NamespacesCloudrunsService.<lambda>   s4    8#9#9c< zJW H%$r$   c                 L    | j                  d      }| j                  |||      S )a  Rpc to delete a CloudRun.

      Args:
        request: (AnthoseventsNamespacesCloudrunsDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      rN   r.   r0   r3   s       r#   rN   z6AnthoseventsV1alpha1.NamespacesCloudrunsService.Delete   r6   r$   c                  F    t        j                  ddddgdgg ddddd	
      S )N]apis/operator.run.cloud.google.com/v1alpha1/namespaces/{namespacesId}/cloudruns/{cloudrunsId}rQ   z(anthosevents.namespaces.cloudruns.deleterR   rS   rT   ,AnthoseventsNamespacesCloudrunsDeleteRequestrV   FrW   rI   rK   r$   r#   rL   z8AnthoseventsV1alpha1.NamespacesCloudrunsService.<lambda>
  s4    8#9#9q<xHKH"$r$   c                 L    | j                  d      }| j                  |||      S )a  Rpc to get information about a CloudRun resource.

      Args:
        request: (AnthoseventsNamespacesCloudrunsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (CloudRun) The response message.
      rZ   r.   r0   r3   s       r#   rZ   z3AnthoseventsV1alpha1.NamespacesCloudrunsService.Get  r[   r$   c                  F    t        j                  ddddgdgg ddddd	
      S )Nr   r]   z%anthosevents.namespaces.cloudruns.getrR   rS   rT   )AnthoseventsNamespacesCloudrunsGetRequestr   FrW   rI   rK   r$   r#   rL   z8AnthoseventsV1alpha1.NamespacesCloudrunsService.<lambda>%  s4     6 6q9xHKE%!r$   c                 L    | j                  d      }| j                  |||      S )a  Rpc to list CloudRun resources.

      Args:
        request: (AnthoseventsNamespacesCloudrunsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListCloudRunsResponse) The response message.
      r`   r.   r0   r3   s       r#   r`   z4AnthoseventsV1alpha1.NamespacesCloudrunsService.List3  ra   r$   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nr   r]   z&anthosevents.namespaces.cloudruns.listr9   )rc   rd   re   rf   rg   rh   r   rT   *AnthoseventsNamespacesCloudrunsListRequestListCloudRunsResponseFrW   rI   rK   r$   r#   rL   z8AnthoseventsV1alpha1.NamespacesCloudrunsService.<lambda>@  s4    !7!7c: zJiWF2"r$   c                 L    | j                  d      }| j                  |||      S )a  Rpc to update a CloudRun resource.

      Args:
        request: (AnthoseventsNamespacesCloudrunsPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (CloudRun) The response message.
      rl   r.   r0   r3   s       r#   rl   z5AnthoseventsV1alpha1.NamespacesCloudrunsService.PatchN  rm   r$   c                  F    t        j                  ddddgdgg ddddd	
      S )Nr   ro   z'anthosevents.namespaces.cloudruns.patchrR   rS   r   +AnthoseventsNamespacesCloudrunsPatchRequestr   FrW   rI   rK   r$   r#   rL   z8AnthoseventsV1alpha1.NamespacesCloudrunsService.<lambda>[  s4    ("8"8q;xHK G%#r$   c                 L    | j                  d      }| j                  |||      S )a"  Rpc to replace a CloudRun resource. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control.

      Args:
        request: (AnthoseventsNamespacesCloudrunsReplaceCloudRunRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (CloudRun) The response message.
      ReplaceCloudRunr.   r0   r3   s       r#   r   z?AnthoseventsV1alpha1.NamespacesCloudrunsService.ReplaceCloudRuni  s2     ##$56f__
'  8 8r$   c                  F    t        j                  ddddgdgg ddddd	
      S )Nr   rt   z1anthosevents.namespaces.cloudruns.replaceCloudRunrR   rS   r   5AnthoseventsNamespacesCloudrunsReplaceCloudRunRequestr   FrW   rI   rK   r$   r#   rL   z8AnthoseventsV1alpha1.NamespacesCloudrunsService.<lambda>v  s4    H,B,BqExHK Q%-r$   r(   )rv   rw   rx   ry   rz   r   r-   r{   rN   rZ   r`   rl   r   r|   r}   s   @r#   r   r      sm    >"E
8F8F8C8D8E8%O!!r$   r   c                   &     e Zd ZdZdZ fdZ xZS )&AnthoseventsV1alpha1.NamespacesServicez*Service class for the namespaces resource.r   c                 N    t         t        j                  |   |       i | _        y r(   )r   r   r   r   r)   r*   s     r#   r   z/AnthoseventsV1alpha1.NamespacesService.__init__  s#     22DB6Jdr$   )rv   rw   rx   ry   rz   r   r|   r}   s   @r#   r   r     s    4E r$   r   )rT   NTNNFFNNNN)rv   rw   rx   ry   messagesMESSAGES_MODULEr   MTLS_BASE_URL_PACKAGE_SCOPES_VERSION
_CLIENT_ID_CLIENT_SECRET_USER_AGENT_CLIENT_CLASS_NAME_URL_VERSION_API_KEYr   r   BaseApiServicer   r   r   r|   r}   s   @r#   r   r   
   s    K/3(=-(=>'(*"."+-,()-6:/4<@?C	3&h// hTj8#:#: jX(11  r$   r   N)
ry   
__future__r   apitools.base.pyr   ;googlecloudsdk.generated_clients.apis.anthosevents.v1alpha1r   r   BaseApiClientr   rK   r$   r#   <module>r      s'    A ' % rB811 Br$   