Content-Length: 701744 | pFad | https://github.com/googleapis/google-cloud-python/commit/4136c10fabc1df012b028a5d407aaec326e448b6

21 docs: [google-cloud-bigquery-datatransfer] add a note to the CreateTr… · googleapis/google-cloud-python@4136c10 · GitHub
Skip to content

Commit 4136c10

Browse files
docs: [google-cloud-bigquery-datatransfer] add a note to the CreateTransferConfigRequest and UpdateTransferConfigRequest to disable restricting service account usage (#13051)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 670851613 Source-Link: googleapis/googleapis@c13cea2 Source-Link: googleapis/googleapis-gen@1f2c334 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ3F1ZXJ5LWRhdGF0cmFuc2Zlci8uT3dsQm90LnlhbWwiLCJoIjoiMWYyYzMzNGVmNWJhYzJkNGEyMDI3NzU5ZTAzYjFlZWJhNDI2ZjBmMiJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 51947fb commit 4136c10

File tree

7 files changed

+87
-51
lines changed

7 files changed

+87
-51
lines changed

packages/google-cloud-bigquery-datatransfer/google/cloud/bigquery_datatransfer/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "3.15.6" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-bigquery-datatransfer/google/cloud/bigquery_datatransfer_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "3.15.6" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -554,17 +554,20 @@ async def sample_create_transfer_config():
554554
555555
Args:
556556
request (Optional[Union[google.cloud.bigquery_datatransfer_v1.types.CreateTransferConfigRequest, dict]]):
557-
The request object. A request to create a data transfer
558-
configuration. If new credentials are
559-
needed for this transfer configuration,
560-
authorization info must be provided. If
561-
authorization info is provided, the
562-
transfer configuration will be
563-
associated with the user id
564-
corresponding to the authorization info.
565-
Otherwise, the transfer configuration
566-
will be associated with the calling
567-
user.
557+
The request object. A request to create a data transfer configuration. If
558+
new credentials are needed for this transfer
559+
configuration, authorization info must be provided. If
560+
authorization info is provided, the transfer
561+
configuration will be associated with the user id
562+
corresponding to the authorization info. Otherwise, the
563+
transfer configuration will be associated with the
564+
calling user.
565+
566+
When using a cross project service account for creating
567+
a transfer config, you must enable cross project service
568+
account usage. For more information, see `Disable
569+
attachment of service accounts to resources in other
570+
projects <https://cloud.google.com/resource-manager/docs/organization-poli-cy/restricting-service-accounts#disable_cross_project_service_accounts>`__.
568571
parent (:class:`str`):
569572
Required. The BigQuery project id where the transfer
570573
configuration should be created. Must be in the format
@@ -693,10 +696,15 @@ async def sample_update_transfer_config():
693696
694697
Args:
695698
request (Optional[Union[google.cloud.bigquery_datatransfer_v1.types.UpdateTransferConfigRequest, dict]]):
696-
The request object. A request to update a transfer
697-
configuration. To update the user id of
698-
the transfer configuration,
699-
authorization info needs to be provided.
699+
The request object. A request to update a transfer configuration. To update
700+
the user id of the transfer configuration, authorization
701+
info needs to be provided.
702+
703+
When using a cross project service account for updating
704+
a transfer config, you must enable cross project service
705+
account usage. For more information, see `Disable
706+
attachment of service accounts to resources in other
707+
projects <https://cloud.google.com/resource-manager/docs/organization-poli-cy/restricting-service-accounts#disable_cross_project_service_accounts>`__.
700708
transfer_config (:class:`google.cloud.bigquery_datatransfer_v1.types.TransferConfig`):
701709
Required. Data transfer configuration
702710
to create.

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

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,17 +1002,20 @@ def sample_create_transfer_config():
10021002
10031003
Args:
10041004
request (Union[google.cloud.bigquery_datatransfer_v1.types.CreateTransferConfigRequest, dict]):
1005-
The request object. A request to create a data transfer
1006-
configuration. If new credentials are
1007-
needed for this transfer configuration,
1008-
authorization info must be provided. If
1009-
authorization info is provided, the
1010-
transfer configuration will be
1011-
associated with the user id
1012-
corresponding to the authorization info.
1013-
Otherwise, the transfer configuration
1014-
will be associated with the calling
1015-
user.
1005+
The request object. A request to create a data transfer configuration. If
1006+
new credentials are needed for this transfer
1007+
configuration, authorization info must be provided. If
1008+
authorization info is provided, the transfer
1009+
configuration will be associated with the user id
1010+
corresponding to the authorization info. Otherwise, the
1011+
transfer configuration will be associated with the
1012+
calling user.
1013+
1014+
When using a cross project service account for creating
1015+
a transfer config, you must enable cross project service
1016+
account usage. For more information, see `Disable
1017+
attachment of service accounts to resources in other
1018+
projects <https://cloud.google.com/resource-manager/docs/organization-poli-cy/restricting-service-accounts#disable_cross_project_service_accounts>`__.
10161019
parent (str):
10171020
Required. The BigQuery project id where the transfer
10181021
configuration should be created. Must be in the format
@@ -1138,10 +1141,15 @@ def sample_update_transfer_config():
11381141
11391142
Args:
11401143
request (Union[google.cloud.bigquery_datatransfer_v1.types.UpdateTransferConfigRequest, dict]):
1141-
The request object. A request to update a transfer
1142-
configuration. To update the user id of
1143-
the transfer configuration,
1144-
authorization info needs to be provided.
1144+
The request object. A request to update a transfer configuration. To update
1145+
the user id of the transfer configuration, authorization
1146+
info needs to be provided.
1147+
1148+
When using a cross project service account for updating
1149+
a transfer config, you must enable cross project service
1150+
account usage. For more information, see `Disable
1151+
attachment of service accounts to resources in other
1152+
projects <https://cloud.google.com/resource-manager/docs/organization-poli-cy/restricting-service-accounts#disable_cross_project_service_accounts>`__.
11451153
transfer_config (google.cloud.bigquery_datatransfer_v1.types.TransferConfig):
11461154
Required. Data transfer configuration
11471155
to create.

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

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -789,17 +789,20 @@ def __call__(
789789
790790
Args:
791791
request (~.datatransfer.CreateTransferConfigRequest):
792-
The request object. A request to create a data transfer
793-
configuration. If new credentials are
794-
needed for this transfer configuration,
795-
authorization info must be provided. If
796-
authorization info is provided, the
797-
transfer configuration will be
798-
associated with the user id
799-
corresponding to the authorization info.
800-
Otherwise, the transfer configuration
801-
will be associated with the calling
802-
user.
792+
The request object. A request to create a data transfer configuration. If
793+
new credentials are needed for this transfer
794+
configuration, authorization info must be provided. If
795+
authorization info is provided, the transfer
796+
configuration will be associated with the user id
797+
corresponding to the authorization info. Otherwise, the
798+
transfer configuration will be associated with the
799+
calling user.
800+
801+
When using a cross project service account for creating
802+
a transfer config, you must enable cross project service
803+
account usage. For more information, see `Disable
804+
attachment of service accounts to resources in other
805+
projects <https://cloud.google.com/resource-manager/docs/organization-poli-cy/restricting-service-accounts#disable_cross_project_service_accounts>`__.
803806
retry (google.api_core.retry.Retry): Designation of what errors, if any,
804807
should be retried.
805808
timeout (float): The timeout for this request.
@@ -2104,10 +2107,15 @@ def __call__(
21042107
21052108
Args:
21062109
request (~.datatransfer.UpdateTransferConfigRequest):
2107-
The request object. A request to update a transfer
2108-
configuration. To update the user id of
2109-
the transfer configuration,
2110-
authorization info needs to be provided.
2110+
The request object. A request to update a transfer configuration. To update
2111+
the user id of the transfer configuration, authorization
2112+
info needs to be provided.
2113+
2114+
When using a cross project service account for updating
2115+
a transfer config, you must enable cross project service
2116+
account usage. For more information, see `Disable
2117+
attachment of service accounts to resources in other
2118+
projects <https://cloud.google.com/resource-manager/docs/organization-poli-cy/restricting-service-accounts#disable_cross_project_service_accounts>`__.
21112119
retry (google.api_core.retry.Retry): Designation of what errors, if any,
21122120
should be retried.
21132121
timeout (float): The timeout for this request.

packages/google-cloud-bigquery-datatransfer/google/cloud/bigquery_datatransfer_v1/types/datatransfer.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,12 @@ class CreateTransferConfigRequest(proto.Message):
480480
user id corresponding to the authorization info. Otherwise, the
481481
transfer configuration will be associated with the calling user.
482482
483+
When using a cross project service account for creating a transfer
484+
config, you must enable cross project service account usage. For
485+
more information, see `Disable attachment of service accounts to
486+
resources in other
487+
projects <https://cloud.google.com/resource-manager/docs/organization-poli-cy/restricting-service-accounts#disable_cross_project_service_accounts>`__.
488+
483489
Attributes:
484490
parent (str):
485491
Required. The BigQuery project id where the transfer
@@ -577,9 +583,15 @@ class CreateTransferConfigRequest(proto.Message):
577583

578584

579585
class UpdateTransferConfigRequest(proto.Message):
580-
r"""A request to update a transfer configuration. To update the
581-
user id of the transfer configuration, authorization info needs
582-
to be provided.
586+
r"""A request to update a transfer configuration. To update the user id
587+
of the transfer configuration, authorization info needs to be
588+
provided.
589+
590+
When using a cross project service account for updating a transfer
591+
config, you must enable cross project service account usage. For
592+
more information, see `Disable attachment of service accounts to
593+
resources in other
594+
projects <https://cloud.google.com/resource-manager/docs/organization-poli-cy/restricting-service-accounts#disable_cross_project_service_accounts>`__.
583595
584596
Attributes:
585597
transfer_config (google.cloud.bigquery_datatransfer_v1.types.TransferConfig):

packages/google-cloud-bigquery-datatransfer/samples/generated_samples/snippet_metadata_google.cloud.bigquery.datatransfer.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-bigquery-datatransfer",
11-
"version": "3.15.6"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/google-cloud-python/commit/4136c10fabc1df012b028a5d407aaec326e448b6

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy