
                         V    S r SSKJr  SSKJr  SSKJr   " S S\R                  5      r	g)z/Generated client library for pubsub version v1.    )absolute_import)base_api)pubsub_v1_messagesc                     ^  \ rS rSrSr\rSrSrSr	S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 S\R(                  5      rSrU =r$ )PubsubV1
   z7Generated client library for service pubsub version v1.zhttps://pubsub.googleapis.com/z#https://pubsub.mtls.googleapis.com/pubsubz.https://www.googleapis.com/auth/cloud-platformz&https://www.googleapis.com/auth/pubsubv1	CLIENT_IDCLIENT_SECRETzgoogle-cloud-sdkNc                   > 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        U R!                  U 5      U l        g)zCreate a new pubsub handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)BASE_URLsuperr   __init__ProjectsSchemasServiceprojects_schemasProjectsSnapshotsServiceprojects_snapshotsProjectsSubscriptionsServiceprojects_subscriptionsProjectsTopicsSnapshotsServiceprojects_topics_snapshots"ProjectsTopicsSubscriptionsServiceprojects_topics_subscriptionsProjectsTopicsServiceprojects_topicsProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               Glib/googlecloudsdk/generated_clients/apis/pubsub/v1/pubsub_v1_client.pyr   PubsubV1.__init__   s     
C	(D"'%)3 7+ # - !77=D";;DAD"&"C"CD"ID%)%H%H%ND")-)P)PQU)VD&55d;D((.DM    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 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$ )!PubsubV1.ProjectsSchemasService2   z0Service class for the projects_schemas resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g N)r   r   r   r   _upload_configsr)   clientr+   s     r,   r   (PubsubV1.ProjectsSchemasService.__init__7   s"    H++T;FCdr.   c                 D    U R                  S5      nU R                  X1US9$ )zCommits a new schema revision to an existing schema.

Args:
  request: (PubsubProjectsSchemasCommitRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Schema) The response message.
Commitglobal_paramsGetMethodConfig
_RunMethodr)   requestr;   configs       r,   r9   &PubsubV1.ProjectsSchemasService.Commit<   /     ##H-f__
  8 8r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz3v1/projects/{projectsId}/schemas/{schemasId}:commitPOSTzpubsub.projects.schemas.commitnamezv1/{+name}:commitcommitSchemaRequest"PubsubProjectsSchemasCommitRequestSchemaF	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>(PubsubV1.ProjectsSchemasService.<lambda>I   s4    8#9#9G2xH)+>#$r.   c                 D    U R                  S5      nU R                  X1US9$ )zCreates a schema.

Args:
  request: (PubsubProjectsSchemasCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Schema) The response message.
Creater:   r<   r?   s       r,   r\   &PubsubV1.ProjectsSchemasService.CreateW   rC   r.   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )N v1/projects/{projectsId}/schemasrE   zpubsub.projects.schemas.createparentschemaIdv1/{+parent}/schemasschema"PubsubProjectsSchemasCreateRequestrI   FrJ   rV   rX   r.   r,   rY   rZ   d   s6    8#9#942 zJ \,>#$r.   c                 D    U R                  S5      nU R                  X1US9$ )zDeletes a schema.

Args:
  request: (PubsubProjectsSchemasDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
Deleter:   r<   r?   s       r,   rf   &PubsubV1.ProjectsSchemasService.Deleter   rC   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )N,v1/projects/{projectsId}/schemas/{schemasId}DELETEzpubsub.projects.schemas.deleterF   
v1/{+name} "PubsubProjectsSchemasDeleteRequestEmptyFrJ   rV   rX   r.   r,   rY   rZ      s4    8#9#9@2xH">"$r.   c                 D    U R                  S5      nU R                  X1US9$ )zDeletes a specific schema revision.

Args:
  request: (PubsubProjectsSchemasDeleteRevisionRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Schema) The response message.
DeleteRevisionr:   r<   r?   s       r,   rp   .PubsubV1.ProjectsSchemasService.DeleteRevision   s0     ##$45f__
  8 8r.   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nz;v1/projects/{projectsId}/schemas/{schemasId}:deleteRevisionrj   z&pubsub.projects.schemas.deleteRevisionrF   
revisionIdzv1/{+name}:deleteRevisionrl   *PubsubProjectsSchemasDeleteRevisionRequestrI   FrJ   rV   rX   r.   r,   rY   rZ      s6    8+A+AO:xH"^1F#,r.   c                 D    U R                  S5      nU R                  X1US9$ )zGets a schema.

Args:
  request: (PubsubProjectsSchemasGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Schema) The response message.
Getr:   r<   r?   s       r,   rv   #PubsubV1.ProjectsSchemasService.Get   /     ##E*f__
  8 8r.   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nri   GETzpubsub.projects.schemas.getrF   viewrk   rl   PubsubProjectsSchemasGetRequestrI   FrJ   rV   rX   r.   r,   rY   rZ      s6     6 6@/xHX";#!r.   c                 D    U R                  S5      nU R                  X1US9$ )a>  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: (PubsubProjectsSchemasGetIamPolicyRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Policy) The response message.
