graviteeio_cli/commands/apim/apis/definition_group/generate.py
def generate(obj, config_path, format, from_id):
    """Generate default templates, setting and value files for api definition"""
    if not os.path.exists(config_path):
        os.mkdir(config_path)

    api_def_string = None
    if from_id:
        api_client: ApiClient = obj['api_client']
        api_def_string = api_client.get_export(from_id, filter_api_values)

    resolver = ConfigResolver(config_path)

    resolver.generate_init(
        Config_Type.API,
        format=File_Format_Enum.value_of(format),
        config_values=api_def_string
    )
Generate default templates, setting and value files for api definition
Generate default templates, setting and value files for api definition
Generate default templates setting and value files for api definition
def generate(obj, config_path, format, from_id):
    if not os.path.exists(config_path):
        os.mkdir(config_path)
    api_def_string = None
    if from_id:
        api_client: ApiClient = obj['api_client']
        api_def_string = api_client.get_export(from_id, filter_api_values)
    resolver = ConfigResolver(config_path)
    resolver.generate_init(
        Config_Type.API,
        format=File_Format_Enum.value_of(format),
        config_values=api_def_string
    )
def generate ( obj , config_path , format , from_id ) : if not os . path . exists ( config_path ) : os . mkdir ( config_path ) api_def_string = None if from_id : api_client : ApiClient = obj [ 'api_client' ] api_def_string = api_client . get_export ( from_id , filter_api_values ) resolver = ConfigResolver ( config_path ) resolver . generate_init ( Config_Type . API , format = File_Format_Enum . value_of ( format ) , config_values = api_def_string )
Generate default templates, setting and value files for api definition
Generate default templates setting and value files for api definition
"""Generate default templates, setting and value files for api definition"""
obj
config_path
format
from_id