
    ^                     V    S r SSKJr  SSKJr  SSKJr   " S S\R                  5      r	g)z5Generated client library for gkehub version v1alpha2.    )absolute_import)base_api)gkehub_v1alpha2_messagesc                   h  ^  \ rS rSrSr\rSrSrSr	S/r
SrSrS	rS
rS rSrSr     SU 4S jjr " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      rSrU =r$ )GkehubV1alpha2
   z=Generated client library for service gkehub version v1alpha2.zhttps://gkehub.googleapis.com/z#https://gkehub.mtls.googleapis.com/gkehubz.https://www.googleapis.com/auth/cloud-platformv1alpha2	CLIENT_IDCLIENT_SECRETzgoogle-cloud-sdkNc                 h  > U=(       d    U R                   n[        [        U ]  XX4UXgUU	U
US9  U R	                  U 5      U l        U R                  U 5      U l        U R                  U 5      U l	        U R                  U 5      U l        U R                  U 5      U l        U R                  U 5      U l        g)zCreate a new gkehub handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)BASE_URLsuperr   __init__)ProjectsLocationsGlobalMembershipsService%projects_locations_global_membershipsProjectsLocationsGlobalServiceprojects_locations_global#ProjectsLocationsMembershipsServiceprojects_locations_memberships"ProjectsLocationsOperationsServiceprojects_locations_operationsProjectsLocationsServiceprojects_locationsProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               Slib/googlecloudsdk/generated_clients/apis/gkehub/v1alpha2/gkehub_v1alpha2_client.pyr   GkehubV1alpha2.__init__   s     
C	.$('%)3 7+ ) - 261_1_`d1eD.%)%H%H%ND"*.*R*RSW*XD')-)P)PQU)VD&";;DAD((.DM    c                   J   ^  \ rS rSrSrSrU 4S jrSS jrS \l        Sr	U =r
$ )	8GkehubV1alpha2.ProjectsLocationsGlobalMembershipsService1   zEService class for the projects_locations_global_memberships resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g N)r   r   r   r   _upload_configsr'   clientr)   s     r*   r   AGkehubV1alpha2.ProjectsLocationsGlobalMembershipsService.__init__6   s#    NDDdTU[\dr,   c                 D    U R                  S5      nU R                  X1US9$ )a  Initializes the Hub in this project, which includes creating the default Hub Service Account and the Hub Workload Identity Pool. Initialization is optional, and happens automatically when the first Membership is created. InitializeHub should be called when the first Membership cannot be registered without these resources. A common example is granting the Hub Service Account access to another project, which requires the account to exist first.

Args:
  request: (GkehubProjectsLocationsGlobalMembershipsInitializeHubRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (InitializeHubResponse) The response message.
InitializeHubglobal_paramsGetMethodConfig
_RunMethodr'   requestr9   configs       r*   r7   FGkehubV1alpha2.ProjectsLocationsGlobalMembershipsService.InitializeHub;   s/     ##O4f__
  8 8r,   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzIv1alpha2/projects/{projectsId}/locations/global/memberships:initializeHubPOSTz:gkehub.projects.locations.global.memberships.initializeHubprojectz!v1alpha2/{+project}:initializeHubinitializeHubRequest<GkehubProjectsLocationsGlobalMembershipsInitializeHubRequestInitializeHubResponseF	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 r,   r*   <lambda>AGkehubV1alpha2.ProjectsLocationsGlobalMembershipsService.<lambda>H   s4    (*@*@]N!{K9,X2+r,   r2   r1   )__name__
__module____qualname____firstlineno____doc___NAMEr   r7   method_config__static_attributes____classcell__r)   s   @r*   r   r.   1   s"    O3E
8#Mr,   r   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )-GkehubV1alpha2.ProjectsLocationsGlobalServiceV   z9Service class for the projects_locations_global resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g r1   )r   r   r   r   r2   r3   s     r*   r   6GkehubV1alpha2.ProjectsLocationsGlobalService.__init__[   s"    N994I&Qdr,   rX   	rY   rZ   r[   r\   r]   r^   r   r`   ra   rb   s   @r*   r   rd   V   s    C'E r,   r   c                     ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SS jrS \l        SS jrS \l        SS jrS \l        SS jrS \l        SS jrS \l        SS jrS \l        SrU =r$ )2GkehubV1alpha2.ProjectsLocationsMembershipsService`   z>Service class for the projects_locations_memberships resource.r    c                 N   > [         [        R                  U ]  U5        0 U l        g r1   )r   r   r   r   r2   r3   s     r*   r   ;GkehubV1alpha2.ProjectsLocationsMembershipsService.__init__e   s"    N>>NvVdr,   c                 D    U R                  S5      nU R                  X1US9$ )a  Creates a new Membership. **This is currently only supported for GKE clusters on Google Cloud**. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.

