code stringlengths 66 870k | docstring stringlengths 19 26.7k | func_name stringlengths 1 138 | language stringclasses 1
value | repo stringlengths 7 68 | path stringlengths 5 324 | url stringlengths 46 389 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
def get_required_type_classes(required_types_mixed, spec_property_naming):
"""Converts the tuple required_types into a tuple and a dict described
below
Args:
required_types_mixed (tuple/list): will contain either classes or
instance of list or dict
spec_property_naming (bool): i... | Converts the tuple required_types into a tuple and a dict described
below
Args:
required_types_mixed (tuple/list): will contain either classes or
instance of list or dict
spec_property_naming (bool): if True these values came from the
server, and we use the data types in... | get_required_type_classes | python | Yelp/paasta | paasta_tools/paastaapi/model_utils.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model_utils.py | Apache-2.0 |
def change_keys_js_to_python(input_dict, model_class):
"""
Converts from javascript_key keys in the input_dict to python_keys in
the output dict using the mapping in model_class.
If the input_dict contains a key which does not declared in the model_class,
the key is added to the output dict as is. T... |
Converts from javascript_key keys in the input_dict to python_keys in
the output dict using the mapping in model_class.
If the input_dict contains a key which does not declared in the model_class,
the key is added to the output dict as is. The assumption is the model_class
may have undeclared prope... | change_keys_js_to_python | python | Yelp/paasta | paasta_tools/paastaapi/model_utils.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model_utils.py | Apache-2.0 |
def get_discriminator_class(model_class,
discr_name,
discr_value, cls_visited):
"""Returns the child class specified by the discriminator.
Args:
model_class (OpenApiModel): the model class.
discr_name (string): the name of the discriminato... | Returns the child class specified by the discriminator.
Args:
model_class (OpenApiModel): the model class.
discr_name (string): the name of the discriminator property.
discr_value (any): the discriminator value.
cls_visited (list): list of model classes that have been visited.
... | get_discriminator_class | python | Yelp/paasta | paasta_tools/paastaapi/model_utils.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model_utils.py | Apache-2.0 |
def deserialize_model(model_data, model_class, path_to_item, check_type,
configuration, spec_property_naming):
"""Deserializes model_data to model instance.
Args:
model_data (int/str/float/bool/none_type/list/dict): data to instantiate the model
model_class (OpenApiModel):... | Deserializes model_data to model instance.
Args:
model_data (int/str/float/bool/none_type/list/dict): data to instantiate the model
model_class (OpenApiModel): the model class
path_to_item (list): path to the model in the received data
check_type (bool): whether to check the data tu... | deserialize_model | python | Yelp/paasta | paasta_tools/paastaapi/model_utils.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model_utils.py | Apache-2.0 |
def deserialize_file(response_data, configuration, content_disposition=None):
"""Deserializes body to file
Saves response body into a file in a temporary folder,
using the filename from the `Content-Disposition` header if provided.
Args:
param response_data (str): the file data to write
... | Deserializes body to file
Saves response body into a file in a temporary folder,
using the filename from the `Content-Disposition` header if provided.
Args:
param response_data (str): the file data to write
configuration (Configuration): the instance to use to convert files
Keyword A... | deserialize_file | python | Yelp/paasta | paasta_tools/paastaapi/model_utils.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model_utils.py | Apache-2.0 |
def attempt_convert_item(input_value, valid_classes, path_to_item,
configuration, spec_property_naming, key_type=False,
must_convert=False, check_type=True):
"""
Args:
input_value (any): the data to convert
valid_classes (any): the classes that a... |
Args:
input_value (any): the data to convert
valid_classes (any): the classes that are valid
path_to_item (list): the path to the item to convert
configuration (Configuration): the instance to use to convert files
spec_property_naming (bool): True if the variable names in th... | attempt_convert_item | python | Yelp/paasta | paasta_tools/paastaapi/model_utils.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model_utils.py | Apache-2.0 |
def is_type_nullable(input_type):
"""
Returns true if None is an allowed value for the specified input_type.
A type is nullable if at least one of the following conditions is true:
1. The OAS 'nullable' attribute has been specified,
1. The type is the 'null' type,
1. The type is a anyOf/oneOf c... |
Returns true if None is an allowed value for the specified input_type.
A type is nullable if at least one of the following conditions is true:
1. The OAS 'nullable' attribute has been specified,
1. The type is the 'null' type,
1. The type is a anyOf/oneOf composed schema, and a child schema is
... | is_type_nullable | python | Yelp/paasta | paasta_tools/paastaapi/model_utils.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model_utils.py | Apache-2.0 |
def is_valid_type(input_class_simple, valid_classes):
"""
Args:
input_class_simple (class): the class of the input_value that we are
checking
valid_classes (tuple): the valid classes that the current item
should be
Returns:
bool
"""
valid_type = input_... |
Args:
input_class_simple (class): the class of the input_value that we are
checking
valid_classes (tuple): the valid classes that the current item
should be
Returns:
bool
| is_valid_type | python | Yelp/paasta | paasta_tools/paastaapi/model_utils.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model_utils.py | Apache-2.0 |
def validate_and_convert_types(input_value, required_types_mixed, path_to_item,
spec_property_naming, _check_type, configuration=None):
"""Raises a TypeError is there is a problem, otherwise returns value
Args:
input_value (any): the data to validate/convert
requi... | Raises a TypeError is there is a problem, otherwise returns value
Args:
input_value (any): the data to validate/convert
required_types_mixed (list/dict/tuple): A list of
valid classes, or a list tuples of valid classes, or a dict where
the value is a tuple of value classes
... | validate_and_convert_types | python | Yelp/paasta | paasta_tools/paastaapi/model_utils.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model_utils.py | Apache-2.0 |
def model_to_dict(model_instance, serialize=True):
"""Returns the model properties as a dict
Args:
model_instance (one of your model instances): the model instance that
will be converted to a dict.
Keyword Args:
serialize (bool): if True, the keys in the dict will be values fro... | Returns the model properties as a dict
Args:
model_instance (one of your model instances): the model instance that
will be converted to a dict.
Keyword Args:
serialize (bool): if True, the keys in the dict will be values from
attribute_map
| model_to_dict | python | Yelp/paasta | paasta_tools/paastaapi/model_utils.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model_utils.py | Apache-2.0 |
def type_error_message(var_value=None, var_name=None, valid_classes=None,
key_type=None):
"""
Keyword Args:
var_value (any): the variable which has the type_error
var_name (str): the name of the variable which has the typ error
valid_classes (tuple): the accepted c... |
Keyword Args:
var_value (any): the variable which has the type_error
var_name (str): the name of the variable which has the typ error
valid_classes (tuple): the accepted classes for current_item's
value
key_type (bool): False if our value is a value... | type_error_message | python | Yelp/paasta | paasta_tools/paastaapi/model_utils.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model_utils.py | Apache-2.0 |
def get_valid_classes_phrase(input_classes):
"""Returns a string phrase describing what types are allowed
"""
all_classes = list(input_classes)
all_classes = sorted(all_classes, key=lambda cls: cls.__name__)
all_class_names = [cls.__name__ for cls in all_classes]
if len(all_class_names) == 1:
... | Returns a string phrase describing what types are allowed
| get_valid_classes_phrase | python | Yelp/paasta | paasta_tools/paastaapi/model_utils.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model_utils.py | Apache-2.0 |
def get_allof_instances(self, model_args, constant_args):
"""
Args:
self: the class we are handling
model_args (dict): var_name to var_value
used to make instances
constant_args (dict): var_name to var_value
used to make instances
Returns
composed_ins... |
Args:
self: the class we are handling
model_args (dict): var_name to var_value
used to make instances
constant_args (dict): var_name to var_value
used to make instances
Returns
composed_instances (list)
| get_allof_instances | python | Yelp/paasta | paasta_tools/paastaapi/model_utils.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model_utils.py | Apache-2.0 |
def get_anyof_instances(self, model_args, constant_args):
"""
Args:
self: the class we are handling
model_args (dict): var_name to var_value
The input data, e.g. the payload that must match at least one
anyOf child schema in the OpenAPI document.
constant_args (di... |
Args:
self: the class we are handling
model_args (dict): var_name to var_value
The input data, e.g. the payload that must match at least one
anyOf child schema in the OpenAPI document.
constant_args (dict): var_name to var_value
args that every model requ... | get_anyof_instances | python | Yelp/paasta | paasta_tools/paastaapi/model_utils.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model_utils.py | Apache-2.0 |
def validate_get_composed_info(constant_args, model_args, self):
"""
For composed schemas, generate schema instances for
all schemas in the oneOf/anyOf/allOf definition. If additional
properties are allowed, also assign those properties on
all matched schemas that contain additionalProperties.
O... |
For composed schemas, generate schema instances for
all schemas in the oneOf/anyOf/allOf definition. If additional
properties are allowed, also assign those properties on
all matched schemas that contain additionalProperties.
Openapi schemas are python classes.
Exceptions are raised if:
- ... | validate_get_composed_info | python | Yelp/paasta | paasta_tools/paastaapi/model_utils.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model_utils.py | Apache-2.0 |
def request(self, method, url, query_params=None, headers=None,
body=None, post_params=None, _preload_content=True,
_request_timeout=None):
"""Perform requests.
:param method: http request method
:param url: http request url
:param query_params: query par... | Perform requests.
:param method: http request method
:param url: http request url
:param query_params: query parameters in the url
:param headers: http request headers
:param body: request json body, for `application/json`
:param post_params: request post parameters,
... | request | python | Yelp/paasta | paasta_tools/paastaapi/rest.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/rest.py | Apache-2.0 |
def __get_autoscaler_count(
self,
service,
instance,
**kwargs
):
"""Get status of service_name.instance_name # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pa... | Get status of service_name.instance_name # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_autoscaler_count(service, instance, async_req=True)
>>> result = thread.... | __get_autoscaler_count | python | Yelp/paasta | paasta_tools/paastaapi/api/autoscaler_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/autoscaler_api.py | Apache-2.0 |
def __set_autoscaling_override(
self,
service,
instance,
autoscaling_override,
**kwargs
):
"""Set a temporary autoscaling override for a service instance # noqa: E501
This method makes a synchronous HTTP request by default. To... | Set a temporary autoscaling override for a service instance # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.set_autoscaling_override(service, instance, autoscaling_override, asy... | __set_autoscaling_override | python | Yelp/paasta | paasta_tools/paastaapi/api/autoscaler_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/autoscaler_api.py | Apache-2.0 |
def __update_autoscaler_count(
self,
service,
instance,
autoscaler_count_msg,
**kwargs
):
"""Set desired instance count for a service instance # noqa: E501
This method makes a synchronous HTTP request by default. To make an
... | Set desired instance count for a service instance # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_autoscaler_count(service, instance, autoscaler_count_msg, async_req=True... | __update_autoscaler_count | python | Yelp/paasta | paasta_tools/paastaapi/api/autoscaler_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/autoscaler_api.py | Apache-2.0 |
def __delete_service_autoscaler_pause(
self,
**kwargs
):
"""Unpause the autoscaler # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.de... | Unpause the autoscaler # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_service_autoscaler_pause(async_req=True)
>>> result = thread.get()
Keywor... | __delete_service_autoscaler_pause | python | Yelp/paasta | paasta_tools/paastaapi/api/default_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/default_api.py | Apache-2.0 |
def __deploy_queue(
self,
**kwargs
):
"""Get deploy queue contents # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.deploy_queue(async... | Get deploy queue contents # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.deploy_queue(async_req=True)
>>> result = thread.get()
Keyword Args:
... | __deploy_queue | python | Yelp/paasta | paasta_tools/paastaapi/api/default_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/default_api.py | Apache-2.0 |
def __get_service_autoscaler_pause(
self,
**kwargs
):
"""Get autoscaling pause time # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.g... | Get autoscaling pause time # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_service_autoscaler_pause(async_req=True)
>>> result = thread.get()
Keywo... | __get_service_autoscaler_pause | python | Yelp/paasta | paasta_tools/paastaapi/api/default_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/default_api.py | Apache-2.0 |
def __show_version(
self,
**kwargs
):
"""Version of paasta_tools package # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.show_version... | Version of paasta_tools package # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.show_version(async_req=True)
>>> result = thread.get()
Keyword Args:
... | __show_version | python | Yelp/paasta | paasta_tools/paastaapi/api/default_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/default_api.py | Apache-2.0 |
def __update_service_autoscaler_pause(
self,
inline_object,
**kwargs
):
"""update_service_autoscaler_pause # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=T... | update_service_autoscaler_pause # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_service_autoscaler_pause(inline_object, async_req=True)
>>> result = thread.ge... | __update_service_autoscaler_pause | python | Yelp/paasta | paasta_tools/paastaapi/api/default_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/default_api.py | Apache-2.0 |
def __remote_run_poll(
self,
service,
instance,
job_name,
user,
**kwargs
):
"""Check if remote run pod is ready # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchron... | Check if remote run pod is ready # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.remote_run_poll(service, instance, job_name, user, async_req=True)
>>> result = thre... | __remote_run_poll | python | Yelp/paasta | paasta_tools/paastaapi/api/remote_run_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/remote_run_api.py | Apache-2.0 |
def __remote_run_start(
self,
service,
instance,
remote_run_start,
**kwargs
):
"""Launch a remote-run pod # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, ... | Launch a remote-run pod # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.remote_run_start(service, instance, remote_run_start, async_req=True)
>>> result = thread.get... | __remote_run_start | python | Yelp/paasta | paasta_tools/paastaapi/api/remote_run_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/remote_run_api.py | Apache-2.0 |
def __remote_run_stop(
self,
service,
instance,
remote_run_stop,
**kwargs
):
"""Stop a remote-run pod # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, plea... | Stop a remote-run pod # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.remote_run_stop(service, instance, remote_run_stop, async_req=True)
>>> result = thread.get()
... | __remote_run_stop | python | Yelp/paasta | paasta_tools/paastaapi/api/remote_run_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/remote_run_api.py | Apache-2.0 |
def __remote_run_token(
self,
service,
instance,
user,
**kwargs
):
"""Get a short lived token for exec into remote-run pod # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchrono... | Get a short lived token for exec into remote-run pod # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.remote_run_token(service, instance, user, async_req=True)
>>> re... | __remote_run_token | python | Yelp/paasta | paasta_tools/paastaapi/api/remote_run_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/remote_run_api.py | Apache-2.0 |
def __resources(
self,
**kwargs
):
"""Get resources in the cluster # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.resources(async_re... | Get resources in the cluster # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.resources(async_req=True)
>>> result = thread.get()
Keyword Args:
... | __resources | python | Yelp/paasta | paasta_tools/paastaapi/api/resources_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/resources_api.py | Apache-2.0 |
def __bounce_status_instance(
self,
service,
instance,
**kwargs
):
"""Get bounce status of service_name.instance_name # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, ... | Get bounce status of service_name.instance_name # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.bounce_status_instance(service, instance, async_req=True)
>>> result ... | __bounce_status_instance | python | Yelp/paasta | paasta_tools/paastaapi/api/service_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/service_api.py | Apache-2.0 |
def __delay_instance(
self,
service,
instance,
**kwargs
):
"""Get the possible reasons for a deployment delay for a marathon service.instance # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asy... | Get the possible reasons for a deployment delay for a marathon service.instance # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delay_instance(service, instance, async_req=True)... | __delay_instance | python | Yelp/paasta | paasta_tools/paastaapi/api/service_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/service_api.py | Apache-2.0 |
def __get_flink_cluster_config(
self,
service,
instance,
**kwargs
):
"""Get config of a flink cluster # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass asyn... | Get config of a flink cluster # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_flink_cluster_config(service, instance, async_req=True)
>>> result = thread.get()
... | __get_flink_cluster_config | python | Yelp/paasta | paasta_tools/paastaapi/api/service_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/service_api.py | Apache-2.0 |
def __get_flink_cluster_job_details(
self,
service,
instance,
job_id,
**kwargs
):
"""Get details of a flink job in a flink cluster # noqa: E501
This method makes a synchronous HTTP request by default. To make an
as... | Get details of a flink job in a flink cluster # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_flink_cluster_job_details(service, instance, job_id, async_req=True)
... | __get_flink_cluster_job_details | python | Yelp/paasta | paasta_tools/paastaapi/api/service_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/service_api.py | Apache-2.0 |
def __get_flink_cluster_overview(
self,
service,
instance,
**kwargs
):
"""Get overview of a flink cluster # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass ... | Get overview of a flink cluster # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_flink_cluster_overview(service, instance, async_req=True)
>>> result = thread.get... | __get_flink_cluster_overview | python | Yelp/paasta | paasta_tools/paastaapi/api/service_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/service_api.py | Apache-2.0 |
def __instance_set_state(
self,
service,
instance,
desired_state,
**kwargs
):
"""Change state of service_name.instance_name # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchron... | Change state of service_name.instance_name # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.instance_set_state(service, instance, desired_state, async_req=True)
>>> r... | __instance_set_state | python | Yelp/paasta | paasta_tools/paastaapi/api/service_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/service_api.py | Apache-2.0 |
def __list_flink_cluster_jobs(
self,
service,
instance,
**kwargs
):
"""Get list of flink jobs in a flink cluster # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, pleas... | Get list of flink jobs in a flink cluster # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_flink_cluster_jobs(service, instance, async_req=True)
>>> result = thr... | __list_flink_cluster_jobs | python | Yelp/paasta | paasta_tools/paastaapi/api/service_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/service_api.py | Apache-2.0 |
def __list_instances(
self,
service,
**kwargs
):
"""List instances of service_name # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thr... | List instances of service_name # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_instances(service, async_req=True)
>>> result = thread.get()
Args:
... | __list_instances | python | Yelp/paasta | paasta_tools/paastaapi/api/service_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/service_api.py | Apache-2.0 |
def __list_services_for_cluster(
self,
**kwargs
):
"""List service names and service instance names on the current cluster # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_r... | List service names and service instance names on the current cluster # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_services_for_cluster(async_req=True)
>>> re... | __list_services_for_cluster | python | Yelp/paasta | paasta_tools/paastaapi/api/service_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/service_api.py | Apache-2.0 |
def __status_instance(
self,
service,
instance,
**kwargs
):
"""Get status of service_name.instance_name # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass as... | Get status of service_name.instance_name # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.status_instance(service, instance, async_req=True)
>>> result = thread.get()... | __status_instance | python | Yelp/paasta | paasta_tools/paastaapi/api/service_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/service_api.py | Apache-2.0 |
def __task_instance(
self,
service,
instance,
task_id,
**kwargs
):
"""Get mesos task of service_name.instance_name by task_id # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchr... | Get mesos task of service_name.instance_name by task_id # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.task_instance(service, instance, task_id, async_req=True)
>>>... | __task_instance | python | Yelp/paasta | paasta_tools/paastaapi/api/service_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/service_api.py | Apache-2.0 |
def __tasks_instance(
self,
service,
instance,
**kwargs
):
"""Get mesos tasks of service_name.instance_name # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pas... | Get mesos tasks of service_name.instance_name # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.tasks_instance(service, instance, async_req=True)
>>> result = thread.g... | __tasks_instance | python | Yelp/paasta | paasta_tools/paastaapi/api/service_api.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/api/service_api.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/adhoc_launch_history.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/adhoc_launch_history.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/autoscaler_count_msg.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/autoscaler_count_msg.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/autoscaling_override.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/autoscaling_override.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
lazy... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/deploy_queue.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/deploy_queue.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/deploy_queue_service_instance.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/deploy_queue_service_instance.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/envoy_backend.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/envoy_backend.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
lazy... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/envoy_location.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/envoy_location.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
lazy... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/envoy_status.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/envoy_status.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/flink_cluster_overview.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/flink_cluster_overview.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/flink_config.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/flink_config.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/flink_job.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/flink_job.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
lazy... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/flink_jobs.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/flink_jobs.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/flink_job_details.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/flink_job_details.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/float_and_error.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/float_and_error.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/hpa_metric.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/hpa_metric.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/inline_object.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/inline_object.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/inline_response200.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/inline_response200.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/inline_response2001.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/inline_response2001.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/inline_response202.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/inline_response202.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/inline_response403.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/inline_response403.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/instance_bounce_status.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/instance_bounce_status.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
lazy... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/instance_mesh_status.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/instance_mesh_status.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
lazy... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/instance_status.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/instance_status.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
lazy... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/instance_status_adhoc.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/instance_status_adhoc.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/instance_status_cassandracluster.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/instance_status_cassandracluster.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/instance_status_flink.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/instance_status_flink.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/instance_status_kafkacluster.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/instance_status_kafkacluster.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
lazy... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/instance_status_kubernetes.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/instance_status_kubernetes.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
lazy... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/instance_status_kubernetes_autoscaling_status.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/instance_status_kubernetes_autoscaling_status.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
lazy... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/instance_status_kubernetes_v2.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/instance_status_kubernetes_v2.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/instance_status_tron.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/instance_status_tron.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/instance_tasks.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/instance_tasks.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/integer_and_error.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/integer_and_error.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
lazy... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/kubernetes_container.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/kubernetes_container.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
lazy... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/kubernetes_container_v2.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/kubernetes_container_v2.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/kubernetes_healthcheck.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/kubernetes_healthcheck.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
lazy... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/kubernetes_pod.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/kubernetes_pod.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/kubernetes_pod_event.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/kubernetes_pod_event.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
lazy... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/kubernetes_pod_v2.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/kubernetes_pod_v2.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/kubernetes_replica_set.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/kubernetes_replica_set.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
lazy... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/kubernetes_version.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/kubernetes_version.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/remote_run_outcome.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/remote_run_outcome.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/remote_run_start.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/remote_run_start.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/remote_run_stop.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/remote_run_stop.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/remote_run_token.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/remote_run_token.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
lazy... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/resource.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/resource.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
lazy... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/resource_item.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/resource_item.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/resource_value.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/resource_value.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/smartstack_backend.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/smartstack_backend.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
lazy... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/smartstack_location.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/smartstack_location.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
lazy... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/smartstack_status.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/smartstack_status.py | Apache-2.0 |
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
retu... |
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
| openapi_types | python | Yelp/paasta | paasta_tools/paastaapi/model/task_tail_lines.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/paastaapi/model/task_tail_lines.py | Apache-2.0 |
def get_key_versions(
self,
key_name: str,
) -> List[CryptoKey]:
"""
Retrieve all versions of Vault key based on its metadata
"""
client = self.clients[self.ecosystems[0]]
crypto_keys: List[CryptoKey] = []
try:
meta_response = client.secret... |
Retrieve all versions of Vault key based on its metadata
| get_key_versions | python | Yelp/paasta | paasta_tools/secret_providers/vault.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/secret_providers/vault.py | Apache-2.0 |
def update_namespace(self, namespace, new_config, skip_if_unchanged=True):
"""Updates the configuration for a namespace.
:param namespace: str
:param new_config: str, should be valid YAML.
:param skip_if_unchanged: boolean. If False, will send the update
even if the current ... | Updates the configuration for a namespace.
:param namespace: str
:param new_config: str, should be valid YAML.
:param skip_if_unchanged: boolean. If False, will send the update
even if the current config matches the new config.
| update_namespace | python | Yelp/paasta | paasta_tools/tron/client.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/tron/client.py | Apache-2.0 |
def update_namespaces(
self, new_configs: Dict[str, str], skip_if_unchanged: bool = True
):
"""Updates the configuration for a namespace.
:param namespace: str
:param new_config: str, should be valid YAML.
:param skip_if_unchanged: boolean. If False, will send the update
... | Updates the configuration for a namespace.
:param namespace: str
:param new_config: str, should be valid YAML.
:param skip_if_unchanged: boolean. If False, will send the update
even if the current config matches the new config.
| update_namespaces | python | Yelp/paasta | paasta_tools/tron/client.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/tron/client.py | Apache-2.0 |
def list_namespaces(self):
"""Gets the namespaces that are currently configured."""
response = self._get("/api")
return response.get("namespaces", []) | Gets the namespaces that are currently configured. | list_namespaces | python | Yelp/paasta | paasta_tools/tron/client.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/tron/client.py | Apache-2.0 |
def build_filled_context(*context_objects):
"""Create a CommandContext chain from context_objects, using a Filler
object to pass to each CommandContext. Can be used to validate a format
string.
"""
if not context_objects:
return CommandContext()
filler = Filler()
def build(current,... | Create a CommandContext chain from context_objects, using a Filler
object to pass to each CommandContext. Can be used to validate a format
string.
| build_filled_context | python | Yelp/paasta | paasta_tools/tron/tron_command_context.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/tron/tron_command_context.py | Apache-2.0 |
def __init__(self, base=None, next=None):
"""
base - Object to look for attributes in
next - Next place to look for more pieces of context
Generally this will be another instance of CommandContext
"""
self.base = base or {}
self.next = next or {} |
base - Object to look for attributes in
next - Next place to look for more pieces of context
Generally this will be another instance of CommandContext
| __init__ | python | Yelp/paasta | paasta_tools/tron/tron_command_context.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/tron/tron_command_context.py | Apache-2.0 |
def cleanup_job_status(self):
"""Provide 'SUCCESS' or 'FAILURE' to a cleanup action context based on
the status of the other steps
"""
if self.job_run.action_runs.is_failed:
return "FAILURE"
elif self.job_run.action_runs.is_complete_without_cleanup:
return... | Provide 'SUCCESS' or 'FAILURE' to a cleanup action context based on
the status of the other steps
| cleanup_job_status | python | Yelp/paasta | paasta_tools/tron/tron_command_context.py | https://github.com/Yelp/paasta/blob/master/paasta_tools/tron/tron_command_context.py | Apache-2.0 |
Subsets and Splits
Django Code with Docstrings
Filters Python code examples from Django repository that contain Django-related code, helping identify relevant code snippets for understanding Django framework usage patterns.
SQL Console for Shuu12121/python-treesitter-filtered-datasetsV2
Retrieves Python code examples from Django repository that contain 'django' in the code, which helps identify Django-specific code snippets but provides limited analytical insights beyond basic filtering.
SQL Console for Shuu12121/python-treesitter-filtered-datasetsV2
Retrieves specific code examples from the Flask repository but doesn't provide meaningful analysis or patterns beyond basic data retrieval.
HTTPX Repo Code and Docstrings
Retrieves specific code examples from the httpx repository, which is useful for understanding how particular libraries are used but doesn't provide broader analytical insights about the dataset.
Requests Repo Docstrings & Code
Retrieves code examples with their docstrings and file paths from the requests repository, providing basic filtering but limited analytical value beyond finding specific code samples.
Quart Repo Docstrings & Code
Retrieves code examples with their docstrings from the Quart repository, providing basic code samples but offering limited analytical value for understanding broader patterns or relationships in the dataset.