@@ -77,7 +77,11 @@ def __init__(self, channel, client_config=operations_client_config.config):
7777        )
7878
7979    async  def  get_operation (
80-         self , name , retry = gapic_v1 .method_async .DEFAULT , timeout = gapic_v1 .method_async .DEFAULT 
80+         self ,
81+         name ,
82+         retry = gapic_v1 .method_async .DEFAULT ,
83+         timeout = gapic_v1 .method_async .DEFAULT ,
84+         metadata = None ,
8185    ):
8286        """Gets the latest state of a long-running operation. 
8387
@@ -103,6 +107,8 @@ async def get_operation(
103107                unspecified, the the default timeout in the client 
104108                configuration is used. If ``None``, then the RPC method will 
105109                not time out. 
110+             metadata (Optional[List[Tuple[str, str]]]): 
111+                 Additional gRPC metadata. 
106112
107113        Returns: 
108114            google.longrunning.operations_pb2.Operation: The state of the 
@@ -114,14 +120,15 @@ async def get_operation(
114120                subclass will be raised. 
115121        """ 
116122        request  =  operations_pb2 .GetOperationRequest (name = name )
117-         return  await  self ._get_operation (request , retry = retry , timeout = timeout )
123+         return  await  self ._get_operation (request , retry = retry , timeout = timeout ,  metadata = metadata )
118124
119125    async  def  list_operations (
120126        self ,
121127        name ,
122128        filter_ ,
123129        retry = gapic_v1 .method_async .DEFAULT ,
124130        timeout = gapic_v1 .method_async .DEFAULT ,
131+         metadata = None ,
125132    ):
126133        """ 
127134        Lists operations that match the specified filter in the request. 
@@ -157,6 +164,8 @@ async def list_operations(
157164                unspecified, the the default timeout in the client 
158165                configuration is used. If ``None``, then the RPC method will 
159166                not time out. 
167+             metadata (Optional[List[Tuple[str, str]]]): Additional gRPC 
168+                 metadata. 
160169
161170        Returns: 
162171            google.api_core.page_iterator.Iterator: An iterator that yields 
@@ -174,7 +183,7 @@ async def list_operations(
174183        request  =  operations_pb2 .ListOperationsRequest (name = name , filter = filter_ )
175184
176185        # Create the method used to fetch pages 
177-         method  =  functools .partial (self ._list_operations , retry = retry , timeout = timeout )
186+         method  =  functools .partial (self ._list_operations , retry = retry , timeout = timeout ,  metadata = metadata )
178187
179188        iterator  =  page_iterator_async .AsyncGRPCIterator (
180189            client = None ,
@@ -188,7 +197,11 @@ async def list_operations(
188197        return  iterator 
189198
190199    async  def  cancel_operation (
191-         self , name , retry = gapic_v1 .method_async .DEFAULT , timeout = gapic_v1 .method_async .DEFAULT 
200+         self ,
201+         name ,
202+         retry = gapic_v1 .method_async .DEFAULT ,
203+         timeout = gapic_v1 .method_async .DEFAULT ,
204+         metadata = None ,
192205    ):
193206        """Starts asynchronous cancellation on a long-running operation. 
194207
@@ -228,13 +241,19 @@ async def cancel_operation(
228241            google.api_core.exceptions.GoogleAPICallError: If an error occurred 
229242                while invoking the RPC, the appropriate ``GoogleAPICallError`` 
230243                subclass will be raised. 
244+             metadata (Optional[List[Tuple[str, str]]]): Additional gRPC 
245+                 metadata. 
231246        """ 
232247        # Create the request object. 
233248        request  =  operations_pb2 .CancelOperationRequest (name = name )
234-         await  self ._cancel_operation (request , retry = retry , timeout = timeout )
249+         await  self ._cancel_operation (request , retry = retry , timeout = timeout ,  metadata = metadata )
235250
236251    async  def  delete_operation (
237-         self , name , retry = gapic_v1 .method_async .DEFAULT , timeout = gapic_v1 .method_async .DEFAULT 
252+         self ,
253+         name ,
254+         retry = gapic_v1 .method_async .DEFAULT ,
255+         timeout = gapic_v1 .method_async .DEFAULT ,
256+         metadata = None ,
238257    ):
239258        """Deletes a long-running operation. 
240259
@@ -260,6 +279,8 @@ async def delete_operation(
260279                unspecified, the the default timeout in the client 
261280                configuration is used. If ``None``, then the RPC method will 
262281                not time out. 
282+             metadata (Optional[List[Tuple[str, str]]]): Additional gRPC 
283+                 metadata. 
263284
264285        Raises: 
265286            google.api_core.exceptions.MethodNotImplemented: If the server 
@@ -271,4 +292,4 @@ async def delete_operation(
271292        """ 
272293        # Create the request object. 
273294        request  =  operations_pb2 .DeleteOperationRequest (name = name )
274-         await  self ._delete_operation (request , retry = retry , timeout = timeout )
295+         await  self ._delete_operation (request , retry = retry , timeout = timeout ,  metadata = metadata )
0 commit comments