Args:
  request: (GkehubProjectsLocationsMembershipsCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Creater8   r:   r=   s       r*   ro   9GkehubV1alpha2.ProjectsLocationsMembershipsService.Createj   /     ##H-f__
  8 8r,   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )NBv1alpha2/projects/{projectsId}/locations/{locationsId}/membershipsrB   z,gkehub.projects.locations.memberships.createparentmembershipIdv1alpha2/{+parent}/memberships
membership/GkehubProjectsLocationsMembershipsCreateRequest	OperationFrG   rS   rU   r,   r*   rV   ;GkehubV1alpha2.ProjectsLocationsMembershipsService.<lambda>w   s7    8#9#9V@ zJ$%6"K&$r,   c                 D    U R                  S5      nU R                  X1US9$ )a  Removes a Membership. **This is currently only supported for GKE clusters on Google Cloud**. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.

Args:
  request: (GkehubProjectsLocationsMembershipsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Deleter8   r:   r=   s       r*   r|   9GkehubV1alpha2.ProjectsLocationsMembershipsService.Delete   rq   r,   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )NRv1alpha2/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}DELETEz,gkehub.projects.locations.memberships.deletenameforcev1alpha2/{+name} /GkehubProjectsLocationsMembershipsDeleteRequestry   FrG   rS   rU   r,   r*   rV   rz      s6    8#9#9f@xHY(K&$r,   c                 D    U R                  S5      nU R                  X1US9$ )a  Generates the manifest for deployment of the GKE connect agent. **This method is used internally by Google-provided libraries.** Most clients should not need to call this method directly.

Args:
  request: (GkehubProjectsLocationsMembershipsGenerateConnectManifestRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GenerateConnectManifestResponse) The response message.
GenerateConnectManifestr8   r:   r=   s       r*   r   JGkehubV1alpha2.ProjectsLocationsMembershipsService.GenerateConnectManifest   s0     ##$=>f__
  8 8r,   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nzjv1alpha2/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}:generateConnectManifestGETz=gkehub.projects.locations.memberships.generateConnectManifestr   )imagePullSecretContent	isUpgrade	namespaceproxyregistryversionz(v1alpha2/{+name}:generateConnectManifestr   @GkehubProjectsLocationsMembershipsGenerateConnectManifestRequestGenerateConnectManifestResponseFrG   rS   rU   r,   r*   rV   rz      s4    H4J4J~QxHi@\<5r,   c                 D    U R                  S5      nU R                  X1US9$ )zGets the details of a Membership.

Args:
  request: (GkehubProjectsLocationsMembershipsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Membership) The response message.
Getr8   r:   r=   s       r*   r   6GkehubV1alpha2.ProjectsLocationsMembershipsService.Get   /     ##E*f__
  8 8r,   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   r   z)gkehub.projects.locations.memberships.getr   r   r   ,GkehubProjectsLocationsMembershipsGetRequest
MembershipFrG   rS   rU   r,   r*   rV   rz      s4     6 6f=xH(H'!r,   c                 D    U R                  S5      nU R                  X1US9$ )aK  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: (GkehubProjectsLocationsMembershipsGetIamPolicyRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Policy) The response message.
GetIamPolicyr8   r:   r=   s       r*   r   ?GkehubV1alpha2.ProjectsLocationsMembershipsService.GetIamPolicy   /     ##N3f__
  8 8r,   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nz_v1alpha2/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}:getIamPolicyr   z2gkehub.projects.locations.memberships.getIamPolicyresourceoptions_requestedPolicyVersionz!v1alpha2/{+resource}:getIamPolicyr   5GkehubProjectsLocationsMembershipsGetIamPolicyRequestPolicyFrG   rS   rU   r,   r*   rV   rz      s7    )?)?sF"|L679Q#*r,   c                 D    U R                  S5      nU R                  X1US9$ )a	  Lists Memberships in a given project and location.

Args:
  request: (GkehubProjectsLocationsMembershipsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListMembershipsResponse) The response message.
