Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2d68c3c

Browse filesBrowse files
renovate-botgcf-owl-bot[bot]leahecole
authored
chore(deps): update dependency google-cloud-bigquery to v3.11.4 (GoogleCloudPlatform#10526)
* chore(deps): update dependency google-cloud-bigquery to v3.11.4 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * add retry --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Leah Cole <coleleah@google.com>
1 parent a11062c commit 2d68c3c
Copy full SHA for 2d68c3c

File tree

Expand file treeCollapse file tree

22 files changed

+67
-61
lines changed
Filter options
Expand file treeCollapse file tree

22 files changed

+67
-61
lines changed

‎asset/snippets/quickstart_batchgeteffectiveiampolicy_test.py

Copy file name to clipboardExpand all lines: asset/snippets/quickstart_batchgeteffectiveiampolicy_test.py
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@
1616

1717
import os
1818

19+
from google.api_core import retry
20+
from google.api_core.exceptions import DeadlineExceeded
21+
1922
import quickstart_batchgeteffectiveiampolicy
2023

2124
PROJECT = os.environ["GOOGLE_CLOUD_PROJECT"]
2225

2326

27+
@retry.Retry(retry.if_exception_type(DeadlineExceeded))
2428
def test_batch_get_effective_iam_policies(capsys):
2529
scope = f"projects/{PROJECT}"
2630
resource_names = [f"//cloudresourcemanager.googleapis.com/projects/{PROJECT}"]

‎asset/snippets/requirements.txt

Copy file name to clipboardExpand all lines: asset/snippets/requirements.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ google-cloud-storage==2.9.0
22
google-cloud-asset==3.19.0
33
google-cloud-resource-manager==1.10.1
44
google-cloud-pubsub==2.17.0
5-
google-cloud-bigquery==3.11.0
5+
google-cloud-bigquery==3.11.4
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
google-cloud-bigquery==3.11.1
1+
google-cloud-bigquery==3.11.4
22
google-cloud-pubsub==2.17.1
33
pytest==7.3.2
44
mock==5.0.2

‎bigquery/bqml/requirements.txt

Copy file name to clipboardExpand all lines: bigquery/bqml/requirements.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
google-cloud-bigquery[pandas,bqstorage]==3.11.0
1+
google-cloud-bigquery[pandas,bqstorage]==3.11.4
22
google-cloud-bigquery-storage==2.19.1
33
pandas==1.3.5; python_version == '3.7'
44
pandas==2.0.1; python_version > '3.7'

‎bigquery/datalab-migration/requirements.txt

Copy file name to clipboardExpand all lines: bigquery/datalab-migration/requirements.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
grpcio==1.56.0
2-
google-cloud-bigquery[pandas,pyarrow]==3.11.0
2+
google-cloud-bigquery[pandas,pyarrow]==3.11.4
33
# datalab has outdated dependencies that require google-api-core < 2
44
# The last version of google-cloud-bigquery-storage that supports google-api-core 1.x is 2.13.2
55
google-cloud-bigquery-storage==2.19.1

‎bigquery/pandas-gbq-migration/requirements.txt

Copy file name to clipboardExpand all lines: bigquery/pandas-gbq-migration/requirements.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
google-cloud-bigquery==3.11.0
1+
google-cloud-bigquery==3.11.4
22
google-cloud-bigquery-storage==2.19.1
33
pandas==1.1.5; python_version < '3.7'
44
pandas==1.3.5; python_version == '3.7'
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
google-api-core==2.11.1
2-
google-cloud-bigquery==3.11.0
2+
google-cloud-bigquery==3.11.4
33
google-cloud-contact-center-insights==1.11.0
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
pytest==7.2.0
2-
google-cloud-bigquery==3.11.0
2+
google-cloud-bigquery==3.11.4

‎dataflow/extensible-templates/requirements-test.txt

Copy file name to clipboardExpand all lines: dataflow/extensible-templates/requirements-test.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
google-api-python-client==2.87.0
2-
google-cloud-bigquery==3.11.0
2+
google-cloud-bigquery==3.11.4
33
google-cloud-storage==2.9.0
44
pytest-xdist==3.3.0
55
pytest==7.0.1

‎dlp/snippets/deid.py

Copy file name to clipboardExpand all lines: dlp/snippets/deid.py
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def reidentify_text_with_fpe(
356356
"crypto_key": {
357357
"kms_wrapped": {"wrapped_key": wrapped_key, "crypto_key_name": key_name}
358358
},
359-
"common_alphabet": 'NUMERIC',
359+
"common_alphabet": "NUMERIC",
360360
"surrogate_info_type": surrogate_info_type,
361361
}
362362

@@ -376,9 +376,7 @@ def reidentify_text_with_fpe(
376376

377377
# Construct inspect configuration dictionary
378378
inspect_config = {
379-
"custom_info_types": [
380-
{"info_type": surrogate_info_type, "surrogate_type": {}}
381-
]
379+
"custom_info_types": [{"info_type": surrogate_info_type, "surrogate_type": {}}]
382380
}
383381

384382
# Construct the `item`.

‎dlp/snippets/deid_table.py

Copy file name to clipboardExpand all lines: dlp/snippets/deid_table.py
+34-20Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ def deidentify_table_bucketing(
510510
def deidentify_table_primitive_bucketing(
511511
project: str,
512512
) -> None:
513-
""" Uses the Data Loss Prevention API to de-identify sensitive data in
513+
"""Uses the Data Loss Prevention API to de-identify sensitive data in
514514
a table by replacing them with generalized bucket labels.
515515
Args:
516516
project: The Google Cloud project id to use as a parent resource.
@@ -547,9 +547,21 @@ def deidentify_table_primitive_bucketing(
547547

548548
# Construct generalised bucket configuration.
549549
buckets_config = [
550-
{"min_": {"integer_value": 0}, "max_": {"integer_value": 25}, "replacement_value": {"string_value": "Low"}},
551-
{"min_": {"integer_value": 25}, "max_": {"integer_value": 75}, "replacement_value": {"string_value": "Medium"}},
552-
{"min_": {"integer_value": 75}, "max_": {"integer_value": 100}, "replacement_value": {"string_value": "High"}},
550+
{
551+
"min_": {"integer_value": 0},
552+
"max_": {"integer_value": 25},
553+
"replacement_value": {"string_value": "Low"},
554+
},
555+
{
556+
"min_": {"integer_value": 25},
557+
"max_": {"integer_value": 75},
558+
"replacement_value": {"string_value": "Medium"},
559+
},
560+
{
561+
"min_": {"integer_value": 75},
562+
"max_": {"integer_value": 100},
563+
"replacement_value": {"string_value": "High"},
564+
},
553565
]
554566

555567
# Construct de-identify configuration that groups values in a table field and replace those with bucket labels.
@@ -560,18 +572,20 @@ def deidentify_table_primitive_bucketing(
560572
"fields": [{"name": "happiness_score"}],
561573
"primitive_transformation": {
562574
"bucketing_config": {"buckets": buckets_config}
563-
}
575+
},
564576
}
565577
]
566578
}
567579
}
568580