GetIamPolicyr:   r<   r?   s       r,   r~   ,PubsubV1.ProjectsSchemasService.GetIamPolicy   /     ##N3f__
  8 8r.   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nz9v1/projects/{projectsId}/schemas/{schemasId}:getIamPolicyrz   z$pubsub.projects.schemas.getIamPolicyresourceoptions_requestedPolicyVersionv1/{+resource}:getIamPolicyrl   (PubsubProjectsSchemasGetIamPolicyRequestPolicyFrJ   rV   rX   r.   r,   rY   rZ      s7    )?)?M8"|L673D#*r.   c                 D    U R                  S5      nU R                  X1US9$ )zLists schemas in a project.

Args:
  request: (PubsubProjectsSchemasListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListSchemasResponse) The response message.
Listr:   r<   r?   s       r,   r   $PubsubV1.ProjectsSchemasService.List   /     ##F+f__
  8 8r.   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nr_   rz   zpubsub.projects.schemas.listr`   pageSize	pageTokenr{   rb   rl    PubsubProjectsSchemasListRequestListSchemasResponseFrJ   rV   rX   r.   r,   rY   rZ      s4    !7!740 zJ6,<0"r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Lists all schema revisions for the named schema.

Args:
  request: (PubsubProjectsSchemasListRevisionsRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListSchemaRevisionsResponse) The response message.
ListRevisionsr:   r<   r?   s       r,   r   -PubsubV1.ProjectsSchemasService.ListRevisions   s/     ##O4f__
  8 8r.   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nz:v1/projects/{projectsId}/schemas/{schemasId}:listRevisionsrz   z%pubsub.projects.schemas.listRevisionsrF   r   zv1/{+name}:listRevisionsrl   )PubsubProjectsSchemasListRevisionsRequestListSchemaRevisionsResponseFrJ   rV   rX   r.   r,   rY   rZ     s4    (*@*@N9xH60E8+r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Creates a new schema revision that is a copy of the provided revision_id.

Args:
  request: (PubsubProjectsSchemasRollbackRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Schema) The response message.
Rollbackr:   r<   r?   s       r,   r   (PubsubV1.ProjectsSchemasService.Rollback  /     ##J/f__
  8 8r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz5v1/projects/{projectsId}/schemas/{schemasId}:rollbackrE   z pubsub.projects.schemas.rollbackrF   zv1/{+name}:rollbackrollbackSchemaRequest$PubsubProjectsSchemasRollbackRequestrI   FrJ   rV   rX   r.   r,   rY   rZ   !  s4    X%;%;I4xH+-@#&r.   c                 D    U R                  S5      nU R                  X1US9$ )ad  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: (PubsubProjectsSchemasSetIamPolicyRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Policy) The response message.
SetIamPolicyr:   r<   r?   s       r,   r   ,PubsubV1.ProjectsSchemasService.SetIamPolicy/  r   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz9v1/projects/{projectsId}/schemas/{schemasId}:setIamPolicyrE   z$pubsub.projects.schemas.setIamPolicyr   v1/{+resource}:setIamPolicysetIamPolicyRequest(PubsubProjectsSchemasSetIamPolicyRequestr   FrJ   rV   rX   r.   r,   rY   rZ   <  s4    )?)?M8"|L3+D#*r.   c                 D    U R                  S5      nU R                  X1US9$ )a8  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: (PubsubProjectsSchemasTestIamPermissionsRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (TestIamPermissionsResponse) The response message.
TestIamPermissionsr:   r<   r?   s       r,   r   2PubsubV1.ProjectsSchemasService.TestIamPermissionsJ  0     ##$89f__
  8 8r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz?v1/projects/{projectsId}/schemas/{schemasId}:testIamPermissionsrE   z*pubsub.projects.schemas.testIamPermissionsr   !v1/{+resource}:testIamPermissionstestIamPermissionsRequest.PubsubProjectsSchemasTestIamPermissionsRequestTestIamPermissionsResponseFrJ   rV   rX   r.   r,   rY   rZ   W  s4    x/E/ES>"|L91J70r.   c                 D    U R                  S5      nU R                  X1US9$ )zValidates a schema.

Args:
  request: (PubsubProjectsSchemasValidateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ValidateSchemaResponse) The response message.
Validater:   r<   r?   s       r,   r   (PubsubV1.ProjectsSchemasService.Validatee  r   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz)v1/projects/{projectsId}/schemas:validaterE   z pubsub.projects.schemas.validater`   zv1/{+parent}/schemas:validatevalidateSchemaRequest$PubsubProjectsSchemasValidateRequestValidateSchemaResponseFrJ   rV   rX   r.   r,   rY   rZ   r  s4    X%;%;=4 zJ5-@3&r.   c                 D    U R                  S5      nU R                  X1US9$ )zValidates a message against a schema.

