mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2025-12-05 23:45:30 +00:00
CP-2395 More removals
This commit is contained in:
parent
b2f6050ed6
commit
d1d32568a0
@ -178,12 +178,6 @@ class ApiClient:
|
|||||||
path_params,
|
path_params,
|
||||||
collection_formats
|
collection_formats
|
||||||
)
|
)
|
||||||
for k, v in path_params:
|
|
||||||
# specified safe chars, encode everything
|
|
||||||
resource_path = resource_path.replace(
|
|
||||||
'{%s}' % k,
|
|
||||||
quote(str(v), safe='')
|
|
||||||
)
|
|
||||||
|
|
||||||
# post parameters
|
# post parameters
|
||||||
if post_params or files:
|
if post_params or files:
|
||||||
|
|||||||
@ -220,22 +220,10 @@ class Configuration:
|
|||||||
}
|
}
|
||||||
return auth
|
return auth
|
||||||
|
|
||||||
def get_host_settings(self):
|
|
||||||
"""Gets an array of host settings
|
|
||||||
|
|
||||||
:return: An array of host settings
|
|
||||||
"""
|
|
||||||
return [
|
|
||||||
{
|
|
||||||
'url': "https://api.thousandeyes.com",
|
|
||||||
'description': "ThousandEyes API production URL",
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def host(self):
|
def host(self):
|
||||||
"""Return generated host."""
|
"""Return generated host."""
|
||||||
return self.get_host_from_settings(self.server_index, variables={})
|
return self._base_path
|
||||||
|
|
||||||
@host.setter
|
@host.setter
|
||||||
def host(self, value):
|
def host(self, value):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user