@@ -349,6 +349,7 @@ import flat_api
349349from flat_api.api import score_api
350350from flat_api.model.score_creation import ScoreCreation
351351from flat_api.model.score_details import ScoreDetails
352+ from flat_api.model.score_privacy import ScorePrivacy
352353from flat_api.model.flat_error_response import FlatErrorResponse
353354from pprint import pprint
354355# Defining the host is optional and defaults to https://api.flat.io/v2
@@ -375,42 +376,9 @@ with flat_api.ApiClient(configuration) as api_client:
375376 body = ScoreCreation(
376377 title = " title_example" ,
377378 privacy = ScorePrivacy(" private" ),
378- collection = " collection_example" ,
379- google_drive_folder = " google_drive_folder_example" ,
380- builder_data = ScoreCreationBuilderData(
381- score_data = ScoreCreationBuilderDataScoreData(
382- use_tab_staff = True ,
383- use_chord_grid = True ,
384- fifths = 3.14 ,
385- nb_beats = 3.14 ,
386- beat_type = 3.14 ,
387- instruments = [
388- ScoreCreationBuilderDataScoreDataInstrumentsInner(
389- group = " group_example" ,
390- instrument = " instrument_example" ,
391- long_name = " long_name_example" ,
392- short_name = " short_name_example" ,
393- has_quarter_tone = True ,
394- ),
395- ],
396- ),
397- layout_data = ScoreCreationBuilderDataLayoutData(
398- notes_spacing_coeff = 3.14 ,
399- length_unit = " cm" ,
400- page_height = 3.14 ,
401- page_width = 3.14 ,
402- page_margin_top = 3.14 ,
403- page_margin_bottom = 3.14 ,
404- page_margin_left = 3.14 ,
405- page_margin_right = 3.14 ,
406- ),
407- ),
408379 filename = " filename_example" ,
409380 data = " data_example" ,
410- data_encoding = " base64" ,
411- source = ScoreSource(
412- google_drive = " google_drive_example" ,
413- ),
381+ data_encoding = " base64"
414382 ) # ScoreCreation |
415383
416384 # example passing only required values which don't have defaults set
@@ -822,6 +790,7 @@ import flat_api
822790from flat_api.api import score_api
823791from flat_api.model.score_modification import ScoreModification
824792from flat_api.model.score_details import ScoreDetails
793+ from flat_api.model.score_privacy import ScorePrivacy
825794from flat_api.model.flat_error_response import FlatErrorResponse
826795from pprint import pprint
827796# Defining the host is optional and defaults to https://api.flat.io/v2
0 commit comments