Skip to content

Commit

Permalink
fix(diregapic): [Many APIs] s/bazel/bazelisk/ in DIREGAPIC build GitH…
Browse files Browse the repository at this point in the history
…ub action (#12285)

- [ ] Regenerate this pull request now.

BEGIN_COMMIT_OVERRIDE
fix: fix ValueError in test__validate_universe_domain
END_COMMIT_OVERRIDE


PiperOrigin-RevId: 604714585

Source-Link:
googleapis/googleapis@e4dce13

Source-Link:
googleapis/googleapis-gen@4036f78
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWxpZmUtc2NpZW5jZXMvLk93bEJvdC55YW1sIiwiaCI6IjQwMzZmNzgzMDVjNWMyYWFiODBmZjkxOTYwYjNhM2Q5ODNmZjRiMDMifQ==
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1hbmFnZWQtaWRlbnRpdGllcy8uT3dsQm90LnlhbWwiLCJoIjoiNDAzNmY3ODMwNWM1YzJhYWI4MGZmOTE5NjBiM2EzZDk4M2ZmNGIwMyJ9
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1lZGlhLXRyYW5zbGF0aW9uLy5Pd2xCb3QueWFtbCIsImgiOiI0MDM2Zjc4MzA1YzVjMmFhYjgwZmY5MTk2MGIzYTNkOTgzZmY0YjAzIn0=
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1lbWNhY2hlLy5Pd2xCb3QueWFtbCIsImgiOiI0MDM2Zjc4MzA1YzVjMmFhYjgwZmY5MTk2MGIzYTNkOTgzZmY0YjAzIn0=
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1pZ3JhdGlvbmNlbnRlci8uT3dsQm90LnlhbWwiLCJoIjoiNDAzNmY3ODMwNWM1YzJhYWI4MGZmOTE5NjBiM2EzZDk4M2ZmNGIwMyJ9
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1vbml0b3Jpbm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Z2xlLWNsb3VkLXBvbGljeS10cm91Ymxlc2hvb3Rlci8uT3dsQm90LnlhbWwiLCJoIjoiNDAzNmY3ODMwNWM1YzJhYWI4MGZmOTE5NjBiM2EzZDk4M2ZmNGIwMyJ9

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com>
  • Loading branch information
4 people committed Feb 7, 2024
1 parent 2d75d0e commit 7c2f2c2
Show file tree
Hide file tree
Showing 42 changed files with 158 additions and 158 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,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 @@ -388,8 +388,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 @@ -361,8 +361,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 @@ -380,8 +380,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 @@ -348,8 +348,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 @@ -367,8 +367,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 @@ -346,8 +346,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 @@ -365,8 +365,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 @@ -346,8 +346,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 @@ -365,8 +365,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 @@ -349,8 +349,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 @@ -368,8 +368,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 @@ -334,8 +334,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 @@ -353,8 +353,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 @@ -351,8 +351,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 @@ -370,8 +370,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 @@ -317,8 +317,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 @@ -336,8 +336,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 @@ -334,8 +334,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 @@ -353,8 +353,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 @@ -362,8 +362,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 @@ -381,8 +381,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 @@ -312,8 +312,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 @@ -331,8 +331,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 @@ -353,8 +353,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 @@ -372,8 +372,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 @@ -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

0 comments on commit 7c2f2c2

Please sign in to comment.