This repository was archived by the owner on Mar 26, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 12 files changed +37
-37
lines changed
gapic/templates/%namespace/%name_%version/%sub/services/%service
tests/integration/goldens
asset/google/cloud/asset_v1/services/asset_service
credentials/google/iam/credentials_v1/services/iam_credentials
eventarc/google/cloud/eventarc_v1/services/eventarc
logging_internal/google/cloud/logging_v2/services
logging/google/cloud/logging_v2/services
redis_selective/google/cloud/redis_v1/services/cloud_redis
redis/google/cloud/redis_v1/services/cloud_redis Expand file tree Collapse file tree 12 files changed +37
-37
lines changed Original file line number Diff line number Diff line change @@ -172,14 +172,14 @@ class {{ service.client_name }}(metaclass={{ service.client_name }}Meta):
172172
173173 return api_endpoint.replace(".googleapis.com", ".mtls.googleapis.com")
174174
175- DEFAULT_MTLS_ENDPOINT = _get_default_mtls_endpoint.__func__( # type: ignore
176- _DEFAULT_ENDPOINT_TEMPLATE.format(UNIVERSE_DOMAIN=_DEFAULT_UNIVERSE)
177- )
178-
179175 _DEFAULT_ENDPOINT_TEMPLATE = {% if service .host %} "{{ service.host.replace("googleapis.com", "{UNIVERSE_DOMAIN}") }}"{% else %} None{% endif %}
180176
181177 _DEFAULT_UNIVERSE = "googleapis.com"
182178
179+ DEFAULT_MTLS_ENDPOINT = _get_default_mtls_endpoint.__func__( # type: ignore
180+ _DEFAULT_ENDPOINT_TEMPLATE.format(UNIVERSE_DOMAIN=_DEFAULT_UNIVERSE)
181+ )
182+
183183 @classmethod
184184 def from_service_account_info(cls, info: dict, *args, **kwargs):
185185 """Creates an instance of this client using the provided credentials
Original file line number Diff line number Diff line change @@ -130,13 +130,13 @@ def _get_default_mtls_endpoint(api_endpoint):
130130
131131 return api_endpoint .replace (".googleapis.com" , ".mtls.googleapis.com" )
132132
133+ _DEFAULT_ENDPOINT_TEMPLATE = "cloudasset.{UNIVERSE_DOMAIN}"
134+ _DEFAULT_UNIVERSE = "googleapis.com"
135+
133136 DEFAULT_MTLS_ENDPOINT = _get_default_mtls_endpoint .__func__ ( # type: ignore
134137 _DEFAULT_ENDPOINT_TEMPLATE .format (UNIVERSE_DOMAIN = _DEFAULT_UNIVERSE )
135138 )
136139
137- _DEFAULT_ENDPOINT_TEMPLATE = "cloudasset.{UNIVERSE_DOMAIN}"
138- _DEFAULT_UNIVERSE = "googleapis.com"
139-
140140 @classmethod
141141 def from_service_account_info (cls , info : dict , * args , ** kwargs ):
142142 """Creates an instance of this client using the provided credentials
Original file line number Diff line number Diff line change @@ -133,13 +133,13 @@ def _get_default_mtls_endpoint(api_endpoint):
133133
134134 return api_endpoint .replace (".googleapis.com" , ".mtls.googleapis.com" )
135135
136+ _DEFAULT_ENDPOINT_TEMPLATE = "iamcredentials.{UNIVERSE_DOMAIN}"
137+ _DEFAULT_UNIVERSE = "googleapis.com"
138+
136139 DEFAULT_MTLS_ENDPOINT = _get_default_mtls_endpoint .__func__ ( # type: ignore
137140 _DEFAULT_ENDPOINT_TEMPLATE .format (UNIVERSE_DOMAIN = _DEFAULT_UNIVERSE )
138141 )
139142
140- _DEFAULT_ENDPOINT_TEMPLATE = "iamcredentials.{UNIVERSE_DOMAIN}"
141- _DEFAULT_UNIVERSE = "googleapis.com"
142-
143143 @classmethod
144144 def from_service_account_info (cls , info : dict , * args , ** kwargs ):
145145 """Creates an instance of this client using the provided credentials
Original file line number Diff line number Diff line change @@ -142,13 +142,13 @@ def _get_default_mtls_endpoint(api_endpoint):
142142
143143 return api_endpoint .replace (".googleapis.com" , ".mtls.googleapis.com" )
144144
145+ _DEFAULT_ENDPOINT_TEMPLATE = "eventarc.{UNIVERSE_DOMAIN}"
146+ _DEFAULT_UNIVERSE = "googleapis.com"
147+
145148 DEFAULT_MTLS_ENDPOINT = _get_default_mtls_endpoint .__func__ ( # type: ignore
146149 _DEFAULT_ENDPOINT_TEMPLATE .format (UNIVERSE_DOMAIN = _DEFAULT_UNIVERSE )
147150 )
148151
149- _DEFAULT_ENDPOINT_TEMPLATE = "eventarc.{UNIVERSE_DOMAIN}"
150- _DEFAULT_UNIVERSE = "googleapis.com"
151-
152152 @classmethod
153153 def from_service_account_info (cls , info : dict , * args , ** kwargs ):
154154 """Creates an instance of this client using the provided credentials
Original file line number Diff line number Diff line change @@ -126,13 +126,13 @@ def _get_default_mtls_endpoint(api_endpoint):
126126
127127 return api_endpoint .replace (".googleapis.com" , ".mtls.googleapis.com" )
128128
129+ _DEFAULT_ENDPOINT_TEMPLATE = "logging.{UNIVERSE_DOMAIN}"
130+ _DEFAULT_UNIVERSE = "googleapis.com"
131+
129132 DEFAULT_MTLS_ENDPOINT = _get_default_mtls_endpoint .__func__ ( # type: ignore
130133 _DEFAULT_ENDPOINT_TEMPLATE .format (UNIVERSE_DOMAIN = _DEFAULT_UNIVERSE )
131134 )
132135
133- _DEFAULT_ENDPOINT_TEMPLATE = "logging.{UNIVERSE_DOMAIN}"
134- _DEFAULT_UNIVERSE = "googleapis.com"
135-
136136 @classmethod
137137 def from_service_account_info (cls , info : dict , * args , ** kwargs ):
138138 """Creates an instance of this client using the provided credentials
Original file line number Diff line number Diff line change @@ -123,13 +123,13 @@ def _get_default_mtls_endpoint(api_endpoint):
123123
124124 return api_endpoint .replace (".googleapis.com" , ".mtls.googleapis.com" )
125125
126+ _DEFAULT_ENDPOINT_TEMPLATE = "logging.{UNIVERSE_DOMAIN}"
127+ _DEFAULT_UNIVERSE = "googleapis.com"
128+
126129 DEFAULT_MTLS_ENDPOINT = _get_default_mtls_endpoint .__func__ ( # type: ignore
127130 _DEFAULT_ENDPOINT_TEMPLATE .format (UNIVERSE_DOMAIN = _DEFAULT_UNIVERSE )
128131 )
129132
130- _DEFAULT_ENDPOINT_TEMPLATE = "logging.{UNIVERSE_DOMAIN}"
131- _DEFAULT_UNIVERSE = "googleapis.com"
132-
133133 @classmethod
134134 def from_service_account_info (cls , info : dict , * args , ** kwargs ):
135135 """Creates an instance of this client using the provided credentials
Original file line number Diff line number Diff line change @@ -124,13 +124,13 @@ def _get_default_mtls_endpoint(api_endpoint):
124124
125125 return api_endpoint .replace (".googleapis.com" , ".mtls.googleapis.com" )
126126
127+ _DEFAULT_ENDPOINT_TEMPLATE = "logging.{UNIVERSE_DOMAIN}"
128+ _DEFAULT_UNIVERSE = "googleapis.com"
129+
127130 DEFAULT_MTLS_ENDPOINT = _get_default_mtls_endpoint .__func__ ( # type: ignore
128131 _DEFAULT_ENDPOINT_TEMPLATE .format (UNIVERSE_DOMAIN = _DEFAULT_UNIVERSE )
129132 )
130133
131- _DEFAULT_ENDPOINT_TEMPLATE = "logging.{UNIVERSE_DOMAIN}"
132- _DEFAULT_UNIVERSE = "googleapis.com"
133-
134134 @classmethod
135135 def from_service_account_info (cls , info : dict , * args , ** kwargs ):
136136 """Creates an instance of this client using the provided credentials
Original file line number Diff line number Diff line change @@ -126,13 +126,13 @@ def _get_default_mtls_endpoint(api_endpoint):
126126
127127 return api_endpoint .replace (".googleapis.com" , ".mtls.googleapis.com" )
128128
129+ _DEFAULT_ENDPOINT_TEMPLATE = "logging.{UNIVERSE_DOMAIN}"
130+ _DEFAULT_UNIVERSE = "googleapis.com"
131+
129132 DEFAULT_MTLS_ENDPOINT = _get_default_mtls_endpoint .__func__ ( # type: ignore
130133 _DEFAULT_ENDPOINT_TEMPLATE .format (UNIVERSE_DOMAIN = _DEFAULT_UNIVERSE )
131134 )
132135
133- _DEFAULT_ENDPOINT_TEMPLATE = "logging.{UNIVERSE_DOMAIN}"
134- _DEFAULT_UNIVERSE = "googleapis.com"
135-
136136 @classmethod
137137 def from_service_account_info (cls , info : dict , * args , ** kwargs ):
138138 """Creates an instance of this client using the provided credentials
Original file line number Diff line number Diff line change @@ -123,13 +123,13 @@ def _get_default_mtls_endpoint(api_endpoint):
123123
124124 return api_endpoint .replace (".googleapis.com" , ".mtls.googleapis.com" )
125125
126+ _DEFAULT_ENDPOINT_TEMPLATE = "logging.{UNIVERSE_DOMAIN}"
127+ _DEFAULT_UNIVERSE = "googleapis.com"
128+
126129 DEFAULT_MTLS_ENDPOINT = _get_default_mtls_endpoint .__func__ ( # type: ignore
127130 _DEFAULT_ENDPOINT_TEMPLATE .format (UNIVERSE_DOMAIN = _DEFAULT_UNIVERSE )
128131 )
129132
130- _DEFAULT_ENDPOINT_TEMPLATE = "logging.{UNIVERSE_DOMAIN}"
131- _DEFAULT_UNIVERSE = "googleapis.com"
132-
133133 @classmethod
134134 def from_service_account_info (cls , info : dict , * args , ** kwargs ):
135135 """Creates an instance of this client using the provided credentials
Original file line number Diff line number Diff line change @@ -124,13 +124,13 @@ def _get_default_mtls_endpoint(api_endpoint):
124124
125125 return api_endpoint .replace (".googleapis.com" , ".mtls.googleapis.com" )
126126
127+ _DEFAULT_ENDPOINT_TEMPLATE = "logging.{UNIVERSE_DOMAIN}"
128+ _DEFAULT_UNIVERSE = "googleapis.com"
129+
127130 DEFAULT_MTLS_ENDPOINT = _get_default_mtls_endpoint .__func__ ( # type: ignore
128131 _DEFAULT_ENDPOINT_TEMPLATE .format (UNIVERSE_DOMAIN = _DEFAULT_UNIVERSE )
129132 )
130133
131- _DEFAULT_ENDPOINT_TEMPLATE = "logging.{UNIVERSE_DOMAIN}"
132- _DEFAULT_UNIVERSE = "googleapis.com"
133-
134134 @classmethod
135135 def from_service_account_info (cls , info : dict , * args , ** kwargs ):
136136 """Creates an instance of this client using the provided credentials
You can’t perform that action at this time.
0 commit comments