Args:
  request: (PubsubProjectsSchemasValidateMessageRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ValidateMessageResponse) The response message.
ValidateMessager:   r<   r?   s       r,   r   /PubsubV1.ProjectsSchemasService.ValidateMessage  s0     ##$56f__
  8 8r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz0v1/projects/{projectsId}/schemas:validateMessagerE   z'pubsub.projects.schemas.validateMessager`   z$v1/{+parent}/schemas:validateMessagevalidateMessageRequest+PubsubProjectsSchemasValidateMessageRequestValidateMessageResponseFrJ   rV   rX   r.   r,   rY   rZ     s4    H,B,BD; zJ<.G4-r.   r4   r3   )__name__
__module____qualname____firstlineno____doc___NAMEr   r9   method_configr\   rf   rp   rv   r~   r   r   r   r   r   r   r   __static_attributes____classcell__r+   s   @r,   r   r0   2   s    :E
8F8F8F8$N 8C8"L8D8#M8H8"L8($8H8%O!!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rU =r$ )!PubsubV1.ProjectsSnapshotsServicei  z2Service class for the projects_snapshots resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g r3   )r   r   r   r   r4   r5   s     r,   r   *PubsubV1.ProjectsSnapshotsService.__init__  s"    H--t=fEdr.   c                 D    U R                  S5      nU R                  X1US9$ )a  Creates a snapshot from the requested subscription. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot. If the snapshot already exists, returns `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns `NOT_FOUND`. If the backlog in the subscription is too old -- and the resulting snapshot would expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned. See also the `Snapshot.expire_time` field. If the name is not provided in the request, the server will assign a random name for this snapshot on the same project as the subscription, conforming to the [resource name format] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The generated name is populated in the returned Snapshot object. Note that for REST API requests, you must specify a name in the request.

Args:
  request: (PubsubProjectsSnapshotsCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Snapshot) The response message.
r\   r:   r<   r?   s       r,   r\   (PubsubV1.ProjectsSnapshotsService.Create  rC   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )N0v1/projects/{projectsId}/snapshots/{snapshotsId}PUTz pubsub.projects.snapshots.createrF   rk   createSnapshotRequest$PubsubProjectsSnapshotsCreateRequestSnapshotFrJ   rV   rX   r.   r,   rY   *PubsubV1.ProjectsSnapshotsService.<lambda>  s4    8#9#9D4xH"-@%$r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Removes an existing snapshot. Snapshots are used in [Seek] (https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot. When the snapshot is deleted, all messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new one may be created with the same name, but the new one has no association with the old snapshot or its subscription, unless the same subscription is specified.

Args:
  request: (PubsubProjectsSnapshotsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
rf   r:   r<   r?   s       r,   rf   (PubsubV1.ProjectsSnapshotsService.Delete  rC   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   rj   z pubsub.projects.snapshots.deletesnapshotv1/{+snapshot}rl   $PubsubProjectsSnapshotsDeleteRequestrn   FrJ   rV   rX   r.   r,   rY   r     s4    8#9#9D4"|L&@"$r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Gets the configuration details of a snapshot. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot.

Args:
  request: (PubsubProjectsSnapshotsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Snapshot) The response message.
rv   r:   r<   r?   s       r,   rv   %PubsubV1.ProjectsSnapshotsService.Get  rx   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   rz   zpubsub.projects.snapshots.getr   r   rl   !PubsubProjectsSnapshotsGetRequestr   FrJ   rV   rX   r.   r,   rY   r     s4     6 6D1"|L&=%!r.   c                 D    U R                  S5      nU R                  X1US9$ )a@  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: (PubsubProjectsSnapshotsGetIamPolicyRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Policy) The response message.
r~   r:   r<   r?   s       r,   r~   .PubsubV1.ProjectsSnapshotsService.GetIamPolicy  r   r.   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nz=v1/projects/{projectsId}/snapshots/{snapshotsId}:getIamPolicyrz   z&pubsub.projects.snapshots.getIamPolicyr   r   r   rl   *PubsubProjectsSnapshotsGetIamPolicyRequestr   FrJ   rV   rX   r.   r,   rY   r     s7    )?)?Q:"|L673F#*r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Lists the existing snapshots. Snapshots are used in [Seek]( https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot.

Args:
  request: (PubsubProjectsSnapshotsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListSnapshotsResponse) The response message.
