Skip to content

Commit

Permalink
fix: [Many APIs] fix ValueError in test__validate_universe_domain (
Browse files Browse the repository at this point in the history
…#12283)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 604699565

Source-Link: https://togithub.com/googleapis/googleapis/commit/cd3eabf5968bbc91685e2eae8efb099e4d55bb5c

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/01f69ba7a13d59e6f45e243359b91a6e896221f8
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRvY3VtZW50YWkvLk93bEJvdC55YW1sIiwiaCI6IjAxZjY5YmE3YTEzZDU5ZTZmNDVlMjQzMzU5YjkxYTZlODk2MjIxZjgifQ==
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRvbWFpbnMvLk93bEJvdC55YW1sIiwiaCI6IjAxZjY5YmE3YTEzZDU5ZTZmNDVlMjQzMzU5YjkxYTZlODk2MjIxZjgifQ==
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWVkZ2Vjb250YWluZXIvLk93bEJvdC55YW1sIiwiaCI6IjAxZjY5YmE3YTEzZDU5ZTZmNDVlMjQzMzU5YjkxYTZlODk2MjIxZjgifQ==
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWVkZ2VuZXR3b3JrLy5Pd2xCb3QueWFtbCIsImgiOiIwMWY2OWJhN2ExM2Q1OWU2ZjQ1ZTI0MzM1OWI5MWE2ZTg5NjIyMWY4In0=
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWVudGVycHJpc2Vrbm93bGVkZ2VncmFwaC8uT3dsQm90LnlhbWwiLCJoIjoiMDFmNjliYTdhMTNkNTllNmY0NWUyNDMzNTliOTFhNmU4OTYyMjFmOCJ9
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWVzc2VudGlhbC1jb250YWN0cy8uT3dsQm90LnlhbWwiLC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EzZDU5ZTZmNDVlMjQzMzU5YjkxYTZlODk2MjIxZjgifQ==
  • Loading branch information
gcf-owl-bot[bot] committed Feb 7, 2024
1 parent 38daeac commit f20b41a
Show file tree
Hide file tree
Showing 24 changed files with 85 additions and 84 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,10 @@ class ListDocumentsRequest(proto.Message):
https://google.aip.dev/160.
Currently support query strings are:
------------------------------------
``SplitType=DATASET_SPLIT_TEST|DATASET_SPLIT_TRAIN|DATASET_SPLIT_UNASSIGNED``
- ``SplitType=DATASET_SPLIT_TEST|DATASET_SPLIT_TRAIN|DATASET_SPLIT_UNASSIGNED``
- ``LabelingState=DOCUMENT_LABELED|DOCUMENT_UNLABELED|DOCUMENT_AUTO_LABELED``
- ``DisplayName=\"file_name.pdf\"``
- ``EntityType=abc/def``
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
# TODO: This is needed to cater for older versions of google-auth
# Make this test unconditional once the minimum supported version of
# google-auth becomes 2.23.0 or higher.
google_auth_major, google_auth_minor, _ = [
int(part) for part in google.auth.__version__.split(".")
google_auth_major, google_auth_minor = [
int(part) for part in google.auth.__version__.split(".")[0:2]
]
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
credentials = ga_credentials.AnonymousCredentials()
Expand All @@ -412,8 +412,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
#
# TODO: Make this test unconditional once the minimum supported version of
# google-api-core becomes 2.15.0 or higher.
api_core_major, api_core_minor, _ = [
int(part) for part in api_core_version.__version__.split(".")
api_core_major, api_core_minor = [
int(part) for part in api_core_version.__version__.split(".")[0:2]
]
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
client = client_class(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
# TODO: This is needed to cater for older versions of google-auth
# Make this test unconditional once the minimum supported version of
# google-auth becomes 2.23.0 or higher.
google_auth_major, google_auth_minor, _ = [
int(part) for part in google.auth.__version__.split(".")
google_auth_major, google_auth_minor = [
int(part) for part in google.auth.__version__.split(".")[0:2]
]
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
credentials = ga_credentials.AnonymousCredentials()
Expand All @@ -392,8 +392,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
#
# TODO: Make this test unconditional once the minimum supported version of
# google-api-core becomes 2.15.0 or higher.
api_core_major, api_core_minor, _ = [
int(part) for part in api_core_version.__version__.split(".")
api_core_major, api_core_minor = [
int(part) for part in api_core_version.__version__.split(".")[0:2]
]
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
client = client_class(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
# TODO: This is needed to cater for older versions of google-auth
# Make this test unconditional once the minimum supported version of
# google-auth becomes 2.23.0 or higher.
google_auth_major, google_auth_minor, _ = [
int(part) for part in google.auth.__version__.split(".")
google_auth_major, google_auth_minor = [
int(part) for part in google.auth.__version__.split(".")[0:2]
]
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
credentials = ga_credentials.AnonymousCredentials()
Expand All @@ -412,8 +412,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
#
# TODO: Make this test unconditional once the minimum supported version of
# google-api-core becomes 2.15.0 or higher.
api_core_major, api_core_minor, _ = [
int(part) for part in api_core_version.__version__.split(".")
api_core_major, api_core_minor = [
int(part) for part in api_core_version.__version__.split(".")[0:2]
]
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
client = client_class(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
# TODO: This is needed to cater for older versions of google-auth
# Make this test unconditional once the minimum supported version of
# google-auth becomes 2.23.0 or higher.
google_auth_major, google_auth_minor, _ = [
int(part) for part in google.auth.__version__.split(".")
google_auth_major, google_auth_minor = [
int(part) for part in google.auth.__version__.split(".")[0:2]
]
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
credentials = ga_credentials.AnonymousCredentials()
Expand All @@ -371,8 +371,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
#
# TODO: Make this test unconditional once the minimum supported version of
# google-api-core becomes 2.15.0 or higher.
api_core_major, api_core_minor, _ = [
int(part) for part in api_core_version.__version__.split(".")
api_core_major, api_core_minor = [
int(part) for part in api_core_version.__version__.split(".")[0:2]
]
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
client = client_class(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
# TODO: This is needed to cater for older versions of google-auth
# Make this test unconditional once the minimum supported version of
# google-auth becomes 2.23.0 or higher.
google_auth_major, google_auth_minor, _ = [
int(part) for part in google.auth.__version__.split(".")
google_auth_major, google_auth_minor = [
int(part) for part in google.auth.__version__.split(".")[0:2]
]
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
credentials = ga_credentials.AnonymousCredentials()
Expand All @@ -332,8 +332,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
#
# TODO: Make this test unconditional once the minimum supported version of
# google-api-core becomes 2.15.0 or higher.
api_core_major, api_core_minor, _ = [
int(part) for part in api_core_version.__version__.split(".")
api_core_major, api_core_minor = [
int(part) for part in api_core_version.__version__.split(".")[0:2]
]
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
client = client_class(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
# TODO: This is needed to cater for older versions of google-auth
# Make this test unconditional once the minimum supported version of
# google-auth becomes 2.23.0 or higher.
google_auth_major, google_auth_minor, _ = [
int(part) for part in google.auth.__version__.split(".")
google_auth_major, google_auth_minor = [
int(part) for part in google.auth.__version__.split(".")[0:2]
]
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
credentials = ga_credentials.AnonymousCredentials()
Expand All @@ -332,8 +332,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
#
# TODO: Make this test unconditional once the minimum supported version of
# google-api-core becomes 2.15.0 or higher.
api_core_major, api_core_minor, _ = [
int(part) for part in api_core_version.__version__.split(".")
api_core_major, api_core_minor = [
int(part) for part in api_core_version.__version__.split(".")[0:2]
]
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
client = client_class(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
# TODO: This is needed to cater for older versions of google-auth
# Make this test unconditional once the minimum supported version of
# google-auth becomes 2.23.0 or higher.
google_auth_major, google_auth_minor, _ = [
int(part) for part in google.auth.__version__.split(".")
google_auth_major, google_auth_minor = [
int(part) for part in google.auth.__version__.split(".")[0:2]
]
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
credentials = ga_credentials.AnonymousCredentials()
Expand All @@ -364,8 +364,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
#
# TODO: Make this test unconditional once the minimum supported version of
# google-api-core becomes 2.15.0 or higher.
api_core_major, api_core_minor, _ = [
int(part) for part in api_core_version.__version__.split(".")
api_core_major, api_core_minor = [
int(part) for part in api_core_version.__version__.split(".")[0:2]
]
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
client = client_class(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ class BgpPeerStatus(proto.Message):
Time this session has been up.
Format:
14 years, 51 weeks, 6 days, 23 hours, 59
14 years, 51 weeks, 6 days, 23 hours, 59
minutes, 59 seconds
uptime_seconds (int):
Time this session has been up, in seconds.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
# TODO: This is needed to cater for older versions of google-auth
# Make this test unconditional once the minimum supported version of
# google-auth becomes 2.23.0 or higher.
google_auth_major, google_auth_minor, _ = [
int(part) for part in google.auth.__version__.split(".")
google_auth_major, google_auth_minor = [
int(part) for part in google.auth.__version__.split(".")[0:2]
]
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
credentials = ga_credentials.AnonymousCredentials()
Expand All @@ -347,8 +347,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
#
# TODO: Make this test unconditional once the minimum supported version of
# google-api-core becomes 2.15.0 or higher.
api_core_major, api_core_minor, _ = [
int(part) for part in api_core_version.__version__.split(".")
api_core_major, api_core_minor = [
int(part) for part in api_core_version.__version__.split(".")[0:2]
]
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
client = client_class(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ class Options(proto.Message):
- schema.org/addressLocality
- schema.org/addressRegion
- schema.org/addressCountry

Warning: processing will no longer be
regionalized!
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
# TODO: This is needed to cater for older versions of google-auth
# Make this test unconditional once the minimum supported version of
# google-auth becomes 2.23.0 or higher.
google_auth_major, google_auth_minor, _ = [
int(part) for part in google.auth.__version__.split(".")
google_auth_major, google_auth_minor = [
int(part) for part in google.auth.__version__.split(".")[0:2]
]
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
credentials = ga_credentials.AnonymousCredentials()
Expand All @@ -402,8 +402,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
#
# TODO: Make this test unconditional once the minimum supported version of
# google-api-core becomes 2.15.0 or higher.
api_core_major, api_core_minor, _ = [
int(part) for part in api_core_version.__version__.split(".")
api_core_major, api_core_minor = [
int(part) for part in api_core_version.__version__.split(".")[0:2]
]
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
client = client_class(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
# TODO: This is needed to cater for older versions of google-auth
# Make this test unconditional once the minimum supported version of
# google-auth becomes 2.23.0 or higher.
google_auth_major, google_auth_minor, _ = [
int(part) for part in google.auth.__version__.split(".")
google_auth_major, google_auth_minor = [
int(part) for part in google.auth.__version__.split(".")[0:2]
]
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
credentials = ga_credentials.AnonymousCredentials()
Expand All @@ -379,8 +379,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
#
# TODO: Make this test unconditional once the minimum supported version of
# google-api-core becomes 2.15.0 or higher.
api_core_major, api_core_minor, _ = [
int(part) for part in api_core_version.__version__.split(".")
api_core_major, api_core_minor = [
int(part) for part in api_core_version.__version__.split(".")[0:2]
]
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
client = client_class(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
# TODO: This is needed to cater for older versions of google-auth
# Make this test unconditional once the minimum supported version of
# google-auth becomes 2.23.0 or higher.
google_auth_major, google_auth_minor, _ = [
int(part) for part in google.auth.__version__.split(".")
google_auth_major, google_auth_minor = [
int(part) for part in google.auth.__version__.split(".")[0:2]
]
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
credentials = ga_credentials.AnonymousCredentials()
Expand All @@ -327,8 +327,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
#
# TODO: Make this test unconditional once the minimum supported version of
# google-api-core becomes 2.15.0 or higher.
api_core_major, api_core_minor, _ = [
int(part) for part in api_core_version.__version__.split(".")
api_core_major, api_core_minor = [
int(part) for part in api_core_version.__version__.split(".")[0:2]
]
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
client = client_class(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
# TODO: This is needed to cater for older versions of google-auth
# Make this test unconditional once the minimum supported version of
# google-auth becomes 2.23.0 or higher.
google_auth_major, google_auth_minor, _ = [
int(part) for part in google.auth.__version__.split(".")
google_auth_major, google_auth_minor = [
int(part) for part in google.auth.__version__.split(".")[0:2]
]
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
credentials = ga_credentials.AnonymousCredentials()
Expand All @@ -351,8 +351,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
#
# TODO: Make this test unconditional once the minimum supported version of
# google-api-core becomes 2.15.0 or higher.
api_core_major, api_core_minor, _ = [
int(part) for part in api_core_version.__version__.split(".")
api_core_major, api_core_minor = [
int(part) for part in api_core_version.__version__.split(".")[0:2]
]
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
client = client_class(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
# TODO: This is needed to cater for older versions of google-auth
# Make this test unconditional once the minimum supported version of
# google-auth becomes 2.23.0 or higher.
google_auth_major, google_auth_minor, _ = [
int(part) for part in google.auth.__version__.split(".")
google_auth_major, google_auth_minor = [
int(part) for part in google.auth.__version__.split(".")[0:2]
]
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
credentials = ga_credentials.AnonymousCredentials()
Expand All @@ -393,8 +393,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
#
# TODO: Make this test unconditional once the minimum supported version of
# google-api-core becomes 2.15.0 or higher.
api_core_major, api_core_minor, _ = [
int(part) for part in api_core_version.__version__.split(".")
api_core_major, api_core_minor = [
int(part) for part in api_core_version.__version__.split(".")[0:2]
]
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
client = client_class(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
# TODO: This is needed to cater for older versions of google-auth
# Make this test unconditional once the minimum supported version of
# google-auth becomes 2.23.0 or higher.
google_auth_major, google_auth_minor, _ = [
int(part) for part in google.auth.__version__.split(".")
google_auth_major, google_auth_minor = [
int(part) for part in google.auth.__version__.split(".")[0:2]
]
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
credentials = ga_credentials.AnonymousCredentials()
Expand All @@ -396,8 +396,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
#
# TODO: Make this test unconditional once the minimum supported version of
# google-api-core becomes 2.15.0 or higher.
api_core_major, api_core_minor, _ = [
int(part) for part in api_core_version.__version__.split(".")
api_core_major, api_core_minor = [
int(part) for part in api_core_version.__version__.split(".")[0:2]
]
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
client = client_class(
Expand Down

0 comments on commit f20b41a

Please sign in to comment.