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 __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1alpha1ServingRuntime):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_serving_runtime.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_serving_runtime.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1alpha1ServingRuntime):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_serving_runtime.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_serving_runtime.py | Apache-2.0 |
def items(self, items):
"""Sets the items of this V1alpha1ServingRuntimeList.
:param items: The items of this V1alpha1ServingRuntimeList. # noqa: E501
:type: list[V1alpha1ServingRuntime]
"""
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E5... | Sets the items of this V1alpha1ServingRuntimeList.
:param items: The items of this V1alpha1ServingRuntimeList. # noqa: E501
:type: list[V1alpha1ServingRuntime]
| items | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_serving_runtime_list.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_serving_runtime_list.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_serving_runtime_list.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_serving_runtime_list.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1alpha1ServingRuntimeList):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_serving_runtime_list.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_serving_runtime_list.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1alpha1ServingRuntimeList):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_serving_runtime_list.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_serving_runtime_list.py | Apache-2.0 |
def containers(self, containers):
"""Sets the containers of this V1alpha1ServingRuntimePodSpec.
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
:param containers: The conta... | Sets the containers of this V1alpha1ServingRuntimePodSpec.
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
:param containers: The containers of this V1alpha1ServingRuntimePodSpec. ... | containers | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_serving_runtime_pod_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_serving_runtime_pod_spec.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_serving_runtime_pod_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_serving_runtime_pod_spec.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1alpha1ServingRuntimePodSpec):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_serving_runtime_pod_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_serving_runtime_pod_spec.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1alpha1ServingRuntimePodSpec):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_serving_runtime_pod_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_serving_runtime_pod_spec.py | Apache-2.0 |
def containers(self, containers):
"""Sets the containers of this V1alpha1ServingRuntimeSpec.
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
:param containers: The containe... | Sets the containers of this V1alpha1ServingRuntimeSpec.
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
:param containers: The containers of this V1alpha1ServingRuntimeSpec. # noq... | containers | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_serving_runtime_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_serving_runtime_spec.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_serving_runtime_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_serving_runtime_spec.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1alpha1ServingRuntimeSpec):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_serving_runtime_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_serving_runtime_spec.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1alpha1ServingRuntimeSpec):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_serving_runtime_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_serving_runtime_spec.py | Apache-2.0 |
def container(self, container):
"""Sets the container of this V1alpha1StorageContainerSpec.
:param container: The container of this V1alpha1StorageContainerSpec. # noqa: E501
:type: V1Container
"""
if self.local_vars_configuration.client_side_validation and container is None: ... | Sets the container of this V1alpha1StorageContainerSpec.
:param container: The container of this V1alpha1StorageContainerSpec. # noqa: E501
:type: V1Container
| container | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_storage_container_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_storage_container_spec.py | Apache-2.0 |
def supported_uri_formats(self, supported_uri_formats):
"""Sets the supported_uri_formats of this V1alpha1StorageContainerSpec.
List of URI formats that this container supports # noqa: E501
:param supported_uri_formats: The supported_uri_formats of this V1alpha1StorageContainerSpec. # noqa: ... | Sets the supported_uri_formats of this V1alpha1StorageContainerSpec.
List of URI formats that this container supports # noqa: E501
:param supported_uri_formats: The supported_uri_formats of this V1alpha1StorageContainerSpec. # noqa: E501
:type: list[V1alpha1SupportedUriFormat]
| supported_uri_formats | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_storage_container_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_storage_container_spec.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_storage_container_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_storage_container_spec.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1alpha1StorageContainerSpec):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_storage_container_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_storage_container_spec.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1alpha1StorageContainerSpec):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_storage_container_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_storage_container_spec.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_storage_helper.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_storage_helper.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1alpha1StorageHelper):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_storage_helper.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_storage_helper.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1alpha1StorageHelper):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_storage_helper.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_storage_helper.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_supported_model_format.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_supported_model_format.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1alpha1SupportedModelFormat):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_supported_model_format.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_supported_model_format.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1alpha1SupportedModelFormat):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_supported_model_format.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_supported_model_format.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_supported_uri_format.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_supported_uri_format.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1alpha1SupportedUriFormat):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_supported_uri_format.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_supported_uri_format.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1alpha1SupportedUriFormat):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_supported_uri_format.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_supported_uri_format.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_trained_model.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_trained_model.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1alpha1TrainedModel):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_trained_model.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_trained_model.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1alpha1TrainedModel):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_trained_model.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_trained_model.py | Apache-2.0 |
def items(self, items):
"""Sets the items of this V1alpha1TrainedModelList.
:param items: The items of this V1alpha1TrainedModelList. # noqa: E501
:type: list[V1alpha1TrainedModel]
"""
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
... | Sets the items of this V1alpha1TrainedModelList.
:param items: The items of this V1alpha1TrainedModelList. # noqa: E501
:type: list[V1alpha1TrainedModel]
| items | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_trained_model_list.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_trained_model_list.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_trained_model_list.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_trained_model_list.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1alpha1TrainedModelList):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_trained_model_list.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_trained_model_list.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1alpha1TrainedModelList):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_trained_model_list.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_trained_model_list.py | Apache-2.0 |
def inference_service(self, inference_service):
"""Sets the inference_service of this V1alpha1TrainedModelSpec.
parent inference service to deploy to # noqa: E501
:param inference_service: The inference_service of this V1alpha1TrainedModelSpec. # noqa: E501
:type: str
"""
... | Sets the inference_service of this V1alpha1TrainedModelSpec.
parent inference service to deploy to # noqa: E501
:param inference_service: The inference_service of this V1alpha1TrainedModelSpec. # noqa: E501
:type: str
| inference_service | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_trained_model_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_trained_model_spec.py | Apache-2.0 |
def model(self, model):
"""Sets the model of this V1alpha1TrainedModelSpec.
:param model: The model of this V1alpha1TrainedModelSpec. # noqa: E501
:type: V1alpha1ModelSpec
"""
if self.local_vars_configuration.client_side_validation and model is None: # noqa: E501
... | Sets the model of this V1alpha1TrainedModelSpec.
:param model: The model of this V1alpha1TrainedModelSpec. # noqa: E501
:type: V1alpha1ModelSpec
| model | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_trained_model_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_trained_model_spec.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_trained_model_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_trained_model_spec.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1alpha1TrainedModelSpec):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_trained_model_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_trained_model_spec.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1alpha1TrainedModelSpec):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1alpha1_trained_model_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1alpha1_trained_model_spec.py | Apache-2.0 |
def name(self, name):
"""Sets the name of this V1beta1ARTExplainerSpec.
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
:param name: The name of this V1beta1ARTExplainerSpec. # noqa: E501
:ty... | Sets the name of this V1beta1ARTExplainerSpec.
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
:param name: The name of this V1beta1ARTExplainerSpec. # noqa: E501
:type: str
| name | python | kserve/kserve | python/kserve/kserve/models/v1beta1_art_explainer_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_art_explainer_spec.py | Apache-2.0 |
def type(self, type):
"""Sets the type of this V1beta1ARTExplainerSpec.
The type of ART explainer # noqa: E501
:param type: The type of this V1beta1ARTExplainerSpec. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and type is None: ... | Sets the type of this V1beta1ARTExplainerSpec.
The type of ART explainer # noqa: E501
:param type: The type of this V1beta1ARTExplainerSpec. # noqa: E501
:type: str
| type | python | kserve/kserve | python/kserve/kserve/models/v1beta1_art_explainer_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_art_explainer_spec.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1beta1_art_explainer_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_art_explainer_spec.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1beta1ARTExplainerSpec):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_art_explainer_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_art_explainer_spec.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1beta1ARTExplainerSpec):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_art_explainer_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_art_explainer_spec.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1beta1_auto_scaling_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_auto_scaling_spec.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1beta1AutoScalingSpec):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_auto_scaling_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_auto_scaling_spec.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1beta1AutoScalingSpec):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_auto_scaling_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_auto_scaling_spec.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1beta1_batcher.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_batcher.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1beta1Batcher):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_batcher.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_batcher.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1beta1Batcher):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_batcher.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_batcher.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1beta1_component_extension_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_component_extension_spec.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1beta1ComponentExtensionSpec):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_component_extension_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_component_extension_spec.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1beta1ComponentExtensionSpec):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_component_extension_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_component_extension_spec.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1beta1_component_status_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_component_status_spec.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1beta1ComponentStatusSpec):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_component_status_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_component_status_spec.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1beta1ComponentStatusSpec):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_component_status_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_component_status_spec.py | Apache-2.0 |
def containers(self, containers):
"""Sets the containers of this V1beta1CustomExplainer.
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
:param containers: The containers o... | Sets the containers of this V1beta1CustomExplainer.
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
:param containers: The containers of this V1beta1CustomExplainer. # noqa: E501
... | containers | python | kserve/kserve | python/kserve/kserve/models/v1beta1_custom_explainer.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_custom_explainer.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1beta1_custom_explainer.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_custom_explainer.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1beta1CustomExplainer):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_custom_explainer.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_custom_explainer.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1beta1CustomExplainer):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_custom_explainer.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_custom_explainer.py | Apache-2.0 |
def containers(self, containers):
"""Sets the containers of this V1beta1CustomPredictor.
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
:param containers: The containers o... | Sets the containers of this V1beta1CustomPredictor.
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
:param containers: The containers of this V1beta1CustomPredictor. # noqa: E501
... | containers | python | kserve/kserve | python/kserve/kserve/models/v1beta1_custom_predictor.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_custom_predictor.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1beta1_custom_predictor.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_custom_predictor.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1beta1CustomPredictor):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_custom_predictor.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_custom_predictor.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1beta1CustomPredictor):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_custom_predictor.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_custom_predictor.py | Apache-2.0 |
def containers(self, containers):
"""Sets the containers of this V1beta1CustomTransformer.
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
:param containers: The containers... | Sets the containers of this V1beta1CustomTransformer.
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
:param containers: The containers of this V1beta1CustomTransformer. # noqa: E... | containers | python | kserve/kserve | python/kserve/kserve/models/v1beta1_custom_transformer.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_custom_transformer.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1beta1_custom_transformer.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_custom_transformer.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1beta1CustomTransformer):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_custom_transformer.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_custom_transformer.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1beta1CustomTransformer):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_custom_transformer.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_custom_transformer.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1beta1_deploy_config.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_deploy_config.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1beta1DeployConfig):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_deploy_config.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_deploy_config.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1beta1DeployConfig):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_deploy_config.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_deploy_config.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1beta1_explainers_config.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_explainers_config.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1beta1ExplainersConfig):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_explainers_config.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_explainers_config.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1beta1ExplainersConfig):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_explainers_config.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_explainers_config.py | Apache-2.0 |
def default_image_version(self, default_image_version):
"""Sets the default_image_version of this V1beta1ExplainerConfig.
default explainer docker image version # noqa: E501
:param default_image_version: The default_image_version of this V1beta1ExplainerConfig. # noqa: E501
:type: st... | Sets the default_image_version of this V1beta1ExplainerConfig.
default explainer docker image version # noqa: E501
:param default_image_version: The default_image_version of this V1beta1ExplainerConfig. # noqa: E501
:type: str
| default_image_version | python | kserve/kserve | python/kserve/kserve/models/v1beta1_explainer_config.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_explainer_config.py | Apache-2.0 |
def image(self, image):
"""Sets the image of this V1beta1ExplainerConfig.
explainer docker image name # noqa: E501
:param image: The image of this V1beta1ExplainerConfig. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and image is ... | Sets the image of this V1beta1ExplainerConfig.
explainer docker image name # noqa: E501
:param image: The image of this V1beta1ExplainerConfig. # noqa: E501
:type: str
| image | python | kserve/kserve | python/kserve/kserve/models/v1beta1_explainer_config.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_explainer_config.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1beta1_explainer_config.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_explainer_config.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1beta1ExplainerConfig):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_explainer_config.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_explainer_config.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1beta1ExplainerConfig):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_explainer_config.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_explainer_config.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1beta1_explainer_extension_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_explainer_extension_spec.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1beta1ExplainerExtensionSpec):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_explainer_extension_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_explainer_extension_spec.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1beta1ExplainerExtensionSpec):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_explainer_extension_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_explainer_extension_spec.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1beta1_explainer_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_explainer_spec.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1beta1ExplainerSpec):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_explainer_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_explainer_spec.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1beta1ExplainerSpec):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_explainer_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_explainer_spec.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1beta1_external_metrics.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_external_metrics.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1beta1ExternalMetrics):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_external_metrics.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_external_metrics.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1beta1ExternalMetrics):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_external_metrics.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_external_metrics.py | Apache-2.0 |
def metric(self, metric):
"""Sets the metric of this V1beta1ExternalMetricSource.
:param metric: The metric of this V1beta1ExternalMetricSource. # noqa: E501
:type: V1beta1ExternalMetrics
"""
if self.local_vars_configuration.client_side_validation and metric is None: # noqa: ... | Sets the metric of this V1beta1ExternalMetricSource.
:param metric: The metric of this V1beta1ExternalMetricSource. # noqa: E501
:type: V1beta1ExternalMetrics
| metric | python | kserve/kserve | python/kserve/kserve/models/v1beta1_external_metric_source.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_external_metric_source.py | Apache-2.0 |
def target(self, target):
"""Sets the target of this V1beta1ExternalMetricSource.
:param target: The target of this V1beta1ExternalMetricSource. # noqa: E501
:type: V1beta1MetricTarget
"""
if self.local_vars_configuration.client_side_validation and target is None: # noqa: E50... | Sets the target of this V1beta1ExternalMetricSource.
:param target: The target of this V1beta1ExternalMetricSource. # noqa: E501
:type: V1beta1MetricTarget
| target | python | kserve/kserve | python/kserve/kserve/models/v1beta1_external_metric_source.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_external_metric_source.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1beta1_external_metric_source.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_external_metric_source.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1beta1ExternalMetricSource):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_external_metric_source.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_external_metric_source.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1beta1ExternalMetricSource):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_external_metric_source.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_external_metric_source.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1beta1_failure_info.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_failure_info.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1beta1FailureInfo):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_failure_info.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_failure_info.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1beta1FailureInfo):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_failure_info.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_failure_info.py | Apache-2.0 |
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if has... | Returns the model properties as a dict | to_dict | python | kserve/kserve | python/kserve/kserve/models/v1beta1_hugging_face_runtime_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_hugging_face_runtime_spec.py | Apache-2.0 |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, V1beta1HuggingFaceRuntimeSpec):
return False
return self.to_dict() == other.to_dict() | Returns true if both objects are equal | __eq__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_hugging_face_runtime_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_hugging_face_runtime_spec.py | Apache-2.0 |
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, V1beta1HuggingFaceRuntimeSpec):
return True
return self.to_dict() != other.to_dict() | Returns true if both objects are not equal | __ne__ | python | kserve/kserve | python/kserve/kserve/models/v1beta1_hugging_face_runtime_spec.py | https://github.com/kserve/kserve/blob/master/python/kserve/kserve/models/v1beta1_hugging_face_runtime_spec.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 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.