Skip to content

Commit 507c17a

Browse files
committed
update goldens
1 parent 0853787 commit 507c17a

26 files changed

Lines changed: 26 additions & 13 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class {{ service.async_client_name }}:
7777
DEFAULT_ENDPOINT = {{ service.client_name }}.DEFAULT_ENDPOINT
7878
DEFAULT_MTLS_ENDPOINT = {{ service.client_name }}.DEFAULT_MTLS_ENDPOINT
7979
_DEFAULT_ENDPOINT_TEMPLATE = {{ service.client_name }}._DEFAULT_ENDPOINT_TEMPLATE
80-
_DEFAULT_UNIVERSE = {{ service.client_name }}._DEFAULT_UNIVERSE
80+
DEFAULT_UNIVERSE = {{ service.client_name }}.DEFAULT_UNIVERSE
8181

8282
{% for message in service.resource_messages|sort(attribute="resource_type") %}
8383
{{ message.resource_type|snake_case }}_path = staticmethod({{ service.client_name }}.{{ message.resource_type|snake_case }}_path)

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ 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"
159160

160161
@staticmethod
161162
def _use_client_cert_effective():

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class AssetServiceAsyncClient:
6666
DEFAULT_ENDPOINT = AssetServiceClient.DEFAULT_ENDPOINT
6767
DEFAULT_MTLS_ENDPOINT = AssetServiceClient.DEFAULT_MTLS_ENDPOINT
6868
_DEFAULT_ENDPOINT_TEMPLATE = AssetServiceClient._DEFAULT_ENDPOINT_TEMPLATE
69-
_DEFAULT_UNIVERSE = AssetServiceClient._DEFAULT_UNIVERSE
69+
DEFAULT_UNIVERSE = AssetServiceClient.DEFAULT_UNIVERSE
7070

7171
access_level_path = staticmethod(AssetServiceClient.access_level_path)
7272
parse_access_level_path = staticmethod(AssetServiceClient.parse_access_level_path)

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

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

110110
_DEFAULT_ENDPOINT_TEMPLATE = "cloudasset.{UNIVERSE_DOMAIN}"
111+
_DEFAULT_UNIVERSE = "googleapis.com"
111112

112113
@staticmethod
113114
def _use_client_cert_effective():

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class IAMCredentialsAsyncClient:
6969
DEFAULT_ENDPOINT = IAMCredentialsClient.DEFAULT_ENDPOINT
7070
DEFAULT_MTLS_ENDPOINT = IAMCredentialsClient.DEFAULT_MTLS_ENDPOINT
7171
_DEFAULT_ENDPOINT_TEMPLATE = IAMCredentialsClient._DEFAULT_ENDPOINT_TEMPLATE
72-
_DEFAULT_UNIVERSE = IAMCredentialsClient._DEFAULT_UNIVERSE
72+
DEFAULT_UNIVERSE = IAMCredentialsClient.DEFAULT_UNIVERSE
7373

7474
service_account_path = staticmethod(IAMCredentialsClient.service_account_path)
7575
parse_service_account_path = staticmethod(IAMCredentialsClient.parse_service_account_path)

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

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

113113
_DEFAULT_ENDPOINT_TEMPLATE = "iamcredentials.{UNIVERSE_DOMAIN}"
114+
_DEFAULT_UNIVERSE = "googleapis.com"
114115

115116
@staticmethod
116117
def _use_client_cert_effective():

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class EventarcAsyncClient:
8787
DEFAULT_ENDPOINT = EventarcClient.DEFAULT_ENDPOINT
8888
DEFAULT_MTLS_ENDPOINT = EventarcClient.DEFAULT_MTLS_ENDPOINT
8989
_DEFAULT_ENDPOINT_TEMPLATE = EventarcClient._DEFAULT_ENDPOINT_TEMPLATE
90-
_DEFAULT_UNIVERSE = EventarcClient._DEFAULT_UNIVERSE
90+
DEFAULT_UNIVERSE = EventarcClient.DEFAULT_UNIVERSE
9191

9292
channel_path = staticmethod(EventarcClient.channel_path)
9393
parse_channel_path = staticmethod(EventarcClient.parse_channel_path)

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

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

131131
_DEFAULT_ENDPOINT_TEMPLATE = "eventarc.{UNIVERSE_DOMAIN}"
132+
_DEFAULT_UNIVERSE = "googleapis.com"
132133

133134
@staticmethod
134135
def _use_client_cert_effective():

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class ConfigServiceV2AsyncClient:
6464
DEFAULT_ENDPOINT = ConfigServiceV2Client.DEFAULT_ENDPOINT
6565
DEFAULT_MTLS_ENDPOINT = ConfigServiceV2Client.DEFAULT_MTLS_ENDPOINT
6666
_DEFAULT_ENDPOINT_TEMPLATE = ConfigServiceV2Client._DEFAULT_ENDPOINT_TEMPLATE
67-
_DEFAULT_UNIVERSE = ConfigServiceV2Client._DEFAULT_UNIVERSE
67+
DEFAULT_UNIVERSE = ConfigServiceV2Client.DEFAULT_UNIVERSE
6868

6969
cmek_settings_path = staticmethod(ConfigServiceV2Client.cmek_settings_path)
7070
parse_cmek_settings_path = staticmethod(ConfigServiceV2Client.parse_cmek_settings_path)

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

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

106106
_DEFAULT_ENDPOINT_TEMPLATE = "logging.{UNIVERSE_DOMAIN}"
107+
_DEFAULT_UNIVERSE = "googleapis.com"
107108

108109
@staticmethod
109110
def _use_client_cert_effective():

0 commit comments

Comments
 (0)