r   r:   r<   r?   s       r,   r   &PubsubV1.ProjectsSnapshotsService.List  r   r.   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nz"v1/projects/{projectsId}/snapshotsrz   zpubsub.projects.snapshots.listprojectr   r   zv1/{+project}/snapshotsrl   "PubsubProjectsSnapshotsListRequestListSnapshotsResponseFrJ   rV   rX   r.   r,   rY   r     s9    !7!762!{K +./>2"r.   c                 D    U R                  S5      nU R                  X1US9$ )a$  Updates an existing snapshot by updating the fields specified in the update mask. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot.

Args:
  request: (PubsubProjectsSnapshotsPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Snapshot) The response message.
Patchr:   r<   r?   s       r,   r   'PubsubV1.ProjectsSnapshotsService.Patch,  /     ##G,f__
  8 8r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   PATCHzpubsub.projects.snapshots.patchrF   rk   updateSnapshotRequest#PubsubProjectsSnapshotsPatchRequestr   FrJ   rV   rX   r.   r,   rY   r   9  s4    ("8"8D3xH"-?%#r.   c                 D    U R                  S5      nU R                  X1US9$ )af  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: (PubsubProjectsSnapshotsSetIamPolicyRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Policy) The response message.
r   r:   r<   r?   s       r,   r   .PubsubV1.ProjectsSnapshotsService.SetIamPolicyG  r   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz=v1/projects/{projectsId}/snapshots/{snapshotsId}:setIamPolicyrE   z&pubsub.projects.snapshots.setIamPolicyr   r   r   *PubsubProjectsSnapshotsSetIamPolicyRequestr   FrJ   rV   rX   r.   r,   rY   r   T  s4    )?)?Q:"|L3+F#*r.   c                 D    U R                  S5      nU R                  X1US9$ )a:  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: (PubsubProjectsSnapshotsTestIamPermissionsRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (TestIamPermissionsResponse) The response message.
r   r:   r<   r?   s       r,   r   4PubsubV1.ProjectsSnapshotsService.TestIamPermissionsb  r   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzCv1/projects/{projectsId}/snapshots/{snapshotsId}:testIamPermissionsrE   z,pubsub.projects.snapshots.testIamPermissionsr   r   r   0PubsubProjectsSnapshotsTestIamPermissionsRequestr   FrJ   rV   rX   r.   r,   rY   r   o  s4    x/E/EW@"|L91L70r.   r   r3   )r   r   r   r   r   r   r   r\   r   rf   rv   r~   r   r   r   r   r   r   r   s   @r,   r   r     s    < E
8F8F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"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"S jrS  \l        S!rU =r$ )#%PubsubV1.ProjectsSubscriptionsServicei}  z6Service class for the projects_subscriptions resource.r    c                 N   > [         [        R                  U ]  U5        0 U l        g r3   )r   r   r   r   r4   r5   s     r,   r   .PubsubV1.ProjectsSubscriptionsService.__init__  s"    H114A&Idr.   c                 D    U R                  S5      nU R                  X1US9$ )a  Acknowledges the messages associated with the `ack_ids` in the `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages from the subscription. Acknowledging a message whose ack deadline has expired may succeed, but such a message may be redelivered later. Acknowledging a message more than once will not result in an error.

