def make_instance(self, include_optional): """Test ApiPipelineSpec include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # model = kfp_server_api.models.api_pipeline_spec.ApiPipelineSpec() # noqa: E501 if include_optional : return ApiPipelineSpec( pipeline_id = '0', pipeline_name = '0', workflow_manifest = '0', pipeline_manifest = '0', parameters = [ kfp_server_api.models.api_parameter.apiParameter( name = '0', value = '0', ) ], runtime_config = kfp_server_api.models.pipeline_spec_runtime_config.PipelineSpecRuntimeConfig( parameters = { 'key' : kfp_server_api.models.api_value.apiValue( int_value = '0', double_value = 1.337, string_value = '0', ) }, pipeline_root = '0', ) ) else : return ApiPipelineSpec( )
def make_instance(self, include_optional): """Test ApiPipelineSpec include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # model = kfp_server_api.models.api_pipeline_spec.ApiPipelineSpec() # noqa: E501 if include_optional: return ApiPipelineSpec( pipeline_id='0', pipeline_name='0', workflow_manifest='0', pipeline_manifest='0', parameters=[ kfp_server_api.models.api_parameter.apiParameter( name='0', value='0', ) ], runtime_config=kfp_server_api.models. pipeline_spec_runtime_config.PipelineSpecRuntimeConfig( parameters={ 'key': kfp_server_api.models.protobuf_value.protobufValue( null_value='NULL_VALUE', number_value=1.337, string_value='0', bool_value=True, struct_value=kfp_server_api.models.protobuf_struct. protobufStruct(fields={ 'key': kfp_server_api.models.protobuf_value. protobufValue( number_value=1.337, string_value='0', bool_value=True, list_value=kfp_server_api.models. protobuf_list_value.protobufListValue( values=[ kfp_server_api.models. protobuf_value.protobufValue( number_value=1.337, string_value='0', bool_value=True, ) ], ), ) }, ), list_value=kfp_server_api.models. protobuf_list_value.protobufListValue(), ) }, pipeline_root='0', parameter_values={'key': '0'}, )) else: return ApiPipelineSpec()
def make_instance(self, include_optional): """Test ApiPipelineSpec include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # model = kfp_server_api.models.api_pipeline_spec.ApiPipelineSpec() # noqa: E501 if include_optional: return ApiPipelineSpec( pipeline_id='0', pipeline_name='0', workflow_manifest='0', pipeline_manifest='0', parameters=[ kfp_server_api.models.api_parameter.apiParameter( name='0', value='0', ) ]) else: return ApiPipelineSpec()