Skip to content
Permalink
Browse files
chore: upgrade gapic-generator-python to 0.46.3 (#155)
PiperOrigin-RevId: 373649163

Source-Link: googleapis/googleapis@7e1b14e

Source-Link: googleapis/googleapis-gen@0a3c7d2

fix: add async client to %name_%version/init.py
chore: add autogenerated snippets
chore: remove auth, policy, and options from the reserved names list
feat: support self-signed JWT flow for service accounts
chore: enable GAPIC metadata generation
chore: sort subpackages in %namespace/%name/init.py
  • Loading branch information
gcf-owl-bot committed May 22, 2021
1 parent 7375f29 commit 046c368cf5a75a210b0ecc7e6e1eee9bcd907669
Showing with 1,129 additions and 1,011 deletions.
  1. +0 −1 docs/bigquery_datatransfer_v1/data_transfer_service.rst
  2. +9 −9 google/cloud/bigquery_datatransfer/__init__.py
  3. +3 −4 google/cloud/bigquery_datatransfer_v1/__init__.py
  4. +163 −0 google/cloud/bigquery_datatransfer_v1/gapic_metadata.json
  5. +0 −1 google/cloud/bigquery_datatransfer_v1/services/__init__.py
  6. +0 −2 google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/__init__.py
  7. +36 −62 google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/async_client.py
  8. +44 −82 google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/client.py
  9. +4 −6 google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/pagers.py
  10. +0 −2 google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/transports/__init__.py
  11. +135 −73 google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/transports/base.py
  12. +16 −16 google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/transports/grpc.py
  13. +18 −17 google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/transports/grpc_asyncio.py
  14. +0 −2 google/cloud/bigquery_datatransfer_v1/types/__init__.py
  15. +77 −147 google/cloud/bigquery_datatransfer_v1/types/datatransfer.py
  16. +41 −73 google/cloud/bigquery_datatransfer_v1/types/transfer.py
  17. +9 −8 owlbot.py
  18. +15 −18 scripts/fixup_bigquery_datatransfer_v1_keywords.py
  19. +1 −0 setup.py
  20. +2 −0 testing/constraints-3.6.txt
  21. +15 −0 tests/__init__.py
  22. +15 −0 tests/unit/__init__.py
  23. +15 −0 tests/unit/gapic/__init__.py
  24. +0 −1 tests/unit/gapic/bigquery_datatransfer_v1/__init__.py
  25. +511 −487 tests/unit/gapic/bigquery_datatransfer_v1/test_data_transfer_service.py
@@ -5,7 +5,6 @@ DataTransferService
:members:
:inherited-members:


.. automodule:: google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.pagers
:members:
:inherited-members:
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,12 +14,13 @@
# limitations under the License.
#

from google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.async_client import (
DataTransferServiceAsyncClient,
)
from google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.client import (
DataTransferServiceClient,
)
from google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.async_client import (
DataTransferServiceAsyncClient,
)

from google.cloud.bigquery_datatransfer_v1.types.datatransfer import (
CheckValidCredsRequest,
)
@@ -95,16 +95,15 @@
from google.cloud.bigquery_datatransfer_v1.types.transfer import TransferType

__all__ = (
"DataTransferServiceClient",
"DataTransferServiceAsyncClient",
"CheckValidCredsRequest",
"CheckValidCredsResponse",
"CreateTransferConfigRequest",
"DataSource",
"DataSourceParameter",
"DataTransferServiceAsyncClient",
"DataTransferServiceClient",
"DeleteTransferConfigRequest",
"DeleteTransferRunRequest",
"EmailPreferences",
"GetDataSourceRequest",
"GetTransferConfigRequest",
"GetTransferRunRequest",
@@ -116,15 +115,16 @@
"ListTransferLogsResponse",
"ListTransferRunsRequest",
"ListTransferRunsResponse",
"ScheduleOptions",
"ScheduleTransferRunsRequest",
"ScheduleTransferRunsResponse",
"StartManualTransferRunsRequest",
"StartManualTransferRunsResponse",
"UpdateTransferConfigRequest",
"EmailPreferences",
"ScheduleOptions",
"TransferConfig",
"TransferMessage",
"TransferRun",
"TransferState",
"TransferType",
"UpdateTransferConfigRequest",
)
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,6 +16,7 @@

from .services.data_transfer_service import DataTransferServiceClient
from .services.data_transfer_service import DataTransferServiceAsyncClient

from .types.datatransfer import CheckValidCredsRequest
from .types.datatransfer import CheckValidCredsResponse
from .types.datatransfer import CreateTransferConfigRequest
@@ -48,13 +48,14 @@
from .types.transfer import TransferState
from .types.transfer import TransferType


__all__ = (
"DataTransferServiceAsyncClient",
"CheckValidCredsRequest",
"CheckValidCredsResponse",
"CreateTransferConfigRequest",
"DataSource",
"DataSourceParameter",
"DataTransferServiceClient",
"DeleteTransferConfigRequest",
"DeleteTransferRunRequest",
"EmailPreferences",
@@ -80,6 +81,4 @@
"TransferState",
"TransferType",
"UpdateTransferConfigRequest",
"DataTransferServiceClient",
"DataTransferServiceAsyncClient",
)
@@ -0,0 +1,163 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.bigquery_datatransfer_v1",
"protoPackage": "google.cloud.bigquery.datatransfer.v1",
"schema": "1.0",
"services": {
"DataTransferService": {
"clients": {
"grpc": {
"libraryClient": "DataTransferServiceClient",
"rpcs": {
"CheckValidCreds": {
"methods": [
"check_valid_creds"
]
},
"CreateTransferConfig": {
"methods": [
"create_transfer_config"
]
},
"DeleteTransferConfig": {
"methods": [
"delete_transfer_config"
]
},
"DeleteTransferRun": {
"methods": [
"delete_transfer_run"
]
},
"GetDataSource": {
"methods": [
"get_data_source"
]
},
"GetTransferConfig": {
"methods": [
"get_transfer_config"
]
},
"GetTransferRun": {
"methods": [
"get_transfer_run"
]
},
"ListDataSources": {
"methods": [
"list_data_sources"
]
},
"ListTransferConfigs": {
"methods": [
"list_transfer_configs"
]
},
"ListTransferLogs": {
"methods": [
"list_transfer_logs"
]
},
"ListTransferRuns": {
"methods": [
"list_transfer_runs"
]
},
"ScheduleTransferRuns": {
"methods": [
"schedule_transfer_runs"
]
},
"StartManualTransferRuns": {
"methods": [
"start_manual_transfer_runs"
]
},
"UpdateTransferConfig": {
"methods": [
"update_transfer_config"
]
}
}
},
"grpc-async": {
"libraryClient": "DataTransferServiceAsyncClient",
"rpcs": {
"CheckValidCreds": {
"methods": [
"check_valid_creds"
]
},
"CreateTransferConfig": {
"methods": [
"create_transfer_config"
]
},
"DeleteTransferConfig": {
"methods": [
"delete_transfer_config"
]
},
"DeleteTransferRun": {
"methods": [
"delete_transfer_run"
]
},
"GetDataSource": {
"methods": [
"get_data_source"
]
},
"GetTransferConfig": {
"methods": [
"get_transfer_config"
]
},
"GetTransferRun": {
"methods": [
"get_transfer_run"
]
},
"ListDataSources": {
"methods": [
"list_data_sources"
]
},
"ListTransferConfigs": {
"methods": [
"list_transfer_configs"
]
},
"ListTransferLogs": {
"methods": [
"list_transfer_logs"
]
},
"ListTransferRuns": {
"methods": [
"list_transfer_runs"
]
},
"ScheduleTransferRuns": {
"methods": [
"schedule_transfer_runs"
]
},
"StartManualTransferRuns": {
"methods": [
"start_manual_transfer_runs"
]
},
"UpdateTransferConfig": {
"methods": [
"update_transfer_config"
]
}
}
}
}
}
}
}
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .client import DataTransferServiceClient
from .async_client import DataTransferServiceAsyncClient

Loading

0 comments on commit 046c368

Please sign in to comment.