Args:
  request: (PubsubProjectsSubscriptionsAcknowledgeRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
Acknowledger:   r<   r?   s       r,   r   1PubsubV1.ProjectsSubscriptionsService.Acknowledge  s/     ##M2f__
  8 8r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzDv1/projects/{projectsId}/subscriptions/{subscriptionsId}:acknowledgerE   z)pubsub.projects.subscriptions.acknowledgesubscriptionzv1/{+subscription}:acknowledgeacknowledgeRequest-PubsubProjectsSubscriptionsAcknowledgeRequestrn   FrJ   rV   rX   r.   r,   rY   .PubsubV1.ProjectsSubscriptionsService.<lambda>  s6    (>(>X=&'#$6*I")r.   c                 D    U R                  S5      nU R                  X1US9$ )a8  Creates a subscription to a given topic. See the [resource name rules] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). If the subscription already exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns `NOT_FOUND`. If the name is not provided in the request, the server will assign a random name for this subscription on the same project as the topic, conforming to the [resource name format] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The generated name is populated in the returned Subscription object. Note that for REST API requests, you must specify a name in the request.

Args:
  request: (Subscription) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Subscription) The response message.
r\   r:   r<   r?   s       r,   r\   ,PubsubV1.ProjectsSubscriptionsService.Create  rC   r.   c                  B    [         R                  " SSSS/S// SSSSSS	9$ )
N8v1/projects/{projectsId}/subscriptions/{subscriptionsId}r   z$pubsub.projects.subscriptions.createrF   rk   	<request>SubscriptionFrJ   rV   rX   r.   r,   rY   r    s4    8#9#9L8xH"!()$r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Deletes an existing subscription. All messages retained in the subscription are immediately dropped. Calls to `Pull` after deletion will return `NOT_FOUND`. After a subscription is deleted, a new one may be created with the same name, but the new one has no association with the old subscription or its topic unless the same topic is specified.

Args:
  request: (PubsubProjectsSubscriptionsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
rf   r:   r<   r?   s       r,   rf   ,PubsubV1.ProjectsSubscriptionsService.Delete  rC   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr  rj   z$pubsub.projects.subscriptions.deleter   v1/{+subscription}rl   (PubsubProjectsSubscriptionsDeleteRequestrn   FrJ   rV   rX   r.   r,   rY   r    s6    8#9#9L8&'#$*D"$r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Detaches a subscription from this topic. All messages retained in the subscription are dropped. Subsequent `Pull` and `StreamingPull` requests will return FAILED_PRECONDITION. If the subscription is a push subscription, pushes to the endpoint will stop.

Args:
  request: (PubsubProjectsSubscriptionsDetachRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (DetachSubscriptionResponse) The response message.
Detachr:   r<   r?   s       r,   r  ,PubsubV1.ProjectsSubscriptionsService.Detach  rC   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz?v1/projects/{projectsId}/subscriptions/{subscriptionsId}:detachrE   z$pubsub.projects.subscriptions.detachr   zv1/{+subscription}:detachrl   (PubsubProjectsSubscriptionsDetachRequestDetachSubscriptionResponseFrJ   rV   rX   r.   r,   rY   r    s6    8#9#9S8&'#$1D7$r.   c                 D    U R                  S5      nU R                  X1US9$ )zGets the configuration details of a subscription.

Args:
  request: (PubsubProjectsSubscriptionsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Subscription) The response message.
rv   r:   r<   r?   s       r,   rv   )PubsubV1.ProjectsSubscriptionsService.Get  rx   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr  rz   z!pubsub.projects.subscriptions.getr   r  rl   %PubsubProjectsSubscriptionsGetRequestr	  FrJ   rV   rX   r.   r,   rY   r     s6     6 6L5&'#$*A)!r.   c                 D    U R                  S5      nU R                  X1US9$ )aD  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: (PubsubProjectsSubscriptionsGetIamPolicyRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Policy) The response message.
r~   r:   r<   r?   s       r,   r~   2PubsubV1.ProjectsSubscriptionsService.GetIamPolicy  r   r.   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )NzEv1/projects/{projectsId}/subscriptions/{subscriptionsId}:getIamPolicyrz   z*pubsub.projects.subscriptions.getIamPolicyr   r   r   rl   .PubsubProjectsSubscriptionsGetIamPolicyRequestr   FrJ   rV   rX   r.   r,   rY   r    s7    )?)?Y>"|L673J#*r.   c                 D    U R                  S5      nU R                  X1US9$ )zLists matching subscriptions.

Args:
  request: (PubsubProjectsSubscriptionsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListSubscriptionsResponse) The response message.
r   r:   r<   r?   s       r,   r   *PubsubV1.ProjectsSubscriptionsService.List)  r   r.   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nz&v1/projects/{projectsId}/subscriptionsrz   z"pubsub.projects.subscriptions.listr   r   r   zv1/{+project}/subscriptionsrl   &PubsubProjectsSubscriptionsListRequestListSubscriptionsResponseFrJ   rV   rX   r.   r,   rY   r  6  s9    !7!7:6!{K +.3B6"r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Modifies the ack deadline for a specific message. This method is useful to indicate that more time is needed to process a message by the subscriber, or to make the message available for redelivery if the processing was interrupted. Note that this does not modify the subscription-level `ackDeadlineSeconds` used for subsequent messages.

Args:
  request: (PubsubProjectsSubscriptionsModifyAckDeadlineRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
ModifyAckDeadliner:   r<   r?   s       r,   r#  7PubsubV1.ProjectsSubscriptionsService.ModifyAckDeadlineD  s0     ##$78f__
  8 8r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzJv1/projects/{projectsId}/subscriptions/{subscriptionsId}:modifyAckDeadlinerE   z/pubsub.projects.subscriptions.modifyAckDeadliner   z$v1/{+subscription}:modifyAckDeadlinemodifyAckDeadlineRequest3PubsubProjectsSubscriptionsModifyAckDeadlineRequestrn   FrJ   rV   rX   r.   r,   rY   r  Q  s6    h.D.D^C&'#$<0O"/r.   c                 D    U R                  S5      nU R                  X1US9$ )a)  Modifies the `PushConfig` for a specified subscription. This may be used to change a push subscription to a pull one (signified by an empty `PushConfig`) or vice versa, or change the endpoint URL and other attributes of a push subscription. Messages will accumulate for delivery continuously through the call regardless of changes to the `PushConfig`.

Args:
  request: (PubsubProjectsSubscriptionsModifyPushConfigRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
ModifyPushConfigr:   r<   r?   s       r,   r)  6PubsubV1.ProjectsSubscriptionsService.ModifyPushConfig_  s0     ##$67f__
  8 8r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzIv1/projects/{projectsId}/subscriptions/{subscriptionsId}:modifyPushConfigrE   z.pubsub.projects.subscriptions.modifyPushConfigr   z#v1/{+subscription}:modifyPushConfigmodifyPushConfigRequest2PubsubProjectsSubscriptionsModifyPushConfigRequestrn   FrJ   rV   rX   r.   r,   rY   r  l  s6    X-C-C]B&'#$;/N".r.   c                 D    U R                  S5      nU R                  X1US9$ )ar  Updates an existing subscription by updating the fields specified in the update mask. Note that certain properties of a subscription, such as its topic, are not modifiable.

Args:
  request: (PubsubProjectsSubscriptionsPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Subscription) The response message.
r   r:   r<   r?   s       r,   r   +PubsubV1.ProjectsSubscriptionsService.Patchz  r   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr  r   z#pubsub.projects.subscriptions.patchrF   rk   updateSubscriptionRequest'PubsubProjectsSubscriptionsPatchRequestr	  FrJ   rV   rX   r.   r,   rY   r    s4    ("8"8L7xH"1C)#r.   c                 D    U R                  S5      nU R                  X1US9$ )zPulls messages from the server.

Args:
  request: (PubsubProjectsSubscriptionsPullRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (PullResponse) The response message.
Pullr:   r<   r?   s       r,   r4  *PubsubV1.ProjectsSubscriptionsService.Pull  r   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz=v1/projects/{projectsId}/subscriptions/{subscriptionsId}:pullrE   z"pubsub.projects.subscriptions.pullr   zv1/{+subscription}:pullpullRequest&PubsubProjectsSubscriptionsPullRequestPullResponseFrJ   rV   rX   r.   r,   rY   r    6    !7!7Q6&'#$/#B)"r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Seeks an existing subscription to a point in time or to a given snapshot, whichever is provided in the request. Snapshots are used in [Seek] (https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot. Note that both the subscription and the snapshot must be on the same topic.

Args:
  request: (PubsubProjectsSubscriptionsSeekRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (SeekResponse) The response message.
Seekr:   r<   r?   s       r,   r<  *PubsubV1.ProjectsSubscriptionsService.Seek  r   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz=v1/projects/{projectsId}/subscriptions/{subscriptionsId}:seekrE   z"pubsub.projects.subscriptions.seekr   zv1/{+subscription}:seekseekRequest&PubsubProjectsSubscriptionsSeekRequestSeekResponseFrJ   rV   rX   r.   r,   rY   r    r:  r.   c                 D    U R                  S5      nU R                  X1US9$ )aj  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: (PubsubProjectsSubscriptionsSetIamPolicyRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Policy) The response message.
r   r:   r<   r?   s       r,   r   2PubsubV1.ProjectsSubscriptionsService.SetIamPolicy  r   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzEv1/projects/{projectsId}/subscriptions/{subscriptionsId}:setIamPolicyrE   z*pubsub.projects.subscriptions.setIamPolicyr   r   r   .PubsubProjectsSubscriptionsSetIamPolicyRequestr   FrJ   rV   rX   r.   r,   rY   r    s4    )?)?Y>"|L3+J#*r.   c                 D    U R                  S5      nU R                  X1US9$ )a>  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: (PubsubProjectsSubscriptionsTestIamPermissionsRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (TestIamPermissionsResponse) The response message.
r   r:   r<   r?   s       r,   r   8PubsubV1.ProjectsSubscriptionsService.TestIamPermissions  r   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzKv1/projects/{projectsId}/subscriptions/{subscriptionsId}:testIamPermissionsrE   z0pubsub.projects.subscriptions.testIamPermissionsr   r   r   4PubsubProjectsSubscriptionsTestIamPermissionsRequestr   FrJ   rV   rX   r.   r,   rY   r    s4    x/E/E_D"|L91P70r.   r   r3   )r   r   r   r   r   r   r   r   r   r\   rf   r  rv   r~   r   r#  r)  r   r4  r<  r   r   r   r   r   s   @r,   r   r   }  s    @$E
8!K8F8F8F8C8"L8D8'#8&"8E8D8D8"L8($$r.   r   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
$ )	'PubsubV1.ProjectsTopicsSnapshotsServicei  z9Service class for the projects_topics_snapshots resource.r"   c                 N   > [         [        R                  U ]  U5        0 U l        g r3   )r   r   r!   r   r4   r5   s     r,   r   0PubsubV1.ProjectsTopicsSnapshotsService.__init__  s"    H33TCFKdr.   c                 D    U R                  S5      nU R                  X1US9$ )a  Lists the names of the snapshots on this topic. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot.

Args:
  request: (PubsubProjectsTopicsSnapshotsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListTopicSnapshotsResponse) The response message.
r   r:   r<   r?   s       r,   r   ,PubsubV1.ProjectsTopicsSnapshotsService.List  r   r.   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nz4v1/projects/{projectsId}/topics/{topicsId}/snapshotsrz   z%pubsub.projects.topics.snapshots.listtopicr   r   zv1/{+topic}/snapshotsrl   (PubsubProjectsTopicsSnapshotsListRequestListTopicSnapshotsResponseFrJ   rV   rX   r.   r,   rY   0PubsubV1.ProjectsTopicsSnapshotsService.<lambda>  s9    !7!7H9yI +.-D7"r.   r   r3   r   r   r   r   r   r   r   r   r   r   r   r   s   @r,   r!   rK    s"    C'E
8Dr.   r!   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
$ )	+PubsubV1.ProjectsTopicsSubscriptionsServicei&  z=Service class for the projects_topics_subscriptions resource.r$   c                 N   > [         [        R                  U ]  U5        0 U l        g r3   )r   r   r#   r   r4   r5   s     r,   r   4PubsubV1.ProjectsTopicsSubscriptionsService.__init__+  s"    H77GOdr.   c                 D    U R                  S5      nU R                  X1US9$ )a  Lists the names of the attached subscriptions on this topic.

Args:
  request: (PubsubProjectsTopicsSubscriptionsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListTopicSubscriptionsResponse) The response message.
r   r:   r<   r?   s       r,   r   0PubsubV1.ProjectsTopicsSubscriptionsService.List0  r   r.   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nz8v1/projects/{projectsId}/topics/{topicsId}/subscriptionsrz   z)pubsub.projects.topics.subscriptions.listrQ  r   r   zv1/{+topic}/subscriptionsrl   ,PubsubProjectsTopicsSubscriptionsListRequestListTopicSubscriptionsResponseFrJ   rV   rX   r.   r,   rY   4PubsubV1.ProjectsTopicsSubscriptionsService.<lambda>=  s9    !7!7L=yI +.1H;"r.   r   r3   rU  r   s   @r,   r#   rW  &  s"    G+E
8D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$ )PubsubV1.ProjectsTopicsServiceiK  z/Service class for the projects_topics resource.r&   c                 N   > [         [        R                  U ]  U5        0 U l        g r3   )r   r   r%   r   r4   r5   s     r,   r   'PubsubV1.ProjectsTopicsService.__init__P  s"    H**D:6Bdr.   c                 D    U R                  S5      nU R                  X1US9$ )a,  Creates the given topic with the given name. See the [resource name rules] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).

