python/kserve/test/test_v1beta1_predictor_protocols.py
def make_instance(self, include_optional):
        """Test V1beta1PredictorProtocols
        include_option is a boolean, when False only required
        params are included, when True both required and
        optional params are included"""
        # model = kserve.models.v1beta1_predictor_protocols.V1beta1PredictorProtocols()  # noqa: E501
        if include_optional:
            return V1beta1PredictorProtocols(
                v1=kserve.models.v1beta1_predictor_config.V1beta1PredictorConfig(
                    default_gpu_image_version="0",
                    default_image_version="0",
                    image="0",
                    supported_frameworks=['0']
                ),
                v2=kserve.models.v1beta1_predictor_config.V1beta1PredictorConfig(
                    default_gpu_image_version="0",
                    default_image_version="0",
                    image="0",
                    supported_frameworks=['0']
                ),
            )
        else:
            return V1beta1PredictorProtocols()
Test V1beta1PredictorProtocols
        include_option is a boolean, when False only required
        params are included, when True both required and
        optional params are included
Test V1beta1PredictorProtocols
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included
Test V1beta1PredictorProtocols include_option is a boolean when False only required params are included when True both required and optional params are included
def make_instance(self, include_optional):
        if include_optional:
            return V1beta1PredictorProtocols(
                v1=kserve.models.v1beta1_predictor_config.V1beta1PredictorConfig(
                    default_gpu_image_version="0",
                    default_image_version="0",
                    image="0",
                    supported_frameworks=['0']
                ),
                v2=kserve.models.v1beta1_predictor_config.V1beta1PredictorConfig(
                    default_gpu_image_version="0",
                    default_image_version="0",
                    image="0",
                    supported_frameworks=['0']
                ),
            )
        else:
            return V1beta1PredictorProtocols()
def make_instance ( self , include_optional ) : if include_optional : return V1beta1PredictorProtocols ( v1 = kserve . models . v1beta1_predictor_config . V1beta1PredictorConfig ( default_gpu_image_version = "0" , default_image_version = "0" , image = "0" , supported_frameworks = [ '0' ] ) , v2 = kserve . models . v1beta1_predictor_config . V1beta1PredictorConfig ( default_gpu_image_version = "0" , default_image_version = "0" , image = "0" , supported_frameworks = [ '0' ] ) , ) else : return V1beta1PredictorProtocols ( )
Test V1beta1PredictorProtocols
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included
Test V1beta1PredictorProtocols include_option is a boolean when False only required params are included when True both required and optional params are included
"""Test V1beta1PredictorProtocols
        include_option is a boolean, when False only required
        params are included, when True both required and
        optional params are included""" # model = kserve.models.v1beta1_predictor_protocols.V1beta1PredictorProtocols()  # noqa: E501
self
include_optional