google-cloud-dataform 0.6.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. google/cloud/dataform/__init__.py +247 -0
  2. google/cloud/dataform/gapic_version.py +16 -0
  3. google/cloud/dataform/py.typed +2 -0
  4. google/cloud/dataform_v1/__init__.py +244 -0
  5. google/cloud/dataform_v1/gapic_metadata.json +838 -0
  6. google/cloud/dataform_v1/gapic_version.py +16 -0
  7. google/cloud/dataform_v1/py.typed +2 -0
  8. google/cloud/dataform_v1/services/__init__.py +15 -0
  9. google/cloud/dataform_v1/services/dataform/__init__.py +22 -0
  10. google/cloud/dataform_v1/services/dataform/async_client.py +6371 -0
  11. google/cloud/dataform_v1/services/dataform/client.py +6895 -0
  12. google/cloud/dataform_v1/services/dataform/pagers.py +1925 -0
  13. google/cloud/dataform_v1/services/dataform/transports/__init__.py +36 -0
  14. google/cloud/dataform_v1/services/dataform/transports/base.py +1060 -0
  15. google/cloud/dataform_v1/services/dataform/transports/grpc.py +1980 -0
  16. google/cloud/dataform_v1/services/dataform/transports/grpc_asyncio.py +2337 -0
  17. google/cloud/dataform_v1/services/dataform/transports/rest.py +12350 -0
  18. google/cloud/dataform_v1/services/dataform/transports/rest_base.py +3028 -0
  19. google/cloud/dataform_v1/types/__init__.py +236 -0
  20. google/cloud/dataform_v1/types/dataform.py +4157 -0
  21. google/cloud/dataform_v1beta1/__init__.py +244 -0
  22. google/cloud/dataform_v1beta1/gapic_metadata.json +838 -0
  23. google/cloud/dataform_v1beta1/gapic_version.py +16 -0
  24. google/cloud/dataform_v1beta1/py.typed +2 -0
  25. google/cloud/dataform_v1beta1/services/__init__.py +15 -0
  26. google/cloud/dataform_v1beta1/services/dataform/__init__.py +22 -0
  27. google/cloud/dataform_v1beta1/services/dataform/async_client.py +6371 -0
  28. google/cloud/dataform_v1beta1/services/dataform/client.py +6895 -0
  29. google/cloud/dataform_v1beta1/services/dataform/pagers.py +1925 -0
  30. google/cloud/dataform_v1beta1/services/dataform/transports/__init__.py +36 -0
  31. google/cloud/dataform_v1beta1/services/dataform/transports/base.py +1060 -0
  32. google/cloud/dataform_v1beta1/services/dataform/transports/grpc.py +1980 -0
  33. google/cloud/dataform_v1beta1/services/dataform/transports/grpc_asyncio.py +2337 -0
  34. google/cloud/dataform_v1beta1/services/dataform/transports/rest.py +12350 -0
  35. google/cloud/dataform_v1beta1/services/dataform/transports/rest_base.py +3028 -0
  36. google/cloud/dataform_v1beta1/types/__init__.py +236 -0
  37. google/cloud/dataform_v1beta1/types/dataform.py +4169 -0
  38. google_cloud_dataform-0.6.1.dist-info/LICENSE +202 -0
  39. google_cloud_dataform-0.6.1.dist-info/METADATA +229 -0
  40. google_cloud_dataform-0.6.1.dist-info/RECORD +42 -0
  41. google_cloud_dataform-0.6.1.dist-info/WHEEL +5 -0
  42. google_cloud_dataform-0.6.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,2337 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2024 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ import inspect