Args:
  request: (Topic) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Topic) The response message.
r\   r:   r<   r?   s       r,   r\   %PubsubV1.ProjectsTopicsService.CreateU  rC   r.   c                  B    [         R                  " SSSS/S// SSSSSS	9$ )
N*v1/projects/{projectsId}/topics/{topicsId}r   zpubsub.projects.topics.createrF   rk   r  TopicFrJ   rV   rX   r.   r,   rY   'PubsubV1.ProjectsTopicsService.<lambda>b  s4    8#9#9>1xH"!!"$r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does not exist. After a topic is deleted, a new topic may be created with the same name; this is an entirely new topic with none of the old configuration or subscriptions. Existing subscriptions to this topic are not deleted, but their `topic` field is set to `_deleted-topic_`.

Args:
  request: (PubsubProjectsTopicsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
rf   r:   r<   r?   s       r,   rf   %PubsubV1.ProjectsTopicsService.Deletep  rC   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nrg  rj   zpubsub.projects.topics.deleterQ  v1/{+topic}rl   !PubsubProjectsTopicsDeleteRequestrn   FrJ   rV   rX   r.   r,   rY   ri  }  s4    8#9#9>1yI#="$r.   c                 D    U R                  S5      nU R                  X1US9$ )zGets the configuration of a topic.

Args:
  request: (PubsubProjectsTopicsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Topic) The response message.
rv   r:   r<   r?   s       r,   rv   "PubsubV1.ProjectsTopicsService.Get  rx   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nrg  rz   zpubsub.projects.topics.getrQ  rm  rl   PubsubProjectsTopicsGetRequestrh  FrJ   rV   rX   r.   r,   rY   ri    s4     6 6>.yI#:"!r.   c                 D    U R                  S5      nU R                  X1US9$ )a=  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: (PubsubProjectsTopicsGetIamPolicyRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Policy) The response message.
r~   r:   r<   r?   s       r,   r~   +PubsubV1.ProjectsTopicsService.GetIamPolicy  r   r.   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nz7v1/projects/{projectsId}/topics/{topicsId}:getIamPolicyrz   z#pubsub.projects.topics.getIamPolicyr   r   r   rl   'PubsubProjectsTopicsGetIamPolicyRequestr   FrJ   rV   rX   r.   r,   rY   ri    s7    )?)?K7"|L673C#*r.   c                 D    U R                  S5      nU R                  X1US9$ )zLists matching topics.

