
    }                     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 apphub version v1.    )absolute_import)base_api)apphub_v1_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 G d dej&                        Z G d dej&                        Z G d dej&                        Z G d dej&                        Z G d dej&                        Z G d dej&                        Z xZS )ApphubV1z7Generated client library for service apphub version v1.zhttps://apphub.googleapis.com/z#https://apphub.mtls.googleapis.com/apphubz.https://www.googleapis.com/auth/cloud-platformv1	CLIENT_IDCLIENT_SECRETzgoogle-cloud-sdkNc                    |xs | j                   }t        t        |   |||||||||	|
|       | j	                  |       | _        | j                  |       | _        | j                  |       | _	        | j                  |       | _        | j                  |       | _        | j                  |       | _        | j!                  |       | _        | j%                  |       | _        | j)                  |       | _        y)zCreate a new apphub handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)BASE_URLsuperr   __init__,ProjectsLocationsApplicationsServicesService(projects_locations_applications_services-ProjectsLocationsApplicationsWorkloadsService)projects_locations_applications_workloads$ProjectsLocationsApplicationsServiceprojects_locations_applications*ProjectsLocationsDiscoveredServicesService%projects_locations_discoveredServices+ProjectsLocationsDiscoveredWorkloadsService&projects_locations_discoveredWorkloads"ProjectsLocationsOperationsServiceprojects_locations_operations1ProjectsLocationsServiceProjectAttachmentsService,projects_locations_serviceProjectAttachmentsProjectsLocationsServiceprojects_locationsProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               Glib/googlecloudsdk/generated_clients/apis/apphub/v1/apphub_v1_client.pyr   zApphubV1.__init__   s     
C	(D"'d%l)3 7+ # - 594e4efj4kD1595g5ghl5mD2+/+T+TUY+ZD(151`1`ae1fD.262b2bcg2hD/)-)P)PQU)VD&8<8n8nos8tD5";;DAD((.DM    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_         xZS )5ApphubV1.ProjectsLocationsApplicationsServicesServicezHService class for the projects_locations_applications_services resource.r   c                 N    t         t        j                  |   |       i | _        y N)r   r   r   r   _upload_configsr,   clientr.   s     r/   r   z>ApphubV1.ProjectsLocationsApplicationsServicesService.__init__9   s#    HAA4QRXYdr0   c                 L    | j                  d      }| j                  |||      S )a  Creates a Service in an Application.

      Args:
        request: (ApphubProjectsLocationsApplicationsServicesCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      Createglobal_paramsGetMethodConfig
_RunMethodr,   requestr;   configs       r/   r9   z<ApphubV1.ProjectsLocationsApplicationsServicesService.Create>   1     ##H-f__
'  8 8r0   c                  J    t        j                  ddddgdgddgddd	d
d      S )NWv1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/servicesPOSTz6apphub.projects.locations.applications.services.createparent	requestId	serviceIdv1/{+parent}/servicesservice8ApphubProjectsLocationsApplicationsServicesCreateRequest	OperationF	flat_pathhttp_method	method_idordered_paramspath_paramsquery_paramsrelative_pathrequest_fieldrequest_type_nameresponse_type_namesupports_downloadr   ApiMethodInfo r0   r/   <lambda>z>ApphubV1.ProjectsLocationsApplicationsServicesService.<lambda>K   s9    8#9#9kJ zJ!;/-T&$r0   c                 L    | j                  d      }| j                  |||      S )a  Deletes a Service from an Application.

      Args:
        request: (ApphubProjectsLocationsApplicationsServicesDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      Deleter:   r<   r?   s       r/   r^   z<ApphubV1.ProjectsLocationsApplicationsServicesService.DeleteY   rB   r0   c                  H    t        j                  ddddgdgdgdddd	d
      S )Ndv1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services/{servicesId}DELETEz6apphub.projects.locations.applications.services.deletenamerG   
v1/{+name} 8ApphubProjectsLocationsApplicationsServicesDeleteRequestrL   FrM   rY   r[   r0   r/   r\   z>ApphubV1.ProjectsLocationsApplicationsServicesService.<lambda>f   s6    8#9#9xJxH!]"T&$r0   c                 L    | j                  d      }| j                  |||      S )a  Gets a Service in an Application.

      Args:
        request: (ApphubProjectsLocationsApplicationsServicesGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Service) The response message.
      Getr:   r<   r?   s       r/   rg   z9ApphubV1.ProjectsLocationsApplicationsServicesService.Gett   1     ##E*f__
'  8 8r0   c                  F    t        j                  ddddgdgg ddddd	
      S )Nr`   GETz3apphub.projects.locations.applications.services.getrb   rc   rd   5ApphubProjectsLocationsApplicationsServicesGetRequestServiceFrM   rY   r[   r0   r/   r\   z>ApphubV1.ProjectsLocationsApplicationsServicesService.<lambda>   s4     6 6xGxH"Q$!r0   c                 L    | j                  d      }| j                  |||      S )a"  Lists Services in an Application.

      Args:
        request: (ApphubProjectsLocationsApplicationsServicesListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListServicesResponse) The response message.
      Listr:   r<   r?   s       r/   rn   z:ApphubV1.ProjectsLocationsApplicationsServicesService.List   1     ##F+f__
'  8 8r0   c                  J    t        j                  ddddgdgg ddddd	d
      S )NrD   rj   z4apphub.projects.locations.applications.services.listrF   filterorderBypageSize	pageTokenrI   rd   6ApphubProjectsLocationsApplicationsServicesListRequestListServicesResponseFrM   rY   r[   r0   r/   r\   z>ApphubV1.ProjectsLocationsApplicationsServicesService.<lambda>   s4    !7!7kH zJC-R1"r0   c                 L    | j                  d      }| j                  |||      S )a  Updates a Service in an Application.

      Args:
        request: (ApphubProjectsLocationsApplicationsServicesPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      Patchr:   r<   r?   s       r/   ry   z;ApphubV1.ProjectsLocationsApplicationsServicesService.Patch   1     ##G,f__
'  8 8r0   c                  J    t        j                  ddddgdgddgddd	d
d      S )Nr`   PATCHz5apphub.projects.locations.applications.services.patchrb   rG   
updateMaskrc   rJ   7ApphubProjectsLocationsApplicationsServicesPatchRequestrL   FrM   rY   r[   r0   r/   r\   z>ApphubV1.ProjectsLocationsApplicationsServicesService.<lambda>   s9    ("8"8xIxH!<0"S&#r0   r4   __name__
__module____qualname____doc___NAMEr   r9   method_configr^   rg   rn   ry   __classcell__r.   s   @r/   r   r2   4   s^    R6E
8F8F8C8D8Er0   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_         xZS )6ApphubV1.ProjectsLocationsApplicationsWorkloadsServicezIService class for the projects_locations_applications_workloads resource.r   c                 N    t         t        j                  |   |       i | _        y r4   )r   r   r   r   r5   r6   s     r/   r   z?ApphubV1.ProjectsLocationsApplicationsWorkloadsService.__init__   s#    HBBDRSYZdr0   c                 L    | j                  d      }| j                  |||      S )a  Creates a Workload in an Application.

      Args:
        request: (ApphubProjectsLocationsApplicationsWorkloadsCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      r9   r:   r<   r?   s       r/   r9   z=ApphubV1.ProjectsLocationsApplicationsWorkloadsService.Create   rB   r0   c                  J    t        j                  ddddgdgddgddd	d
d      S )NXv1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/workloadsrE   z7apphub.projects.locations.applications.workloads.createrF   rG   
workloadIdv1/{+parent}/workloadsworkload9ApphubProjectsLocationsApplicationsWorkloadsCreateRequestrL   FrM   rY   r[   r0   r/   r\   z?ApphubV1.ProjectsLocationsApplicationsWorkloadsService.<lambda>   s9    8#9#9lK zJ!<0. U&$r0   c                 L    | j                  d      }| j                  |||      S )a   Deletes a Workload from an Application.

      Args:
        request: (ApphubProjectsLocationsApplicationsWorkloadsDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      r^   r:   r<   r?   s       r/   r^   z=ApphubV1.ProjectsLocationsApplicationsWorkloadsService.Delete   rB   r0   c                  H    t        j                  ddddgdgdgdddd	d
      S )Nfv1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/workloads/{workloadsId}ra   z7apphub.projects.locations.applications.workloads.deleterb   rG   rc   rd   9ApphubProjectsLocationsApplicationsWorkloadsDeleteRequestrL   FrM   rY   r[   r0   r/   r\   z?ApphubV1.ProjectsLocationsApplicationsWorkloadsService.<lambda>   s6    8#9#9zKxH!]"U&$r0   c                 L    | j                  d      }| j                  |||      S )a  Gets a Workload in an Application.

      Args:
        request: (ApphubProjectsLocationsApplicationsWorkloadsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Workload) The response message.
      rg   r:   r<   r?   s       r/   rg   z:ApphubV1.ProjectsLocationsApplicationsWorkloadsService.Get  rh   r0   c                  F    t        j                  ddddgdgg ddddd	
      S )Nr   rj   z4apphub.projects.locations.applications.workloads.getrb   rc   rd   6ApphubProjectsLocationsApplicationsWorkloadsGetRequestWorkloadFrM   rY   r[   r0   r/   r\   z?ApphubV1.ProjectsLocationsApplicationsWorkloadsService.<lambda>  s4     6 6zHxH"R%!r0   c                 L    | j                  d      }| j                  |||      S )a%  Lists Workloads in an Application.

      Args:
        request: (ApphubProjectsLocationsApplicationsWorkloadsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListWorkloadsResponse) The response message.
      rn   r:   r<   r?   s       r/   rn   z;ApphubV1.ProjectsLocationsApplicationsWorkloadsService.List   ro   r0   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nr   rj   z5apphub.projects.locations.applications.workloads.listrF   rq   r   rd   7ApphubProjectsLocationsApplicationsWorkloadsListRequestListWorkloadsResponseFrM   rY   r[   r0   r/   r\   z?ApphubV1.ProjectsLocationsApplicationsWorkloadsService.<lambda>-  s4    !7!7lI zJC.S2"r0   c                 L    | j                  d      }| j                  |||      S )a  Updates a Workload in an Application.

      Args:
        request: (ApphubProjectsLocationsApplicationsWorkloadsPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      ry   r:   r<   r?   s       r/   ry   z<ApphubV1.ProjectsLocationsApplicationsWorkloadsService.Patch;  rz   r0   c                  J    t        j                  ddddgdgddgddd	d
d      S )Nr   r|   z6apphub.projects.locations.applications.workloads.patchrb   rG   r}   rc   r   8ApphubProjectsLocationsApplicationsWorkloadsPatchRequestrL   FrM   rY   r[   r0   r/   r\   z?ApphubV1.ProjectsLocationsApplicationsWorkloadsService.<lambda>H  s9    ("8"8zJxH!<0" T&#r0   r4   r   r   s   @r/   r   r      s^    S7E
8F8F8C8D8Er0   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_        ddZd e_        ddZd e_         xZS )-ApphubV1.ProjectsLocationsApplicationsServicez?Service class for the projects_locations_applications resource.r   c                 N    t         t        j                  |   |       i | _        y r4   )r   r   r   r   r5   r6   s     r/   r   z6ApphubV1.ProjectsLocationsApplicationsService.__init__[  s"    H994I&Qdr0   c                 L    | j                  d      }| j                  |||      S )a&  Creates an Application in a host project and location.

      Args:
        request: (ApphubProjectsLocationsApplicationsCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      r9   r:   r<   r?   s       r/   r9   z4ApphubV1.ProjectsLocationsApplicationsService.Create`  rB   r0   c                  J    t        j                  ddddgdgddgddd	d
d      S )N=v1/projects/{projectsId}/locations/{locationsId}/applicationsrE   z-apphub.projects.locations.applications.createrF   applicationIdrG   v1/{+parent}/applicationsapplication0ApphubProjectsLocationsApplicationsCreateRequestrL   FrM   rY   r[   r0   r/   r\   z6ApphubV1.ProjectsLocationsApplicationsService.<lambda>m  s9    8#9#9QA zJ%{31#L&$r0   c                 L    | j                  d      }| j                  |||      S )a&  Deletes an Application in a host project and location.

      Args:
        request: (ApphubProjectsLocationsApplicationsDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      r^   r:   r<   r?   s       r/   r^   z4ApphubV1.ProjectsLocationsApplicationsService.Delete{  rB   r0   c                  H    t        j                  ddddgdgdgdddd	d
      S )NNv1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}ra   z-apphub.projects.locations.applications.deleterb   rG   rc   rd   0ApphubProjectsLocationsApplicationsDeleteRequestrL   FrM   rY   r[   r0   r/   r\   z6ApphubV1.ProjectsLocationsApplicationsService.<lambda>  s6    8#9#9bAxH!]"L&$r0   c                 L    | j                  d      }| j                  |||      S )a"  Gets an Application in a host project and location.

      Args:
        request: (ApphubProjectsLocationsApplicationsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Application) The response message.
      rg   r:   r<   r?   s       r/   rg   z1ApphubV1.ProjectsLocationsApplicationsService.Get  rh   r0   c                  F    t        j                  ddddgdgg ddddd	
      S )Nr   rj   z*apphub.projects.locations.applications.getrb   rc   rd   -ApphubProjectsLocationsApplicationsGetRequestApplicationFrM   rY   r[   r0   r/   r\   z6ApphubV1.ProjectsLocationsApplicationsService.<lambda>  s4     6 6b>xH"I(!r0   c                 L    | j                  d      }| j                  |||      S )ap  Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

      Args:
        request: (ApphubProjectsLocationsApplicationsGetIamPolicyRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Policy) The response message.
      GetIamPolicyr:   r<   r?   s       r/   r   z:ApphubV1.ProjectsLocationsApplicationsService.GetIamPolicy  1     ##N3f__
'  8 8r0   c                  H    t        j                  ddddgdgdgdddd	d
      S )Nz[v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:getIamPolicyrj   z3apphub.projects.locations.applications.getIamPolicyresourceoptions_requestedPolicyVersionzv1/{+resource}:getIamPolicyrd   6ApphubProjectsLocationsApplicationsGetIamPolicyRequestPolicyFrM   rY   r[   r0   r/   r\   z6ApphubV1.ProjectsLocationsApplicationsService.<lambda>  s7    )?)?oG"|L673R#*r0   c                 L    | j                  d      }| j                  |||      S )a/  Lists Applications in a host project and location.

      Args:
        request: (ApphubProjectsLocationsApplicationsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListApplicationsResponse) The response message.
      rn   r:   r<   r?   s       r/   rn   z2ApphubV1.ProjectsLocationsApplicationsService.List  ro   r0   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nr   rj   z+apphub.projects.locations.applications.listrF   rq   r   rd   .ApphubProjectsLocationsApplicationsListRequestListApplicationsResponseFrM   rY   r[   r0   r/   r\   z6ApphubV1.ProjectsLocationsApplicationsService.<lambda>  s4    !7!7Q? zJC1J5"r0   c                 L    | j                  d      }| j                  |||      S )a%  Updates an Application in a host project and location.

      Args:
        request: (ApphubProjectsLocationsApplicationsPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      ry   r:   r<   r?   s       r/   ry   z3ApphubV1.ProjectsLocationsApplicationsService.Patch  rz   r0   c                  J    t        j                  ddddgdgddgddd	d
d      S )Nr   r|   z,apphub.projects.locations.applications.patchrb   rG   r}   rc   r   /ApphubProjectsLocationsApplicationsPatchRequestrL   FrM   rY   r[   r0   r/   r\   z6ApphubV1.ProjectsLocationsApplicationsService.<lambda>  s9    ("8"8b@xH!<0"#K&#r0   c                 L    | j                  d      }| j                  |||      S )a  Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.

      Args:
        request: (ApphubProjectsLocationsApplicationsSetIamPolicyRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Policy) The response message.
      SetIamPolicyr:   r<   r?   s       r/   r   z:ApphubV1.ProjectsLocationsApplicationsService.SetIamPolicy  r   r0   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz[v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:setIamPolicyrE   z3apphub.projects.locations.applications.setIamPolicyr   zv1/{+resource}:setIamPolicysetIamPolicyRequest6ApphubProjectsLocationsApplicationsSetIamPolicyRequestr   FrM   rY   r[   r0   r/   r\   z6ApphubV1.ProjectsLocationsApplicationsService.<lambda>  s4    )?)?oG"|L3+R#*r0   c                 L    | j                  d      }| j                  |||      S )aj  Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

      Args:
        request: (ApphubProjectsLocationsApplicationsTestIamPermissionsRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (TestIamPermissionsResponse) The response message.
      TestIamPermissionsr:   r<   r?   s       r/   r   z@ApphubV1.ProjectsLocationsApplicationsService.TestIamPermissions  s2     ##$89f__
'  8 8r0   c                  F    t        j                  ddddgdgg ddddd	
      S )Nzav1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:testIamPermissionsrE   z9apphub.projects.locations.applications.testIamPermissionsr   z!v1/{+resource}:testIamPermissionstestIamPermissionsRequest<ApphubProjectsLocationsApplicationsTestIamPermissionsRequestTestIamPermissionsResponseFrM   rY   r[   r0   r/   r\   z6ApphubV1.ProjectsLocationsApplicationsService.<lambda>*  s4    x/E/EuM"|L91X70r0   r4   )r   r   r   r   r   r   r9   r   r^   rg   r   rn   ry   r   r   r   r   s   @r/   r   r   V  s    I-E
8F8F8C8"L8D8E8"L8($$r0   r   c                   n     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	_         xZ
S )3ApphubV1.ProjectsLocationsDiscoveredServicesServicezEService class for the projects_locations_discoveredServices resource.r!   c                 N    t         t        j                  |   |       i | _        y r4   )r   r   r    r   r5   r6   s     r/   r   z<ApphubV1.ProjectsLocationsDiscoveredServicesService.__init__=  s#    H??OPVWdr0   c                 L    | j                  d      }| j                  |||      S )a4  Gets a Discovered Service in a host project and location.

      Args:
        request: (ApphubProjectsLocationsDiscoveredServicesGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (DiscoveredService) The response message.
      rg   r:   r<   r?   s       r/   rg   z7ApphubV1.ProjectsLocationsDiscoveredServicesService.GetB  rh   r0   c                  F    t        j                  ddddgdgg ddddd	
      S )NzZv1/projects/{projectsId}/locations/{locationsId}/discoveredServices/{discoveredServicesId}rj   z0apphub.projects.locations.discoveredServices.getrb   rc   rd   3ApphubProjectsLocationsDiscoveredServicesGetRequestDiscoveredServiceFrM   rY   r[   r0   r/   r\   z<ApphubV1.ProjectsLocationsDiscoveredServicesService.<lambda>O  s4     6 6nDxH"O.!r0   c                 L    | j                  d      }| j                  |||      S )af  Lists Discovered Services that can be added to an Application in a host project and location.

      Args:
        request: (ApphubProjectsLocationsDiscoveredServicesListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListDiscoveredServicesResponse) The response message.
      rn   r:   r<   r?   s       r/   rn   z8ApphubV1.ProjectsLocationsDiscoveredServicesService.List]  ro   r0   c                  J    t        j                  ddddgdgg ddddd	d
      S )NzCv1/projects/{projectsId}/locations/{locationsId}/discoveredServicesrj   z1apphub.projects.locations.discoveredServices.listrF   rq   zv1/{+parent}/discoveredServicesrd   4ApphubProjectsLocationsDiscoveredServicesListRequestListDiscoveredServicesResponseFrM   rY   r[   r0   r/   r\   z<ApphubV1.ProjectsLocationsDiscoveredServicesService.<lambda>j  s4    !7!7WE zJC7P;"r0   c                 L    | j                  d      }| j                  |||      S )aa  Lists a Discovered Service in a host project and location, with a given resource URI.

      Args:
        request: (ApphubProjectsLocationsDiscoveredServicesLookupRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (LookupDiscoveredServiceResponse) The response message.
      Lookupr:   r<   r?   s       r/   r   z:ApphubV1.ProjectsLocationsDiscoveredServicesService.Lookupx  rB   r0   c                  H    t        j                  ddddgdgdgdddd	d
      S )NzJv1/projects/{projectsId}/locations/{locationsId}/discoveredServices:lookuprj   z3apphub.projects.locations.discoveredServices.lookuprF   uriz&v1/{+parent}/discoveredServices:lookuprd   6ApphubProjectsLocationsDiscoveredServicesLookupRequestLookupDiscoveredServiceResponseFrM   rY   r[   r0   r/   r\   z<ApphubV1.ProjectsLocationsDiscoveredServicesService.<lambda>  s6    8#9#9^G zJW>R<$r0   r4   r   r   r   r   r   r   rg   r   rn   r   r   r   s   @r/   r    r   8  s@    O3E
8C8D8Fr0   r    c                   n     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	_         xZ
S )4ApphubV1.ProjectsLocationsDiscoveredWorkloadsServicezFService class for the projects_locations_discoveredWorkloads resource.r#   c                 N    t         t        j                  |   |       i | _        y r4   )r   r   r"   r   r5   r6   s     r/   r   z=ApphubV1.ProjectsLocationsDiscoveredWorkloadsService.__init__  s#    H@@$PQWXdr0   c                 L    | j                  d      }| j                  |||      S )a7  Gets a Discovered Workload in a host project and location.

      Args:
        request: (ApphubProjectsLocationsDiscoveredWorkloadsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (DiscoveredWorkload) The response message.
      rg   r:   r<   r?   s       r/   rg   z8ApphubV1.ProjectsLocationsDiscoveredWorkloadsService.Get  rh   r0   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz\v1/projects/{projectsId}/locations/{locationsId}/discoveredWorkloads/{discoveredWorkloadsId}rj   z1apphub.projects.locations.discoveredWorkloads.getrb   rc   rd   4ApphubProjectsLocationsDiscoveredWorkloadsGetRequestDiscoveredWorkloadFrM   rY   r[   r0   r/   r\   z=ApphubV1.ProjectsLocationsDiscoveredWorkloadsService.<lambda>  s4     6 6pExH"P/!r0   c                 L    | j                  d      }| j                  |||      S )ai  Lists Discovered Workloads that can be added to an Application in a host project and location.

      Args:
        request: (ApphubProjectsLocationsDiscoveredWorkloadsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListDiscoveredWorkloadsResponse) The response message.
      rn   r:   r<   r?   s       r/   rn   z9ApphubV1.ProjectsLocationsDiscoveredWorkloadsService.List  ro   r0   c                  J    t        j                  ddddgdgg ddddd	d
      S )NzDv1/projects/{projectsId}/locations/{locationsId}/discoveredWorkloadsrj   z2apphub.projects.locations.discoveredWorkloads.listrF   rq   z v1/{+parent}/discoveredWorkloadsrd   5ApphubProjectsLocationsDiscoveredWorkloadsListRequestListDiscoveredWorkloadsResponseFrM   rY   r[   r0   r/   r\   z=ApphubV1.ProjectsLocationsDiscoveredWorkloadsService.<lambda>  s4    !7!7XF zJC8Q<"r0   c                 L    | j                  d      }| j                  |||      S )ad  Lists a Discovered Workload in a host project and location, with a given resource URI.

      Args:
        request: (ApphubProjectsLocationsDiscoveredWorkloadsLookupRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (LookupDiscoveredWorkloadResponse) The response message.
      r   r:   r<   r?   s       r/   r   z;ApphubV1.ProjectsLocationsDiscoveredWorkloadsService.Lookup  rB   r0   c                  H    t        j                  ddddgdgdgdddd	d
      S )NzKv1/projects/{projectsId}/locations/{locationsId}/discoveredWorkloads:lookuprj   z4apphub.projects.locations.discoveredWorkloads.lookuprF   r   z'v1/{+parent}/discoveredWorkloads:lookuprd   7ApphubProjectsLocationsDiscoveredWorkloadsLookupRequest LookupDiscoveredWorkloadResponseFrM   rY   r[   r0   r/   r\   z=ApphubV1.ProjectsLocationsDiscoveredWorkloadsService.<lambda>  s6    8#9#9_H zJW?S=$r0   r4   r   r   s   @r/   r"   r     s@    P4E
8C8D8Fr0   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
_         xZS )+ApphubV1.ProjectsLocationsOperationsServicez=Service class for the projects_locations_operations resource.r%   c                 N    t         t        j                  |   |       i | _        y r4   )r   r   r$   r   r5   r6   s     r/   r   z4ApphubV1.ProjectsLocationsOperationsService.__init__  s"    H77GOdr0   c                 L    | j                  d      }| j                  |||      S )a5  Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.

      Args:
        request: (ApphubProjectsLocationsOperationsCancelRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      Cancelr:   r<   r?   s       r/   r   z2ApphubV1.ProjectsLocationsOperationsService.Cancel  rB   r0   c                  F    t        j                  ddddgdgg ddddd	
      S )NzQv1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancelrE   z+apphub.projects.locations.operations.cancelrb   zv1/{+name}:cancelcancelOperationRequest.ApphubProjectsLocationsOperationsCancelRequestEmptyFrM   rY   r[   r0   r/   r\   z4ApphubV1.ProjectsLocationsOperationsService.<lambda>  s4    8#9#9e?xH).J"$r0   c                 L    | j                  d      }| j                  |||      S )a  Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.

      Args:
        request: (ApphubProjectsLocationsOperationsDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      r^   r:   r<   r?   s       r/   r^   z2ApphubV1.ProjectsLocationsOperationsService.Delete  rB   r0   c                  F    t        j                  ddddgdgg ddddd	
      S )NJv1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}ra   z+apphub.projects.locations.operations.deleterb   rc   rd   .ApphubProjectsLocationsOperationsDeleteRequestr   FrM   rY   r[   r0   r/   r\   z4ApphubV1.ProjectsLocationsOperationsService.<lambda>   s4    8#9#9^?xH"J"$r0   c                 L    | j                  d      }| j                  |||      S )a  Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

      Args:
        request: (ApphubProjectsLocationsOperationsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      rg   r:   r<   r?   s       r/   rg   z/ApphubV1.ProjectsLocationsOperationsService.Get.  rh   r0   c                  F    t        j                  ddddgdgg ddddd	
      S )Nr   rj   z(apphub.projects.locations.operations.getrb   rc   rd   +ApphubProjectsLocationsOperationsGetRequestrL   FrM   rY   r[   r0   r/   r\   z4ApphubV1.ProjectsLocationsOperationsService.<lambda>;  s4     6 6^<xH"G&!r0   c                 L    | j                  d      }| j                  |||      S )a  Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

      Args:
        request: (ApphubProjectsLocationsOperationsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListOperationsResponse) The response message.
      rn   r:   r<   r?   s       r/   rn   z0ApphubV1.ProjectsLocationsOperationsService.ListI  ro   r0   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nz;v1/projects/{projectsId}/locations/{locationsId}/operationsrj   z)apphub.projects.locations.operations.listrb   )rr   rt   ru   zv1/{+name}/operationsrd   ,ApphubProjectsLocationsOperationsListRequestListOperationsResponseFrM   rY   r[   r0   r/   r\   z4ApphubV1.ProjectsLocationsOperationsService.<lambda>V  s4    !7!7O=xH8-H3"r0   r4   )r   r   r   r   r   r   r   r   r^   rg   rn   r   r   s   @r/   r$   r     sO    G+E
8F8F8C8Dr0   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
_         xZS ):ApphubV1.ProjectsLocationsServiceProjectAttachmentsServicezLService class for the projects_locations_serviceProjectAttachments resource.r'   c                 N    t         t        j                  |   |       i | _        y r4   )r   r   r&   r   r5   r6   s     r/   r   zCApphubV1.ProjectsLocationsServiceProjectAttachmentsService.__init__i  s#    HFFVW]^dr0   c                 L    | j                  d      }| j                  |||      S )a,  Attaches a service project to the host project.

      Args:
        request: (ApphubProjectsLocationsServiceProjectAttachmentsCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      r9   r:   r<   r?   s       r/   r9   zAApphubV1.ProjectsLocationsServiceProjectAttachmentsService.Createn  rB   r0   c                  J    t        j                  ddddgdgddgddd	d
d      S )NJv1/projects/{projectsId}/locations/{locationsId}/serviceProjectAttachmentsrE   z:apphub.projects.locations.serviceProjectAttachments.createrF   rG   serviceProjectAttachmentId&v1/{+parent}/serviceProjectAttachmentsserviceProjectAttachment=ApphubProjectsLocationsServiceProjectAttachmentsCreateRequestrL   FrM   rY   r[   r0   r/   r\   zCApphubV1.ProjectsLocationsServiceProjectAttachmentsService.<lambda>{  s:    8#9#9^N zJ!#?@>0Y&$r0   c                 L    | j                  d      }| j                  |||      S )a"  Deletes a service project attachment.

      Args:
        request: (ApphubProjectsLocationsServiceProjectAttachmentsDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      r^   r:   r<   r?   s       r/   r^   zAApphubV1.ProjectsLocationsServiceProjectAttachmentsService.Delete  rB   r0   c                  H    t        j                  ddddgdgdgdddd	d
      S )Nhv1/projects/{projectsId}/locations/{locationsId}/serviceProjectAttachments/{serviceProjectAttachmentsId}ra   z:apphub.projects.locations.serviceProjectAttachments.deleterb   rG   rc   rd   =ApphubProjectsLocationsServiceProjectAttachmentsDeleteRequestrL   FrM   rY   r[   r0   r/   r\   zCApphubV1.ProjectsLocationsServiceProjectAttachmentsService.<lambda>  s6    8#9#9|NxH!]"Y&$r0   c                 L    | j                  d      }| j                  |||      S )a+  Gets a service project attachment.

      Args:
        request: (ApphubProjectsLocationsServiceProjectAttachmentsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ServiceProjectAttachment) The response message.
      rg   r:   r<   r?   s       r/   rg   z>ApphubV1.ProjectsLocationsServiceProjectAttachmentsService.Get  rh   r0   c                  F    t        j                  ddddgdgg ddddd	
      S )Nr  rj   z7apphub.projects.locations.serviceProjectAttachments.getrb   rc   rd   :ApphubProjectsLocationsServiceProjectAttachmentsGetRequestServiceProjectAttachmentFrM   rY   r[   r0   r/   r\   zCApphubV1.ProjectsLocationsServiceProjectAttachmentsService.<lambda>  s4     6 6|KxH"V5!r0   c                 L    | j                  d      }| j                  |||      S )aK  Lists service projects attached to the host project.

      Args:
        request: (ApphubProjectsLocationsServiceProjectAttachmentsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListServiceProjectAttachmentsResponse) The response message.
      rn   r:   r<   r?   s       r/   rn   z?ApphubV1.ProjectsLocationsServiceProjectAttachmentsService.List  ro   r0   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nr  rj   z8apphub.projects.locations.serviceProjectAttachments.listrF   rq   r	  rd   ;ApphubProjectsLocationsServiceProjectAttachmentsListRequest%ListServiceProjectAttachmentsResponseFrM   rY   r[   r0   r/   r\   zCApphubV1.ProjectsLocationsServiceProjectAttachmentsService.<lambda>  s4    !7!7^L zJC>WB"r0   r4   )r   r   r   r   r   r   r9   r   r^   rg   rn   r   r   s   @r/   r&   r  d  sO    V:E
8F8F8C8Dr0   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
_         xZS )!ApphubV1.ProjectsLocationsServicez2Service class for the projects_locations resource.r)   c                 N    t         t        j                  |   |       i | _        y r4   )r   r   r(   r   r5   r6   s     r/   r   z*ApphubV1.ProjectsLocationsService.__init__  s"    H--t=fEdr0   c                 L    | j                  d      }| j                  |||      S )a  Detaches a service project from a host project. You can call this API from any service project without needing access to the host project that it is attached to.

      Args:
        request: (ApphubProjectsLocationsDetachServiceProjectAttachmentRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (DetachServiceProjectAttachmentResponse) The response message.
      DetachServiceProjectAttachmentr:   r<   r?   s       r/   r  z@ApphubV1.ProjectsLocationsService.DetachServiceProjectAttachment  2     ##$DEf__
'  8 8r0   c                  F    t        j                  ddddgdgg ddddd	
      S )NzOv1/projects/{projectsId}/locations/{locationsId}:detachServiceProjectAttachmentrE   z8apphub.projects.locations.detachServiceProjectAttachmentrb   z)v1/{+name}:detachServiceProjectAttachment%detachServiceProjectAttachmentRequest<ApphubProjectsLocationsDetachServiceProjectAttachmentRequest&DetachServiceProjectAttachmentResponseFrM   rY   r[   r0   r/   r\   z*ApphubV1.ProjectsLocationsService.<lambda>  s4    8;Q;QcLxHA=XC<r0   c                 L    | j                  d      }| j                  |||      S )a  Gets information about a location.

      Args:
        request: (ApphubProjectsLocationsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Location) The response message.
      rg   r:   r<   r?   s       r/   rg   z%ApphubV1.ProjectsLocationsService.Get  rh   r0   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz0v1/projects/{projectsId}/locations/{locationsId}rj   zapphub.projects.locations.getrb   rc   rd   !ApphubProjectsLocationsGetRequestLocationFrM   rY   r[   r0   r/   r\   z*ApphubV1.ProjectsLocationsService.<lambda>  s4     6 6D1xH"=%!r0   c                 L    | j                  d      }| j                  |||      S )a/  Lists information about the supported locations for this service.

      Args:
        request: (ApphubProjectsLocationsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListLocationsResponse) The response message.
      rn   r:   r<   r?   s       r/   rn   z&ApphubV1.ProjectsLocationsService.List  ro   r0   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nz"v1/projects/{projectsId}/locationsrj   zapphub.projects.locations.listrb   )extraLocationTypesrr   rt   ru   zv1/{+name}/locationsrd   "ApphubProjectsLocationsListRequestListLocationsResponseFrM   rY   r[   r0   r/   r\   z*ApphubV1.ProjectsLocationsService.<lambda>'  s4    !7!762xHN,>2"r0   c                 L    | j                  d      }| j                  |||      S )a  Lists a service project attachment for a given service project. You can call this API from any project to find if it is attached to a host project.

      Args:
        request: (ApphubProjectsLocationsLookupServiceProjectAttachmentRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (LookupServiceProjectAttachmentResponse) The response message.
      LookupServiceProjectAttachmentr:   r<   r?   s       r/   r,  z@ApphubV1.ProjectsLocationsService.LookupServiceProjectAttachment5  r  r0   c                  F    t        j                  ddddgdgg ddddd	
      S )NzOv1/projects/{projectsId}/locations/{locationsId}:lookupServiceProjectAttachmentrj   z8apphub.projects.locations.lookupServiceProjectAttachmentrb   z)v1/{+name}:lookupServiceProjectAttachmentrd   <ApphubProjectsLocationsLookupServiceProjectAttachmentRequest&LookupServiceProjectAttachmentResponseFrM   rY   r[   r0   r/   r\   z*ApphubV1.ProjectsLocationsService.<lambda>B  s4    8;Q;QcLxHAXC<r0   r4   )r   r   r   r   r   r   r  r   rg   rn   r,  r   r   s   @r/   r(   r    sQ    < E
84"08C8D84"00r0   r(   c                   &     e Zd ZdZdZ fdZ xZS )ApphubV1.ProjectsServicez(Service class for the projects resource.r+   c                 N    t         t        j                  |   |       i | _        y r4   )r   r   r*   r   r5   r6   s     r/   r   z!ApphubV1.ProjectsService.__init__U  s"    H$$d4V<dr0   )r   r   r   r   r   r   r   r   s   @r/   r*   r1  P  s    2E r0   r*   )rd   NTNNFFNNNN)r   r   r   r   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"   r$   r&   r(   r*   r   r   s   @r/   r   r   
   s   ?/-(7-(=>'(*"."+!,()-6:/4<@?C	/2OX5L5L ObOh6M6M Ob`X-D-D `DY83J3J YvYH4K4K Yvt8+B+B tlt(:Q:Q tlt!8!8 tl//  r0   r   N)
r   
__future__r   apitools.base.pyr   /googlecloudsdk.generated_clients.apis.apphub.v1r   r3  BaseApiClientr   r[   r0   r/   <module>rD     s'    5 ' % ZNx%% Nr0   