quartic_sdk.core.entities.product

The given file contains the class to refer to the Product entity

Module Contents

Classes

Product

The given class refers to the product entity which is created based upon the product response

class quartic_sdk.core.entities.product.Product(body_json, api_helper)

Bases: quartic_sdk.core.entities.base.Base

The given class refers to the product entity which is created based upon the product response returned by the API

__repr__(self)

Override the method to return the product name

get_procedures(self, query_params={})

This method id used for fetching all the procedures belongs to a product :param query_params: Dictionary of filter conditions :return: List of Procedure(Procedure Entity) objects

create_procedure(self, name, site, start_batch_tag, stop_batch_tag, additional_attributes, start_rule, stop_rule)

This method is used for creating procedure of PH hierarchy inside particular product :param name: Procedure Name :param site: Site Object :param start_batch_tag: Tag Object :param stop_batch_tag: Tag Object :param additional_attributes: Additional attributes required to create procedure in the dictionary format and contains fields of Procedure like receipe_type, formula and receipe_version :param start_rule: Rule Class Object :param stop_rule: Rule Class Object :return: Procedure(Procedure Entity) Object