Skip to content

Commit 0853787

Browse files
committed
update goldens
1 parent aa7d069 commit 0853787

22 files changed

Lines changed: 27 additions & 13 deletions

File tree

packages/gapic-generator/gapic/templates/%namespace/%name_%version/%sub/_compat.py.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ from typing import Optional, Union
2020
from urllib.parse import urlparse, urlunparse
2121

2222
from google.auth.exceptions import MutualTLSChannelError
23+
from google.api_core.universe import EmptyUniverseError
2324
import google.protobuf.message
2425

26+
DEFAULT_UNIVERSE = "googleapis.com"
27+
2528

2629
def get_default_mtls_endpoint(api_endpoint: Optional[str]) -> Optional[str]:
2730
"""Converts api endpoint to mTLS endpoint.

packages/gapic-generator/gapic/templates/%namespace/%name_%version/%sub/services/%service/client.py.j2

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ class {{ service.client_name }}(metaclass={{ service.client_name }}Meta):
156156

157157
_DEFAULT_ENDPOINT_TEMPLATE = {% if service.host %}"{{ service.host.replace("googleapis.com", "{UNIVERSE_DOMAIN}") }}"{% else %}None{% endif %}
158158

159-
_DEFAULT_UNIVERSE = "googleapis.com"
160159

161160
@staticmethod
162161
def _use_client_cert_effective():

packages/gapic-generator/tests/integration/goldens/asset/google/cloud/asset_v1/_compat.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@
2222
from urllib.parse import urlparse, urlunparse
2323

2424
from google.auth.exceptions import MutualTLSChannelError
25+
from google.api_core.universe import EmptyUniverseError
2526
import google.protobuf.message
2627

28+
DEFAULT_UNIVERSE = "googleapis.com"
29+
2730

2831
def get_default_mtls_endpoint(api_endpoint: Optional[str]) -> Optional[str]:
2932
"""Converts api endpoint to mTLS endpoint.

packages/gapic-generator/tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ class AssetServiceClient(metaclass=AssetServiceClientMeta):
108108
)
109109

110110
_DEFAULT_ENDPOINT_TEMPLATE = "cloudasset.{UNIVERSE_DOMAIN}"
111-
_DEFAULT_UNIVERSE = "googleapis.com"
112111

113112
@staticmethod
114113
def _use_client_cert_effective():

packages/gapic-generator/tests/integration/goldens/credentials/google/iam/credentials_v1/_compat.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@
2222
from urllib.parse import urlparse, urlunparse
2323

2424
from google.auth.exceptions import MutualTLSChannelError
25+
from google.api_core.universe import EmptyUniverseError
2526
import google.protobuf.message
2627

28+
DEFAULT_UNIVERSE = "googleapis.com"
29+
2730

2831
def get_default_mtls_endpoint(api_endpoint: Optional[str]) -> Optional[str]:
2932
"""Converts api endpoint to mTLS endpoint.

packages/gapic-generator/tests/integration/goldens/credentials/google/iam/credentials_v1/services/iam_credentials/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ class IAMCredentialsClient(metaclass=IAMCredentialsClientMeta):
111111
)
112112

113113
_DEFAULT_ENDPOINT_TEMPLATE = "iamcredentials.{UNIVERSE_DOMAIN}"
114-
_DEFAULT_UNIVERSE = "googleapis.com"
115114

116115
@staticmethod
117116
def _use_client_cert_effective():

packages/gapic-generator/tests/integration/goldens/eventarc/google/cloud/eventarc_v1/_compat.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@
2222
from urllib.parse import urlparse, urlunparse
2323

2424
from google.auth.exceptions import MutualTLSChannelError
25+
from google.api_core.universe import EmptyUniverseError
2526
import google.protobuf.message
2627

28+
DEFAULT_UNIVERSE = "googleapis.com"
29+
2730

2831
def get_default_mtls_endpoint(api_endpoint: Optional[str]) -> Optional[str]:
2932
"""Converts api endpoint to mTLS endpoint.

packages/gapic-generator/tests/integration/goldens/eventarc/google/cloud/eventarc_v1/services/eventarc/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ class EventarcClient(metaclass=EventarcClientMeta):
129129
)
130130

131131
_DEFAULT_ENDPOINT_TEMPLATE = "eventarc.{UNIVERSE_DOMAIN}"
132-
_DEFAULT_UNIVERSE = "googleapis.com"
133132

134133
@staticmethod
135134
def _use_client_cert_effective():

packages/gapic-generator/tests/integration/goldens/logging/google/cloud/logging_v2/_compat.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@
2222
from urllib.parse import urlparse, urlunparse
2323

2424
from google.auth.exceptions import MutualTLSChannelError
25+
from google.api_core.universe import EmptyUniverseError
2526
import google.protobuf.message
2627

28+
DEFAULT_UNIVERSE = "googleapis.com"
29+
2730

2831
def get_default_mtls_endpoint(api_endpoint: Optional[str]) -> Optional[str]:
2932
"""Converts api endpoint to mTLS endpoint.

packages/gapic-generator/tests/integration/goldens/logging/google/cloud/logging_v2/services/config_service_v2/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ class ConfigServiceV2Client(metaclass=ConfigServiceV2ClientMeta):
104104
)
105105

106106
_DEFAULT_ENDPOINT_TEMPLATE = "logging.{UNIVERSE_DOMAIN}"
107-
_DEFAULT_UNIVERSE = "googleapis.com"
108107

109108
@staticmethod
110109
def _use_client_cert_effective():

0 commit comments

Comments
 (0)