569581
# Call the API to deidentify table data through primitive bucketing.
570-
response = dlp.deidentify_content(request={
571-
"parent": parent,
572-
"deidentify_config": deidentify_config,
573-
"item": item,
574-
})
582+
response = dlp.deidentify_content(
583+
request={
584+
"parent": parent,
585+
"deidentify_config": deidentify_config,
586+
"item": item,
587+
}
588+
)
575589

576590
# Print the results.
577591
print("Table after de-identification: {}".format(response.item.table))
@@ -1097,7 +1111,7 @@ def deidentify_table_suppress_row(
10971111
crypto_hash_parser = subparsers.add_parser(
10981112
"deid_table_crypto_hash",
10991113
help="De-identify sensitive data in a table using a cryptographic "
1100-
"hash transformation.",
1114+
"hash transformation.",
11011115
)
11021116
crypto_hash_parser.add_argument(
11031117
"project",
@@ -1111,8 +1125,8 @@ def deidentify_table_suppress_row(
11111125
"--info_types",
11121126
action="append",
11131127
help="Strings representing infoTypes to look for. A full list of "
1114-
"info categories and types is available from the API. Examples "
1115-
'include "FIRST_NAME", "LAST_NAME", "EMAIL_ADDRESS". ',
1128+
"info categories and types is available from the API. Examples "
1129+
'include "FIRST_NAME", "LAST_NAME", "EMAIL_ADDRESS". ',
11161130
)
11171131
crypto_hash_parser.add_argument(
11181132
"transient_key_name",
@@ -1122,7 +1136,7 @@ def deidentify_table_suppress_row(
11221136
multiple_crypto_hash_parser = subparsers.add_parser(
11231137
"deid_table_multiple_crypto_hash",
11241138
help="De-identify sensitive data in a table using multiple transient "
1125-
"cryptographic hash keys.",
1139+
"cryptographic hash keys.",
11261140
)
11271141
multiple_crypto_hash_parser.add_argument(
11281142
"project",
@@ -1136,8 +1150,8 @@ def deidentify_table_suppress_row(
11361150
"--info_types",
11371151
action="append",
11381152
help="Strings representing infoTypes to look for. A full list of "
1139-
"info categories and types is available from the API. Examples "
1140-
'include "FIRST_NAME", "LAST_NAME", "EMAIL_ADDRESS". ',
1153+
"info categories and types is available from the API. Examples "
1154+
'include "FIRST_NAME", "LAST_NAME", "EMAIL_ADDRESS". ',
11411155
)
11421156
multiple_crypto_hash_parser.add_argument(
11431157
"transient_key_name_1",
@@ -1299,7 +1313,7 @@ def deidentify_table_suppress_row(
12991313
table_row_suppress_parser = subparsers.add_parser(
13001314
"deid_table_row_suppress",
13011315
help="De-identify sensitive data in a table by suppressing "
1302-
"entire row/s based on a condition.",
1316+
"entire row/s based on a condition.",
13031317
)
13041318
table_row_suppress_parser.add_argument(
13051319
"project",
@@ -1316,9 +1330,9 @@ def deidentify_table_suppress_row(
13161330
table_row_suppress_parser.add_argument(
13171331
"--condition_operator",
13181332
help="Operator used to compare the field or infoType to the value. "
1319-
"One of: RELATIONAL_OPERATOR_UNSPECIFIED, EQUAL_TO, NOT_EQUAL_TO, "
1320-
"GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUALS, LESS_THAN_OR_EQUALS, "
1321-
"EXISTS.",
1333+
"One of: RELATIONAL_OPERATOR_UNSPECIFIED, EQUAL_TO, NOT_EQUAL_TO, "
1334+
"GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUALS, LESS_THAN_OR_EQUALS, "
1335+
"EXISTS.",
13221336
)
13231337
table_row_suppress_parser.add_argument(
13241338
"--condition_value",

‎dlp/snippets/deid_table_test.py

Copy file name to clipboardExpand all lines: dlp/snippets/deid_table_test.py
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,14 +184,13 @@ def test_deidentify_table_bucketing(capsys: pytest.CaptureFixture) -> None:
184184

185185

186186
def test_deidentify_table_primitive_bucketing(capsys: pytest.CaptureFixture) -> None:
187-
188187
deid_table.deidentify_table_primitive_bucketing(
189188
GCLOUD_PROJECT,
190189
)
191190

192191
out, _ = capsys.readouterr()
193-
assert "string_value: \"High\"" in out
194-
assert "string_value: \"Low\"" in out
192+
assert 'string_value: "High"' in out
193+
assert 'string_value: "Low"' in out
195194

196195

197196
def test_deidentify_table_condition_replace_with_info_types(

‎dlp/snippets/deid_test.py

Copy file name to clipboardExpand all lines: dlp/snippets/deid_test.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ def test_deidentify_with_fpe_ignores_insensitive_data(
181181

182182

183183
def test_reidentify_text_with_fpe(capsys: pytest.CaptureFixture) -> None:
184-
185184
labeled_fpe_string = "My phone number is PHONE_NUMBER(10):9617256398"
186185

187186
deid.reidentify_text_with_fpe(

‎dlp/snippets/inspect_content_test.py

Copy file name to clipboardExpand all lines: dlp/snippets/inspect_content_test.py
+9-17Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -449,14 +449,13 @@ def test_inspect_gcs_file(
449449
dlp_client: MagicMock,
450450
capsys: pytest.CaptureFixture,
451451
) -> None:
452-
453452
# Mock DLP client and subscriber client along with their behavior
454453
mock_dlp_instance = dlp_client.return_value
455454
mock_subscriber_instance = subscriber_client.return_value
456455
mock_job_and_subscriber(
457456
mock_dlp_instance,
458457
mock_subscriber_instance,
459-
f'projects/{GCLOUD_PROJECT}/dlpJobs/test_job',
458+
f"projects/{GCLOUD_PROJECT}/dlpJobs/test_job",
460459
"EMAIL_ADDRESS",
461460
1,
462461
)
@@ -487,14 +486,13 @@ def test_inspect_gcs_file_with_custom_info_types(
487486
dlp_client: MagicMock,
488487
capsys: pytest.CaptureFixture,
489488
) -> None:
490-
491489
# Mock DLP client and subscriber client along with their behavior
492490
mock_dlp_instance = dlp_client.return_value
493491
mock_subscriber_instance = subscriber_client.return_value
494492
mock_job_and_subscriber(
495493
mock_dlp_instance,
496494
mock_subscriber_instance,
497-
f'projects/{GCLOUD_PROJECT}/dlpJobs/test_job',
495+
f"projects/{GCLOUD_PROJECT}/dlpJobs/test_job",
498496
"EMAIL_ADDRESS",
499497
1,
500498
)
@@ -531,14 +529,13 @@ def test_inspect_gcs_file_no_results(
531529
dlp_client: MagicMock,
532530
capsys: pytest.CaptureFixture,
533531
) -> None:
534-
535532
# Mock DLP client and subscriber client along with their behavior
536533
mock_dlp_instance = dlp_client.return_value
537534
mock_subscriber_instance = subscriber_client.return_value
538535
mock_job_and_subscriber(
539536
mock_dlp_instance,
540537
mock_subscriber_instance,
541-
f'projects/{GCLOUD_PROJECT}/dlpJobs/test_job',
538+
f"projects/{GCLOUD_PROJECT}/dlpJobs/test_job",
542539
)
543540

544541
inspect_content.inspect_gcs_file(
@@ -567,14 +564,13 @@ def test_inspect_gcs_image_file(
567564
dlp_client: MagicMock,
568565
capsys: pytest.CaptureFixture,
569566
) -> None:
570-
571567
# Mock DLP client and subscriber client along with their behavior
572568
mock_dlp_instance = dlp_client.return_value
573569
mock_subscriber_instance = subscriber_client.return_value
574570
mock_job_and_subscriber(
575571
mock_dlp_instance,
576572
mock_subscriber_instance,
577-
f'projects/{GCLOUD_PROJECT}/dlpJobs/test_job',
573+
f"projects/{GCLOUD_PROJECT}/dlpJobs/test_job",
578574
"EMAIL_ADDRESS",
579575
1,
580576
)
@@ -604,14 +600,13 @@ def test_inspect_gcs_multiple_files(
604600
dlp_client: MagicMock,
605601
capsys: pytest.CaptureFixture,
606602
) -> None:
607-
608603
# Mock DLP client and subscriber client along with their behavior
609604
mock_dlp_instance = dlp_client.return_value
610605
mock_subscriber_instance = subscriber_client.return_value
611606
mock_job_and_subscriber(
612607
mock_dlp_instance,
613608
mock_subscriber_instance,
614-
f'projects/{GCLOUD_PROJECT}/dlpJobs/test_job',
609+
f"projects/{GCLOUD_PROJECT}/dlpJobs/test_job",
615610
"EMAIL_ADDRESS",
616611
random.randint(0, 1000),
617612
)
@@ -642,14 +637,13 @@ def test_inspect_gcs_with_sampling(
642637
dlp_client: MagicMock,
643638
capsys: pytest.CaptureFixture,
644639
) -> None:
645-
646640
# Mock DLP client and subscriber client along with their behavior
647641
mock_dlp_instance = dlp_client.return_value
648642
mock_subscriber_instance = subscriber_client.return_value
649643
mock_job_and_subscriber(
650644
mock_dlp_instance,
651645
mock_subscriber_instance,
652-
f'projects/{GCLOUD_PROJECT}/dlpJobs/test_job',
646+
f"projects/{GCLOUD_PROJECT}/dlpJobs/test_job",
653647
"EMAIL_ADDRESS",
654648
random.randint(0, 1000),
655649
)
@@ -686,7 +680,7 @@ def test_inspect_datastore(
686680
mock_job_and_subscriber(
687681
mock_dlp_instance,
688682
mock_subscriber_instance,
689-
f'projects/{GCLOUD_PROJECT}/dlpJobs/test_job',
683+
f"projects/{GCLOUD_PROJECT}/dlpJobs/test_job",
690684
"EMAIL_ADDRESS",
691685
random.randint(0, 1000),
692686
)
@@ -746,14 +740,13 @@ def test_inspect_bigquery(
746740
dlp_client: MagicMock,
747741
capsys: pytest.CaptureFixture,
748742
) -> None:
749-
750743
# Mock DLP client and subscriber client along with their behavior
751744
mock_dlp_instance = dlp_client.return_value
752745
mock_subscriber_instance = subscriber_client.return_value
753746
mock_job_and_subscriber(
754747
mock_dlp_instance,
755748
mock_subscriber_instance,
756-
f'projects/{GCLOUD_PROJECT}/dlpJobs/test_job',
749+
f"projects/{GCLOUD_PROJECT}/dlpJobs/test_job",
757750
"EMAIL_ADDRESS",
758751
random.randint(0, 1000),
759752
)
@@ -786,14 +779,13 @@ def test_inspect_bigquery_with_sampling(
786779
dlp_client: MagicMock,
787780
capsys: pytest.CaptureFixture,
788781
) -> None:
789-
790782
# Mock DLP client and subscriber client along with their behavior
791783
mock_dlp_instance = dlp_client.return_value
792784
mock_subscriber_instance = subscriber_client.return_value
793785
mock_job_and_subscriber(
794786
mock_dlp_instance,
795787
mock_subscriber_instance,
796-
f'projects/{GCLOUD_PROJECT}/dlpJobs/test_job',
788+
f"projects/{GCLOUD_PROJECT}/dlpJobs/test_job",
797789
"PERSON_NAME",
798790
random.randint(0, 1000),
799791
)

‎dlp/snippets/requirements.txt

Copy file name to clipboardExpand all lines: dlp/snippets/requirements.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ google-cloud-dlp==3.12.1
22
google-cloud-storage==2.9.0
33
google-cloud-pubsub==2.17.0
44
google-cloud-datastore==2.15.2
5-
google-cloud-bigquery==3.11.0
5+
google-cloud-bigquery==3.11.4
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Flask==2.2.2
22
functions-framework==3.3.0
3-
google-cloud-bigquery==3.11.0
3+
google-cloud-bigquery==3.11.4
44
pytest==7.2.1

‎notebooks/requirements.txt

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
google-cloud-storage==2.9.0
2-
google-cloud-bigquery[pandas,pyarrow]==3.11.0
2+
google-cloud-bigquery[pandas,pyarrow]==3.11.4
33
matplotlib==3.7.1

‎people-and-planet-ai/image-classification/requirements.txt

Copy file name to clipboardExpand all lines: people-and-planet-ai/image-classification/requirements.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ pillow==9.5.0; python_version < '3.8'
22
pillow==10.0.0; python_version >= '3.8'
33
apache-beam[gcp]==2.46.0
44
google-cloud-aiplatform==1.25.0
5-
google-cloud-bigquery==3.11.0 # Indirect dependency, but there is a version conflict that causes pip to hang unless we constraint this.
5+
google-cloud-bigquery==3.11.4 # Indirect dependency, but there is a version conflict that causes pip to hang unless we constraint this.
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
google==3.0.0
22
google-cloud-retail==1.16.1
33
google-cloud-storage==2.9.0
4-
google-cloud-bigquery==3.11.0
4+
google-cloud-bigquery==3.11.4

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.