17
+ import json
18
+ import logging as std_logging
19
+ import pickle
20
+ from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union
21
+ import warnings
22
+
23
+ from google.api_core import exceptions as core_exceptions
24
+ from google.api_core import gapic_v1, grpc_helpers_async
25
+ from google.api_core import retry_async as retries
26
+ from google.auth import credentials as ga_credentials # type: ignore
27
+ from google.auth.transport.grpc import SslCredentials # type: ignore
28
+ from google.cloud.location import locations_pb2 # type: ignore
29
+ from google.iam.v1 import iam_policy_pb2 # type: ignore
30
+ from google.iam.v1 import policy_pb2 # type: ignore
31
+ from google.protobuf import empty_pb2 # type: ignore
32
+ from google.protobuf.json_format import MessageToJson
33
+ import google.protobuf.message
34
+ import grpc # type: ignore
35
+ from grpc.experimental import aio # type: ignore
36
+ import proto # type: ignore
37
+
38
+ from google.cloud.dataform_v1.types import dataform
39
+
40
+ from .base import DEFAULT_CLIENT_INFO, DataformTransport
41
+ from .grpc import DataformGrpcTransport
42
+
43
+ try:
44
+ from google.api_core import client_logging # type: ignore
45
+
46
+ CLIENT_LOGGING_SUPPORTED = True # pragma: NO COVER
47
+ except ImportError: # pragma: NO COVER
48
+ CLIENT_LOGGING_SUPPORTED = False
49
+
50
+ _LOGGER = std_logging.getLogger(__name__)
51
+
52
+
53
+ class _LoggingClientAIOInterceptor(
54
+ grpc.aio.UnaryUnaryClientInterceptor
55
+ ): # pragma: NO COVER
56
+ async def intercept_unary_unary(self, continuation, client_call_details, request):
57
+ logging_enabled = CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor(
58
+ std_logging.DEBUG
59
+ )
60
+ if logging_enabled: # pragma: NO COVER
61
+ request_metadata = client_call_details.metadata
62
+ if isinstance(request, proto.Message):
63
+ request_payload = type(request).to_json(request)
64
+ elif isinstance(request, google.protobuf.message.Message):
65
+ request_payload = MessageToJson(request)
66
+ else:
67
+ request_payload = f"{type(request).__name__}: {pickle.dumps(request)}"
68
+
69
+ request_metadata = {
70
+ key: value.decode("utf-8") if isinstance(value, bytes) else value
71
+ for key, value in request_metadata
72
+ }
73
+ grpc_request = {
74
+ "payload": request_payload,
75
+ "requestMethod": "grpc",
76
+ "metadata": dict(request_metadata),
77
+ }
78
+ _LOGGER.debug(
79
+ f"Sending request for {client_call_details.method}",
80
+ extra={
81
+ "serviceName": "google.cloud.dataform.v1.Dataform",
82
+ "rpcName": str(client_call_details.method),
83
+ "request": grpc_request,
84
+ "metadata": grpc_request["metadata"],
85
+ },
86
+ )
87
+ response = await continuation(client_call_details, request)
88
+ if logging_enabled: # pragma: NO COVER
89
+ response_metadata = await response.trailing_metadata()
90
+ # Convert gRPC metadata `<class 'grpc.aio._metadata.Metadata'>` to list of tuples
91
+ metadata = (
92
+ dict([(k, str(v)) for k, v in response_metadata])
93
+ if response_metadata
94
+ else None
95
+ )
96
+ result = await response
97
+ if isinstance(result, proto.Message):
98
+ response_payload = type(result).to_json(result)
99
+ elif isinstance(result, google.protobuf.message.Message):
100
+ response_payload = MessageToJson(result)
101
+ else:
102
+ response_payload = f"{type(result).__name__}: {pickle.dumps(result)}"
103
+ grpc_response = {
104
+ "payload": response_payload,
105
+ "metadata": metadata,
106
+ "status": "OK",
107
+ }
108
+ _LOGGER.debug(
109
+ f"Received response to rpc {client_call_details.method}.",
110
+ extra={
111
+ "serviceName": "google.cloud.dataform.v1.Dataform",
112
+ "rpcName": str(client_call_details.method),
113
+ "response": grpc_response,
114
+ "metadata": grpc_response["metadata"],
115
+ },
116
+ )
117
+ return response
118
+
119
+
120
+ class DataformGrpcAsyncIOTransport(DataformTransport):
121
+ """gRPC AsyncIO backend transport for Dataform.
122
+
123
+ Dataform is a service to develop, create, document, test, and
124
+ update curated tables in BigQuery.
125
+
126
+ This class defines the same methods as the primary client, so the
127
+ primary client can load the underlying transport implementation
128
+ and call it.
129
+
130
+ It sends protocol buffers over the wire using gRPC (which is built on
131
+ top of HTTP/2); the ``grpcio`` package must be installed.
132
+ """
133
+
134
+ _grpc_channel: aio.Channel
135
+ _stubs: Dict[str, Callable] = {}
136
+
137
+ @classmethod
138
+ def create_channel(
139
+ cls,
140
+ host: str = "dataform.googleapis.com",
141
+ credentials: Optional[ga_credentials.Credentials] = None,
142
+ credentials_file: Optional[str] = None,
143
+ scopes: Optional[Sequence[str]] = None,
144
+ quota_project_id: Optional[str] = None,
145
+ **kwargs,
146
+ ) -> aio.Channel:
147
+ """Create and return a gRPC AsyncIO channel object.
148
+ Args:
149
+ host (Optional[str]): The host for the channel to use.
150
+ credentials (Optional[~.Credentials]): The
151
+ authorization credentials to attach to requests. These
152
+ credentials identify this application to the service. If
153
+ none are specified, the client will attempt to ascertain
154
+ the credentials from the environment.
155
+ credentials_file (Optional[str]): A file with credentials that can
156
+ be loaded with :func:`google.auth.load_credentials_from_file`.
157
+ scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
158
+ service. These are only used when credentials are not specified and
159
+ are passed to :func:`google.auth.default`.
160
+ quota_project_id (Optional[str]): An optional project to use for billing
161
+ and quota.
162
+ kwargs (Optional[dict]): Keyword arguments, which are passed to the
163
+ channel creation.
164
+ Returns:
165
+ aio.Channel: A gRPC AsyncIO channel object.
166
+ """
167
+
168
+ return grpc_helpers_async.create_channel(
169
+ host,
170
+ credentials=credentials,
171
+ credentials_file=credentials_file,
172
+ quota_project_id=quota_project_id,
173
+ default_scopes=cls.AUTH_SCOPES,
174
+ scopes=scopes,
175
+ default_host=cls.DEFAULT_HOST,
176
+ **kwargs,
177
+ )
178
+
179
+ def __init__(
180
+ self,
181
+ *,
182
+ host: str = "dataform.googleapis.com",
183
+ credentials: Optional[ga_credentials.Credentials] = None,
184
+ credentials_file: Optional[str] = None,
185
+ scopes: Optional[Sequence[str]] = None,
186
+ channel: Optional[Union[aio.Channel, Callable[..., aio.Channel]]] = None,
187
+ api_mtls_endpoint: Optional[str] = None,
188
+ client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None,
189
+ ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None,
190
+ client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None,
191
+ quota_project_id: Optional[str] = None,
192
+ client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
193
+ always_use_jwt_access: Optional[bool] = False,
194
+ api_audience: Optional[str] = None,
195
+ ) -> None:
196
+ """Instantiate the transport.
197
+
198
+ Args:
199
+ host (Optional[str]):
200
+ The hostname to connect to (default: 'dataform.googleapis.com').
201
+ credentials (Optional[google.auth.credentials.Credentials]): The
202
+ authorization credentials to attach to requests. These
203
+ credentials identify the application to the service; if none
204
+ are specified, the client will attempt to ascertain the
205
+ credentials from the environment.
206
+ This argument is ignored if a ``channel`` instance is provided.
207
+ credentials_file (Optional[str]): A file with credentials that can
208
+ be loaded with :func:`google.auth.load_credentials_from_file`.
209
+ This argument is ignored if a ``channel`` instance is provided.
210
+ scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
211
+ service. These are only used when credentials are not specified and
212
+ are passed to :func:`google.auth.default`.
213
+ channel (Optional[Union[aio.Channel, Callable[..., aio.Channel]]]):
214
+ A ``Channel`` instance through which to make calls, or a Callable
215
+ that constructs and returns one. If set to None, ``self.create_channel``
216
+ is used to create the channel. If a Callable is given, it will be called
217
+ with the same arguments as used in ``self.create_channel``.
218
+ api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
219
+ If provided, it overrides the ``host`` argument and tries to create
220
+ a mutual TLS channel with client SSL credentials from
221
+ ``client_cert_source`` or application default SSL credentials.
222
+ client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
223
+ Deprecated. A callback to provide client SSL certificate bytes and
224
+ private key bytes, both in PEM format. It is ignored if
225
+ ``api_mtls_endpoint`` is None.
226
+ ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
227
+ for the grpc channel. It is ignored if a ``channel`` instance is provided.
228
+ client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
229
+ A callback to provide client certificate bytes and private key bytes,
230
+ both in PEM format. It is used to configure a mutual TLS channel. It is
231
+ ignored if a ``channel`` instance or ``ssl_channel_credentials`` is provided.
232
+ quota_project_id (Optional[str]): An optional project to use for billing
233
+ and quota.
234
+ client_info (google.api_core.gapic_v1.client_info.ClientInfo):
235
+ The client info used to send a user-agent string along with
236
+ API requests. If ``None``, then default info will be used.
237
+ Generally, you only need to set this if you're developing
238
+ your own client library.
239
+ always_use_jwt_access (Optional[bool]): Whether self signed JWT should
240
+ be used for service account credentials.
241
+
242
+ Raises:
243
+ google.auth.exceptions.MutualTlsChannelError: If mutual TLS transport
244
+ creation failed for any reason.
245
+ google.api_core.exceptions.DuplicateCredentialArgs: If both ``credentials``
246
+ and ``credentials_file`` are passed.
247
+ """
248
+ self._grpc_channel = None
249
+ self._ssl_channel_credentials = ssl_channel_credentials
250
+ self._stubs: Dict[str, Callable] = {}
251
+
252
+ if api_mtls_endpoint:
253
+ warnings.warn("api_mtls_endpoint is deprecated", DeprecationWarning)
254
+ if client_cert_source:
255
+ warnings.warn("client_cert_source is deprecated", DeprecationWarning)
256
+
257
+ if isinstance(channel, aio.Channel):
258
+ # Ignore credentials if a channel was passed.
259
+ credentials = None
260
+ self._ignore_credentials = True
261
+ # If a channel was explicitly provided, set it.
262
+ self._grpc_channel = channel
263
+ self._ssl_channel_credentials = None
264
+ else:
265
+ if api_mtls_endpoint:
266
+ host = api_mtls_endpoint
267
+
268
+ # Create SSL credentials with client_cert_source or application
269
+ # default SSL credentials.
270
+ if client_cert_source:
271
+ cert, key = client_cert_source()
272
+ self._ssl_channel_credentials = grpc.ssl_channel_credentials(
273
+ certificate_chain=cert, private_key=key
274
+ )
275
+ else:
276
+ self._ssl_channel_credentials = SslCredentials().ssl_credentials
277
+
278
+ else:
279
+ if client_cert_source_for_mtls and not ssl_channel_credentials:
280
+ cert, key = client_cert_source_for_mtls()
281
+ self._ssl_channel_credentials = grpc.ssl_channel_credentials(
282
+ certificate_chain=cert, private_key=key
283
+ )
284
+
285
+ # The base transport sets the host, credentials and scopes
286
+ super().__init__(
287
+ host=host,
288
+ credentials=credentials,
289
+ credentials_file=credentials_file,
290
+ scopes=scopes,
291
+ quota_project_id=quota_project_id,
292
+ client_info=client_info,
293
+ always_use_jwt_access=always_use_jwt_access,
294
+ api_audience=api_audience,
295
+ )
296
+
297
+ if not self._grpc_channel:
298
+ # initialize with the provided callable or the default channel
299
+ channel_init = channel or type(self).create_channel
300
+ self._grpc_channel = channel_init(
301
+ self._host,
302
+ # use the credentials which are saved
303
+ credentials=self._credentials,
304
+ # Set ``credentials_file`` to ``None`` here as
305
+ # the credentials that we saved earlier should be used.
306
+ credentials_file=None,
307
+ scopes=self._scopes,
308
+ ssl_credentials=self._ssl_channel_credentials,
309
+ quota_project_id=quota_project_id,
310
+ options=[
311
+ ("grpc.max_send_message_length", -1),
312
+ ("grpc.max_receive_message_length", -1),
313
+ ],
314
+ )
315
+
316
+ self._interceptor = _LoggingClientAIOInterceptor()
317
+ self._grpc_channel._unary_unary_interceptors.append(self._interceptor)
318
+ self._logged_channel = self._grpc_channel
319
+ self._wrap_with_kind = (
320
+ "kind" in inspect.signature(gapic_v1.method_async.wrap_method).parameters
321
+ )
322
+ # Wrap messages. This must be done after self._logged_channel exists
323
+ self._prep_wrapped_messages(client_info)
324
+
325
+ @property
326
+ def grpc_channel(self) -> aio.Channel:
327
+ """Create the channel designed to connect to this service.
328
+
329
+ This property caches on the instance; repeated calls return
330
+ the same channel.
331
+ """
332
+ # Return the channel from cache.
333
+ return self._grpc_channel
334
+
335
+ @property
336
+ def list_repositories(
337
+ self,
338
+ ) -> Callable[
339
+ [dataform.ListRepositoriesRequest], Awaitable[dataform.ListRepositoriesResponse]
340
+ ]:
341
+ r"""Return a callable for the list repositories method over gRPC.
342
+
343
+ Lists Repositories in a given project and location.
344
+
345
+ Returns:
346
+ Callable[[~.ListRepositoriesRequest],
347
+ Awaitable[~.ListRepositoriesResponse]]:
348
+ A function that, when called, will call the underlying RPC
349
+ on the server.
350
+ """
351
+ # Generate a "stub function" on-the-fly which will actually make
352
+ # the request.
353
+ # gRPC handles serialization and deserialization, so we just need
354
+ # to pass in the functions for each.
355
+ if "list_repositories" not in self._stubs:
356
+ self._stubs["list_repositories"] = self._logged_channel.unary_unary(
357
+ "/google.cloud.dataform.v1.Dataform/ListRepositories",
358
+ request_serializer=dataform.ListRepositoriesRequest.serialize,
359
+ response_deserializer=dataform.ListRepositoriesResponse.deserialize,
360
+ )
361
+ return self._stubs["list_repositories"]
362
+
363
+ @property
364
+ def get_repository(
365
+ self,
366
+ ) -> Callable[[dataform.GetRepositoryRequest], Awaitable[dataform.Repository]]:
367
+ r"""Return a callable for the get repository method over gRPC.
368
+
369
+ Fetches a single Repository.
370
+
371
+ Returns:
372
+ Callable[[~.GetRepositoryRequest],
373
+ Awaitable[~.Repository]]:
374
+ A function that, when called, will call the underlying RPC
375
+ on the server.
376
+ """
377
+ # Generate a "stub function" on-the-fly which will actually make
378
+ # the request.
379
+ # gRPC handles serialization and deserialization, so we just need
380
+ # to pass in the functions for each.
381
+ if "get_repository" not in self._stubs:
382
+ self._stubs["get_repository"] = self._logged_channel.unary_unary(
383
+ "/google.cloud.dataform.v1.Dataform/GetRepository",
384
+ request_serializer=dataform.GetRepositoryRequest.serialize,
385
+ response_deserializer=dataform.Repository.deserialize,
386
+ )
387
+ return self._stubs["get_repository"]
388
+
389
+ @property
390
+ def create_repository(
391
+ self,
392
+ ) -> Callable[[dataform.CreateRepositoryRequest], Awaitable[dataform.Repository]]:
393
+ r"""Return a callable for the create repository method over gRPC.
394
+
395
+ Creates a new Repository in a given project and
396
+ location.
397
+
398
+ Returns:
399
+ Callable[[~.CreateRepositoryRequest],
400
+ Awaitable[~.Repository]]:
401
+ A function that, when called, will call the underlying RPC
402
+ on the server.
403
+ """
404
+ # Generate a "stub function" on-the-fly which will actually make
405
+ # the request.
406
+ # gRPC handles serialization and deserialization, so we just need
407
+ # to pass in the functions for each.
408
+ if "create_repository" not in self._stubs:
409
+ self._stubs["create_repository"] = self._logged_channel.unary_unary(
410
+ "/google.cloud.dataform.v1.Dataform/CreateRepository",
411
+ request_serializer=dataform.CreateRepositoryRequest.serialize,
412
+ response_deserializer=dataform.Repository.deserialize,
413
+ )
414
+ return self._stubs["create_repository"]
415
+
416
+ @property
417
+ def update_repository(
418
+ self,
419
+ ) -> Callable[[dataform.UpdateRepositoryRequest], Awaitable[dataform.Repository]]:
420
+ r"""Return a callable for the update repository method over gRPC.
421
+
422
+ Updates a single Repository.
423
+
424
+ **Note:** *This method does not fully implement*, (see
425
+ `AIP/134 <https://google.aip.dev/134>`__, in particular:
426
+
427
+ - The wildcard entry (**\***) is treated as a bad request
428
+ - When the **field_mask** is omitted, instead of only updating
429
+ the set fields, the request is treated as a full update on
430
+ all modifiable fields
431
+
432
+ Returns:
433
+ Callable[[~.UpdateRepositoryRequest],
434
+ Awaitable[~.Repository]]:
435
+ A function that, when called, will call the underlying RPC
436
+ on the server.
437
+ """
438
+ # Generate a "stub function" on-the-fly which will actually make
439
+ # the request.
440
+ # gRPC handles serialization and deserialization, so we just need
441
+ # to pass in the functions for each.
442
+ if "update_repository" not in self._stubs:
443
+ self._stubs["update_repository"] = self._logged_channel.unary_unary(
444
+ "/google.cloud.dataform.v1.Dataform/UpdateRepository",
445
+ request_serializer=dataform.UpdateRepositoryRequest.serialize,
446
+ response_deserializer=dataform.Repository.deserialize,
447
+ )
448
+ return self._stubs["update_repository"]
449
+
450
+ @property
451
+ def delete_repository(
452
+ self,
453
+ ) -> Callable[[dataform.DeleteRepositoryRequest], Awaitable[empty_pb2.Empty]]:
454
+ r"""Return a callable for the delete repository method over gRPC.
455
+
456
+ Deletes a single Repository.
457
+
458
+ Returns:
459
+ Callable[[~.DeleteRepositoryRequest],
460
+ Awaitable[~.Empty]]:
461
+ A function that, when called, will call the underlying RPC
462
+ on the server.
463
+ """
464
+ # Generate a "stub function" on-the-fly which will actually make
465
+ # the request.
466
+ # gRPC handles serialization and deserialization, so we just need
467
+ # to pass in the functions for each.
468
+ if "delete_repository" not in self._stubs:
469
+ self._stubs["delete_repository"] = self._logged_channel.unary_unary(
470
+ "/google.cloud.dataform.v1.Dataform/DeleteRepository",
471
+ request_serializer=dataform.DeleteRepositoryRequest.serialize,
472
+ response_deserializer=empty_pb2.Empty.FromString,
473
+ )
474
+ return self._stubs["delete_repository"]
475
+
476
+ @property
477
+ def commit_repository_changes(
478
+ self,
479
+ ) -> Callable[
480
+ [dataform.CommitRepositoryChangesRequest],
481
+ Awaitable[dataform.CommitRepositoryChangesResponse],
482
+ ]:
483
+ r"""Return a callable for the commit repository changes method over gRPC.
484
+
485
+ Applies a Git commit to a Repository. The Repository must not
486
+ have a value for ``git_remote_settings.url``.
487
+
488
+ Returns:
489
+ Callable[[~.CommitRepositoryChangesRequest],
490
+ Awaitable[~.CommitRepositoryChangesResponse]]:
491
+ A function that, when called, will call the underlying RPC
492
+ on the server.
493
+ """
494
+ # Generate a "stub function" on-the-fly which will actually make
495
+ # the request.
496
+ # gRPC handles serialization and deserialization, so we just need
497
+ # to pass in the functions for each.
498
+ if "commit_repository_changes" not in self._stubs:
499
+ self._stubs["commit_repository_changes"] = self._logged_channel.unary_unary(
500
+ "/google.cloud.dataform.v1.Dataform/CommitRepositoryChanges",
501
+ request_serializer=dataform.CommitRepositoryChangesRequest.serialize,
502
+ response_deserializer=dataform.CommitRepositoryChangesResponse.deserialize,
503
+ )
504
+ return self._stubs["commit_repository_changes"]
505
+
506
+ @property
507
+ def read_repository_file(
508
+ self,
509
+ ) -> Callable[
510
+ [dataform.ReadRepositoryFileRequest],
511
+ Awaitable[dataform.ReadRepositoryFileResponse],
512
+ ]:
513
+ r"""Return a callable for the read repository file method over gRPC.
514
+
515
+ Returns the contents of a file (inside a Repository). The
516
+ Repository must not have a value for
517
+ ``git_remote_settings.url``.
518
+
519
+ Returns:
520
+ Callable[[~.ReadRepositoryFileRequest],
521
+ Awaitable[~.ReadRepositoryFileResponse]]:
522
+ A function that, when called, will call the underlying RPC
523
+ on the server.
524
+ """
525
+ # Generate a "stub function" on-the-fly which will actually make
526
+ # the request.
527
+ # gRPC handles serialization and deserialization, so we just need
528
+ # to pass in the functions for each.
529
+ if "read_repository_file" not in self._stubs:
530
+ self._stubs["read_repository_file"] = self._logged_channel.unary_unary(
531
+ "/google.cloud.dataform.v1.Dataform/ReadRepositoryFile",
532
+ request_serializer=dataform.ReadRepositoryFileRequest.serialize,
533
+ response_deserializer=dataform.ReadRepositoryFileResponse.deserialize,
534
+ )
535
+ return self._stubs["read_repository_file"]
536
+
537
+ @property
538
+ def query_repository_directory_contents(
539
+ self,
540
+ ) -> Callable[
541
+ [dataform.QueryRepositoryDirectoryContentsRequest],
542
+ Awaitable[dataform.QueryRepositoryDirectoryContentsResponse],
543
+ ]:
544
+ r"""Return a callable for the query repository directory
545
+ contents method over gRPC.
546
+
547
+ Returns the contents of a given Repository directory. The
548
+ Repository must not have a value for
549
+ ``git_remote_settings.url``.
550
+
551
+ Returns:
552
+ Callable[[~.QueryRepositoryDirectoryContentsRequest],
553
+ Awaitable[~.QueryRepositoryDirectoryContentsResponse]]:
554
+ A function that, when called, will call the underlying RPC
555
+ on the server.
556
+ """
557
+ # Generate a "stub function" on-the-fly which will actually make
558
+ # the request.
559
+ # gRPC handles serialization and deserialization, so we just need
560
+ # to pass in the functions for each.
561
+ if "query_repository_directory_contents" not in self._stubs:
562
+ self._stubs[
563
+ "query_repository_directory_contents"
564
+ ] = self._logged_channel.unary_unary(
565
+ "/google.cloud.dataform.v1.Dataform/QueryRepositoryDirectoryContents",
566
+ request_serializer=dataform.QueryRepositoryDirectoryContentsRequest.serialize,
567
+ response_deserializer=dataform.QueryRepositoryDirectoryContentsResponse.deserialize,
568
+ )
569
+ return self._stubs["query_repository_directory_contents"]
570
+
571
+ @property
572
+ def fetch_repository_history(
573
+ self,
574
+ ) -> Callable[
575
+ [dataform.FetchRepositoryHistoryRequest],
576
+ Awaitable[dataform.FetchRepositoryHistoryResponse],
577
+ ]:
578
+ r"""Return a callable for the fetch repository history method over gRPC.
579
+
580
+ Fetches a Repository's history of commits. The Repository must
581
+ not have a value for ``git_remote_settings.url``.
582
+
583
+ Returns:
584
+ Callable[[~.FetchRepositoryHistoryRequest],
585
+ Awaitable[~.FetchRepositoryHistoryResponse]]:
586
+ A function that, when called, will call the underlying RPC
587
+ on the server.
588
+ """
589
+ # Generate a "stub function" on-the-fly which will actually make
590
+ # the request.
591
+ # gRPC handles serialization and deserialization, so we just need
592
+ # to pass in the functions for each.
593
+ if "fetch_repository_history" not in self._stubs:
594
+ self._stubs["fetch_repository_history"] = self._logged_channel.unary_unary(
595
+ "/google.cloud.dataform.v1.Dataform/FetchRepositoryHistory",
596
+ request_serializer=dataform.FetchRepositoryHistoryRequest.serialize,
597
+ response_deserializer=dataform.FetchRepositoryHistoryResponse.deserialize,
598
+ )
599
+ return self._stubs["fetch_repository_history"]
600
+
601
+ @property
602
+ def compute_repository_access_token_status(
603
+ self,
604
+ ) -> Callable[
605
+ [dataform.ComputeRepositoryAccessTokenStatusRequest],
606
+ Awaitable[dataform.ComputeRepositoryAccessTokenStatusResponse],
607
+ ]:
608
+ r"""Return a callable for the compute repository access
609
+ token status method over gRPC.
610
+
611
+ Computes a Repository's Git access token status.
612
+
613
+ Returns:
614
+ Callable[[~.ComputeRepositoryAccessTokenStatusRequest],
615
+ Awaitable[~.ComputeRepositoryAccessTokenStatusResponse]]:
616
+ A function that, when called, will call the underlying RPC
617
+ on the server.
618
+ """
619
+ # Generate a "stub function" on-the-fly which will actually make
620
+ # the request.
621
+ # gRPC handles serialization and deserialization, so we just need
622
+ # to pass in the functions for each.
623
+ if "compute_repository_access_token_status" not in self._stubs:
624
+ self._stubs[
625
+ "compute_repository_access_token_status"
626
+ ] = self._logged_channel.unary_unary(
627
+ "/google.cloud.dataform.v1.Dataform/ComputeRepositoryAccessTokenStatus",
628
+ request_serializer=dataform.ComputeRepositoryAccessTokenStatusRequest.serialize,
629
+ response_deserializer=dataform.ComputeRepositoryAccessTokenStatusResponse.deserialize,
630
+ )
631
+ return self._stubs["compute_repository_access_token_status"]
632
+
633
+ @property
634
+ def fetch_remote_branches(
635
+ self,
636
+ ) -> Callable[
637
+ [dataform.FetchRemoteBranchesRequest],
638
+ Awaitable[dataform.FetchRemoteBranchesResponse],
639
+ ]:
640
+ r"""Return a callable for the fetch remote branches method over gRPC.
641
+
642
+ Fetches a Repository's remote branches.
643
+
644
+ Returns:
645
+ Callable[[~.FetchRemoteBranchesRequest],
646
+ Awaitable[~.FetchRemoteBranchesResponse]]:
647
+ A function that, when called, will call the underlying RPC
648
+ on the server.
649
+ """
650
+ # Generate a "stub function" on-the-fly which will actually make
651
+ # the request.
652
+ # gRPC handles serialization and deserialization, so we just need
653
+ # to pass in the functions for each.
654
+ if "fetch_remote_branches" not in self._stubs:
655
+ self._stubs["fetch_remote_branches"] = self._logged_channel.unary_unary(
656
+ "/google.cloud.dataform.v1.Dataform/FetchRemoteBranches",
657
+ request_serializer=dataform.FetchRemoteBranchesRequest.serialize,
658
+ response_deserializer=dataform.FetchRemoteBranchesResponse.deserialize,
659
+ )
660
+ return self._stubs["fetch_remote_branches"]
661
+
662
+ @property
663
+ def list_workspaces(
664
+ self,
665
+ ) -> Callable[
666
+ [dataform.ListWorkspacesRequest], Awaitable[dataform.ListWorkspacesResponse]
667
+ ]:
668
+ r"""Return a callable for the list workspaces method over gRPC.
669
+
670
+ Lists Workspaces in a given Repository.
671
+
672
+ Returns:
673
+ Callable[[~.ListWorkspacesRequest],
674
+ Awaitable[~.ListWorkspacesResponse]]:
675
+ A function that, when called, will call the underlying RPC
676
+ on the server.
677
+ """
678
+ # Generate a "stub function" on-the-fly which will actually make
679
+ # the request.
680
+ # gRPC handles serialization and deserialization, so we just need
681
+ # to pass in the functions for each.
682
+ if "list_workspaces" not in self._stubs:
683
+ self._stubs["list_workspaces"] = self._logged_channel.unary_unary(
684
+ "/google.cloud.dataform.v1.Dataform/ListWorkspaces",
685
+ request_serializer=dataform.ListWorkspacesRequest.serialize,
686
+ response_deserializer=dataform.ListWorkspacesResponse.deserialize,
687
+ )
688
+ return self._stubs["list_workspaces"]
689
+
690
+ @property
691
+ def get_workspace(
692
+ self,
693
+ ) -> Callable[[dataform.GetWorkspaceRequest], Awaitable[dataform.Workspace]]:
694
+ r"""Return a callable for the get workspace method over gRPC.
695
+
696
+ Fetches a single Workspace.
697
+
698
+ Returns:
699
+ Callable[[~.GetWorkspaceRequest],
700
+ Awaitable[~.Workspace]]:
701
+ A function that, when called, will call the underlying RPC
702
+ on the server.
703
+ """
704
+ # Generate a "stub function" on-the-fly which will actually make
705
+ # the request.
706
+ # gRPC handles serialization and deserialization, so we just need
707
+ # to pass in the functions for each.
708
+ if "get_workspace" not in self._stubs:
709
+ self._stubs["get_workspace"] = self._logged_channel.unary_unary(
710
+ "/google.cloud.dataform.v1.Dataform/GetWorkspace",
711
+ request_serializer=dataform.GetWorkspaceRequest.serialize,
712
+ response_deserializer=dataform.Workspace.deserialize,
713
+ )
714
+ return self._stubs["get_workspace"]
715
+
716
+ @property
717
+ def create_workspace(
718
+ self,
719
+ ) -> Callable[[dataform.CreateWorkspaceRequest], Awaitable[dataform.Workspace]]:
720
+ r"""Return a callable for the create workspace method over gRPC.
721
+
722
+ Creates a new Workspace in a given Repository.
723
+
724
+ Returns:
725
+ Callable[[~.CreateWorkspaceRequest],
726
+ Awaitable[~.Workspace]]:
727
+ A function that, when called, will call the underlying RPC
728
+ on the server.
729
+ """
730
+ # Generate a "stub function" on-the-fly which will actually make
731
+ # the request.
732
+ # gRPC handles serialization and deserialization, so we just need
733
+ # to pass in the functions for each.
734
+ if "create_workspace" not in self._stubs:
735
+ self._stubs["create_workspace"] = self._logged_channel.unary_unary(
736
+ "/google.cloud.dataform.v1.Dataform/CreateWorkspace",
737
+ request_serializer=dataform.CreateWorkspaceRequest.serialize,
738
+ response_deserializer=dataform.Workspace.deserialize,
739
+ )
740
+ return self._stubs["create_workspace"]
741
+
742
+ @property
743
+ def delete_workspace(
744
+ self,
745
+ ) -> Callable[[dataform.DeleteWorkspaceRequest], Awaitable[empty_pb2.Empty]]:
746
+ r"""Return a callable for the delete workspace method over gRPC.
747
+
748
+ Deletes a single Workspace.
749
+
750
+ Returns:
751
+ Callable[[~.DeleteWorkspaceRequest],
752
+ Awaitable[~.Empty]]:
753
+ A function that, when called, will call the underlying RPC
754
+ on the server.
755
+ """
756
+ # Generate a "stub function" on-the-fly which will actually make
757
+ # the request.
758
+ # gRPC handles serialization and deserialization, so we just need
759
+ # to pass in the functions for each.
760
+ if "delete_workspace" not in self._stubs:
761
+ self._stubs["delete_workspace"] = self._logged_channel.unary_unary(
762
+ "/google.cloud.dataform.v1.Dataform/DeleteWorkspace",
763
+ request_serializer=dataform.DeleteWorkspaceRequest.serialize,
764
+ response_deserializer=empty_pb2.Empty.FromString,
765
+ )
766
+ return self._stubs["delete_workspace"]
767
+
768
+ @property
769
+ def install_npm_packages(
770
+ self,
771
+ ) -> Callable[
772
+ [dataform.InstallNpmPackagesRequest],
773
+ Awaitable[dataform.InstallNpmPackagesResponse],
774
+ ]:
775
+ r"""Return a callable for the install npm packages method over gRPC.
776
+
777
+ Installs dependency NPM packages (inside a
778
+ Workspace).
779
+
780
+ Returns:
781
+ Callable[[~.InstallNpmPackagesRequest],
782
+ Awaitable[~.InstallNpmPackagesResponse]]:
783
+ A function that, when called, will call the underlying RPC
784
+ on the server.
785
+ """
786
+ # Generate a "stub function" on-the-fly which will actually make
787
+ # the request.
788
+ # gRPC handles serialization and deserialization, so we just need
789
+ # to pass in the functions for each.
790
+ if "install_npm_packages" not in self._stubs:
791
+ self._stubs["install_npm_packages"] = self._logged_channel.unary_unary(
792
+ "/google.cloud.dataform.v1.Dataform/InstallNpmPackages",
793
+ request_serializer=dataform.InstallNpmPackagesRequest.serialize,
794
+ response_deserializer=dataform.InstallNpmPackagesResponse.deserialize,
795
+ )
796
+ return self._stubs["install_npm_packages"]
797
+
798
+ @property
799
+ def pull_git_commits(
800
+ self,
801
+ ) -> Callable[
802
+ [dataform.PullGitCommitsRequest], Awaitable[dataform.PullGitCommitsResponse]
803
+ ]:
804
+ r"""Return a callable for the pull git commits method over gRPC.
805
+
806
+ Pulls Git commits from the Repository's remote into a
807
+ Workspace.
808
+
809
+ Returns:
810
+ Callable[[~.PullGitCommitsRequest],
811
+ Awaitable[~.PullGitCommitsResponse]]:
812
+ A function that, when called, will call the underlying RPC
813
+ on the server.
814
+ """
815
+ # Generate a "stub function" on-the-fly which will actually make
816
+ # the request.
817
+ # gRPC handles serialization and deserialization, so we just need
818
+ # to pass in the functions for each.
819
+ if "pull_git_commits" not in self._stubs:
820
+ self._stubs["pull_git_commits"] = self._logged_channel.unary_unary(
821
+ "/google.cloud.dataform.v1.Dataform/PullGitCommits",
822
+ request_serializer=dataform.PullGitCommitsRequest.serialize,
823
+ response_deserializer=dataform.PullGitCommitsResponse.deserialize,
824
+ )
825
+ return self._stubs["pull_git_commits"]
826
+
827
+ @property
828
+ def push_git_commits(
829
+ self,
830
+ ) -> Callable[
831
+ [dataform.PushGitCommitsRequest], Awaitable[dataform.PushGitCommitsResponse]
832
+ ]:
833
+ r"""Return a callable for the push git commits method over gRPC.
834
+
835
+ Pushes Git commits from a Workspace to the
836
+ Repository's remote.
837
+
838
+ Returns:
839
+ Callable[[~.PushGitCommitsRequest],
840
+ Awaitable[~.PushGitCommitsResponse]]:
841
+ A function that, when called, will call the underlying RPC
842
+ on the server.
843
+ """
844
+ # Generate a "stub function" on-the-fly which will actually make
845
+ # the request.
846
+ # gRPC handles serialization and deserialization, so we just need
847
+ # to pass in the functions for each.
848
+ if "push_git_commits" not in self._stubs:
849
+ self._stubs["push_git_commits"] = self._logged_channel.unary_unary(
850
+ "/google.cloud.dataform.v1.Dataform/PushGitCommits",
851
+ request_serializer=dataform.PushGitCommitsRequest.serialize,
852
+ response_deserializer=dataform.PushGitCommitsResponse.deserialize,
853
+ )
854
+ return self._stubs["push_git_commits"]
855
+
856
+ @property
857
+ def fetch_file_git_statuses(
858
+ self,
859
+ ) -> Callable[
860
+ [dataform.FetchFileGitStatusesRequest],
861
+ Awaitable[dataform.FetchFileGitStatusesResponse],
862
+ ]:
863
+ r"""Return a callable for the fetch file git statuses method over gRPC.
864
+
865
+ Fetches Git statuses for the files in a Workspace.
866
+
867
+ Returns:
868
+ Callable[[~.FetchFileGitStatusesRequest],
869
+ Awaitable[~.FetchFileGitStatusesResponse]]:
870
+ A function that, when called, will call the underlying RPC
871
+ on the server.
872
+ """
873
+ # Generate a "stub function" on-the-fly which will actually make
874
+ # the request.
875
+ # gRPC handles serialization and deserialization, so we just need
876
+ # to pass in the functions for each.
877
+ if "fetch_file_git_statuses" not in self._stubs:
878
+ self._stubs["fetch_file_git_statuses"] = self._logged_channel.unary_unary(
879
+ "/google.cloud.dataform.v1.Dataform/FetchFileGitStatuses",
880
+ request_serializer=dataform.FetchFileGitStatusesRequest.serialize,
881
+ response_deserializer=dataform.FetchFileGitStatusesResponse.deserialize,
882
+ )
883
+ return self._stubs["fetch_file_git_statuses"]
884
+
885
+ @property
886
+ def fetch_git_ahead_behind(
887
+ self,
888
+ ) -> Callable[
889
+ [dataform.FetchGitAheadBehindRequest],
890
+ Awaitable[dataform.FetchGitAheadBehindResponse],
891
+ ]:
892
+ r"""Return a callable for the fetch git ahead behind method over gRPC.
893
+
894
+ Fetches Git ahead/behind against a remote branch.
895
+
896
+ Returns:
897
+ Callable[[~.FetchGitAheadBehindRequest],
898
+ Awaitable[~.FetchGitAheadBehindResponse]]:
899
+ A function that, when called, will call the underlying RPC
900
+ on the server.
901
+ """
902
+ # Generate a "stub function" on-the-fly which will actually make
903
+ # the request.
904
+ # gRPC handles serialization and deserialization, so we just need
905
+ # to pass in the functions for each.
906
+ if "fetch_git_ahead_behind" not in self._stubs:
907
+ self._stubs["fetch_git_ahead_behind"] = self._logged_channel.unary_unary(
908
+ "/google.cloud.dataform.v1.Dataform/FetchGitAheadBehind",
909
+ request_serializer=dataform.FetchGitAheadBehindRequest.serialize,
910
+ response_deserializer=dataform.FetchGitAheadBehindResponse.deserialize,
911
+ )
912
+ return self._stubs["fetch_git_ahead_behind"]
913
+
914
+ @property
915
+ def commit_workspace_changes(
916
+ self,
917
+ ) -> Callable[
918
+ [dataform.CommitWorkspaceChangesRequest],
919
+ Awaitable[dataform.CommitWorkspaceChangesResponse],
920
+ ]:
921
+ r"""Return a callable for the commit workspace changes method over gRPC.
922
+
923
+ Applies a Git commit for uncommitted files in a
924
+ Workspace.
925
+
926
+ Returns:
927
+ Callable[[~.CommitWorkspaceChangesRequest],
928
+ Awaitable[~.CommitWorkspaceChangesResponse]]:
929
+ A function that, when called, will call the underlying RPC
930
+ on the server.
931
+ """
932
+ # Generate a "stub function" on-the-fly which will actually make
933
+ # the request.
934
+ # gRPC handles serialization and deserialization, so we just need
935
+ # to pass in the functions for each.
936
+ if "commit_workspace_changes" not in self._stubs:
937
+ self._stubs["commit_workspace_changes"] = self._logged_channel.unary_unary(
938
+ "/google.cloud.dataform.v1.Dataform/CommitWorkspaceChanges",
939
+ request_serializer=dataform.CommitWorkspaceChangesRequest.serialize,
940
+ response_deserializer=dataform.CommitWorkspaceChangesResponse.deserialize,
941
+ )
942
+ return self._stubs["commit_workspace_changes"]
943
+
944
+ @property
945
+ def reset_workspace_changes(
946
+ self,
947
+ ) -> Callable[
948
+ [dataform.ResetWorkspaceChangesRequest],
949
+ Awaitable[dataform.ResetWorkspaceChangesResponse],
950
+ ]:
951
+ r"""Return a callable for the reset workspace changes method over gRPC.
952
+
953
+ Performs a Git reset for uncommitted files in a
954
+ Workspace.
955
+
956
+ Returns:
957
+ Callable[[~.ResetWorkspaceChangesRequest],
958
+ Awaitable[~.ResetWorkspaceChangesResponse]]:
959
+ A function that, when called, will call the underlying RPC
960
+ on the server.
961
+ """
962
+ # Generate a "stub function" on-the-fly which will actually make
963
+ # the request.
964
+ # gRPC handles serialization and deserialization, so we just need
965
+ # to pass in the functions for each.
966
+ if "reset_workspace_changes" not in self._stubs:
967
+ self._stubs["reset_workspace_changes"] = self._logged_channel.unary_unary(
968
+ "/google.cloud.dataform.v1.Dataform/ResetWorkspaceChanges",
969
+ request_serializer=dataform.ResetWorkspaceChangesRequest.serialize,
970
+ response_deserializer=dataform.ResetWorkspaceChangesResponse.deserialize,
971
+ )
972
+ return self._stubs["reset_workspace_changes"]
973
+
974
+ @property
975
+ def fetch_file_diff(
976
+ self,
977
+ ) -> Callable[
978
+ [dataform.FetchFileDiffRequest], Awaitable[dataform.FetchFileDiffResponse]
979
+ ]:
980
+ r"""Return a callable for the fetch file diff method over gRPC.
981
+
982
+ Fetches Git diff for an uncommitted file in a
983
+ Workspace.
984
+
985
+ Returns:
986
+ Callable[[~.FetchFileDiffRequest],
987
+ Awaitable[~.FetchFileDiffResponse]]:
988
+ A function that, when called, will call the underlying RPC
989
+ on the server.
990
+ """
991
+ # Generate a "stub function" on-the-fly which will actually make
992
+ # the request.
993
+ # gRPC handles serialization and deserialization, so we just need
994
+ # to pass in the functions for each.
995
+ if "fetch_file_diff" not in self._stubs:
996
+ self._stubs["fetch_file_diff"] = self._logged_channel.unary_unary(
997
+ "/google.cloud.dataform.v1.Dataform/FetchFileDiff",
998
+ request_serializer=dataform.FetchFileDiffRequest.serialize,
999
+ response_deserializer=dataform.FetchFileDiffResponse.deserialize,
1000
+ )
1001
+ return self._stubs["fetch_file_diff"]
1002
+
1003
+ @property
1004
+ def query_directory_contents(
1005
+ self,
1006
+ ) -> Callable[
1007
+ [dataform.QueryDirectoryContentsRequest],
1008
+ Awaitable[dataform.QueryDirectoryContentsResponse],
1009
+ ]:
1010
+ r"""Return a callable for the query directory contents method over gRPC.
1011
+
1012
+ Returns the contents of a given Workspace directory.
1013
+
1014
+ Returns:
1015
+ Callable[[~.QueryDirectoryContentsRequest],
1016
+ Awaitable[~.QueryDirectoryContentsResponse]]:
1017
+ A function that, when called, will call the underlying RPC
1018
+ on the server.
1019
+ """
1020
+ # Generate a "stub function" on-the-fly which will actually make
1021
+ # the request.
1022
+ # gRPC handles serialization and deserialization, so we just need
1023
+ # to pass in the functions for each.
1024
+ if "query_directory_contents" not in self._stubs:
1025
+ self._stubs["query_directory_contents"] = self._logged_channel.unary_unary(
1026
+ "/google.cloud.dataform.v1.Dataform/QueryDirectoryContents",
1027
+ request_serializer=dataform.QueryDirectoryContentsRequest.serialize,
1028
+ response_deserializer=dataform.QueryDirectoryContentsResponse.deserialize,
1029
+ )
1030
+ return self._stubs["query_directory_contents"]
1031
+
1032
+ @property
1033
+ def search_files(
1034
+ self,
1035
+ ) -> Callable[
1036
+ [dataform.SearchFilesRequest], Awaitable[dataform.SearchFilesResponse]
1037
+ ]:
1038
+ r"""Return a callable for the search files method over gRPC.
1039
+
1040
+ Finds the contents of a given Workspace directory by
1041
+ filter.
1042
+
1043
+ Returns:
1044
+ Callable[[~.SearchFilesRequest],
1045
+ Awaitable[~.SearchFilesResponse]]:
1046
+ A function that, when called, will call the underlying RPC
1047
+ on the server.
1048
+ """
1049
+ # Generate a "stub function" on-the-fly which will actually make
1050
+ # the request.
1051
+ # gRPC handles serialization and deserialization, so we just need
1052
+ # to pass in the functions for each.
1053
+ if "search_files" not in self._stubs:
1054
+ self._stubs["search_files"] = self._logged_channel.unary_unary(
1055
+ "/google.cloud.dataform.v1.Dataform/SearchFiles",
1056
+ request_serializer=dataform.SearchFilesRequest.serialize,
1057
+ response_deserializer=dataform.SearchFilesResponse.deserialize,
1058
+ )
1059
+ return self._stubs["search_files"]
1060
+
1061
+ @property
1062
+ def make_directory(
1063
+ self,
1064
+ ) -> Callable[
1065
+ [dataform.MakeDirectoryRequest], Awaitable[dataform.MakeDirectoryResponse]
1066
+ ]:
1067
+ r"""Return a callable for the make directory method over gRPC.
1068
+
1069
+ Creates a directory inside a Workspace.
1070
+
1071
+ Returns:
1072
+ Callable[[~.MakeDirectoryRequest],
1073
+ Awaitable[~.MakeDirectoryResponse]]:
1074
+ A function that, when called, will call the underlying RPC
1075
+ on the server.
1076
+ """
1077
+ # Generate a "stub function" on-the-fly which will actually make
1078
+ # the request.
1079
+ # gRPC handles serialization and deserialization, so we just need
1080
+ # to pass in the functions for each.
1081
+ if "make_directory" not in self._stubs:
1082
+ self._stubs["make_directory"] = self._logged_channel.unary_unary(
1083
+ "/google.cloud.dataform.v1.Dataform/MakeDirectory",
1084
+ request_serializer=dataform.MakeDirectoryRequest.serialize,
1085
+ response_deserializer=dataform.MakeDirectoryResponse.deserialize,
1086
+ )
1087
+ return self._stubs["make_directory"]
1088
+
1089
+ @property
1090
+ def remove_directory(
1091
+ self,
1092
+ ) -> Callable[
1093
+ [dataform.RemoveDirectoryRequest], Awaitable[dataform.RemoveDirectoryResponse]
1094
+ ]:
1095
+ r"""Return a callable for the remove directory method over gRPC.
1096
+
1097
+ Deletes a directory (inside a Workspace) and all of
1098
+ its contents.
1099
+
1100
+ Returns:
1101
+ Callable[[~.RemoveDirectoryRequest],
1102
+ Awaitable[~.RemoveDirectoryResponse]]:
1103
+ A function that, when called, will call the underlying RPC
1104
+ on the server.
1105
+ """
1106
+ # Generate a "stub function" on-the-fly which will actually make
1107
+ # the request.
1108
+ # gRPC handles serialization and deserialization, so we just need
1109
+ # to pass in the functions for each.
1110
+ if "remove_directory" not in self._stubs:
1111
+ self._stubs["remove_directory"] = self._logged_channel.unary_unary(
1112
+ "/google.cloud.dataform.v1.Dataform/RemoveDirectory",
1113
+ request_serializer=dataform.RemoveDirectoryRequest.serialize,
1114
+ response_deserializer=dataform.RemoveDirectoryResponse.deserialize,
1115
+ )
1116
+ return self._stubs["remove_directory"]
1117
+
1118
+ @property
1119
+ def move_directory(
1120
+ self,
1121
+ ) -> Callable[
1122
+ [dataform.MoveDirectoryRequest], Awaitable[dataform.MoveDirectoryResponse]
1123
+ ]:
1124
+ r"""Return a callable for the move directory method over gRPC.
1125
+
1126
+ Moves a directory (inside a Workspace), and all of
1127
+ its contents, to a new location.
1128
+
1129
+ Returns:
1130
+ Callable[[~.MoveDirectoryRequest],
1131
+ Awaitable[~.MoveDirectoryResponse]]:
1132
+ A function that, when called, will call the underlying RPC
1133
+ on the server.
1134
+ """
1135
+ # Generate a "stub function" on-the-fly which will actually make
1136
+ # the request.
1137
+ # gRPC handles serialization and deserialization, so we just need
1138
+ # to pass in the functions for each.
1139
+ if "move_directory" not in self._stubs:
1140
+ self._stubs["move_directory"] = self._logged_channel.unary_unary(
1141
+ "/google.cloud.dataform.v1.Dataform/MoveDirectory",
1142
+ request_serializer=dataform.MoveDirectoryRequest.serialize,
1143
+ response_deserializer=dataform.MoveDirectoryResponse.deserialize,
1144
+ )
1145
+ return self._stubs["move_directory"]
1146
+
1147
+ @property
1148
+ def read_file(
1149
+ self,
1150
+ ) -> Callable[[dataform.ReadFileRequest], Awaitable[dataform.ReadFileResponse]]:
1151
+ r"""Return a callable for the read file method over gRPC.
1152
+
1153
+ Returns the contents of a file (inside a Workspace).
1154
+
1155
+ Returns:
1156
+ Callable[[~.ReadFileRequest],
1157
+ Awaitable[~.ReadFileResponse]]:
1158
+ A function that, when called, will call the underlying RPC
1159
+ on the server.
1160
+ """
1161
+ # Generate a "stub function" on-the-fly which will actually make
1162
+ # the request.
1163
+ # gRPC handles serialization and deserialization, so we just need
1164
+ # to pass in the functions for each.
1165
+ if "read_file" not in self._stubs:
1166
+ self._stubs["read_file"] = self._logged_channel.unary_unary(
1167
+ "/google.cloud.dataform.v1.Dataform/ReadFile",
1168
+ request_serializer=dataform.ReadFileRequest.serialize,
1169
+ response_deserializer=dataform.ReadFileResponse.deserialize,
1170
+ )
1171
+ return self._stubs["read_file"]
1172
+
1173
+ @property
1174
+ def remove_file(
1175
+ self,
1176
+ ) -> Callable[[dataform.RemoveFileRequest], Awaitable[dataform.RemoveFileResponse]]:
1177
+ r"""Return a callable for the remove file method over gRPC.
1178
+
1179
+ Deletes a file (inside a Workspace).
1180
+
1181
+ Returns:
1182
+ Callable[[~.RemoveFileRequest],
1183
+ Awaitable[~.RemoveFileResponse]]:
1184
+ A function that, when called, will call the underlying RPC
1185
+ on the server.
1186
+ """
1187
+ # Generate a "stub function" on-the-fly which will actually make
1188
+ # the request.
1189
+ # gRPC handles serialization and deserialization, so we just need
1190
+ # to pass in the functions for each.
1191
+ if "remove_file" not in self._stubs:
1192
+ self._stubs["remove_file"] = self._logged_channel.unary_unary(
1193
+ "/google.cloud.dataform.v1.Dataform/RemoveFile",
1194
+ request_serializer=dataform.RemoveFileRequest.serialize,
1195
+ response_deserializer=dataform.RemoveFileResponse.deserialize,
1196
+ )
1197
+ return self._stubs["remove_file"]
1198
+
1199
+ @property
1200
+ def move_file(
1201
+ self,
1202
+ ) -> Callable[[dataform.MoveFileRequest], Awaitable[dataform.MoveFileResponse]]:
1203
+ r"""Return a callable for the move file method over gRPC.
1204
+
1205
+ Moves a file (inside a Workspace) to a new location.
1206
+
1207
+ Returns:
1208
+ Callable[[~.MoveFileRequest],
1209
+ Awaitable[~.MoveFileResponse]]:
1210
+ A function that, when called, will call the underlying RPC
1211
+ on the server.
1212
+ """
1213
+ # Generate a "stub function" on-the-fly which will actually make
1214
+ # the request.
1215
+ # gRPC handles serialization and deserialization, so we just need
1216
+ # to pass in the functions for each.
1217
+ if "move_file" not in self._stubs:
1218
+ self._stubs["move_file"] = self._logged_channel.unary_unary(
1219
+ "/google.cloud.dataform.v1.Dataform/MoveFile",
1220
+ request_serializer=dataform.MoveFileRequest.serialize,
1221
+ response_deserializer=dataform.MoveFileResponse.deserialize,
1222
+ )
1223
+ return self._stubs["move_file"]
1224
+
1225
+ @property
1226
+ def write_file(
1227
+ self,
1228
+ ) -> Callable[[dataform.WriteFileRequest], Awaitable[dataform.WriteFileResponse]]:
1229
+ r"""Return a callable for the write file method over gRPC.
1230
+
1231
+ Writes to a file (inside a Workspace).
1232
+
1233
+ Returns:
1234
+ Callable[[~.WriteFileRequest],
1235
+ Awaitable[~.WriteFileResponse]]:
1236
+ A function that, when called, will call the underlying RPC
1237
+ on the server.
1238
+ """
1239
+ # Generate a "stub function" on-the-fly which will actually make
1240
+ # the request.
1241
+ # gRPC handles serialization and deserialization, so we just need
1242
+ # to pass in the functions for each.
1243
+ if "write_file" not in self._stubs:
1244
+ self._stubs["write_file"] = self._logged_channel.unary_unary(
1245
+ "/google.cloud.dataform.v1.Dataform/WriteFile",
1246
+ request_serializer=dataform.WriteFileRequest.serialize,
1247
+ response_deserializer=dataform.WriteFileResponse.deserialize,
1248
+ )
1249
+ return self._stubs["write_file"]
1250
+
1251
+ @property
1252
+ def list_release_configs(
1253
+ self,
1254
+ ) -> Callable[
1255
+ [dataform.ListReleaseConfigsRequest],
1256
+ Awaitable[dataform.ListReleaseConfigsResponse],
1257
+ ]:
1258
+ r"""Return a callable for the list release configs method over gRPC.
1259
+
1260
+ Lists ReleaseConfigs in a given Repository.
1261
+
1262
+ Returns:
1263
+ Callable[[~.ListReleaseConfigsRequest],
1264
+ Awaitable[~.ListReleaseConfigsResponse]]:
1265
+ A function that, when called, will call the underlying RPC
1266
+ on the server.
1267
+ """
1268
+ # Generate a "stub function" on-the-fly which will actually make
1269
+ # the request.
1270
+ # gRPC handles serialization and deserialization, so we just need
1271
+ # to pass in the functions for each.
1272
+ if "list_release_configs" not in self._stubs:
1273
+ self._stubs["list_release_configs"] = self._logged_channel.unary_unary(
1274
+ "/google.cloud.dataform.v1.Dataform/ListReleaseConfigs",
1275
+ request_serializer=dataform.ListReleaseConfigsRequest.serialize,
1276
+ response_deserializer=dataform.ListReleaseConfigsResponse.deserialize,
1277
+ )
1278
+ return self._stubs["list_release_configs"]
1279
+
1280
+ @property
1281
+ def get_release_config(
1282
+ self,
1283
+ ) -> Callable[
1284
+ [dataform.GetReleaseConfigRequest], Awaitable[dataform.ReleaseConfig]
1285
+ ]:
1286
+ r"""Return a callable for the get release config method over gRPC.
1287
+
1288
+ Fetches a single ReleaseConfig.
1289
+
1290
+ Returns:
1291
+ Callable[[~.GetReleaseConfigRequest],
1292
+ Awaitable[~.ReleaseConfig]]:
1293
+ A function that, when called, will call the underlying RPC
1294
+ on the server.
1295
+ """
1296
+ # Generate a "stub function" on-the-fly which will actually make
1297
+ # the request.
1298
+ # gRPC handles serialization and deserialization, so we just need
1299
+ # to pass in the functions for each.
1300
+ if "get_release_config" not in self._stubs:
1301
+ self._stubs["get_release_config"] = self._logged_channel.unary_unary(
1302
+ "/google.cloud.dataform.v1.Dataform/GetReleaseConfig",
1303
+ request_serializer=dataform.GetReleaseConfigRequest.serialize,
1304
+ response_deserializer=dataform.ReleaseConfig.deserialize,
1305
+ )
1306
+ return self._stubs["get_release_config"]
1307
+
1308
+ @property
1309
+ def create_release_config(
1310
+ self,
1311
+ ) -> Callable[
1312
+ [dataform.CreateReleaseConfigRequest], Awaitable[dataform.ReleaseConfig]
1313
+ ]:
1314
+ r"""Return a callable for the create release config method over gRPC.
1315
+
1316
+ Creates a new ReleaseConfig in a given Repository.
1317
+
1318
+ Returns:
1319
+ Callable[[~.CreateReleaseConfigRequest],
1320
+ Awaitable[~.ReleaseConfig]]:
1321
+ A function that, when called, will call the underlying RPC
1322
+ on the server.
1323
+ """
1324
+ # Generate a "stub function" on-the-fly which will actually make
1325
+ # the request.
1326
+ # gRPC handles serialization and deserialization, so we just need
1327
+ # to pass in the functions for each.
1328
+ if "create_release_config" not in self._stubs:
1329
+ self._stubs["create_release_config"] = self._logged_channel.unary_unary(
1330
+ "/google.cloud.dataform.v1.Dataform/CreateReleaseConfig",
1331
+ request_serializer=dataform.CreateReleaseConfigRequest.serialize,
1332
+ response_deserializer=dataform.ReleaseConfig.deserialize,
1333
+ )
1334
+ return self._stubs["create_release_config"]
1335
+
1336
+ @property
1337
+ def update_release_config(
1338
+ self,
1339
+ ) -> Callable[
1340
+ [dataform.UpdateReleaseConfigRequest], Awaitable[dataform.ReleaseConfig]
1341
+ ]:
1342
+ r"""Return a callable for the update release config method over gRPC.
1343
+
1344
+ Updates a single ReleaseConfig.
1345
+
1346
+ **Note:** *This method does not fully implement*, (see
1347
+ `AIP/134 <https://google.aip.dev/134>`__, in particular:
1348
+
1349
+ - The wildcard entry (**\***) is treated as a bad request
1350
+ - When the **field_mask** is omitted, instead of only updating
1351
+ the set fields, the request is treated as a full update on
1352
+ all modifiable fields
1353
+
1354
+ Returns:
1355
+ Callable[[~.UpdateReleaseConfigRequest],
1356
+ Awaitable[~.ReleaseConfig]]:
1357
+ A function that, when called, will call the underlying RPC
1358
+ on the server.
1359
+ """
1360
+ # Generate a "stub function" on-the-fly which will actually make
1361
+ # the request.
1362
+ # gRPC handles serialization and deserialization, so we just need
1363
+ # to pass in the functions for each.
1364
+ if "update_release_config" not in self._stubs:
1365
+ self._stubs["update_release_config"] = self._logged_channel.unary_unary(
1366
+ "/google.cloud.dataform.v1.Dataform/UpdateReleaseConfig",
1367
+ request_serializer=dataform.UpdateReleaseConfigRequest.serialize,
1368
+ response_deserializer=dataform.ReleaseConfig.deserialize,
1369
+ )
1370
+ return self._stubs["update_release_config"]
1371
+
1372
+ @property
1373
+ def delete_release_config(
1374
+ self,
1375
+ ) -> Callable[[dataform.DeleteReleaseConfigRequest], Awaitable[empty_pb2.Empty]]:
1376
+ r"""Return a callable for the delete release config method over gRPC.
1377
+
1378
+ Deletes a single ReleaseConfig.
1379
+
1380
+ Returns:
1381
+ Callable[[~.DeleteReleaseConfigRequest],
1382
+ Awaitable[~.Empty]]:
1383
+ A function that, when called, will call the underlying RPC
1384
+ on the server.
1385
+ """
1386
+ # Generate a "stub function" on-the-fly which will actually make
1387
+ # the request.
1388
+ # gRPC handles serialization and deserialization, so we just need
1389
+ # to pass in the functions for each.
1390
+ if "delete_release_config" not in self._stubs:
1391
+ self._stubs["delete_release_config"] = self._logged_channel.unary_unary(
1392
+ "/google.cloud.dataform.v1.Dataform/DeleteReleaseConfig",
1393
+ request_serializer=dataform.DeleteReleaseConfigRequest.serialize,
1394
+ response_deserializer=empty_pb2.Empty.FromString,
1395
+ )
1396
+ return self._stubs["delete_release_config"]
1397
+
1398
+ @property
1399
+ def list_compilation_results(
1400
+ self,
1401
+ ) -> Callable[
1402
+ [dataform.ListCompilationResultsRequest],
1403
+ Awaitable[dataform.ListCompilationResultsResponse],
1404
+ ]:
1405
+ r"""Return a callable for the list compilation results method over gRPC.
1406
+
1407
+ Lists CompilationResults in a given Repository.
1408
+
1409
+ Returns:
1410
+ Callable[[~.ListCompilationResultsRequest],
1411
+ Awaitable[~.ListCompilationResultsResponse]]:
1412
+ A function that, when called, will call the underlying RPC
1413
+ on the server.
1414
+ """
1415
+ # Generate a "stub function" on-the-fly which will actually make
1416
+ # the request.
1417
+ # gRPC handles serialization and deserialization, so we just need
1418
+ # to pass in the functions for each.
1419
+ if "list_compilation_results" not in self._stubs:
1420
+ self._stubs["list_compilation_results"] = self._logged_channel.unary_unary(
1421
+ "/google.cloud.dataform.v1.Dataform/ListCompilationResults",
1422
+ request_serializer=dataform.ListCompilationResultsRequest.serialize,
1423
+ response_deserializer=dataform.ListCompilationResultsResponse.deserialize,
1424
+ )
1425
+ return self._stubs["list_compilation_results"]
1426
+
1427
+ @property
1428
+ def get_compilation_result(
1429
+ self,
1430
+ ) -> Callable[
1431
+ [dataform.GetCompilationResultRequest], Awaitable[dataform.CompilationResult]
1432
+ ]:
1433
+ r"""Return a callable for the get compilation result method over gRPC.
1434
+
1435
+ Fetches a single CompilationResult.
1436
+
1437
+ Returns:
1438
+ Callable[[~.GetCompilationResultRequest],
1439
+ Awaitable[~.CompilationResult]]:
1440
+ A function that, when called, will call the underlying RPC
1441
+ on the server.
1442
+ """
1443
+ # Generate a "stub function" on-the-fly which will actually make
1444
+ # the request.
1445
+ # gRPC handles serialization and deserialization, so we just need
1446
+ # to pass in the functions for each.
1447
+ if "get_compilation_result" not in self._stubs:
1448
+ self._stubs["get_compilation_result"] = self._logged_channel.unary_unary(
1449
+ "/google.cloud.dataform.v1.Dataform/GetCompilationResult",
1450
+ request_serializer=dataform.GetCompilationResultRequest.serialize,
1451
+ response_deserializer=dataform.CompilationResult.deserialize,
1452
+ )
1453
+ return self._stubs["get_compilation_result"]
1454
+
1455
+ @property
1456
+ def create_compilation_result(
1457
+ self,
1458
+ ) -> Callable[
1459
+ [dataform.CreateCompilationResultRequest], Awaitable[dataform.CompilationResult]
1460
+ ]:
1461
+ r"""Return a callable for the create compilation result method over gRPC.
1462
+
1463
+ Creates a new CompilationResult in a given project
1464
+ and location.
1465
+
1466
+ Returns:
1467
+ Callable[[~.CreateCompilationResultRequest],
1468
+ Awaitable[~.CompilationResult]]:
1469
+ A function that, when called, will call the underlying RPC
1470
+ on the server.
1471
+ """
1472
+ # Generate a "stub function" on-the-fly which will actually make
1473
+ # the request.
1474
+ # gRPC handles serialization and deserialization, so we just need
1475
+ # to pass in the functions for each.
1476
+ if "create_compilation_result" not in self._stubs:
1477
+ self._stubs["create_compilation_result"] = self._logged_channel.unary_unary(
1478
+ "/google.cloud.dataform.v1.Dataform/CreateCompilationResult",
1479
+ request_serializer=dataform.CreateCompilationResultRequest.serialize,
1480
+ response_deserializer=dataform.CompilationResult.deserialize,
1481
+ )
1482
+ return self._stubs["create_compilation_result"]
1483
+
1484
+ @property
1485
+ def query_compilation_result_actions(
1486
+ self,
1487
+ ) -> Callable[
1488
+ [dataform.QueryCompilationResultActionsRequest],
1489
+ Awaitable[dataform.QueryCompilationResultActionsResponse],
1490
+ ]:
1491
+ r"""Return a callable for the query compilation result
1492
+ actions method over gRPC.
1493
+
1494
+ Returns CompilationResultActions in a given
1495
+ CompilationResult.
1496
+
1497
+ Returns:
1498
+ Callable[[~.QueryCompilationResultActionsRequest],
1499
+ Awaitable[~.QueryCompilationResultActionsResponse]]:
1500
+ A function that, when called, will call the underlying RPC
1501
+ on the server.
1502
+ """
1503
+ # Generate a "stub function" on-the-fly which will actually make
1504
+ # the request.
1505
+ # gRPC handles serialization and deserialization, so we just need
1506
+ # to pass in the functions for each.
1507
+ if "query_compilation_result_actions" not in self._stubs:
1508
+ self._stubs[
1509
+ "query_compilation_result_actions"
1510
+ ] = self._logged_channel.unary_unary(
1511
+ "/google.cloud.dataform.v1.Dataform/QueryCompilationResultActions",
1512
+ request_serializer=dataform.QueryCompilationResultActionsRequest.serialize,
1513
+ response_deserializer=dataform.QueryCompilationResultActionsResponse.deserialize,
1514
+ )
1515
+ return self._stubs["query_compilation_result_actions"]
1516
+
1517
+ @property
1518
+ def list_workflow_configs(
1519
+ self,
1520
+ ) -> Callable[
1521
+ [dataform.ListWorkflowConfigsRequest],
1522
+ Awaitable[dataform.ListWorkflowConfigsResponse],
1523
+ ]:
1524
+ r"""Return a callable for the list workflow configs method over gRPC.
1525
+
1526
+ Lists WorkflowConfigs in a given Repository.
1527
+
1528
+ Returns:
1529
+ Callable[[~.ListWorkflowConfigsRequest],
1530
+ Awaitable[~.ListWorkflowConfigsResponse]]:
1531
+ A function that, when called, will call the underlying RPC
1532
+ on the server.
1533
+ """
1534
+ # Generate a "stub function" on-the-fly which will actually make
1535
+ # the request.
1536
+ # gRPC handles serialization and deserialization, so we just need
1537
+ # to pass in the functions for each.
1538
+ if "list_workflow_configs" not in self._stubs:
1539
+ self._stubs["list_workflow_configs"] = self._logged_channel.unary_unary(
1540
+ "/google.cloud.dataform.v1.Dataform/ListWorkflowConfigs",
1541
+ request_serializer=dataform.ListWorkflowConfigsRequest.serialize,
1542
+ response_deserializer=dataform.ListWorkflowConfigsResponse.deserialize,
1543
+ )
1544
+ return self._stubs["list_workflow_configs"]
1545
+
1546
+ @property
1547
+ def get_workflow_config(
1548
+ self,
1549
+ ) -> Callable[
1550
+ [dataform.GetWorkflowConfigRequest], Awaitable[dataform.WorkflowConfig]
1551
+ ]:
1552
+ r"""Return a callable for the get workflow config method over gRPC.
1553
+
1554
+ Fetches a single WorkflowConfig.
1555
+
1556
+ Returns:
1557
+ Callable[[~.GetWorkflowConfigRequest],
1558
+ Awaitable[~.WorkflowConfig]]:
1559
+ A function that, when called, will call the underlying RPC
1560
+ on the server.
1561
+ """
1562
+ # Generate a "stub function" on-the-fly which will actually make
1563
+ # the request.
1564
+ # gRPC handles serialization and deserialization, so we just need
1565
+ # to pass in the functions for each.
1566
+ if "get_workflow_config" not in self._stubs:
1567
+ self._stubs["get_workflow_config"] = self._logged_channel.unary_unary(
1568
+ "/google.cloud.dataform.v1.Dataform/GetWorkflowConfig",
1569
+ request_serializer=dataform.GetWorkflowConfigRequest.serialize,
1570
+ response_deserializer=dataform.WorkflowConfig.deserialize,
1571
+ )
1572
+ return self._stubs["get_workflow_config"]
1573
+
1574
+ @property
1575
+ def create_workflow_config(
1576
+ self,
1577
+ ) -> Callable[
1578
+ [dataform.CreateWorkflowConfigRequest], Awaitable[dataform.WorkflowConfig]
1579
+ ]:
1580
+ r"""Return a callable for the create workflow config method over gRPC.
1581
+
1582
+ Creates a new WorkflowConfig in a given Repository.
1583
+
1584
+ Returns:
1585
+ Callable[[~.CreateWorkflowConfigRequest],
1586
+ Awaitable[~.WorkflowConfig]]:
1587
+ A function that, when called, will call the underlying RPC
1588
+ on the server.
1589
+ """
1590
+ # Generate a "stub function" on-the-fly which will actually make
1591
+ # the request.
1592
+ # gRPC handles serialization and deserialization, so we just need
1593
+ # to pass in the functions for each.
1594
+ if "create_workflow_config" not in self._stubs:
1595
+ self._stubs["create_workflow_config"] = self._logged_channel.unary_unary(
1596
+ "/google.cloud.dataform.v1.Dataform/CreateWorkflowConfig",
1597
+ request_serializer=dataform.CreateWorkflowConfigRequest.serialize,
1598
+ response_deserializer=dataform.WorkflowConfig.deserialize,
1599
+ )
1600
+ return self._stubs["create_workflow_config"]
1601
+
1602
+ @property
1603
+ def update_workflow_config(
1604
+ self,
1605
+ ) -> Callable[
1606
+ [dataform.UpdateWorkflowConfigRequest], Awaitable[dataform.WorkflowConfig]
1607
+ ]:
1608
+ r"""Return a callable for the update workflow config method over gRPC.
1609
+
1610
+ Updates a single WorkflowConfig.
1611
+
1612
+ **Note:** *This method does not fully implement*, (see
1613
+ `AIP/134 <https://google.aip.dev/134>`__, in particular:
1614
+
1615
+ - The wildcard entry (**\***) is treated as a bad request
1616
+ - When the **field_mask** is omitted, instead of only updating
1617
+ the set fields, the request is treated as a full update on
1618
+ all modifiable fields
1619
+
1620
+ Returns:
1621
+ Callable[[~.UpdateWorkflowConfigRequest],
1622
+ Awaitable[~.WorkflowConfig]]:
1623
+ A function that, when called, will call the underlying RPC
1624
+ on the server.
1625
+ """
1626
+ # Generate a "stub function" on-the-fly which will actually make
1627
+ # the request.
1628
+ # gRPC handles serialization and deserialization, so we just need
1629
+ # to pass in the functions for each.
1630
+ if "update_workflow_config" not in self._stubs:
1631
+ self._stubs["update_workflow_config"] = self._logged_channel.unary_unary(
1632
+ "/google.cloud.dataform.v1.Dataform/UpdateWorkflowConfig",
1633
+ request_serializer=dataform.UpdateWorkflowConfigRequest.serialize,
1634
+ response_deserializer=dataform.WorkflowConfig.deserialize,
1635
+ )
1636
+ return self._stubs["update_workflow_config"]
1637
+
1638
+ @property
1639
+ def delete_workflow_config(
1640
+ self,
1641
+ ) -> Callable[[dataform.DeleteWorkflowConfigRequest], Awaitable[empty_pb2.Empty]]:
1642
+ r"""Return a callable for the delete workflow config method over gRPC.
1643
+
1644
+ Deletes a single WorkflowConfig.
1645
+
1646
+ Returns:
1647
+ Callable[[~.DeleteWorkflowConfigRequest],
1648
+ Awaitable[~.Empty]]:
1649
+ A function that, when called, will call the underlying RPC
1650
+ on the server.
1651
+ """
1652
+ # Generate a "stub function" on-the-fly which will actually make
1653
+ # the request.
1654
+ # gRPC handles serialization and deserialization, so we just need
1655
+ # to pass in the functions for each.
1656
+ if "delete_workflow_config" not in self._stubs:
1657
+ self._stubs["delete_workflow_config"] = self._logged_channel.unary_unary(
1658
+ "/google.cloud.dataform.v1.Dataform/DeleteWorkflowConfig",
1659
+ request_serializer=dataform.DeleteWorkflowConfigRequest.serialize,
1660
+ response_deserializer=empty_pb2.Empty.FromString,
1661
+ )
1662
+ return self._stubs["delete_workflow_config"]
1663
+
1664
+ @property
1665
+ def list_workflow_invocations(
1666
+ self,
1667
+ ) -> Callable[
1668
+ [dataform.ListWorkflowInvocationsRequest],
1669
+ Awaitable[dataform.ListWorkflowInvocationsResponse],
1670
+ ]:
1671
+ r"""Return a callable for the list workflow invocations method over gRPC.
1672
+
1673
+ Lists WorkflowInvocations in a given Repository.
1674
+
1675
+ Returns:
1676
+ Callable[[~.ListWorkflowInvocationsRequest],
1677
+ Awaitable[~.ListWorkflowInvocationsResponse]]:
1678
+ A function that, when called, will call the underlying RPC
1679
+ on the server.
1680
+ """
1681
+ # Generate a "stub function" on-the-fly which will actually make
1682
+ # the request.
1683
+ # gRPC handles serialization and deserialization, so we just need
1684
+ # to pass in the functions for each.
1685
+ if "list_workflow_invocations" not in self._stubs:
1686
+ self._stubs["list_workflow_invocations"] = self._logged_channel.unary_unary(
1687
+ "/google.cloud.dataform.v1.Dataform/ListWorkflowInvocations",
1688
+ request_serializer=dataform.ListWorkflowInvocationsRequest.serialize,
1689
+ response_deserializer=dataform.ListWorkflowInvocationsResponse.deserialize,
1690
+ )
1691
+ return self._stubs["list_workflow_invocations"]
1692
+
1693
+ @property
1694
+ def get_workflow_invocation(
1695
+ self,
1696
+ ) -> Callable[
1697
+ [dataform.GetWorkflowInvocationRequest], Awaitable[dataform.WorkflowInvocation]
1698
+ ]:
1699
+ r"""Return a callable for the get workflow invocation method over gRPC.
1700
+
1701
+ Fetches a single WorkflowInvocation.
1702
+
1703
+ Returns:
1704
+ Callable[[~.GetWorkflowInvocationRequest],
1705
+ Awaitable[~.WorkflowInvocation]]:
1706
+ A function that, when called, will call the underlying RPC
1707
+ on the server.
1708
+ """
1709
+ # Generate a "stub function" on-the-fly which will actually make
1710
+ # the request.
1711
+ # gRPC handles serialization and deserialization, so we just need
1712
+ # to pass in the functions for each.
1713
+ if "get_workflow_invocation" not in self._stubs:
1714
+ self._stubs["get_workflow_invocation"] = self._logged_channel.unary_unary(
1715
+ "/google.cloud.dataform.v1.Dataform/GetWorkflowInvocation",
1716
+ request_serializer=dataform.GetWorkflowInvocationRequest.serialize,
1717
+ response_deserializer=dataform.WorkflowInvocation.deserialize,
1718
+ )
1719
+ return self._stubs["get_workflow_invocation"]
1720
+
1721
+ @property
1722
+ def create_workflow_invocation(
1723
+ self,
1724
+ ) -> Callable[
1725
+ [dataform.CreateWorkflowInvocationRequest],
1726
+ Awaitable[dataform.WorkflowInvocation],
1727
+ ]:
1728
+ r"""Return a callable for the create workflow invocation method over gRPC.
1729
+
1730
+ Creates a new WorkflowInvocation in a given
1731
+ Repository.
1732
+
1733
+ Returns:
1734
+ Callable[[~.CreateWorkflowInvocationRequest],
1735
+ Awaitable[~.WorkflowInvocation]]:
1736
+ A function that, when called, will call the underlying RPC
1737
+ on the server.
1738
+ """
1739
+ # Generate a "stub function" on-the-fly which will actually make
1740
+ # the request.
1741
+ # gRPC handles serialization and deserialization, so we just need
1742
+ # to pass in the functions for each.
1743
+ if "create_workflow_invocation" not in self._stubs:
1744
+ self._stubs[
1745
+ "create_workflow_invocation"
1746
+ ] = self._logged_channel.unary_unary(
1747
+ "/google.cloud.dataform.v1.Dataform/CreateWorkflowInvocation",
1748
+ request_serializer=dataform.CreateWorkflowInvocationRequest.serialize,
1749
+ response_deserializer=dataform.WorkflowInvocation.deserialize,
1750
+ )
1751
+ return self._stubs["create_workflow_invocation"]
1752
+
1753
+ @property
1754
+ def delete_workflow_invocation(
1755
+ self,
1756
+ ) -> Callable[
1757
+ [dataform.DeleteWorkflowInvocationRequest], Awaitable[empty_pb2.Empty]
1758
+ ]:
1759
+ r"""Return a callable for the delete workflow invocation method over gRPC.
1760
+
1761
+ Deletes a single WorkflowInvocation.
1762
+
1763
+ Returns:
1764
+ Callable[[~.DeleteWorkflowInvocationRequest],
1765
+ Awaitable[~.Empty]]:
1766
+ A function that, when called, will call the underlying RPC
1767
+ on the server.
1768
+ """
1769
+ # Generate a "stub function" on-the-fly which will actually make
1770
+ # the request.
1771
+ # gRPC handles serialization and deserialization, so we just need
1772
+ # to pass in the functions for each.
1773
+ if "delete_workflow_invocation" not in self._stubs:
1774
+ self._stubs[
1775
+ "delete_workflow_invocation"
1776
+ ] = self._logged_channel.unary_unary(
1777
+ "/google.cloud.dataform.v1.Dataform/DeleteWorkflowInvocation",
1778
+ request_serializer=dataform.DeleteWorkflowInvocationRequest.serialize,
1779
+ response_deserializer=empty_pb2.Empty.FromString,
1780
+ )
1781
+ return self._stubs["delete_workflow_invocation"]
1782
+
1783
+ @property
1784
+ def cancel_workflow_invocation(
1785
+ self,
1786
+ ) -> Callable[
1787
+ [dataform.CancelWorkflowInvocationRequest],
1788
+ Awaitable[dataform.CancelWorkflowInvocationResponse],
1789
+ ]:
1790
+ r"""Return a callable for the cancel workflow invocation method over gRPC.
1791
+
1792
+ Requests cancellation of a running
1793
+ WorkflowInvocation.
1794
+
1795
+ Returns:
1796
+ Callable[[~.CancelWorkflowInvocationRequest],
1797
+ Awaitable[~.CancelWorkflowInvocationResponse]]:
1798
+ A function that, when called, will call the underlying RPC
1799
+ on the server.
1800
+ """
1801
+ # Generate a "stub function" on-the-fly which will actually make
1802
+ # the request.
1803
+ # gRPC handles serialization and deserialization, so we just need
1804
+ # to pass in the functions for each.
1805
+ if "cancel_workflow_invocation" not in self._stubs:
1806
+ self._stubs[
1807
+ "cancel_workflow_invocation"
1808
+ ] = self._logged_channel.unary_unary(
1809
+ "/google.cloud.dataform.v1.Dataform/CancelWorkflowInvocation",
1810
+ request_serializer=dataform.CancelWorkflowInvocationRequest.serialize,
1811
+ response_deserializer=dataform.CancelWorkflowInvocationResponse.deserialize,
1812
+ )
1813
+ return self._stubs["cancel_workflow_invocation"]
1814
+
1815
+ @property
1816
+ def query_workflow_invocation_actions(
1817
+ self,
1818
+ ) -> Callable[
1819
+ [dataform.QueryWorkflowInvocationActionsRequest],
1820
+ Awaitable[dataform.QueryWorkflowInvocationActionsResponse],
1821
+ ]:
1822
+ r"""Return a callable for the query workflow invocation
1823
+ actions method over gRPC.
1824
+
1825
+ Returns WorkflowInvocationActions in a given
1826
+ WorkflowInvocation.
1827
+
1828
+ Returns:
1829
+ Callable[[~.QueryWorkflowInvocationActionsRequest],
1830
+ Awaitable[~.QueryWorkflowInvocationActionsResponse]]:
1831
+ A function that, when called, will call the underlying RPC
1832
+ on the server.
1833
+ """
1834
+ # Generate a "stub function" on-the-fly which will actually make
1835
+ # the request.
1836
+ # gRPC handles serialization and deserialization, so we just need
1837
+ # to pass in the functions for each.
1838
+ if "query_workflow_invocation_actions" not in self._stubs:
1839
+ self._stubs[
1840
+ "query_workflow_invocation_actions"
1841
+ ] = self._logged_channel.unary_unary(
1842
+ "/google.cloud.dataform.v1.Dataform/QueryWorkflowInvocationActions",
1843
+ request_serializer=dataform.QueryWorkflowInvocationActionsRequest.serialize,
1844
+ response_deserializer=dataform.QueryWorkflowInvocationActionsResponse.deserialize,
1845
+ )
1846
+ return self._stubs["query_workflow_invocation_actions"]
1847
+
1848
+ @property
1849
+ def get_config(
1850
+ self,
1851
+ ) -> Callable[[dataform.GetConfigRequest], Awaitable[dataform.Config]]:
1852
+ r"""Return a callable for the get config method over gRPC.
1853
+
1854
+ Get default config for a given project and location.
1855
+
1856
+ Returns:
1857
+ Callable[[~.GetConfigRequest],
1858
+ Awaitable[~.Config]]:
1859
+ A function that, when called, will call the underlying RPC
1860
+ on the server.
1861
+ """
1862
+ # Generate a "stub function" on-the-fly which will actually make
1863
+ # the request.
1864
+ # gRPC handles serialization and deserialization, so we just need
1865
+ # to pass in the functions for each.
1866
+ if "get_config" not in self._stubs:
1867
+ self._stubs["get_config"] = self._logged_channel.unary_unary(
1868
+ "/google.cloud.dataform.v1.Dataform/GetConfig",
1869
+ request_serializer=dataform.GetConfigRequest.serialize,
1870
+ response_deserializer=dataform.Config.deserialize,
1871
+ )
1872
+ return self._stubs["get_config"]
1873
+
1874
+ @property
1875
+ def update_config(
1876
+ self,
1877
+ ) -> Callable[[dataform.UpdateConfigRequest], Awaitable[dataform.Config]]:
1878
+ r"""Return a callable for the update config method over gRPC.
1879
+
1880
+ Update default config for a given project and location.
1881
+
1882
+ **Note:** *This method does not fully implement*, (see
1883
+ `AIP/134 <https://google.aip.dev/134>`__, in particular:
1884
+
1885
+ - The wildcard entry (**\***) is treated as a bad request
1886
+ - When the **field_mask** is omitted, instead of only updating
1887
+ the set fields, the request is treated as a full update on
1888
+ all modifiable fields
1889
+
1890
+ Returns:
1891
+ Callable[[~.UpdateConfigRequest],
1892
+ Awaitable[~.Config]]:
1893
+ A function that, when called, will call the underlying RPC
1894
+ on the server.
1895
+ """
1896
+ # Generate a "stub function" on-the-fly which will actually make
1897
+ # the request.
1898
+ # gRPC handles serialization and deserialization, so we just need
1899
+ # to pass in the functions for each.
1900
+ if "update_config" not in self._stubs:
1901
+ self._stubs["update_config"] = self._logged_channel.unary_unary(
1902
+ "/google.cloud.dataform.v1.Dataform/UpdateConfig",
1903
+ request_serializer=dataform.UpdateConfigRequest.serialize,
1904
+ response_deserializer=dataform.Config.deserialize,
1905
+ )
1906
+ return self._stubs["update_config"]
1907
+
1908
+ def _prep_wrapped_messages(self, client_info):
1909
+ """Precompute the wrapped methods, overriding the base class method to use async wrappers."""
1910
+ self._wrapped_methods = {
1911
+ self.list_repositories: self._wrap_method(
1912
+ self.list_repositories,
1913
+ default_timeout=None,
1914
+ client_info=client_info,
1915
+ ),
1916
+ self.get_repository: self._wrap_method(
1917
+ self.get_repository,
1918
+ default_timeout=None,
1919
+ client_info=client_info,
1920
+ ),
1921
+ self.create_repository: self._wrap_method(
1922
+ self.create_repository,
1923
+ default_timeout=None,
1924
+ client_info=client_info,
1925
+ ),
1926
+ self.update_repository: self._wrap_method(
1927
+ self.update_repository,
1928
+ default_timeout=None,
1929
+ client_info=client_info,
1930
+ ),
1931
+ self.delete_repository: self._wrap_method(
1932
+ self.delete_repository,
1933
+ default_timeout=None,
1934
+ client_info=client_info,
1935
+ ),
1936
+ self.commit_repository_changes: self._wrap_method(
1937
+ self.commit_repository_changes,
1938
+ default_timeout=None,
1939
+ client_info=client_info,
1940
+ ),
1941
+ self.read_repository_file: self._wrap_method(
1942
+ self.read_repository_file,
1943
+ default_timeout=None,
1944
+ client_info=client_info,
1945
+ ),
1946
+ self.query_repository_directory_contents: self._wrap_method(
1947
+ self.query_repository_directory_contents,
1948
+ default_timeout=None,
1949
+ client_info=client_info,
1950
+ ),
1951
+ self.fetch_repository_history: self._wrap_method(
1952
+ self.fetch_repository_history,
1953
+ default_timeout=None,
1954
+ client_info=client_info,
1955
+ ),
1956
+ self.compute_repository_access_token_status: self._wrap_method(
1957
+ self.compute_repository_access_token_status,
1958
+ default_timeout=None,
1959
+ client_info=client_info,
1960
+ ),
1961
+ self.fetch_remote_branches: self._wrap_method(
1962
+ self.fetch_remote_branches,
1963
+ default_timeout=None,
1964
+ client_info=client_info,
1965
+ ),
1966
+ self.list_workspaces: self._wrap_method(
1967
+ self.list_workspaces,
1968
+ default_timeout=None,
1969
+ client_info=client_info,
1970
+ ),
1971
+ self.get_workspace: self._wrap_method(
1972
+ self.get_workspace,
1973
+ default_timeout=None,
1974
+ client_info=client_info,
1975
+ ),
1976
+ self.create_workspace: self._wrap_method(
1977
+ self.create_workspace,
1978
+ default_timeout=None,
1979
+ client_info=client_info,
1980
+ ),
1981
+ self.delete_workspace: self._wrap_method(
1982
+ self.delete_workspace,
1983
+ default_timeout=None,
1984
+ client_info=client_info,
1985
+ ),
1986
+ self.install_npm_packages: self._wrap_method(
1987
+ self.install_npm_packages,
1988
+ default_timeout=None,
1989
+ client_info=client_info,
1990
+ ),
1991
+ self.pull_git_commits: self._wrap_method(
1992
+ self.pull_git_commits,
1993
+ default_timeout=None,
1994
+ client_info=client_info,
1995
+ ),
1996
+ self.push_git_commits: self._wrap_method(
1997
+ self.push_git_commits,
1998
+ default_timeout=None,
1999
+ client_info=client_info,
2000
+ ),
2001
+ self.fetch_file_git_statuses: self._wrap_method(
2002
+ self.fetch_file_git_statuses,
2003
+ default_timeout=None,
2004
+ client_info=client_info,
2005
+ ),
2006
+ self.fetch_git_ahead_behind: self._wrap_method(
2007
+ self.fetch_git_ahead_behind,
2008
+ default_timeout=None,
2009
+ client_info=client_info,
2010
+ ),
2011
+ self.commit_workspace_changes: self._wrap_method(
2012
+ self.commit_workspace_changes,
2013
+ default_timeout=None,
2014
+ client_info=client_info,
2015
+ ),
2016
+ self.reset_workspace_changes: self._wrap_method(
2017
+ self.reset_workspace_changes,
2018
+ default_timeout=None,
2019
+ client_info=client_info,
2020
+ ),
2021
+ self.fetch_file_diff: self._wrap_method(
2022
+ self.fetch_file_diff,
2023
+ default_timeout=None,
2024
+ client_info=client_info,
2025
+ ),
2026
+ self.query_directory_contents: self._wrap_method(
2027
+ self.query_directory_contents,
2028
+ default_timeout=None,
2029
+ client_info=client_info,
2030
+ ),
2031
+ self.search_files: self._wrap_method(
2032
+ self.search_files,
2033
+ default_timeout=None,
2034
+ client_info=client_info,
2035
+ ),
2036
+ self.make_directory: self._wrap_method(
2037
+ self.make_directory,
2038
+ default_timeout=None,
2039
+ client_info=client_info,
2040
+ ),
2041
+ self.remove_directory: self._wrap_method(
2042
+ self.remove_directory,
2043
+ default_timeout=None,
2044
+ client_info=client_info,
2045
+ ),
2046
+ self.move_directory: self._wrap_method(
2047
+ self.move_directory,
2048
+ default_timeout=None,
2049
+ client_info=client_info,
2050
+ ),
2051
+ self.read_file: self._wrap_method(
2052
+ self.read_file,
2053
+ default_timeout=None,
2054
+ client_info=client_info,
2055
+ ),
2056
+ self.remove_file: self._wrap_method(
2057
+ self.remove_file,
2058
+ default_timeout=None,
2059
+ client_info=client_info,
2060
+ ),
2061
+ self.move_file: self._wrap_method(
2062
+ self.move_file,
2063
+ default_timeout=None,
2064
+ client_info=client_info,
2065
+ ),
2066
+ self.write_file: self._wrap_method(
2067
+ self.write_file,
2068
+ default_timeout=None,
2069
+ client_info=client_info,
2070
+ ),
2071
+ self.list_release_configs: self._wrap_method(
2072
+ self.list_release_configs,
2073
+ default_timeout=None,
2074
+ client_info=client_info,
2075
+ ),
2076
+ self.get_release_config: self._wrap_method(
2077
+ self.get_release_config,
2078
+ default_timeout=None,
2079
+ client_info=client_info,
2080
+ ),
2081
+ self.create_release_config: self._wrap_method(
2082
+ self.create_release_config,
2083
+ default_timeout=None,
2084
+ client_info=client_info,
2085
+ ),
2086
+ self.update_release_config: self._wrap_method(
2087
+ self.update_release_config,
2088
+ default_timeout=None,
2089
+ client_info=client_info,
2090
+ ),
2091
+ self.delete_release_config: self._wrap_method(
2092
+ self.delete_release_config,
2093
+ default_timeout=None,
2094
+ client_info=client_info,
2095
+ ),
2096
+ self.list_compilation_results: self._wrap_method(
2097
+ self.list_compilation_results,
2098
+ default_timeout=None,
2099
+ client_info=client_info,
2100
+ ),
2101
+ self.get_compilation_result: self._wrap_method(
2102
+ self.get_compilation_result,
2103
+ default_timeout=None,
2104
+ client_info=client_info,
2105
+ ),
2106
+ self.create_compilation_result: self._wrap_method(
2107
+ self.create_compilation_result,
2108
+ default_timeout=None,
2109
+ client_info=client_info,
2110
+ ),
2111
+ self.query_compilation_result_actions: self._wrap_method(
2112
+ self.query_compilation_result_actions,
2113
+ default_timeout=None,
2114
+ client_info=client_info,
2115
+ ),
2116
+ self.list_workflow_configs: self._wrap_method(
2117
+ self.list_workflow_configs,
2118
+ default_timeout=None,
2119
+ client_info=client_info,
2120
+ ),
2121
+ self.get_workflow_config: self._wrap_method(
2122
+ self.get_workflow_config,
2123
+ default_timeout=None,
2124
+ client_info=client_info,
2125
+ ),
2126
+ self.create_workflow_config: self._wrap_method(
2127
+ self.create_workflow_config,
2128
+ default_timeout=None,
2129
+ client_info=client_info,
2130
+ ),
2131
+ self.update_workflow_config: self._wrap_method(
2132
+ self.update_workflow_config,
2133
+ default_timeout=None,
2134
+ client_info=client_info,
2135
+ ),
2136
+ self.delete_workflow_config: self._wrap_method(
2137
+ self.delete_workflow_config,
2138
+ default_timeout=None,
2139
+ client_info=client_info,
2140
+ ),
2141
+ self.list_workflow_invocations: self._wrap_method(
2142
+ self.list_workflow_invocations,
2143
+ default_timeout=None,
2144
+ client_info=client_info,
2145
+ ),
2146
+ self.get_workflow_invocation: self._wrap_method(
2147
+ self.get_workflow_invocation,
2148
+ default_timeout=None,
2149
+ client_info=client_info,
2150
+ ),
2151
+ self.create_workflow_invocation: self._wrap_method(
2152
+ self.create_workflow_invocation,
2153
+ default_timeout=None,
2154
+ client_info=client_info,
2155
+ ),
2156
+ self.delete_workflow_invocation: self._wrap_method(
2157
+ self.delete_workflow_invocation,
2158
+ default_timeout=None,
2159
+ client_info=client_info,
2160
+ ),
2161
+ self.cancel_workflow_invocation: self._wrap_method(
2162
+ self.cancel_workflow_invocation,
2163
+ default_timeout=None,
2164
+ client_info=client_info,
2165
+ ),
2166
+ self.query_workflow_invocation_actions: self._wrap_method(
2167
+ self.query_workflow_invocation_actions,
2168
+ default_timeout=None,
2169
+ client_info=client_info,
2170
+ ),
2171
+ self.get_config: self._wrap_method(
2172
+ self.get_config,
2173
+ default_timeout=None,
2174
+ client_info=client_info,
2175
+ ),
2176
+ self.update_config: self._wrap_method(
2177
+ self.update_config,
2178
+ default_timeout=None,
2179
+ client_info=client_info,
2180
+ ),
2181
+ self.get_location: self._wrap_method(
2182
+ self.get_location,
2183
+ default_timeout=None,
2184
+ client_info=client_info,
2185
+ ),
2186
+ self.list_locations: self._wrap_method(
2187
+ self.list_locations,
2188
+ default_timeout=None,
2189
+ client_info=client_info,
2190
+ ),
2191
+ self.get_iam_policy: self._wrap_method(
2192
+ self.get_iam_policy,
2193
+ default_timeout=None,
2194
+ client_info=client_info,
2195
+ ),
2196
+ self.set_iam_policy: self._wrap_method(
2197
+ self.set_iam_policy,
2198
+ default_timeout=None,
2199
+ client_info=client_info,
2200
+ ),
2201
+ self.test_iam_permissions: self._wrap_method(
2202
+ self.test_iam_permissions,
2203
+ default_timeout=None,
2204
+ client_info=client_info,
2205
+ ),
2206
+ }
2207
+
2208
+ def _wrap_method(self, func, *args, **kwargs):
2209
+ if self._wrap_with_kind: # pragma: NO COVER
2210
+ kwargs["kind"] = self.kind
2211
+ return gapic_v1.method_async.wrap_method(func, *args, **kwargs)
2212
+
2213
+ def close(self):
2214
+ return self._logged_channel.close()
2215
+
2216
+ @property
2217
+ def kind(self) -> str:
2218
+ return "grpc_asyncio"
2219
+
2220
+ @property
2221
+ def list_locations(
2222
+ self,
2223
+ ) -> Callable[
2224
+ [locations_pb2.ListLocationsRequest], locations_pb2.ListLocationsResponse
2225
+ ]:
2226
+ r"""Return a callable for the list locations method over gRPC."""
2227
+ # Generate a "stub function" on-the-fly which will actually make
2228
+ # the request.
2229
+ # gRPC handles serialization and deserialization, so we just need
2230
+ # to pass in the functions for each.
2231
+ if "list_locations" not in self._stubs:
2232
+ self._stubs["list_locations"] = self._logged_channel.unary_unary(
2233
+ "/google.cloud.location.Locations/ListLocations",
2234
+ request_serializer=locations_pb2.ListLocationsRequest.SerializeToString,
2235
+ response_deserializer=locations_pb2.ListLocationsResponse.FromString,
2236
+ )
2237
+ return self._stubs["list_locations"]
2238
+
2239
+ @property
2240
+ def get_location(
2241
+ self,
2242
+ ) -> Callable[[locations_pb2.GetLocationRequest], locations_pb2.Location]:
2243
+ r"""Return a callable for the list locations method over gRPC."""
2244
+ # Generate a "stub function" on-the-fly which will actually make
2245
+ # the request.
2246
+ # gRPC handles serialization and deserialization, so we just need
2247
+ # to pass in the functions for each.
2248
+ if "get_location" not in self._stubs:
2249
+ self._stubs["get_location"] = self._logged_channel.unary_unary(
2250
+ "/google.cloud.location.Locations/GetLocation",
2251
+ request_serializer=locations_pb2.GetLocationRequest.SerializeToString,
2252
+ response_deserializer=locations_pb2.Location.FromString,
2253
+ )
2254
+ return self._stubs["get_location"]
2255
+
2256
+ @property
2257
+ def set_iam_policy(
2258
+ self,
2259
+ ) -> Callable[[iam_policy_pb2.SetIamPolicyRequest], policy_pb2.Policy]:
2260
+ r"""Return a callable for the set iam policy method over gRPC.
2261
+ Sets the IAM access control policy on the specified
2262
+ function. Replaces any existing policy.
2263
+ Returns:
2264
+ Callable[[~.SetIamPolicyRequest],
2265
+ ~.Policy]:
2266
+ A function that, when called, will call the underlying RPC
2267
+ on the server.
2268
+ """
2269
+ # Generate a "stub function" on-the-fly which will actually make
2270
+ # the request.
2271
+ # gRPC handles serialization and deserialization, so we just need
2272
+ # to pass in the functions for each.
2273
+ if "set_iam_policy" not in self._stubs:
2274
+ self._stubs["set_iam_policy"] = self._logged_channel.unary_unary(
2275
+ "/google.iam.v1.IAMPolicy/SetIamPolicy",
2276
+ request_serializer=iam_policy_pb2.SetIamPolicyRequest.SerializeToString,
2277
+ response_deserializer=policy_pb2.Policy.FromString,
2278
+ )
2279
+ return self._stubs["set_iam_policy"]
2280
+
2281
+ @property
2282
+ def get_iam_policy(
2283
+ self,
2284
+ ) -> Callable[[iam_policy_pb2.GetIamPolicyRequest], policy_pb2.Policy]:
2285
+ r"""Return a callable for the get iam policy method over gRPC.
2286
+ Gets the IAM access control policy for a function.
2287
+ Returns an empty policy if the function exists and does
2288
+ not have a policy set.
2289
+ Returns:
2290
+ Callable[[~.GetIamPolicyRequest],
2291
+ ~.Policy]:
2292
+ A function that, when called, will call the underlying RPC
2293
+ on the server.
2294
+ """
2295
+ # Generate a "stub function" on-the-fly which will actually make
2296
+ # the request.
2297
+ # gRPC handles serialization and deserialization, so we just need
2298
+ # to pass in the functions for each.
2299
+ if "get_iam_policy" not in self._stubs:
2300
+ self._stubs["get_iam_policy"] = self._logged_channel.unary_unary(
2301
+ "/google.iam.v1.IAMPolicy/GetIamPolicy",
2302
+ request_serializer=iam_policy_pb2.GetIamPolicyRequest.SerializeToString,
2303
+ response_deserializer=policy_pb2.Policy.FromString,
2304
+ )
2305
+ return self._stubs["get_iam_policy"]
2306
+
2307
+ @property
2308
+ def test_iam_permissions(
2309
+ self,
2310
+ ) -> Callable[
2311
+ [iam_policy_pb2.TestIamPermissionsRequest],
2312
+ iam_policy_pb2.TestIamPermissionsResponse,
2313
+ ]:
2314
+ r"""Return a callable for the test iam permissions method over gRPC.
2315
+ Tests the specified permissions against the IAM access control
2316
+ policy for a function. If the function does not exist, this will
2317
+ return an empty set of permissions, not a NOT_FOUND error.
2318
+ Returns:
2319
+ Callable[[~.TestIamPermissionsRequest],
2320
+ ~.TestIamPermissionsResponse]:
2321
+ A function that, when called, will call the underlying RPC
2322
+ on the server.
2323
+ """
2324
+ # Generate a "stub function" on-the-fly which will actually make
2325
+ # the request.
2326
+ # gRPC handles serialization and deserialization, so we just need
2327
+ # to pass in the functions for each.
2328
+ if "test_iam_permissions" not in self._stubs:
2329
+ self._stubs["test_iam_permissions"] = self._logged_channel.unary_unary(
2330
+ "/google.iam.v1.IAMPolicy/TestIamPermissions",
2331
+ request_serializer=iam_policy_pb2.TestIamPermissionsRequest.SerializeToString,
2332
+ response_deserializer=iam_policy_pb2.TestIamPermissionsResponse.FromString,
2333
+ )
2334
+ return self._stubs["test_iam_permissions"]
2335
+
2336
+
2337
+ __all__ = ("DataformGrpcAsyncIOTransport",)