Listr8   r:   r=   s       r*   r   7GkehubV1alpha2.ProjectsLocationsMembershipsService.List   /     ##F+f__
  8 8r,   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nrs   r   z*gkehub.projects.locations.memberships.listrt   )filterorderBypageSize	pageTokenrv   r   -GkehubProjectsLocationsMembershipsListRequestListMembershipsResponseFrG   rS   rU   r,   r*   rV   rz      s4    !7!7V> zJC6I4"r,   c                 D    U R                  S5      nU R                  X1US9$ )zUpdates an existing Membership.

Args:
  request: (GkehubProjectsLocationsMembershipsPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Patchr8   r:   r=   s       r*   r   8GkehubV1alpha2.ProjectsLocationsMembershipsService.Patch  s/     ##G,f__
  8 8r,   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nr   PATCHz+gkehub.projects.locations.memberships.patchr   
updateMaskr   rw   .GkehubProjectsLocationsMembershipsPatchRequestry   FrG   rS   rU   r,   r*   rV   rz     s6    ("8"8f?xH"^("J&#r,   c                 D    U R                  S5      nU R                  X1US9$ )aq  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: (GkehubProjectsLocationsMembershipsSetIamPolicyRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Policy) The response message.
SetIamPolicyr8   r:   r=   s       r*   r   ?GkehubV1alpha2.ProjectsLocationsMembershipsService.SetIamPolicy'  r   r,   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz_v1alpha2/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}:setIamPolicyrB   z2gkehub.projects.locations.memberships.setIamPolicyr   z!v1alpha2/{+resource}:setIamPolicysetIamPolicyRequest5GkehubProjectsLocationsMembershipsSetIamPolicyRequestr   FrG   rS   rU   r,   r*   rV   rz   4  s4    )?)?sF"|L9+Q#*r,   c                 D    U R                  S5      nU R                  X1US9$ )aE  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: (GkehubProjectsLocationsMembershipsTestIamPermissionsRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (TestIamPermissionsResponse) The response message.
TestIamPermissionsr8   r:   r=   s       r*   r   EGkehubV1alpha2.ProjectsLocationsMembershipsService.TestIamPermissionsB  s0     ##$89f__
  8 8r,   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nzev1alpha2/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}:testIamPermissionsrB   z8gkehub.projects.locations.memberships.testIamPermissionsr   z'v1alpha2/{+resource}:testIamPermissionstestIamPermissionsRequest;GkehubProjectsLocationsMembershipsTestIamPermissionsRequestTestIamPermissionsResponseFrG   rS   rU   r,   r*   rV   rz   O  s4    x/E/EyL"|L?1W70r,   rX   r1   )rY   rZ   r[   r\   r]   r^   r   ro   r_   r|   r   r   r   r   r   r   r   r`   ra   rb   s   @r*   r   rj   `   s    H,E
8F8F8-)8C8"L8D8E8"L8($$r,   r   c                      ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SS jrS \l        SrU =r$ )1GkehubV1alpha2.ProjectsLocationsOperationsServicei]  z=Service class for the projects_locations_operations resource.r"   c                 N   > [         [        R                  U ]  U5        0 U l        g r1   )r   r   r!   r   r2   r3   s     r*   r   :GkehubV1alpha2.ProjectsLocationsOperationsService.__init__b  s"    N==tMfUdr,   c                 D    U R                  S5      nU R                  X1US9$ )a  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: (GkehubProjectsLocationsOperationsCancelRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
Cancelr8   r:   r=   s       r*   r   8GkehubV1alpha2.ProjectsLocationsOperationsService.Cancelg  rq   r,   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzWv1alpha2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancelrB   z+gkehub.projects.locations.operations.cancelr   zv1alpha2/{+name}:cancelcancelOperationRequest.GkehubProjectsLocationsOperationsCancelRequestEmptyFrG   rS   rU   r,   r*   rV   :GkehubV1alpha2.ProjectsLocationsOperationsService.<lambda>t  s4    8#9#9k?xH/.J"$r,   c                 D    U R                  S5      nU R                  X1US9$ )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: (GkehubProjectsLocationsOperationsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
r|   r8   r:   r=   s       r*   r|   8GkehubV1alpha2.ProjectsLocationsOperationsService.Delete  rq   r,   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NPv1alpha2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}r   z+gkehub.projects.locations.operations.deleter   r   r   .GkehubProjectsLocationsOperationsDeleteRequestr   FrG   rS   rU   r,   r*   rV   r     s4    8#9#9d?xH(J"$r,   c                 D    U R                  S5      nU R                  X1US9$ )ab  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: (GkehubProjectsLocationsOperationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
r   r8   r:   r=   s       r*   r   5GkehubV1alpha2.ProjectsLocationsOperationsService.Get  r   r,   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   r   z(gkehub.projects.locations.operations.getr   r   r   +GkehubProjectsLocationsOperationsGetRequestry   FrG   rS   rU   r,   r*   rV   r     s4     6 6d<xH(G&!r,   c                 D    U R                  S5      nU R                  X1US9$ )a\  Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

Args:
  request: (GkehubProjectsLocationsOperationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListOperationsResponse) The response message.
r   r8   r:   r=   s       r*   r   6GkehubV1alpha2.ProjectsLocationsOperationsService.List  r   r,   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )NzAv1alpha2/projects/{projectsId}/locations/{locationsId}/operationsr   z)gkehub.projects.locations.operations.listr   )r   r   r   zv1alpha2/{+name}/operationsr   ,GkehubProjectsLocationsOperationsListRequestListOperationsResponseFrG   rS   rU   r,   r*   rV   r     s4    !7!7U=xH83H3"r,   rX   r1   )rY   rZ   r[   r\   r]   r^   r   r   r_   r|   r   r   r`   ra   rb   s   @r*   r!   r   ]  sO    G+E
8F8F8C8Dr,   r!   c                   d   ^  \ rS rSrSrSrU 4S jrS
S jrS \l        S
S jr	S \	l        S	r
U =r$ )'GkehubV1alpha2.ProjectsLocationsServicei  z2Service class for the projects_locations resource.r$   c                 N   > [         [        R                  U ]  U5        0 U l        g r1   )r   r   r#   r   r2   r3   s     r*   r   0GkehubV1alpha2.ProjectsLocationsService.__init__  s"    N33TCFKdr,   c                 D    U R                  S5      nU R                  X1US9$ )zGets information about a location.

