Skip to content

Commit 6e6b224

Browse files
chore: use gapic-generator-python 0.65.1 (#325)
* chore: use gapic-generator-python 0.65.1 PiperOrigin-RevId: 441524537 Source-Link: googleapis/googleapis@2a27391 Source-Link: googleapis/googleapis-gen@ab6756a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWI2NzU2YTQ4Yzg5YjViY2I5ZmI3MzQ0M2NiOGU1NWQ1NzRmNDY0MyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 2c66301 commit 6e6b224

6 files changed

Lines changed: 1249 additions & 109 deletions

File tree

packages/google-cloud-bigquery-datatransfer/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/async_client.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import functools
1818
import re
19-
from typing import Dict, Optional, Sequence, Tuple, Type, Union
19+
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
2020
import pkg_resources
2121
import warnings
2222

@@ -232,7 +232,6 @@ async def get_data_source(
232232
r"""Retrieves a supported data source and returns its
233233
settings.
234234
235-
236235
.. code-block:: python
237236
238237
from google.cloud import bigquery_datatransfer_v1
@@ -341,7 +340,6 @@ async def list_data_sources(
341340
r"""Lists supported data sources and returns their
342341
settings.
343342
344-
345343
.. code-block:: python
346344
347345
from google.cloud import bigquery_datatransfer_v1
@@ -589,7 +587,6 @@ async def update_transfer_config(
589587
r"""Updates a data transfer configuration.
590588
All fields must be set, even if they are not updated.
591589
592-
593590
.. code-block:: python
594591
595592
from google.cloud import bigquery_datatransfer_v1
@@ -708,7 +705,6 @@ async def delete_transfer_config(
708705
r"""Deletes a data transfer configuration, including any
709706
associated transfer runs and logs.
710707
711-
712708
.. code-block:: python
713709
714710
from google.cloud import bigquery_datatransfer_v1
@@ -919,7 +915,6 @@ async def list_transfer_configs(
919915
r"""Returns information about all transfer configs owned
920916
by a project in the specified location.
921917
922-
923918
.. code-block:: python
924919
925920
from google.cloud import bigquery_datatransfer_v1
@@ -1045,7 +1040,6 @@ async def schedule_transfer_runs(
10451040
created per UTC time in the time range. DEPRECATED: use
10461041
StartManualTransferRuns instead.
10471042
1048-
10491043
.. code-block:: python
10501044
10511045
from google.cloud import bigquery_datatransfer_v1
@@ -1167,7 +1161,6 @@ async def start_manual_transfer_runs(
11671161
time range where the run_time is between start_time (inclusive)
11681162
and end_time (exclusive), or for a specific run_time.
11691163
1170-
11711164
.. code-block:: python
11721165
11731166
from google.cloud import bigquery_datatransfer_v1
@@ -1242,7 +1235,6 @@ async def get_transfer_run(
12421235
r"""Returns information about the particular transfer
12431236
run.
12441237
1245-
12461238
.. code-block:: python
12471239
12481240
from google.cloud import bigquery_datatransfer_v1
@@ -1446,7 +1438,6 @@ async def list_transfer_runs(
14461438
r"""Returns information about running and completed
14471439
transfer runs.
14481440
1449-
14501441
.. code-block:: python
14511442
14521443
from google.cloud import bigquery_datatransfer_v1
@@ -1689,7 +1680,6 @@ async def check_valid_creds(
16891680
r"""Returns true if valid credentials exist for the given
16901681
data source and requesting user.
16911682
1692-
16931683
.. code-block:: python
16941684
16951685
from google.cloud import bigquery_datatransfer_v1
@@ -1809,7 +1799,6 @@ async def enroll_data_sources(
18091799
https://cloud.google.com/bigquery/bigquery-web-ui and
18101800
https://cloud.google.com/bigquery/docs/working-with-transfers).
18111801
1812-
18131802
.. code-block:: python
18141803
18151804
from google.cloud import bigquery_datatransfer_v1

packages/google-cloud-bigquery-datatransfer/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/client.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import os
1818
import re
19-
from typing import Dict, Optional, Sequence, Tuple, Type, Union
19+
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
2020
import pkg_resources
2121
import warnings
2222

@@ -486,7 +486,6 @@ def get_data_source(
486486
r"""Retrieves a supported data source and returns its
487487
settings.
488488
489-
490489
.. code-block:: python
491490
492491
from google.cloud import bigquery_datatransfer_v1
@@ -585,7 +584,6 @@ def list_data_sources(
585584
r"""Lists supported data sources and returns their
586585
settings.
587586
588-
589587
.. code-block:: python
590588
591589
from google.cloud import bigquery_datatransfer_v1
@@ -823,7 +821,6 @@ def update_transfer_config(
823821
r"""Updates a data transfer configuration.
824822
All fields must be set, even if they are not updated.
825823
826-
827824
.. code-block:: python
828825
829826
from google.cloud import bigquery_datatransfer_v1
@@ -942,7 +939,6 @@ def delete_transfer_config(
942939
r"""Deletes a data transfer configuration, including any
943940
associated transfer runs and logs.
944941
945-
946942
.. code-block:: python
947943
948944
from google.cloud import bigquery_datatransfer_v1
@@ -1133,7 +1129,6 @@ def list_transfer_configs(
11331129
r"""Returns information about all transfer configs owned
11341130
by a project in the specified location.
11351131
1136-
11371132
.. code-block:: python
11381133
11391134
from google.cloud import bigquery_datatransfer_v1
@@ -1249,7 +1244,6 @@ def schedule_transfer_runs(
12491244
created per UTC time in the time range. DEPRECATED: use
12501245
StartManualTransferRuns instead.
12511246
1252-
12531247
.. code-block:: python
12541248
12551249
from google.cloud import bigquery_datatransfer_v1
@@ -1371,7 +1365,6 @@ def start_manual_transfer_runs(
13711365
time range where the run_time is between start_time (inclusive)
13721366
and end_time (exclusive), or for a specific run_time.
13731367
1374-
13751368
.. code-block:: python
13761369
13771370
from google.cloud import bigquery_datatransfer_v1
@@ -1449,7 +1442,6 @@ def get_transfer_run(
14491442
r"""Returns information about the particular transfer
14501443
run.
14511444
1452-
14531445
.. code-block:: python
14541446
14551447
from google.cloud import bigquery_datatransfer_v1
@@ -1633,7 +1625,6 @@ def list_transfer_runs(
16331625
r"""Returns information about running and completed
16341626
transfer runs.
16351627
1636-
16371628
.. code-block:: python
16381629
16391630
from google.cloud import bigquery_datatransfer_v1
@@ -1856,7 +1847,6 @@ def check_valid_creds(
18561847
r"""Returns true if valid credentials exist for the given
18571848
data source and requesting user.
18581849
1859-
18601850
.. code-block:: python
18611851
18621852
from google.cloud import bigquery_datatransfer_v1
@@ -1966,7 +1956,6 @@ def enroll_data_sources(
19661956
https://cloud.google.com/bigquery/bigquery-web-ui and
19671957
https://cloud.google.com/bigquery/docs/working-with-transfers).
19681958
1969-
19701959
.. code-block:: python
19711960
19721961
from google.cloud import bigquery_datatransfer_v1

packages/google-cloud-bigquery-datatransfer/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/transports/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def __init__(
8282
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
8383
be used for service account credentials.
8484
"""
85+
8586
# Save the hostname. Default to port 443 (HTTPS) if none is specified.
8687
if ":" not in host:
8788
host += ":443"
@@ -464,5 +465,9 @@ def enroll_data_sources(
464465
]:
465466
raise NotImplementedError()
466467

468+
@property
469+
def kind(self) -> str:
470+
raise NotImplementedError()
471+
467472

468473
__all__ = ("DataTransferServiceTransport",)

packages/google-cloud-bigquery-datatransfer/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/transports/grpc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,5 +662,9 @@ def enroll_data_sources(
662662
def close(self):
663663
self.grpc_channel.close()
664664

665+
@property
666+
def kind(self) -> str:
667+
return "grpc"
668+
665669

666670
__all__ = ("DataTransferServiceGrpcTransport",)

0 commit comments

Comments
 (0)