text
stringlengths 0
828
|
|---|
""""""
|
root = path.Path(os.environ.get('SERVICES_ROOT', 'services'))
|
self.env_path = (root / self.name).abspath()
|
cmd = [
|
self.python,
|
'-c', 'import site; print(site.getusersitepackages())',
|
]
|
out = subprocess.check_output(cmd, env=self._run_env)
|
site_packages = out.decode().strip()
|
path.Path(site_packages).makedirs_p()"
|
4507,"def create_states_geo_zone(cls, states_geo_zone, **kwargs):
|
""""""Create StatesGeoZone
|
Create a new StatesGeoZone
|
This method makes a synchronous HTTP request by default. To make an
|
asynchronous HTTP request, please pass async=True
|
>>> thread = api.create_states_geo_zone(states_geo_zone, async=True)
|
>>> result = thread.get()
|
:param async bool
|
:param StatesGeoZone states_geo_zone: Attributes of statesGeoZone to create (required)
|
:return: StatesGeoZone
|
If the method is called asynchronously,
|
returns the request thread.
|
""""""
|
kwargs['_return_http_data_only'] = True
|
if kwargs.get('async'):
|
return cls._create_states_geo_zone_with_http_info(states_geo_zone, **kwargs)
|
else:
|
(data) = cls._create_states_geo_zone_with_http_info(states_geo_zone, **kwargs)
|
return data"
|
4508,"def delete_states_geo_zone_by_id(cls, states_geo_zone_id, **kwargs):
|
""""""Delete StatesGeoZone
|
Delete an instance of StatesGeoZone by its ID.
|
This method makes a synchronous HTTP request by default. To make an
|
asynchronous HTTP request, please pass async=True
|
>>> thread = api.delete_states_geo_zone_by_id(states_geo_zone_id, async=True)
|
>>> result = thread.get()
|
:param async bool
|
:param str states_geo_zone_id: ID of statesGeoZone to delete. (required)
|
:return: None
|
If the method is called asynchronously,
|
returns the request thread.
|
""""""
|
kwargs['_return_http_data_only'] = True
|
if kwargs.get('async'):
|
return cls._delete_states_geo_zone_by_id_with_http_info(states_geo_zone_id, **kwargs)
|
else:
|
(data) = cls._delete_states_geo_zone_by_id_with_http_info(states_geo_zone_id, **kwargs)
|
return data"
|
4509,"def get_states_geo_zone_by_id(cls, states_geo_zone_id, **kwargs):
|
""""""Find StatesGeoZone
|
Return single instance of StatesGeoZone by its ID.
|
This method makes a synchronous HTTP request by default. To make an
|
asynchronous HTTP request, please pass async=True
|
>>> thread = api.get_states_geo_zone_by_id(states_geo_zone_id, async=True)
|
>>> result = thread.get()
|
:param async bool
|
:param str states_geo_zone_id: ID of statesGeoZone to return (required)
|
:return: StatesGeoZone
|
If the method is called asynchronously,
|
returns the request thread.
|
""""""
|
kwargs['_return_http_data_only'] = True
|
if kwargs.get('async'):
|
return cls._get_states_geo_zone_by_id_with_http_info(states_geo_zone_id, **kwargs)
|
else:
|
(data) = cls._get_states_geo_zone_by_id_with_http_info(states_geo_zone_id, **kwargs)
|
return data"
|
4510,"def list_all_states_geo_zones(cls, **kwargs):
|
""""""List StatesGeoZones
|
Return a list of StatesGeoZones
|
This method makes a synchronous HTTP request by default. To make an
|
asynchronous HTTP request, please pass async=True
|
>>> thread = api.list_all_states_geo_zones(async=True)
|
>>> result = thread.get()
|
:param async bool
|
:param int page: page number
|
:param int size: page size
|
:param str sort: page order
|
:return: page[StatesGeoZone]
|
If the method is called asynchronously,
|
returns the request thread.
|
""""""
|
kwargs['_return_http_data_only'] = True
|
if kwargs.get('async'):
|
return cls._list_all_states_geo_zones_with_http_info(**kwargs)
|
else:
|
(data) = cls._list_all_states_geo_zones_with_http_info(**kwargs)
|
return data"
|
4511,"def replace_states_geo_zone_by_id(cls, states_geo_zone_id, states_geo_zone, **kwargs):
|
""""""Replace StatesGeoZone
|
Replace all attributes of StatesGeoZone
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.