Args:
  request: (PubsubProjectsTopicsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListTopicsResponse) The response message.
r   r:   r<   r?   s       r,   r   #PubsubV1.ProjectsTopicsService.List  r   r.   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nzv1/projects/{projectsId}/topicsrz   zpubsub.projects.topics.listr   r   r   zv1/{+project}/topicsrl   PubsubProjectsTopicsListRequestListTopicsResponseFrJ   rV   rX   r.   r,   rY   ri    s9    !7!73/!{K +.,;/"r.   c                 D    U R                  S5      nU R                  X1US9$ )aB  Updates an existing topic by updating the fields specified in the update mask. Note that certain properties of a topic are not modifiable.

Args:
  request: (PubsubProjectsTopicsPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Topic) The response message.
r   r:   r<   r?   s       r,   r   $PubsubV1.ProjectsTopicsService.Patch  r   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nrg  r   zpubsub.projects.topics.patchrF   rk   updateTopicRequest PubsubProjectsTopicsPatchRequestrh  FrJ   rV   rX   r.   r,   rY   ri    s4    ("8"8>0xH"*<"#r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist.

Args:
  request: (PubsubProjectsTopicsPublishRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (PublishResponse) The response message.
Publishr:   r<   r?   s       r,   r  &PubsubV1.ProjectsTopicsService.Publish  s/     ##I.f__
  8 8r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz2v1/projects/{projectsId}/topics/{topicsId}:publishrE   zpubsub.projects.topics.publishrQ  zv1/{+topic}:publishpublishRequest"PubsubProjectsTopicsPublishRequestPublishResponseFrJ   rV   rX   r.   r,   rY   ri    s4    H$:$:F2yI+&>,%r.   c                 D    U R                  S5      nU R                  X1US9$ )ac  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: (PubsubProjectsTopicsSetIamPolicyRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Policy) The response message.
r   r:   r<   r?   s       r,   r   +PubsubV1.ProjectsTopicsService.SetIamPolicy  r   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz7v1/projects/{projectsId}/topics/{topicsId}:setIamPolicyrE   z#pubsub.projects.topics.setIamPolicyr   r   r   'PubsubProjectsTopicsSetIamPolicyRequestr   FrJ   rV   rX   r.   r,   rY   ri    s4    )?)?K7"|L3+C#*r.   c                 D    U R                  S5      nU R                  X1US9$ )a7  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: (PubsubProjectsTopicsTestIamPermissionsRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (TestIamPermissionsResponse) The response message.
r   r:   r<   r?   s       r,   r   1PubsubV1.ProjectsTopicsService.TestIamPermissions-  r   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz=v1/projects/{projectsId}/topics/{topicsId}:testIamPermissionsrE   z)pubsub.projects.topics.testIamPermissionsr   r   r   -PubsubProjectsTopicsTestIamPermissionsRequestr   FrJ   rV   rX   r.   r,   rY   ri  :  s4    x/E/EQ="|L91I70r.   r   r3   )r   r   r   r   r   r   r   r\   r   rf   rv   r~   r   r   r  r   r   r   r   r   s   @r,   r%   ra  K  s    9E
8F8F8C8"L8D8E8G8"L8($$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$ )PubsubV1.ProjectsServiceiH  z(Service class for the projects resource.r(   c                 N   > [         [        R                  U ]  U5        0 U l        g r3   )r   r   r'   r   r4   r5   s     r,   r   !PubsubV1.ProjectsService.__init__M  s"    H$$d4V<dr.   c                 D    U R                  S5      nU R                  X1US9$ )a  Tests applying MessageTransforms to a Pub/Sub message.

Args:
  request: (PubsubProjectsTestMessageTransformsRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (TestMessageTransformsResponse) The response message.
TestMessageTransformsr:   r<   r?   s       r,   r  .PubsubV1.ProjectsService.TestMessageTransformsR  s0     ##$;<f__
  8 8r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz.v1/projects/{projectsId}:testMessageTransformsrE   z%pubsub.projects.testMessageTransformsr   z#v1/{+project}:testMessageTransformstestMessageTransformsRequest*PubsubProjectsTestMessageTransformsRequestTestMessageTransformsResponseFrJ   rV   rX   r.   r,   rY   !PubsubV1.ProjectsService.<lambda>_  s4    (2H2HB9!{K;4F:3r.   c                 D    U R                  S5      nU R                  X1US9$ )zValidates a MessageTransform.

Args:
  request: (PubsubProjectsValidateMessageTransformRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ValidateMessageTransformResponse) The response message.
ValidateMessageTransformr:   r<   r?   s       r,   r  1PubsubV1.ProjectsService.ValidateMessageTransformm  s0     ##$>?f__
  8 8r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz1v1/projects/{projectsId}:validateMessageTransformrE   z(pubsub.projects.validateMessageTransformr   z&v1/{+project}:validateMessageTransformvalidateMessageTransformRequest-PubsubProjectsValidateMessageTransformRequest ValidateMessageTransformResponseFrJ   rV   rX   r.   r,   rY   r  z  s4    X5K5KE<!{K>7I=6r.   r   r3   )r   r   r   r   r   r   r   r  r   r  r   r   r   s   @r,   r'   r  H  s3    2E
8+'8.**r.   r'   )r(   r   r   r    r&   r"   r$   )rl   NTNNFFNNNN)r   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   s   @r,   r   r   
   s    ?/-(7-(=?gh'(*"."+!,()-6:/4<@?C	/.gx66 gR`!8!8 `DBX%<%< BH#x'>'> #J#8+B+B #J{h55 {z>// > >r.   r   N)
r   
__future__r   apitools.base.pyr   /googlecloudsdk.generated_clients.apis.pubsub.v1r   r  BaseApiClientr   rX   r.   r,   <module>r     s'    5 ' % Z|x%% |r.   