Args:
  request: (GkehubProjectsLocationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Location) The response message.
r   r8   r:   r=   s       r*   r   +GkehubV1alpha2.ProjectsLocationsService.Get  r   r,   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz6v1alpha2/projects/{projectsId}/locations/{locationsId}r   zgkehub.projects.locations.getr   r   r   !GkehubProjectsLocationsGetRequestLocationFrG   rS   rU   r,   r*   rV   0GkehubV1alpha2.ProjectsLocationsService.<lambda>  s4     6 6J1xH(=%!r,   c                 D    U R                  S5      nU R                  X1US9$ )a  Lists information about the supported locations for this service.

Args:
  request: (GkehubProjectsLocationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListLocationsResponse) The response message.
r   r8   r:   r=   s       r*   r   ,GkehubV1alpha2.ProjectsLocationsService.List  r   r,   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nz(v1alpha2/projects/{projectsId}/locationsr   zgkehub.projects.locations.listr   )r   includeUnrevealedLocationsr   r   zv1alpha2/{+name}/locationsr   "GkehubProjectsLocationsListRequestListLocationsResponseFrG   rS   rU   r,   r*   rV   r     s4    !7!7<2xHV2>2"r,   rX   r1   )rY   rZ   r[   r\   r]   r^   r   r   r_   r   r`   ra   rb   s   @r*   r#   r     s1    < E
8C8Dr,   r#   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )GkehubV1alpha2.ProjectsServicei  z(Service class for the projects resource.r&   c                 N   > [         [        R                  U ]  U5        0 U l        g r1   )r   r   r%   r   r2   r3   s     r*   r   'GkehubV1alpha2.ProjectsService.__init__  s"    N**D:6Bdr,   rX   rh   rb   s   @r*   r%   r     s    2E r,   r%   )r&   r$   r   r   r    r"   )r   NTNNFFNNNN)rY   rZ   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`   ra   rb   s   @r*   r   r   
   s    E/-(7-(=>'(*"."+',()-6:/4<@?C	/,#(2I2I #Jx'>'> {H,C,C {zt8+B+B tl>!8!8 >@//  r,   r   N)
r]   
__future__r   apitools.base.pyr   5googlecloudsdk.generated_clients.apis.gkehub.v1alpha2r   r   BaseApiClientr   rU   r,   r*   <module>r     s'    ; ' % fQX++ Qr,   