Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit8465244

Browse files
fix: [Many APIs] Resolve AttributeError 'Credentials' object has no attribute 'universe_domain' (#12261)
- [ ] Regenerate this pull request now.BEGIN_COMMIT_OVERRIDEfix: Resolve AttributeError 'Credentials' object has no attribute'universe_domain'fix: Add google-auth as a direct dependencyfix: Add staticmethod decorator to _get_client_cert_source and_get_api_endpointEND_COMMIT_OVERRIDEchore: Update gapic-generator-python to v1.14.1PiperOrigin-RevId: 603728206Source-Link:googleapis/googleapis@9063da8Source-Link:googleapis/googleapis-gen@891c67dCopy-Tag:eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhcmUtbWV0YWwtc29sdXRpb24vLk93bEJvdC55YW1sIiwiaCI6Ijg5MWM2N2QwYTg1NWIwODA4NWViMzAxZGFiYjE0MDY0ZWY0YjJjNmQifQ==Copy-Tag:eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhdGNoLy5Pd2xCb3QueWFtbCIsImgiOiI4OTFjNjdkMGE4NTViMDgwODVlYjMwMWRhYmIxNDA2NGVmNGIyYzZkIn0=Copy-Tag:eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJleW9uZGNvcnAtYXBwY29ubmVjdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6Ijg5MWM2N2QwYTg1NWIwODA4NWViMzAxZGFiYjE0MDY0ZWY0YjJjNmQifQ==Copy-Tag:eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJleW9uZGNvcnAtYXBwY29ubmVjdG9ycy8uT3dsQm90LnlhbWwiLCJoIjoiODkxYzY3ZDBhODU1YjA4MDg1ZWIzMDFkYWJiMTQwNjRlZjRiMmM2ZCJ9Copy-Tag:eyJwIjoicGFja2FnZXMvZ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VkLWJpbGxpbmcvLk93bEJvdC55YW1sIiwiaCI6Ijg5MWM2N2QwYTg1NWIwODA4NWViMzAxZGFiYjE0MDY0ZWY0YjJjNmQifQ==Copy-Tag:eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpbmFyeS1hdXRob3JpemF0aW9uLy5Pd2xCb3QueWFtbCIsImgiOiI4OTFjNjdkMGE4NTViMDgwODVlYjMwMWRhYmIxNDA2NGVmNGIyYzZkIn0=Copy-Tag:eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJ1aWxkLy5Pd2xCb3QueWFtbCIsImgiOiI4OTFjNjdkMGE4NTViMDgwODVlYjMwMWRhYmIxNDA2NGVmNGIyYzZkIn0=---------Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parente75fcf6 commit8465244

File tree

176 files changed

+8694
-8896
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+8694
-8896
lines changed

‎packages/google-cloud-bare-metal-solution/google/cloud/bare_metal_solution/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__="1.7.0"# {x-release-please-version}
16+
__version__="0.0.0"# {x-release-please-version}

‎packages/google-cloud-bare-metal-solution/google/cloud/bare_metal_solution_v2/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__="1.7.0"# {x-release-please-version}
16+
__version__="0.0.0"# {x-release-please-version}

‎packages/google-cloud-bare-metal-solution/google/cloud/bare_metal_solution_v2/services/bare_metal_solution/client.py‎

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,7 @@ def _read_environment_variables():
751751
)
752752
returnuse_client_cert=="true",use_mtls_endpoint,universe_domain_env
753753

754+
@staticmethod
754755
def_get_client_cert_source(provided_cert_source,use_cert_flag):
755756
"""Return the client cert source to be used by the client.
756757
@@ -769,6 +770,7 @@ def _get_client_cert_source(provided_cert_source, use_cert_flag):
769770
client_cert_source=mtls.default_client_cert_source()
770771
returnclient_cert_source
771772

773+
@staticmethod
772774
def_get_api_endpoint(
773775
api_override,client_cert_source,universe_domain,use_mtls_endpoint
774776
):
@@ -843,17 +845,18 @@ def _compare_universes(
843845
Raises:
844846
ValueError: when client_universe does not match the universe in credentials.
845847
"""
846-
ifcredentials:
847-
credentials_universe=credentials.universe_domain
848-
ifclient_universe!=credentials_universe:
849-
default_universe=BareMetalSolutionClient._DEFAULT_UNIVERSE
850-
raiseValueError(
851-
"The configured universe domain "
852-
f"({client_universe}) does not match the universe domain "
853-
f"found in the credentials ({credentials_universe}). "
854-
"If you haven't configured the universe domain explicitly, "
855-
f"`{default_universe}` is the default."
856-
)
848+
849+
default_universe=BareMetalSolutionClient._DEFAULT_UNIVERSE
850+
credentials_universe=getattr(credentials,"universe_domain",default_universe)
851+
852+
ifclient_universe!=credentials_universe:
853+
raiseValueError(
854+
"The configured universe domain "
855+
f"({client_universe}) does not match the universe domain "
856+
f"found in the credentials ({credentials_universe}). "
857+
"If you haven't configured the universe domain explicitly, "
858+
f"`{default_universe}` is the default."
859+
)
857860
returnTrue
858861

859862
def_validate_universe_domain(self):

‎packages/google-cloud-bare-metal-solution/samples/generated_samples/snippet_metadata_google.cloud.baremetalsolution.v2.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-bare-metal-solution",
11-
"version":"1.7.0"
11+
"version":"0.1.0"
1212
},
1313
"snippets": [
1414
{

‎packages/google-cloud-bare-metal-solution/setup.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242

4343
dependencies= [
4444
"google-api-core[grpc] >= 1.34.0, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,!=2.10.*",
45+
"google-auth >= 2.14.1, <3.0.0dev",
4546
"proto-plus >= 1.22.3, <2.0.0dev",
4647
"protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
4748
"grpc-google-iam-v1 >= 0.12.4, <1.0.0dev",

‎packages/google-cloud-bare-metal-solution/testing/constraints-3.7.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0dev",
66
# Then this file should have google-cloud-foo==1.14.0
77
google-api-core==1.34.0
8+
google-auth==2.14.1
89
proto-plus==1.22.3
910
protobuf==3.19.5
1011
grpc-google-iam-v1==0.12.4

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp