aspose_cad_cloud 20.11 → 24.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose_cad_cloud/api/cad_api.rb +2778 -392
  3. data/lib/aspose_cad_cloud/configuration.rb +8 -1
  4. data/lib/aspose_cad_cloud/models/bitmap_compression.rb +27 -0
  5. data/lib/aspose_cad_cloud/models/bmp_options_dto.rb +2 -2
  6. data/lib/aspose_cad_cloud/models/cad_draw_type_mode.rb +21 -0
  7. data/lib/aspose_cad_cloud/models/cad_response.rb +48 -8
  8. data/lib/aspose_cad_cloud/models/{cff2_properties.rb → cf2_properties.rb} +3 -3
  9. data/lib/aspose_cad_cloud/models/cgm_options_dto.rb +281 -0
  10. data/lib/aspose_cad_cloud/models/color_modes.rb +27 -0
  11. data/lib/aspose_cad_cloud/models/compression_method.rb +23 -0
  12. data/lib/aspose_cad_cloud/models/dicom_options_dto.rb +281 -0
  13. data/lib/aspose_cad_cloud/models/draco_options_dto.rb +281 -0
  14. data/lib/aspose_cad_cloud/models/dwf_options_dto.rb +281 -0
  15. data/lib/aspose_cad_cloud/models/dxf_options_dto.rb +281 -0
  16. data/lib/aspose_cad_cloud/models/{error.rb → error_model.rb} +2 -2
  17. data/lib/aspose_cad_cloud/models/fbx_options_dto.rb +281 -0
  18. data/lib/aspose_cad_cloud/models/fbx_properties.rb +197 -0
  19. data/lib/aspose_cad_cloud/models/files_upload_result.rb +1 -1
  20. data/lib/aspose_cad_cloud/models/glb_options_dto.rb +281 -0
  21. data/lib/aspose_cad_cloud/models/gltf_options_dto.rb +281 -0
  22. data/lib/aspose_cad_cloud/models/interpolation_mode.rb +28 -0
  23. data/lib/aspose_cad_cloud/models/jpeg2000_codec.rb +22 -0
  24. data/lib/aspose_cad_cloud/models/jpeg_compression_color_mode.rb +24 -0
  25. data/lib/aspose_cad_cloud/models/jpeg_compression_mode.rb +23 -0
  26. data/lib/aspose_cad_cloud/models/line_cap.rb +30 -0
  27. data/lib/aspose_cad_cloud/models/obj_options_dto.rb +281 -0
  28. data/lib/aspose_cad_cloud/models/obj_properties.rb +197 -0
  29. data/lib/aspose_cad_cloud/models/pdf_compliance.rb +22 -0
  30. data/lib/aspose_cad_cloud/models/pdf_digital_signature_details_core_dto.rb +294 -0
  31. data/lib/aspose_cad_cloud/models/pdf_digital_signature_hash_algorithm_core.rb +24 -0
  32. data/lib/aspose_cad_cloud/models/{pdf_document_options.rb → pdf_document_options_dto.rb} +17 -7
  33. data/lib/aspose_cad_cloud/models/pdf_options_dto.rb +1 -1
  34. data/lib/aspose_cad_cloud/models/plt_properties.rb +197 -0
  35. data/lib/aspose_cad_cloud/models/png_color_type.rb +24 -0
  36. data/lib/aspose_cad_cloud/models/png_filter_type.rb +25 -0
  37. data/lib/aspose_cad_cloud/models/requests/ConvertRequest.rb +53 -0
  38. data/lib/aspose_cad_cloud/models/requests/EditMetadataRequest.rb +45 -0
  39. data/lib/aspose_cad_cloud/models/requests/ExtractMetadataRequest.rb +49 -0
  40. data/lib/aspose_cad_cloud/models/requests/ExtractTextRequest.rb +45 -0
  41. data/lib/aspose_cad_cloud/models/requests/PaperToCadRequest.rb +49 -0
  42. data/lib/aspose_cad_cloud/models/requests/PostDrawingCgmRequest.rb +61 -0
  43. data/lib/aspose_cad_cloud/models/requests/PostDrawingDicomRequest.rb +61 -0
  44. data/lib/aspose_cad_cloud/models/requests/PostDrawingDracoRequest.rb +61 -0
  45. data/lib/aspose_cad_cloud/models/requests/PostDrawingDwfRequest.rb +61 -0
  46. data/lib/aspose_cad_cloud/models/requests/PostDrawingDxfRequest.rb +61 -0
  47. data/lib/aspose_cad_cloud/models/requests/PostDrawingFbxRequest.rb +61 -0
  48. data/lib/aspose_cad_cloud/models/requests/PostDrawingGlbRequest.rb +61 -0
  49. data/lib/aspose_cad_cloud/models/requests/PostDrawingGltfRequest.rb +61 -0
  50. data/lib/aspose_cad_cloud/models/requests/PostDrawingObjRequest.rb +61 -0
  51. data/lib/aspose_cad_cloud/models/requests/PostDrawingStpRequest.rb +61 -0
  52. data/lib/aspose_cad_cloud/models/requests/PostDrawingThreeDsRequest.rb +61 -0
  53. data/lib/aspose_cad_cloud/models/requests/PostDrawingU3dRequest.rb +61 -0
  54. data/lib/aspose_cad_cloud/models/requests/PostDrawingWebpRequest.rb +61 -0
  55. data/lib/aspose_cad_cloud/models/requests/PutDrawingCgmRequest.rb +57 -0
  56. data/lib/aspose_cad_cloud/models/requests/PutDrawingDicomRequest.rb +57 -0
  57. data/lib/aspose_cad_cloud/models/requests/PutDrawingDracoRequest.rb +57 -0
  58. data/lib/aspose_cad_cloud/models/requests/PutDrawingDwfRequest.rb +57 -0
  59. data/lib/aspose_cad_cloud/models/requests/PutDrawingDxfRequest.rb +57 -0
  60. data/lib/aspose_cad_cloud/models/requests/PutDrawingFbxRequest.rb +57 -0
  61. data/lib/aspose_cad_cloud/models/requests/PutDrawingGlbRequest.rb +57 -0
  62. data/lib/aspose_cad_cloud/models/requests/PutDrawingGltfRequest.rb +57 -0
  63. data/lib/aspose_cad_cloud/models/requests/PutDrawingObjRequest.rb +57 -0
  64. data/lib/aspose_cad_cloud/models/requests/PutDrawingStpRequest.rb +57 -0
  65. data/lib/aspose_cad_cloud/models/requests/PutDrawingThreeDsRequest.rb +57 -0
  66. data/lib/aspose_cad_cloud/models/requests/PutDrawingU3dRequest.rb +57 -0
  67. data/lib/aspose_cad_cloud/models/requests/PutDrawingWebpRequest.rb +57 -0
  68. data/lib/aspose_cad_cloud/models/requests/PutEditMetadataRequest.rb +49 -0
  69. data/lib/aspose_cad_cloud/models/requests/ViewerRequest.rb +49 -0
  70. data/lib/aspose_cad_cloud/models/requests/WatermarkRequest.rb +57 -0
  71. data/lib/aspose_cad_cloud/models/rotate_flip_type.rb +35 -0
  72. data/lib/aspose_cad_cloud/models/smoothing_mode.rb +25 -0
  73. data/lib/aspose_cad_cloud/models/stp_options_dto.rb +281 -0
  74. data/lib/aspose_cad_cloud/models/stp_properties.rb +197 -0
  75. data/lib/aspose_cad_cloud/models/svg_color_mode.rb +24 -0
  76. data/lib/aspose_cad_cloud/models/text_rendering_hint.rb +25 -0
  77. data/lib/aspose_cad_cloud/models/three_ds_options_dto.rb +281 -0
  78. data/lib/aspose_cad_cloud/models/tiff_byte_order.rb +21 -0
  79. data/lib/aspose_cad_cloud/models/tiff_compressions.rb +43 -0
  80. data/lib/aspose_cad_cloud/models/tiff_expected_format.rb +35 -0
  81. data/lib/aspose_cad_cloud/models/tiff_photometrics.rb +31 -0
  82. data/lib/aspose_cad_cloud/models/u3d_options_dto.rb +281 -0
  83. data/lib/aspose_cad_cloud/models/unit_type.rb +41 -0
  84. data/lib/aspose_cad_cloud/models/webp_options_dto.rb +281 -0
  85. data/lib/aspose_cad_cloud/version.rb +1 -1
  86. data/lib/aspose_cad_cloud.rb +43 -3
  87. metadata +100 -12
@@ -38,6 +38,72 @@ module AsposeCadCloud
38
38
  request_token
39
39
  end
40
40
 
41
+ # Convert CAD drawing to DXF, DWG, DGN, DWF, DWFX, DRC, IFC, STL, STP, STEP, CGM, GLB, GLTF, DWT, IGES, PLT, CF2, OBJ, HPGL, IGS, PCL, FBX, PDF, SVG format.
42
+ #
43
+ # @param request ConvertRequest
44
+ # @return [File]
45
+ def convert(request)
46
+ data, _status_code, _headers = convert_with_http_info(request)
47
+ request_token if _status_code == 401
48
+ data
49
+ end
50
+
51
+ # Convert CAD drawing to DXF, DWG, DGN, DWF, DWFX, DRC, IFC, STL, STP, STEP, CGM, GLB, GLTF, DWT, IGES, PLT, CF2, OBJ, HPGL, IGS, PCL, FBX, PDF, SVG format.
52
+ #
53
+ # @param request ConvertRequest
54
+ # @return [Array<(File, Fixnum, Hash)>]
55
+ # File data, response status code and response headers
56
+ def convert_with_http_info(request)
57
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? ConvertRequest
58
+
59
+ @api_client.config.logger.debug 'Calling API: CadApi.convert ...' if @api_client.config.debugging
60
+ # verify the required parameter 'output_format' is set
61
+ raise ArgumentError, 'Missing the required parameter output_format when calling CadApi.convert' if @api_client.config.client_side_validation && request.output_format.nil?
62
+ # resource path
63
+ local_var_path = '/cad/Convert'
64
+
65
+ # query parameters
66
+ query_params = {}
67
+ query_params[downcase_first_letter('outputFormat')] = request.output_format
68
+
69
+ if local_var_path.include? downcase_first_letter('outputTypeExt')
70
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outputTypeExt') + '}', request.output_type_ext.to_s)
71
+ else
72
+ query_params[downcase_first_letter('outputTypeExt')] = request.output_type_ext unless request.output_type_ext.nil?
73
+ end
74
+
75
+ # header parameters
76
+ header_params = {}
77
+ # HTTP header 'Accept' (if needed)
78
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
79
+ # HTTP header 'Content-Type'
80
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
81
+
82
+ # form parameters
83
+ form_params = {}
84
+ form_params[downcase_first_letter('drawing')] = request.drawing unless request.drawing.nil?
85
+
86
+ if not form_params.empty?
87
+ header_params['Content-Type'] = 'multipart/form-data'
88
+ end
89
+
90
+ # http body (model)
91
+ post_body = nil
92
+ auth_names = ['Bearer']
93
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
94
+ header_params: header_params,
95
+ query_params: query_params,
96
+ form_params: form_params,
97
+ body: post_body,
98
+ auth_names: auth_names,
99
+ return_type: 'File')
100
+ if @api_client.config.debugging
101
+ @api_client.config.logger.debug "API called:
102
+ CadApi#convert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
103
+ end
104
+ [data, status_code, headers]
105
+ end
106
+
41
107
  # Copy file
42
108
  #
43
109
  # @param request CopyFileRequest
@@ -101,7 +167,7 @@ module AsposeCadCloud
101
167
 
102
168
  # http body (model)
103
169
  post_body = nil
104
- auth_names = ['JWT']
170
+ auth_names = ['Bearer']
105
171
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
106
172
  header_params: header_params,
107
173
  query_params: query_params,
@@ -173,7 +239,7 @@ module AsposeCadCloud
173
239
 
174
240
  # http body (model)
175
241
  post_body = nil
176
- auth_names = ['JWT']
242
+ auth_names = ['Bearer']
177
243
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
178
244
  header_params: header_params,
179
245
  query_params: query_params,
@@ -236,7 +302,7 @@ module AsposeCadCloud
236
302
 
237
303
  # http body (model)
238
304
  post_body = nil
239
- auth_names = ['JWT']
305
+ auth_names = ['Bearer']
240
306
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
241
307
  header_params: header_params,
242
308
  query_params: query_params,
@@ -304,7 +370,7 @@ module AsposeCadCloud
304
370
 
305
371
  # http body (model)
306
372
  post_body = nil
307
- auth_names = ['JWT']
373
+ auth_names = ['Bearer']
308
374
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
309
375
  header_params: header_params,
310
376
  query_params: query_params,
@@ -372,7 +438,7 @@ module AsposeCadCloud
372
438
 
373
439
  # http body (model)
374
440
  post_body = nil
375
- auth_names = ['JWT']
441
+ auth_names = ['Bearer']
376
442
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
377
443
  header_params: header_params,
378
444
  query_params: query_params,
@@ -440,7 +506,7 @@ module AsposeCadCloud
440
506
 
441
507
  # http body (model)
442
508
  post_body = nil
443
- auth_names = ['JWT']
509
+ auth_names = ['Bearer']
444
510
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
445
511
  header_params: header_params,
446
512
  query_params: query_params,
@@ -455,6 +521,181 @@ module AsposeCadCloud
455
521
  [data, status_code, headers]
456
522
  end
457
523
 
524
+ # Get Metadata info
525
+ #
526
+ # @param request EditMetadataRequest
527
+ # @return [File]
528
+ def edit_metadata(request)
529
+ data, _status_code, _headers = edit_metadata_with_http_info(request)
530
+ request_token if _status_code == 401
531
+ data
532
+ end
533
+
534
+ # Get Metadata info
535
+ #
536
+ # @param request EditMetadataRequest
537
+ # @return [Array<(File, Fixnum, Hash)>]
538
+ # File data, response status code and response headers
539
+ def edit_metadata_with_http_info(request)
540
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? EditMetadataRequest
541
+
542
+ @api_client.config.logger.debug 'Calling API: CadApi.edit_metadata ...' if @api_client.config.debugging
543
+ # resource path
544
+ local_var_path = '/cad/EditMetadata'
545
+
546
+ # query parameters
547
+ query_params = {}
548
+
549
+ # header parameters
550
+ header_params = {}
551
+ # HTTP header 'Accept' (if needed)
552
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
553
+ # HTTP header 'Content-Type'
554
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
555
+
556
+ # form parameters
557
+ form_params = {}
558
+ form_params[downcase_first_letter('drawing')] = request.drawing unless request.drawing.nil?
559
+
560
+ if not form_params.empty?
561
+ header_params['Content-Type'] = 'multipart/form-data'
562
+ end
563
+
564
+ # http body (model)
565
+ post_body = nil
566
+ auth_names = ['Bearer']
567
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
568
+ header_params: header_params,
569
+ query_params: query_params,
570
+ form_params: form_params,
571
+ body: post_body,
572
+ auth_names: auth_names,
573
+ return_type: 'File')
574
+ if @api_client.config.debugging
575
+ @api_client.config.logger.debug "API called:
576
+ CadApi#edit_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
577
+ end
578
+ [data, status_code, headers]
579
+ end
580
+
581
+ # Extract Metadata from CAD drawing to txt, xml or json file.
582
+ #
583
+ # @param request ExtractMetadataRequest
584
+ # @return [File]
585
+ def extract_metadata(request)
586
+ data, _status_code, _headers = extract_metadata_with_http_info(request)
587
+ request_token if _status_code == 401
588
+ data
589
+ end
590
+
591
+ # Extract Metadata from CAD drawing to txt, xml or json file.
592
+ #
593
+ # @param request ExtractMetadataRequest
594
+ # @return [Array<(File, Fixnum, Hash)>]
595
+ # File data, response status code and response headers
596
+ def extract_metadata_with_http_info(request)
597
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? ExtractMetadataRequest
598
+
599
+ @api_client.config.logger.debug 'Calling API: CadApi.extract_metadata ...' if @api_client.config.debugging
600
+ # verify the required parameter 'output_format' is set
601
+ raise ArgumentError, 'Missing the required parameter output_format when calling CadApi.extract_metadata' if @api_client.config.client_side_validation && request.output_format.nil?
602
+ # resource path
603
+ local_var_path = '/cad/ExtractMetadata'
604
+
605
+ # query parameters
606
+ query_params = {}
607
+ query_params[downcase_first_letter('outputFormat')] = request.output_format
608
+
609
+
610
+ # header parameters
611
+ header_params = {}
612
+ # HTTP header 'Accept' (if needed)
613
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
614
+ # HTTP header 'Content-Type'
615
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
616
+
617
+ # form parameters
618
+ form_params = {}
619
+ form_params[downcase_first_letter('drawing')] = request.drawing unless request.drawing.nil?
620
+
621
+ if not form_params.empty?
622
+ header_params['Content-Type'] = 'multipart/form-data'
623
+ end
624
+
625
+ # http body (model)
626
+ post_body = nil
627
+ auth_names = ['Bearer']
628
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
629
+ header_params: header_params,
630
+ query_params: query_params,
631
+ form_params: form_params,
632
+ body: post_body,
633
+ auth_names: auth_names,
634
+ return_type: 'File')
635
+ if @api_client.config.debugging
636
+ @api_client.config.logger.debug "API called:
637
+ CadApi#extract_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
638
+ end
639
+ [data, status_code, headers]
640
+ end
641
+
642
+ # Extract Text from CAD drawing to txt file
643
+ #
644
+ # @param request ExtractTextRequest
645
+ # @return [File]
646
+ def extract_text(request)
647
+ data, _status_code, _headers = extract_text_with_http_info(request)
648
+ request_token if _status_code == 401
649
+ data
650
+ end
651
+
652
+ # Extract Text from CAD drawing to txt file
653
+ #
654
+ # @param request ExtractTextRequest
655
+ # @return [Array<(File, Fixnum, Hash)>]
656
+ # File data, response status code and response headers
657
+ def extract_text_with_http_info(request)
658
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? ExtractTextRequest
659
+
660
+ @api_client.config.logger.debug 'Calling API: CadApi.extract_text ...' if @api_client.config.debugging
661
+ # resource path
662
+ local_var_path = '/cad/ExtractText'
663
+
664
+ # query parameters
665
+ query_params = {}
666
+
667
+ # header parameters
668
+ header_params = {}
669
+ # HTTP header 'Accept' (if needed)
670
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
671
+ # HTTP header 'Content-Type'
672
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
673
+
674
+ # form parameters
675
+ form_params = {}
676
+ form_params[downcase_first_letter('drawing')] = request.drawing unless request.drawing.nil?
677
+
678
+ if not form_params.empty?
679
+ header_params['Content-Type'] = 'multipart/form-data'
680
+ end
681
+
682
+ # http body (model)
683
+ post_body = nil
684
+ auth_names = ['Bearer']
685
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
686
+ header_params: header_params,
687
+ query_params: query_params,
688
+ form_params: form_params,
689
+ body: post_body,
690
+ auth_names: auth_names,
691
+ return_type: 'File')
692
+ if @api_client.config.debugging
693
+ @api_client.config.logger.debug "API called:
694
+ CadApi#extract_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
695
+ end
696
+ [data, status_code, headers]
697
+ end
698
+
458
699
  # Get disc usage
459
700
  #
460
701
  # @param request GetDiscUsageRequest
@@ -501,7 +742,7 @@ module AsposeCadCloud
501
742
 
502
743
  # http body (model)
503
744
  post_body = nil
504
- auth_names = ['JWT']
745
+ auth_names = ['Bearer']
505
746
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
506
747
  header_params: header_params,
507
748
  query_params: query_params,
@@ -570,7 +811,7 @@ module AsposeCadCloud
570
811
 
571
812
  # http body (model)
572
813
  post_body = nil
573
- auth_names = ['JWT']
814
+ auth_names = ['Bearer']
574
815
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
575
816
  header_params: header_params,
576
817
  query_params: query_params,
@@ -656,7 +897,7 @@ module AsposeCadCloud
656
897
 
657
898
  # http body (model)
658
899
  post_body = nil
659
- auth_names = ['JWT']
900
+ auth_names = ['Bearer']
660
901
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
661
902
  header_params: header_params,
662
903
  query_params: query_params,
@@ -740,7 +981,7 @@ module AsposeCadCloud
740
981
 
741
982
  # http body (model)
742
983
  post_body = nil
743
- auth_names = ['JWT']
984
+ auth_names = ['Bearer']
744
985
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
745
986
  header_params: header_params,
746
987
  query_params: query_params,
@@ -817,7 +1058,7 @@ module AsposeCadCloud
817
1058
 
818
1059
  # http body (model)
819
1060
  post_body = nil
820
- auth_names = ['JWT']
1061
+ auth_names = ['Bearer']
821
1062
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
822
1063
  header_params: header_params,
823
1064
  query_params: query_params,
@@ -881,7 +1122,7 @@ module AsposeCadCloud
881
1122
 
882
1123
  # http body (model)
883
1124
  post_body = nil
884
- auth_names = ['JWT']
1125
+ auth_names = ['Bearer']
885
1126
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
886
1127
  header_params: header_params,
887
1128
  query_params: query_params,
@@ -945,7 +1186,7 @@ module AsposeCadCloud
945
1186
 
946
1187
  # http body (model)
947
1188
  post_body = nil
948
- auth_names = ['JWT']
1189
+ auth_names = ['Bearer']
949
1190
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
950
1191
  header_params: header_params,
951
1192
  query_params: query_params,
@@ -1023,7 +1264,7 @@ module AsposeCadCloud
1023
1264
 
1024
1265
  # http body (model)
1025
1266
  post_body = nil
1026
- auth_names = ['JWT']
1267
+ auth_names = ['Bearer']
1027
1268
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1028
1269
  header_params: header_params,
1029
1270
  query_params: query_params,
@@ -1095,7 +1336,7 @@ module AsposeCadCloud
1095
1336
 
1096
1337
  # http body (model)
1097
1338
  post_body = nil
1098
- auth_names = ['JWT']
1339
+ auth_names = ['Bearer']
1099
1340
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1100
1341
  header_params: header_params,
1101
1342
  query_params: query_params,
@@ -1163,7 +1404,7 @@ module AsposeCadCloud
1163
1404
 
1164
1405
  # http body (model)
1165
1406
  post_body = nil
1166
- auth_names = ['JWT']
1407
+ auth_names = ['Bearer']
1167
1408
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1168
1409
  header_params: header_params,
1169
1410
  query_params: query_params,
@@ -1178,6 +1419,67 @@ module AsposeCadCloud
1178
1419
  [data, status_code, headers]
1179
1420
  end
1180
1421
 
1422
+ # Convert bitmap image to DXF, DWG, DGN, DWF, DWFX, DRC, IFC, STL, STP, STEP, CGM, GLB, GLTF, DWT, IGES, PLT, CF2, OBJ, HPGL, IGS, PCL, FBX, SVG format.
1423
+ #
1424
+ # @param request PaperToCadRequest
1425
+ # @return [File]
1426
+ def paper_to_cad(request)
1427
+ data, _status_code, _headers = paper_to_cad_with_http_info(request)
1428
+ request_token if _status_code == 401
1429
+ data
1430
+ end
1431
+
1432
+ # Convert bitmap image to DXF, DWG, DGN, DWF, DWFX, DRC, IFC, STL, STP, STEP, CGM, GLB, GLTF, DWT, IGES, PLT, CF2, OBJ, HPGL, IGS, PCL, FBX, SVG format.
1433
+ #
1434
+ # @param request PaperToCadRequest
1435
+ # @return [Array<(File, Fixnum, Hash)>]
1436
+ # File data, response status code and response headers
1437
+ def paper_to_cad_with_http_info(request)
1438
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PaperToCadRequest
1439
+
1440
+ @api_client.config.logger.debug 'Calling API: CadApi.paper_to_cad ...' if @api_client.config.debugging
1441
+ # verify the required parameter 'output_format' is set
1442
+ raise ArgumentError, 'Missing the required parameter output_format when calling CadApi.paper_to_cad' if @api_client.config.client_side_validation && request.output_format.nil?
1443
+ # resource path
1444
+ local_var_path = '/cad/paper-to-cad'
1445
+
1446
+ # query parameters
1447
+ query_params = {}
1448
+ query_params[downcase_first_letter('outputFormat')] = request.output_format
1449
+
1450
+
1451
+ # header parameters
1452
+ header_params = {}
1453
+ # HTTP header 'Accept' (if needed)
1454
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1455
+ # HTTP header 'Content-Type'
1456
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
1457
+
1458
+ # form parameters
1459
+ form_params = {}
1460
+ form_params[downcase_first_letter('drawing')] = request.drawing unless request.drawing.nil?
1461
+
1462
+ if not form_params.empty?
1463
+ header_params['Content-Type'] = 'multipart/form-data'
1464
+ end
1465
+
1466
+ # http body (model)
1467
+ post_body = nil
1468
+ auth_names = ['Bearer']
1469
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1470
+ header_params: header_params,
1471
+ query_params: query_params,
1472
+ form_params: form_params,
1473
+ body: post_body,
1474
+ auth_names: auth_names,
1475
+ return_type: 'File')
1476
+ if @api_client.config.debugging
1477
+ @api_client.config.logger.debug "API called:
1478
+ CadApi#paper_to_cad\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1479
+ end
1480
+ [data, status_code, headers]
1481
+ end
1482
+
1181
1483
  # Export an existing drawing to BMP format with export settings specified.
1182
1484
  #
1183
1485
  # @param request PostDrawingBmpRequest
@@ -1239,7 +1541,7 @@ module AsposeCadCloud
1239
1541
 
1240
1542
  # http body (model)
1241
1543
  post_body = @api_client.object_to_http_body(request.options)
1242
- auth_names = ['JWT']
1544
+ auth_names = ['Bearer']
1243
1545
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1244
1546
  header_params: header_params,
1245
1547
  query_params: query_params,
@@ -1254,31 +1556,31 @@ module AsposeCadCloud
1254
1556
  [data, status_code, headers]
1255
1557
  end
1256
1558
 
1257
- # Export an existing drawing into GIF format with export settings specified.
1559
+ # Export an existing drawing to CGM format with export settings specified.
1258
1560
  #
1259
- # @param request PostDrawingGifRequest
1561
+ # @param request PostDrawingCgmRequest
1260
1562
  # @return [File]
1261
- def post_drawing_gif(request)
1262
- data, _status_code, _headers = post_drawing_gif_with_http_info(request)
1563
+ def post_drawing_cgm(request)
1564
+ data, _status_code, _headers = post_drawing_cgm_with_http_info(request)
1263
1565
  request_token if _status_code == 401
1264
1566
  data
1265
1567
  end
1266
1568
 
1267
- # Export an existing drawing into GIF format with export settings specified.
1569
+ # Export an existing drawing to CGM format with export settings specified.
1268
1570
  #
1269
- # @param request PostDrawingGifRequest
1571
+ # @param request PostDrawingCgmRequest
1270
1572
  # @return [Array<(File, Fixnum, Hash)>]
1271
1573
  # File data, response status code and response headers
1272
- def post_drawing_gif_with_http_info(request)
1273
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingGifRequest
1574
+ def post_drawing_cgm_with_http_info(request)
1575
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingCgmRequest
1274
1576
 
1275
- @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_gif ...' if @api_client.config.debugging
1577
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_cgm ...' if @api_client.config.debugging
1276
1578
  # verify the required parameter 'name' is set
1277
- raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_gif' if @api_client.config.client_side_validation && request.name.nil?
1579
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_cgm' if @api_client.config.client_side_validation && request.name.nil?
1278
1580
  # verify the required parameter 'options' is set
1279
- raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_gif' if @api_client.config.client_side_validation && request.options.nil?
1581
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_cgm' if @api_client.config.client_side_validation && request.options.nil?
1280
1582
  # resource path
1281
- local_var_path = '/cad/{name}/gif'
1583
+ local_var_path = '/cad/{name}/cgm'
1282
1584
  local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
1283
1585
 
1284
1586
  # query parameters
@@ -1315,7 +1617,7 @@ module AsposeCadCloud
1315
1617
 
1316
1618
  # http body (model)
1317
1619
  post_body = @api_client.object_to_http_body(request.options)
1318
- auth_names = ['JWT']
1620
+ auth_names = ['Bearer']
1319
1621
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1320
1622
  header_params: header_params,
1321
1623
  query_params: query_params,
@@ -1325,36 +1627,36 @@ module AsposeCadCloud
1325
1627
  return_type: 'File')
1326
1628
  if @api_client.config.debugging
1327
1629
  @api_client.config.logger.debug "API called:
1328
- CadApi#post_drawing_gif\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1630
+ CadApi#post_drawing_cgm\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1329
1631
  end
1330
1632
  [data, status_code, headers]
1331
1633
  end
1332
1634
 
1333
- # Export an existing drawing into JPEG format with export settings specified.
1635
+ # Export an existing drawing to Dicom format with export settings specified.
1334
1636
  #
1335
- # @param request PostDrawingJpegRequest
1637
+ # @param request PostDrawingDicomRequest
1336
1638
  # @return [File]
1337
- def post_drawing_jpeg(request)
1338
- data, _status_code, _headers = post_drawing_jpeg_with_http_info(request)
1639
+ def post_drawing_dicom(request)
1640
+ data, _status_code, _headers = post_drawing_dicom_with_http_info(request)
1339
1641
  request_token if _status_code == 401
1340
1642
  data
1341
1643
  end
1342
1644
 
1343
- # Export an existing drawing into JPEG format with export settings specified.
1645
+ # Export an existing drawing to Dicom format with export settings specified.
1344
1646
  #
1345
- # @param request PostDrawingJpegRequest
1647
+ # @param request PostDrawingDicomRequest
1346
1648
  # @return [Array<(File, Fixnum, Hash)>]
1347
1649
  # File data, response status code and response headers
1348
- def post_drawing_jpeg_with_http_info(request)
1349
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingJpegRequest
1650
+ def post_drawing_dicom_with_http_info(request)
1651
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingDicomRequest
1350
1652
 
1351
- @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_jpeg ...' if @api_client.config.debugging
1653
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_dicom ...' if @api_client.config.debugging
1352
1654
  # verify the required parameter 'name' is set
1353
- raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_jpeg' if @api_client.config.client_side_validation && request.name.nil?
1655
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_dicom' if @api_client.config.client_side_validation && request.name.nil?
1354
1656
  # verify the required parameter 'options' is set
1355
- raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_jpeg' if @api_client.config.client_side_validation && request.options.nil?
1657
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_dicom' if @api_client.config.client_side_validation && request.options.nil?
1356
1658
  # resource path
1357
- local_var_path = '/cad/{name}/jpeg'
1659
+ local_var_path = '/cad/{name}/dicom'
1358
1660
  local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
1359
1661
 
1360
1662
  # query parameters
@@ -1391,7 +1693,7 @@ module AsposeCadCloud
1391
1693
 
1392
1694
  # http body (model)
1393
1695
  post_body = @api_client.object_to_http_body(request.options)
1394
- auth_names = ['JWT']
1696
+ auth_names = ['Bearer']
1395
1697
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1396
1698
  header_params: header_params,
1397
1699
  query_params: query_params,
@@ -1401,36 +1703,36 @@ module AsposeCadCloud
1401
1703
  return_type: 'File')
1402
1704
  if @api_client.config.debugging
1403
1705
  @api_client.config.logger.debug "API called:
1404
- CadApi#post_drawing_jpeg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1706
+ CadApi#post_drawing_dicom\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1405
1707
  end
1406
1708
  [data, status_code, headers]
1407
1709
  end
1408
1710
 
1409
- # Export an existing drawing into JPEG2000 format with export settings specified.
1711
+ # Export an existing drawing to Draco format with export settings specified.
1410
1712
  #
1411
- # @param request PostDrawingJpeg2000Request
1713
+ # @param request PostDrawingDracoRequest
1412
1714
  # @return [File]
1413
- def post_drawing_jpeg2000(request)
1414
- data, _status_code, _headers = post_drawing_jpeg2000_with_http_info(request)
1715
+ def post_drawing_draco(request)
1716
+ data, _status_code, _headers = post_drawing_draco_with_http_info(request)
1415
1717
  request_token if _status_code == 401
1416
1718
  data
1417
1719
  end
1418
1720
 
1419
- # Export an existing drawing into JPEG2000 format with export settings specified.
1721
+ # Export an existing drawing to Draco format with export settings specified.
1420
1722
  #
1421
- # @param request PostDrawingJpeg2000Request
1723
+ # @param request PostDrawingDracoRequest
1422
1724
  # @return [Array<(File, Fixnum, Hash)>]
1423
1725
  # File data, response status code and response headers
1424
- def post_drawing_jpeg2000_with_http_info(request)
1425
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingJpeg2000Request
1726
+ def post_drawing_draco_with_http_info(request)
1727
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingDracoRequest
1426
1728
 
1427
- @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_jpeg2000 ...' if @api_client.config.debugging
1729
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_draco ...' if @api_client.config.debugging
1428
1730
  # verify the required parameter 'name' is set
1429
- raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_jpeg2000' if @api_client.config.client_side_validation && request.name.nil?
1731
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_draco' if @api_client.config.client_side_validation && request.name.nil?
1430
1732
  # verify the required parameter 'options' is set
1431
- raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_jpeg2000' if @api_client.config.client_side_validation && request.options.nil?
1733
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_draco' if @api_client.config.client_side_validation && request.options.nil?
1432
1734
  # resource path
1433
- local_var_path = '/cad/{name}/jpeg2000'
1735
+ local_var_path = '/cad/{name}/drc'
1434
1736
  local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
1435
1737
 
1436
1738
  # query parameters
@@ -1467,7 +1769,7 @@ module AsposeCadCloud
1467
1769
 
1468
1770
  # http body (model)
1469
1771
  post_body = @api_client.object_to_http_body(request.options)
1470
- auth_names = ['JWT']
1772
+ auth_names = ['Bearer']
1471
1773
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1472
1774
  header_params: header_params,
1473
1775
  query_params: query_params,
@@ -1477,36 +1779,36 @@ module AsposeCadCloud
1477
1779
  return_type: 'File')
1478
1780
  if @api_client.config.debugging
1479
1781
  @api_client.config.logger.debug "API called:
1480
- CadApi#post_drawing_jpeg2000\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1782
+ CadApi#post_drawing_draco\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1481
1783
  end
1482
1784
  [data, status_code, headers]
1483
1785
  end
1484
1786
 
1485
- # Export an existing drawing to PDF format with export settings specified.
1787
+ # Export an existing drawing to Dwf format with export settings specified.
1486
1788
  #
1487
- # @param request PostDrawingPdfRequest
1789
+ # @param request PostDrawingDwfRequest
1488
1790
  # @return [File]
1489
- def post_drawing_pdf(request)
1490
- data, _status_code, _headers = post_drawing_pdf_with_http_info(request)
1791
+ def post_drawing_dwf(request)
1792
+ data, _status_code, _headers = post_drawing_dwf_with_http_info(request)
1491
1793
  request_token if _status_code == 401
1492
1794
  data
1493
1795
  end
1494
1796
 
1495
- # Export an existing drawing to PDF format with export settings specified.
1797
+ # Export an existing drawing to Dwf format with export settings specified.
1496
1798
  #
1497
- # @param request PostDrawingPdfRequest
1799
+ # @param request PostDrawingDwfRequest
1498
1800
  # @return [Array<(File, Fixnum, Hash)>]
1499
1801
  # File data, response status code and response headers
1500
- def post_drawing_pdf_with_http_info(request)
1501
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingPdfRequest
1802
+ def post_drawing_dwf_with_http_info(request)
1803
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingDwfRequest
1502
1804
 
1503
- @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_pdf ...' if @api_client.config.debugging
1805
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_dwf ...' if @api_client.config.debugging
1504
1806
  # verify the required parameter 'name' is set
1505
- raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_pdf' if @api_client.config.client_side_validation && request.name.nil?
1807
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_dwf' if @api_client.config.client_side_validation && request.name.nil?
1506
1808
  # verify the required parameter 'options' is set
1507
- raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_pdf' if @api_client.config.client_side_validation && request.options.nil?
1809
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_dwf' if @api_client.config.client_side_validation && request.options.nil?
1508
1810
  # resource path
1509
- local_var_path = '/cad/{name}/pdf'
1811
+ local_var_path = '/cad/{name}/dwf'
1510
1812
  local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
1511
1813
 
1512
1814
  # query parameters
@@ -1543,7 +1845,7 @@ module AsposeCadCloud
1543
1845
 
1544
1846
  # http body (model)
1545
1847
  post_body = @api_client.object_to_http_body(request.options)
1546
- auth_names = ['JWT']
1848
+ auth_names = ['Bearer']
1547
1849
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1548
1850
  header_params: header_params,
1549
1851
  query_params: query_params,
@@ -1553,36 +1855,36 @@ module AsposeCadCloud
1553
1855
  return_type: 'File')
1554
1856
  if @api_client.config.debugging
1555
1857
  @api_client.config.logger.debug "API called:
1556
- CadApi#post_drawing_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1858
+ CadApi#post_drawing_dwf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1557
1859
  end
1558
1860
  [data, status_code, headers]
1559
1861
  end
1560
1862
 
1561
- # Export an existing drawing into PNG format with export settings specified.
1863
+ # Export an existing drawing to DXF format with export settings specified.
1562
1864
  #
1563
- # @param request PostDrawingPngRequest
1865
+ # @param request PostDrawingDxfRequest
1564
1866
  # @return [File]
1565
- def post_drawing_png(request)
1566
- data, _status_code, _headers = post_drawing_png_with_http_info(request)
1867
+ def post_drawing_dxf(request)
1868
+ data, _status_code, _headers = post_drawing_dxf_with_http_info(request)
1567
1869
  request_token if _status_code == 401
1568
1870
  data
1569
1871
  end
1570
1872
 
1571
- # Export an existing drawing into PNG format with export settings specified.
1873
+ # Export an existing drawing to DXF format with export settings specified.
1572
1874
  #
1573
- # @param request PostDrawingPngRequest
1875
+ # @param request PostDrawingDxfRequest
1574
1876
  # @return [Array<(File, Fixnum, Hash)>]
1575
1877
  # File data, response status code and response headers
1576
- def post_drawing_png_with_http_info(request)
1577
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingPngRequest
1878
+ def post_drawing_dxf_with_http_info(request)
1879
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingDxfRequest
1578
1880
 
1579
- @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_png ...' if @api_client.config.debugging
1881
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_dxf ...' if @api_client.config.debugging
1580
1882
  # verify the required parameter 'name' is set
1581
- raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_png' if @api_client.config.client_side_validation && request.name.nil?
1883
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_dxf' if @api_client.config.client_side_validation && request.name.nil?
1582
1884
  # verify the required parameter 'options' is set
1583
- raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_png' if @api_client.config.client_side_validation && request.options.nil?
1885
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_dxf' if @api_client.config.client_side_validation && request.options.nil?
1584
1886
  # resource path
1585
- local_var_path = '/cad/{name}/png'
1887
+ local_var_path = '/cad/{name}/dxf'
1586
1888
  local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
1587
1889
 
1588
1890
  # query parameters
@@ -1619,7 +1921,7 @@ module AsposeCadCloud
1619
1921
 
1620
1922
  # http body (model)
1621
1923
  post_body = @api_client.object_to_http_body(request.options)
1622
- auth_names = ['JWT']
1924
+ auth_names = ['Bearer']
1623
1925
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1624
1926
  header_params: header_params,
1625
1927
  query_params: query_params,
@@ -1629,95 +1931,112 @@ module AsposeCadCloud
1629
1931
  return_type: 'File')
1630
1932
  if @api_client.config.debugging
1631
1933
  @api_client.config.logger.debug "API called:
1632
- CadApi#post_drawing_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1934
+ CadApi#post_drawing_dxf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1633
1935
  end
1634
1936
  [data, status_code, headers]
1635
1937
  end
1636
1938
 
1637
- # Retrieves info about drawing which is passed as a zero-indexed multipart/form-data content or as raw body stream.
1939
+ # Export an existing drawing to Fbx format with export settings specified.
1638
1940
  #
1639
- # @param request PostDrawingPropertiesRequest
1640
- # @return [CadResponse]
1641
- def post_drawing_properties(request)
1642
- data, _status_code, _headers = post_drawing_properties_with_http_info(request)
1941
+ # @param request PostDrawingFbxRequest
1942
+ # @return [File]
1943
+ def post_drawing_fbx(request)
1944
+ data, _status_code, _headers = post_drawing_fbx_with_http_info(request)
1643
1945
  request_token if _status_code == 401
1644
1946
  data
1645
1947
  end
1646
1948
 
1647
- # Retrieves info about drawing which is passed as a zero-indexed multipart/form-data content or as raw body stream.
1949
+ # Export an existing drawing to Fbx format with export settings specified.
1648
1950
  #
1649
- # @param request PostDrawingPropertiesRequest
1650
- # @return [Array<(CadResponse, Fixnum, Hash)>]
1651
- # CadResponse data, response status code and response headers
1652
- def post_drawing_properties_with_http_info(request)
1653
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingPropertiesRequest
1951
+ # @param request PostDrawingFbxRequest
1952
+ # @return [Array<(File, Fixnum, Hash)>]
1953
+ # File data, response status code and response headers
1954
+ def post_drawing_fbx_with_http_info(request)
1955
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingFbxRequest
1654
1956
 
1655
- @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_properties ...' if @api_client.config.debugging
1656
- # verify the required parameter 'drawing_data' is set
1657
- raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.post_drawing_properties' if @api_client.config.client_side_validation && request.drawing_data.nil?
1957
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_fbx ...' if @api_client.config.debugging
1958
+ # verify the required parameter 'name' is set
1959
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_fbx' if @api_client.config.client_side_validation && request.name.nil?
1960
+ # verify the required parameter 'options' is set
1961
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_fbx' if @api_client.config.client_side_validation && request.options.nil?
1658
1962
  # resource path
1659
- local_var_path = '/cad/properties'
1963
+ local_var_path = '/cad/{name}/fbx'
1964
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
1660
1965
 
1661
1966
  # query parameters
1662
1967
  query_params = {}
1968
+ if local_var_path.include? downcase_first_letter('folder')
1969
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('folder') + '}', request.folder.to_s)
1970
+ else
1971
+ query_params[downcase_first_letter('folder')] = request.folder unless request.folder.nil?
1972
+ end
1973
+ if local_var_path.include? downcase_first_letter('outPath')
1974
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
1975
+ else
1976
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
1977
+ end
1978
+ if local_var_path.include? downcase_first_letter('storage')
1979
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
1980
+ else
1981
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
1982
+ end
1663
1983
 
1664
1984
  # header parameters
1665
1985
  header_params = {}
1666
1986
  # HTTP header 'Accept' (if needed)
1667
1987
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1668
1988
  # HTTP header 'Content-Type'
1669
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
1989
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1670
1990
 
1671
1991
  # form parameters
1672
1992
  form_params = {}
1673
- form_params[downcase_first_letter('drawingData')] = request.drawing_data
1674
1993
 
1675
1994
  if not form_params.empty?
1676
1995
  header_params['Content-Type'] = 'multipart/form-data'
1677
1996
  end
1678
1997
 
1679
1998
  # http body (model)
1680
- post_body = nil
1681
- auth_names = ['JWT']
1999
+ post_body = @api_client.object_to_http_body(request.options)
2000
+ auth_names = ['Bearer']
1682
2001
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1683
2002
  header_params: header_params,
1684
2003
  query_params: query_params,
1685
2004
  form_params: form_params,
1686
2005
  body: post_body,
1687
2006
  auth_names: auth_names,
1688
- return_type: 'CadResponse')
2007
+ return_type: 'File')
1689
2008
  if @api_client.config.debugging
1690
2009
  @api_client.config.logger.debug "API called:
1691
- CadApi#post_drawing_properties\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2010
+ CadApi#post_drawing_fbx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1692
2011
  end
1693
2012
  [data, status_code, headers]
1694
2013
  end
1695
2014
 
1696
- # Export an existing drawing into PSD format with export settings specified.
2015
+ # Export an existing drawing into GIF format with export settings specified.
1697
2016
  #
1698
- # @param request PostDrawingPsdRequest
2017
+ # @param request PostDrawingGifRequest
1699
2018
  # @return [File]
1700
- def post_drawing_psd(request)
1701
- data, _status_code, _headers = post_drawing_psd_with_http_info(request)
2019
+ def post_drawing_gif(request)
2020
+ data, _status_code, _headers = post_drawing_gif_with_http_info(request)
1702
2021
  request_token if _status_code == 401
1703
2022
  data
1704
2023
  end
1705
2024
 
1706
- # Export an existing drawing into PSD format with export settings specified.
2025
+ # Export an existing drawing into GIF format with export settings specified.
1707
2026
  #
1708
- # @param request PostDrawingPsdRequest
2027
+ # @param request PostDrawingGifRequest
1709
2028
  # @return [Array<(File, Fixnum, Hash)>]
1710
2029
  # File data, response status code and response headers
1711
- def post_drawing_psd_with_http_info(request)
1712
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingPsdRequest
2030
+ def post_drawing_gif_with_http_info(request)
2031
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingGifRequest
1713
2032
 
1714
- @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_psd ...' if @api_client.config.debugging
2033
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_gif ...' if @api_client.config.debugging
1715
2034
  # verify the required parameter 'name' is set
1716
- raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_psd' if @api_client.config.client_side_validation && request.name.nil?
2035
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_gif' if @api_client.config.client_side_validation && request.name.nil?
1717
2036
  # verify the required parameter 'options' is set
1718
- raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_psd' if @api_client.config.client_side_validation && request.options.nil?
2037
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_gif' if @api_client.config.client_side_validation && request.options.nil?
1719
2038
  # resource path
1720
- local_var_path = '/cad/{name}/psd'
2039
+ local_var_path = '/cad/{name}/gif'
1721
2040
  local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
1722
2041
 
1723
2042
  # query parameters
@@ -1754,7 +2073,7 @@ module AsposeCadCloud
1754
2073
 
1755
2074
  # http body (model)
1756
2075
  post_body = @api_client.object_to_http_body(request.options)
1757
- auth_names = ['JWT']
2076
+ auth_names = ['Bearer']
1758
2077
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1759
2078
  header_params: header_params,
1760
2079
  query_params: query_params,
@@ -1764,49 +2083,45 @@ module AsposeCadCloud
1764
2083
  return_type: 'File')
1765
2084
  if @api_client.config.debugging
1766
2085
  @api_client.config.logger.debug "API called:
1767
- CadApi#post_drawing_psd\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2086
+ CadApi#post_drawing_gif\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1768
2087
  end
1769
2088
  [data, status_code, headers]
1770
2089
  end
1771
2090
 
1772
- # Resize a drawing. Drawing data is passed as a zero-indexed multipart/form-data content or as raw body stream.
2091
+ # Export an existing drawing to GLB format with export settings specified.
1773
2092
  #
1774
- # @param request PostDrawingResizeRequest
2093
+ # @param request PostDrawingGlbRequest
1775
2094
  # @return [File]
1776
- def post_drawing_resize(request)
1777
- data, _status_code, _headers = post_drawing_resize_with_http_info(request)
2095
+ def post_drawing_glb(request)
2096
+ data, _status_code, _headers = post_drawing_glb_with_http_info(request)
1778
2097
  request_token if _status_code == 401
1779
2098
  data
1780
2099
  end
1781
2100
 
1782
- # Resize a drawing. Drawing data is passed as a zero-indexed multipart/form-data content or as raw body stream.
2101
+ # Export an existing drawing to GLB format with export settings specified.
1783
2102
  #
1784
- # @param request PostDrawingResizeRequest
2103
+ # @param request PostDrawingGlbRequest
1785
2104
  # @return [Array<(File, Fixnum, Hash)>]
1786
2105
  # File data, response status code and response headers
1787
- def post_drawing_resize_with_http_info(request)
1788
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingResizeRequest
2106
+ def post_drawing_glb_with_http_info(request)
2107
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingGlbRequest
1789
2108
 
1790
- @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_resize ...' if @api_client.config.debugging
1791
- # verify the required parameter 'drawing_data' is set
1792
- raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.post_drawing_resize' if @api_client.config.client_side_validation && request.drawing_data.nil?
1793
- # verify the required parameter 'output_format' is set
1794
- raise ArgumentError, 'Missing the required parameter output_format when calling CadApi.post_drawing_resize' if @api_client.config.client_side_validation && request.output_format.nil?
1795
- # verify the required parameter 'new_width' is set
1796
- raise ArgumentError, 'Missing the required parameter new_width when calling CadApi.post_drawing_resize' if @api_client.config.client_side_validation && request.new_width.nil?
1797
- # verify the required parameter 'new_height' is set
1798
- raise ArgumentError, 'Missing the required parameter new_height when calling CadApi.post_drawing_resize' if @api_client.config.client_side_validation && request.new_height.nil?
2109
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_glb ...' if @api_client.config.debugging
2110
+ # verify the required parameter 'name' is set
2111
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_glb' if @api_client.config.client_side_validation && request.name.nil?
2112
+ # verify the required parameter 'options' is set
2113
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_glb' if @api_client.config.client_side_validation && request.options.nil?
1799
2114
  # resource path
1800
- local_var_path = '/cad/resize'
2115
+ local_var_path = '/cad/{name}/glb'
2116
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
1801
2117
 
1802
2118
  # query parameters
1803
2119
  query_params = {}
1804
- query_params[downcase_first_letter('outputFormat')] = request.output_format
1805
- query_params[downcase_first_letter('newWidth')] = request.new_width
1806
- query_params[downcase_first_letter('newHeight')] = request.new_height
1807
-
1808
-
1809
-
2120
+ if local_var_path.include? downcase_first_letter('folder')
2121
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('folder') + '}', request.folder.to_s)
2122
+ else
2123
+ query_params[downcase_first_letter('folder')] = request.folder unless request.folder.nil?
2124
+ end
1810
2125
  if local_var_path.include? downcase_first_letter('outPath')
1811
2126
  local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
1812
2127
  else
@@ -1823,19 +2138,18 @@ module AsposeCadCloud
1823
2138
  # HTTP header 'Accept' (if needed)
1824
2139
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1825
2140
  # HTTP header 'Content-Type'
1826
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream', 'multipart/form-data'])
2141
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1827
2142
 
1828
2143
  # form parameters
1829
2144
  form_params = {}
1830
- form_params[downcase_first_letter('drawingData')] = request.drawing_data
1831
2145
 
1832
2146
  if not form_params.empty?
1833
2147
  header_params['Content-Type'] = 'multipart/form-data'
1834
2148
  end
1835
2149
 
1836
2150
  # http body (model)
1837
- post_body = nil
1838
- auth_names = ['JWT']
2151
+ post_body = @api_client.object_to_http_body(request.options)
2152
+ auth_names = ['Bearer']
1839
2153
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1840
2154
  header_params: header_params,
1841
2155
  query_params: query_params,
@@ -1845,47 +2159,45 @@ module AsposeCadCloud
1845
2159
  return_type: 'File')
1846
2160
  if @api_client.config.debugging
1847
2161
  @api_client.config.logger.debug "API called:
1848
- CadApi#post_drawing_resize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2162
+ CadApi#post_drawing_glb\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1849
2163
  end
1850
2164
  [data, status_code, headers]
1851
2165
  end
1852
2166
 
1853
- # Rotate/flip a drawing. Drawing data is passed as a zero-indexed multipart/form-data content or as raw body stream.
2167
+ # Export an existing drawing to GLTF format with export settings specified.
1854
2168
  #
1855
- # @param request PostDrawingRotateFlipRequest
2169
+ # @param request PostDrawingGltfRequest
1856
2170
  # @return [File]
1857
- def post_drawing_rotate_flip(request)
1858
- data, _status_code, _headers = post_drawing_rotate_flip_with_http_info(request)
2171
+ def post_drawing_gltf(request)
2172
+ data, _status_code, _headers = post_drawing_gltf_with_http_info(request)
1859
2173
  request_token if _status_code == 401
1860
2174
  data
1861
2175
  end
1862
2176
 
1863
- # Rotate/flip a drawing. Drawing data is passed as a zero-indexed multipart/form-data content or as raw body stream.
2177
+ # Export an existing drawing to GLTF format with export settings specified.
1864
2178
  #
1865
- # @param request PostDrawingRotateFlipRequest
2179
+ # @param request PostDrawingGltfRequest
1866
2180
  # @return [Array<(File, Fixnum, Hash)>]
1867
2181
  # File data, response status code and response headers
1868
- def post_drawing_rotate_flip_with_http_info(request)
1869
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingRotateFlipRequest
2182
+ def post_drawing_gltf_with_http_info(request)
2183
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingGltfRequest
1870
2184
 
1871
- @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_rotate_flip ...' if @api_client.config.debugging
1872
- # verify the required parameter 'drawing_data' is set
1873
- raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.post_drawing_rotate_flip' if @api_client.config.client_side_validation && request.drawing_data.nil?
1874
- # verify the required parameter 'output_format' is set
1875
- raise ArgumentError, 'Missing the required parameter output_format when calling CadApi.post_drawing_rotate_flip' if @api_client.config.client_side_validation && request.output_format.nil?
1876
- # verify the required parameter 'rotate_flip_type' is set
1877
- raise ArgumentError, 'Missing the required parameter rotate_flip_type when calling CadApi.post_drawing_rotate_flip' if @api_client.config.client_side_validation && request.rotate_flip_type.nil?
1878
- # verify enum value
1879
- raise ArgumentError, 'invalid value for rotate_flip_type, must be one of RotateNoneFlipNone, Rotate90FlipNone, Rotate180FlipNone, Rotate270FlipNone, RotateNoneFlipX, Rotate90FlipX, Rotate180FlipX, Rotate270FlipX, RotateNoneFlipY, Rotate90FlipY, Rotate180FlipY, Rotate270FlipY, RotateNoneFlipXY, Rotate90FlipXY, Rotate180FlipXY, Rotate270FlipXY' if @api_client.config.client_side_validation && !['RotateNoneFlipNone', 'Rotate90FlipNone', 'Rotate180FlipNone', 'Rotate270FlipNone', 'RotateNoneFlipX', 'Rotate90FlipX', 'Rotate180FlipX', 'Rotate270FlipX', 'RotateNoneFlipY', 'Rotate90FlipY', 'Rotate180FlipY', 'Rotate270FlipY', 'RotateNoneFlipXY', 'Rotate90FlipXY', 'Rotate180FlipXY', 'Rotate270FlipXY'].include?(request.rotate_flip_type)
2185
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_gltf ...' if @api_client.config.debugging
2186
+ # verify the required parameter 'name' is set
2187
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_gltf' if @api_client.config.client_side_validation && request.name.nil?
2188
+ # verify the required parameter 'options' is set
2189
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_gltf' if @api_client.config.client_side_validation && request.options.nil?
1880
2190
  # resource path
1881
- local_var_path = '/cad/rotateflip'
2191
+ local_var_path = '/cad/{name}/gltf'
2192
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
1882
2193
 
1883
2194
  # query parameters
1884
2195
  query_params = {}
1885
- query_params[downcase_first_letter('outputFormat')] = request.output_format
1886
- query_params[downcase_first_letter('rotateFlipType')] = request.rotate_flip_type
1887
-
1888
-
2196
+ if local_var_path.include? downcase_first_letter('folder')
2197
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('folder') + '}', request.folder.to_s)
2198
+ else
2199
+ query_params[downcase_first_letter('folder')] = request.folder unless request.folder.nil?
2200
+ end
1889
2201
  if local_var_path.include? downcase_first_letter('outPath')
1890
2202
  local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
1891
2203
  else
@@ -1902,19 +2214,18 @@ module AsposeCadCloud
1902
2214
  # HTTP header 'Accept' (if needed)
1903
2215
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1904
2216
  # HTTP header 'Content-Type'
1905
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream', 'multipart/form-data'])
2217
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1906
2218
 
1907
2219
  # form parameters
1908
2220
  form_params = {}
1909
- form_params[downcase_first_letter('drawingData')] = request.drawing_data
1910
2221
 
1911
2222
  if not form_params.empty?
1912
2223
  header_params['Content-Type'] = 'multipart/form-data'
1913
2224
  end
1914
2225
 
1915
2226
  # http body (model)
1916
- post_body = nil
1917
- auth_names = ['JWT']
2227
+ post_body = @api_client.object_to_http_body(request.options)
2228
+ auth_names = ['Bearer']
1918
2229
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1919
2230
  header_params: header_params,
1920
2231
  query_params: query_params,
@@ -1924,40 +2235,45 @@ module AsposeCadCloud
1924
2235
  return_type: 'File')
1925
2236
  if @api_client.config.debugging
1926
2237
  @api_client.config.logger.debug "API called:
1927
- CadApi#post_drawing_rotate_flip\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2238
+ CadApi#post_drawing_gltf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1928
2239
  end
1929
2240
  [data, status_code, headers]
1930
2241
  end
1931
2242
 
1932
- # Export existing drawing to another format. Drawing data is passed as zero-indexed multipart/form-data content or as raw body stream.
2243
+ # Export an existing drawing into JPEG format with export settings specified.
1933
2244
  #
1934
- # @param request PostDrawingSaveAsRequest
2245
+ # @param request PostDrawingJpegRequest
1935
2246
  # @return [File]
1936
- def post_drawing_save_as(request)
1937
- data, _status_code, _headers = post_drawing_save_as_with_http_info(request)
2247
+ def post_drawing_jpeg(request)
2248
+ data, _status_code, _headers = post_drawing_jpeg_with_http_info(request)
1938
2249
  request_token if _status_code == 401
1939
2250
  data
1940
2251
  end
1941
2252
 
1942
- # Export existing drawing to another format. Drawing data is passed as zero-indexed multipart/form-data content or as raw body stream.
2253
+ # Export an existing drawing into JPEG format with export settings specified.
1943
2254
  #
1944
- # @param request PostDrawingSaveAsRequest
2255
+ # @param request PostDrawingJpegRequest
1945
2256
  # @return [Array<(File, Fixnum, Hash)>]
1946
2257
  # File data, response status code and response headers
1947
- def post_drawing_save_as_with_http_info(request)
1948
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingSaveAsRequest
2258
+ def post_drawing_jpeg_with_http_info(request)
2259
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingJpegRequest
1949
2260
 
1950
- @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_save_as ...' if @api_client.config.debugging
1951
- # verify the required parameter 'drawing_data' is set
1952
- raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.post_drawing_save_as' if @api_client.config.client_side_validation && request.drawing_data.nil?
1953
- # verify the required parameter 'output_format' is set
1954
- raise ArgumentError, 'Missing the required parameter output_format when calling CadApi.post_drawing_save_as' if @api_client.config.client_side_validation && request.output_format.nil?
2261
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_jpeg ...' if @api_client.config.debugging
2262
+ # verify the required parameter 'name' is set
2263
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_jpeg' if @api_client.config.client_side_validation && request.name.nil?
2264
+ # verify the required parameter 'options' is set
2265
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_jpeg' if @api_client.config.client_side_validation && request.options.nil?
1955
2266
  # resource path
1956
- local_var_path = '/cad/saveAs/{outputFormat}'
1957
- local_var_path = local_var_path.sub('{' + downcase_first_letter('outputFormat') + '}', request.output_format.to_s)
2267
+ local_var_path = '/cad/{name}/jpeg'
2268
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
1958
2269
 
1959
2270
  # query parameters
1960
2271
  query_params = {}
2272
+ if local_var_path.include? downcase_first_letter('folder')
2273
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('folder') + '}', request.folder.to_s)
2274
+ else
2275
+ query_params[downcase_first_letter('folder')] = request.folder unless request.folder.nil?
2276
+ end
1961
2277
  if local_var_path.include? downcase_first_letter('outPath')
1962
2278
  local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
1963
2279
  else
@@ -1974,19 +2290,18 @@ module AsposeCadCloud
1974
2290
  # HTTP header 'Accept' (if needed)
1975
2291
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1976
2292
  # HTTP header 'Content-Type'
1977
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream', 'multipart/form-data'])
2293
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1978
2294
 
1979
2295
  # form parameters
1980
2296
  form_params = {}
1981
- form_params[downcase_first_letter('drawingData')] = request.drawing_data
1982
2297
 
1983
2298
  if not form_params.empty?
1984
2299
  header_params['Content-Type'] = 'multipart/form-data'
1985
2300
  end
1986
2301
 
1987
2302
  # http body (model)
1988
- post_body = nil
1989
- auth_names = ['JWT']
2303
+ post_body = @api_client.object_to_http_body(request.options)
2304
+ auth_names = ['Bearer']
1990
2305
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1991
2306
  header_params: header_params,
1992
2307
  query_params: query_params,
@@ -1996,36 +2311,36 @@ module AsposeCadCloud
1996
2311
  return_type: 'File')
1997
2312
  if @api_client.config.debugging
1998
2313
  @api_client.config.logger.debug "API called:
1999
- CadApi#post_drawing_save_as\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2314
+ CadApi#post_drawing_jpeg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2000
2315
  end
2001
2316
  [data, status_code, headers]
2002
2317
  end
2003
2318
 
2004
- # Export an existing drawing to SVG format with export settings specified.
2319
+ # Export an existing drawing into JPEG2000 format with export settings specified.
2005
2320
  #
2006
- # @param request PostDrawingSvgRequest
2321
+ # @param request PostDrawingJpeg2000Request
2007
2322
  # @return [File]
2008
- def post_drawing_svg(request)
2009
- data, _status_code, _headers = post_drawing_svg_with_http_info(request)
2323
+ def post_drawing_jpeg2000(request)
2324
+ data, _status_code, _headers = post_drawing_jpeg2000_with_http_info(request)
2010
2325
  request_token if _status_code == 401
2011
2326
  data
2012
2327
  end
2013
2328
 
2014
- # Export an existing drawing to SVG format with export settings specified.
2329
+ # Export an existing drawing into JPEG2000 format with export settings specified.
2015
2330
  #
2016
- # @param request PostDrawingSvgRequest
2331
+ # @param request PostDrawingJpeg2000Request
2017
2332
  # @return [Array<(File, Fixnum, Hash)>]
2018
2333
  # File data, response status code and response headers
2019
- def post_drawing_svg_with_http_info(request)
2020
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingSvgRequest
2334
+ def post_drawing_jpeg2000_with_http_info(request)
2335
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingJpeg2000Request
2021
2336
 
2022
- @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_svg ...' if @api_client.config.debugging
2337
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_jpeg2000 ...' if @api_client.config.debugging
2023
2338
  # verify the required parameter 'name' is set
2024
- raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_svg' if @api_client.config.client_side_validation && request.name.nil?
2339
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_jpeg2000' if @api_client.config.client_side_validation && request.name.nil?
2025
2340
  # verify the required parameter 'options' is set
2026
- raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_svg' if @api_client.config.client_side_validation && request.options.nil?
2341
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_jpeg2000' if @api_client.config.client_side_validation && request.options.nil?
2027
2342
  # resource path
2028
- local_var_path = '/cad/{name}/svg'
2343
+ local_var_path = '/cad/{name}/jpeg2000'
2029
2344
  local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
2030
2345
 
2031
2346
  # query parameters
@@ -2062,7 +2377,7 @@ module AsposeCadCloud
2062
2377
 
2063
2378
  # http body (model)
2064
2379
  post_body = @api_client.object_to_http_body(request.options)
2065
- auth_names = ['JWT']
2380
+ auth_names = ['Bearer']
2066
2381
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2067
2382
  header_params: header_params,
2068
2383
  query_params: query_params,
@@ -2072,36 +2387,36 @@ module AsposeCadCloud
2072
2387
  return_type: 'File')
2073
2388
  if @api_client.config.debugging
2074
2389
  @api_client.config.logger.debug "API called:
2075
- CadApi#post_drawing_svg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2390
+ CadApi#post_drawing_jpeg2000\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2076
2391
  end
2077
2392
  [data, status_code, headers]
2078
2393
  end
2079
2394
 
2080
- # Export an existing drawing into TIFF format with export settings specified.
2395
+ # Export an existing drawing to Obj format with export settings specified.
2081
2396
  #
2082
- # @param request PostDrawingTiffRequest
2397
+ # @param request PostDrawingObjRequest
2083
2398
  # @return [File]
2084
- def post_drawing_tiff(request)
2085
- data, _status_code, _headers = post_drawing_tiff_with_http_info(request)
2399
+ def post_drawing_obj(request)
2400
+ data, _status_code, _headers = post_drawing_obj_with_http_info(request)
2086
2401
  request_token if _status_code == 401
2087
2402
  data
2088
2403
  end
2089
2404
 
2090
- # Export an existing drawing into TIFF format with export settings specified.
2405
+ # Export an existing drawing to Obj format with export settings specified.
2091
2406
  #
2092
- # @param request PostDrawingTiffRequest
2407
+ # @param request PostDrawingObjRequest
2093
2408
  # @return [Array<(File, Fixnum, Hash)>]
2094
2409
  # File data, response status code and response headers
2095
- def post_drawing_tiff_with_http_info(request)
2096
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingTiffRequest
2410
+ def post_drawing_obj_with_http_info(request)
2411
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingObjRequest
2097
2412
 
2098
- @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_tiff ...' if @api_client.config.debugging
2413
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_obj ...' if @api_client.config.debugging
2099
2414
  # verify the required parameter 'name' is set
2100
- raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_tiff' if @api_client.config.client_side_validation && request.name.nil?
2415
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_obj' if @api_client.config.client_side_validation && request.name.nil?
2101
2416
  # verify the required parameter 'options' is set
2102
- raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_tiff' if @api_client.config.client_side_validation && request.options.nil?
2417
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_obj' if @api_client.config.client_side_validation && request.options.nil?
2103
2418
  # resource path
2104
- local_var_path = '/cad/{name}/tiff'
2419
+ local_var_path = '/cad/{name}/obj'
2105
2420
  local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
2106
2421
 
2107
2422
  # query parameters
@@ -2138,7 +2453,7 @@ module AsposeCadCloud
2138
2453
 
2139
2454
  # http body (model)
2140
2455
  post_body = @api_client.object_to_http_body(request.options)
2141
- auth_names = ['JWT']
2456
+ auth_names = ['Bearer']
2142
2457
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2143
2458
  header_params: header_params,
2144
2459
  query_params: query_params,
@@ -2148,36 +2463,36 @@ module AsposeCadCloud
2148
2463
  return_type: 'File')
2149
2464
  if @api_client.config.debugging
2150
2465
  @api_client.config.logger.debug "API called:
2151
- CadApi#post_drawing_tiff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2466
+ CadApi#post_drawing_obj\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2152
2467
  end
2153
2468
  [data, status_code, headers]
2154
2469
  end
2155
2470
 
2156
- # Export an existing drawing to WMF format with export settings specified.
2471
+ # Export an existing drawing to PDF format with export settings specified.
2157
2472
  #
2158
- # @param request PostDrawingWmfRequest
2473
+ # @param request PostDrawingPdfRequest
2159
2474
  # @return [File]
2160
- def post_drawing_wmf(request)
2161
- data, _status_code, _headers = post_drawing_wmf_with_http_info(request)
2475
+ def post_drawing_pdf(request)
2476
+ data, _status_code, _headers = post_drawing_pdf_with_http_info(request)
2162
2477
  request_token if _status_code == 401
2163
2478
  data
2164
2479
  end
2165
2480
 
2166
- # Export an existing drawing to WMF format with export settings specified.
2481
+ # Export an existing drawing to PDF format with export settings specified.
2167
2482
  #
2168
- # @param request PostDrawingWmfRequest
2483
+ # @param request PostDrawingPdfRequest
2169
2484
  # @return [Array<(File, Fixnum, Hash)>]
2170
2485
  # File data, response status code and response headers
2171
- def post_drawing_wmf_with_http_info(request)
2172
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingWmfRequest
2486
+ def post_drawing_pdf_with_http_info(request)
2487
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingPdfRequest
2173
2488
 
2174
- @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_wmf ...' if @api_client.config.debugging
2489
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_pdf ...' if @api_client.config.debugging
2175
2490
  # verify the required parameter 'name' is set
2176
- raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_wmf' if @api_client.config.client_side_validation && request.name.nil?
2491
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_pdf' if @api_client.config.client_side_validation && request.name.nil?
2177
2492
  # verify the required parameter 'options' is set
2178
- raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_wmf' if @api_client.config.client_side_validation && request.options.nil?
2493
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_pdf' if @api_client.config.client_side_validation && request.options.nil?
2179
2494
  # resource path
2180
- local_var_path = '/cad/{name}/wmf'
2495
+ local_var_path = '/cad/{name}/pdf'
2181
2496
  local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
2182
2497
 
2183
2498
  # query parameters
@@ -2214,7 +2529,7 @@ module AsposeCadCloud
2214
2529
 
2215
2530
  # http body (model)
2216
2531
  post_body = @api_client.object_to_http_body(request.options)
2217
- auth_names = ['JWT']
2532
+ auth_names = ['Bearer']
2218
2533
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2219
2534
  header_params: header_params,
2220
2535
  query_params: query_params,
@@ -2224,37 +2539,45 @@ module AsposeCadCloud
2224
2539
  return_type: 'File')
2225
2540
  if @api_client.config.debugging
2226
2541
  @api_client.config.logger.debug "API called:
2227
- CadApi#post_drawing_wmf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2542
+ CadApi#post_drawing_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2228
2543
  end
2229
2544
  [data, status_code, headers]
2230
2545
  end
2231
2546
 
2232
- # Export drawing to BMP format. Drawing data is passed as zero-indexed multipart/form-data as well as export BMP options serialized as JSON. Order of drawing data and BMP options could vary.
2547
+ # Export an existing drawing into PNG format with export settings specified.
2233
2548
  #
2234
- # @param request PutDrawingBmpRequest
2549
+ # @param request PostDrawingPngRequest
2235
2550
  # @return [File]
2236
- def put_drawing_bmp(request)
2237
- data, _status_code, _headers = put_drawing_bmp_with_http_info(request)
2551
+ def post_drawing_png(request)
2552
+ data, _status_code, _headers = post_drawing_png_with_http_info(request)
2238
2553
  request_token if _status_code == 401
2239
2554
  data
2240
2555
  end
2241
2556
 
2242
- # Export drawing to BMP format. Drawing data is passed as zero-indexed multipart/form-data as well as export BMP options serialized as JSON. Order of drawing data and BMP options could vary.
2557
+ # Export an existing drawing into PNG format with export settings specified.
2243
2558
  #
2244
- # @param request PutDrawingBmpRequest
2559
+ # @param request PostDrawingPngRequest
2245
2560
  # @return [Array<(File, Fixnum, Hash)>]
2246
2561
  # File data, response status code and response headers
2247
- def put_drawing_bmp_with_http_info(request)
2248
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingBmpRequest
2562
+ def post_drawing_png_with_http_info(request)
2563
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingPngRequest
2249
2564
 
2250
- @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_bmp ...' if @api_client.config.debugging
2251
- # verify the required parameter 'drawing_data' is set
2252
- raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_bmp' if @api_client.config.client_side_validation && request.drawing_data.nil?
2565
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_png ...' if @api_client.config.debugging
2566
+ # verify the required parameter 'name' is set
2567
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_png' if @api_client.config.client_side_validation && request.name.nil?
2568
+ # verify the required parameter 'options' is set
2569
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_png' if @api_client.config.client_side_validation && request.options.nil?
2253
2570
  # resource path
2254
- local_var_path = '/cad/bmp'
2571
+ local_var_path = '/cad/{name}/png'
2572
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
2255
2573
 
2256
2574
  # query parameters
2257
2575
  query_params = {}
2576
+ if local_var_path.include? downcase_first_letter('folder')
2577
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('folder') + '}', request.folder.to_s)
2578
+ else
2579
+ query_params[downcase_first_letter('folder')] = request.folder unless request.folder.nil?
2580
+ end
2258
2581
  if local_var_path.include? downcase_first_letter('outPath')
2259
2582
  local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
2260
2583
  else
@@ -2271,12 +2594,69 @@ module AsposeCadCloud
2271
2594
  # HTTP header 'Accept' (if needed)
2272
2595
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2273
2596
  # HTTP header 'Content-Type'
2274
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream', 'multipart/form-data'])
2597
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2598
+
2599
+ # form parameters
2600
+ form_params = {}
2601
+
2602
+ if not form_params.empty?
2603
+ header_params['Content-Type'] = 'multipart/form-data'
2604
+ end
2605
+
2606
+ # http body (model)
2607
+ post_body = @api_client.object_to_http_body(request.options)
2608
+ auth_names = ['Bearer']
2609
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2610
+ header_params: header_params,
2611
+ query_params: query_params,
2612
+ form_params: form_params,
2613
+ body: post_body,
2614
+ auth_names: auth_names,
2615
+ return_type: 'File')
2616
+ if @api_client.config.debugging
2617
+ @api_client.config.logger.debug "API called:
2618
+ CadApi#post_drawing_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2619
+ end
2620
+ [data, status_code, headers]
2621
+ end
2622
+
2623
+ # Retrieves info about drawing which is passed as a zero-indexed multipart/form-data content or as raw body stream.
2624
+ #
2625
+ # @param request PostDrawingPropertiesRequest
2626
+ # @return [CadResponse]
2627
+ def post_drawing_properties(request)
2628
+ data, _status_code, _headers = post_drawing_properties_with_http_info(request)
2629
+ request_token if _status_code == 401
2630
+ data
2631
+ end
2632
+
2633
+ # Retrieves info about drawing which is passed as a zero-indexed multipart/form-data content or as raw body stream.
2634
+ #
2635
+ # @param request PostDrawingPropertiesRequest
2636
+ # @return [Array<(CadResponse, Fixnum, Hash)>]
2637
+ # CadResponse data, response status code and response headers
2638
+ def post_drawing_properties_with_http_info(request)
2639
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingPropertiesRequest
2640
+
2641
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_properties ...' if @api_client.config.debugging
2642
+ # verify the required parameter 'drawing_data' is set
2643
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.post_drawing_properties' if @api_client.config.client_side_validation && request.drawing_data.nil?
2644
+ # resource path
2645
+ local_var_path = '/cad/properties'
2646
+
2647
+ # query parameters
2648
+ query_params = {}
2649
+
2650
+ # header parameters
2651
+ header_params = {}
2652
+ # HTTP header 'Accept' (if needed)
2653
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2654
+ # HTTP header 'Content-Type'
2655
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
2275
2656
 
2276
2657
  # form parameters
2277
2658
  form_params = {}
2278
2659
  form_params[downcase_first_letter('drawingData')] = request.drawing_data
2279
- form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
2280
2660
 
2281
2661
  if not form_params.empty?
2282
2662
  header_params['Content-Type'] = 'multipart/form-data'
@@ -2284,8 +2664,84 @@ module AsposeCadCloud
2284
2664
 
2285
2665
  # http body (model)
2286
2666
  post_body = nil
2287
- auth_names = ['JWT']
2288
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2667
+ auth_names = ['Bearer']
2668
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2669
+ header_params: header_params,
2670
+ query_params: query_params,
2671
+ form_params: form_params,
2672
+ body: post_body,
2673
+ auth_names: auth_names,
2674
+ return_type: 'CadResponse')
2675
+ if @api_client.config.debugging
2676
+ @api_client.config.logger.debug "API called:
2677
+ CadApi#post_drawing_properties\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2678
+ end
2679
+ [data, status_code, headers]
2680
+ end
2681
+
2682
+ # Export an existing drawing into PSD format with export settings specified.
2683
+ #
2684
+ # @param request PostDrawingPsdRequest
2685
+ # @return [File]
2686
+ def post_drawing_psd(request)
2687
+ data, _status_code, _headers = post_drawing_psd_with_http_info(request)
2688
+ request_token if _status_code == 401
2689
+ data
2690
+ end
2691
+
2692
+ # Export an existing drawing into PSD format with export settings specified.
2693
+ #
2694
+ # @param request PostDrawingPsdRequest
2695
+ # @return [Array<(File, Fixnum, Hash)>]
2696
+ # File data, response status code and response headers
2697
+ def post_drawing_psd_with_http_info(request)
2698
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingPsdRequest
2699
+
2700
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_psd ...' if @api_client.config.debugging
2701
+ # verify the required parameter 'name' is set
2702
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_psd' if @api_client.config.client_side_validation && request.name.nil?
2703
+ # verify the required parameter 'options' is set
2704
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_psd' if @api_client.config.client_side_validation && request.options.nil?
2705
+ # resource path
2706
+ local_var_path = '/cad/{name}/psd'
2707
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
2708
+
2709
+ # query parameters
2710
+ query_params = {}
2711
+ if local_var_path.include? downcase_first_letter('folder')
2712
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('folder') + '}', request.folder.to_s)
2713
+ else
2714
+ query_params[downcase_first_letter('folder')] = request.folder unless request.folder.nil?
2715
+ end
2716
+ if local_var_path.include? downcase_first_letter('outPath')
2717
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
2718
+ else
2719
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
2720
+ end
2721
+ if local_var_path.include? downcase_first_letter('storage')
2722
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
2723
+ else
2724
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
2725
+ end
2726
+
2727
+ # header parameters
2728
+ header_params = {}
2729
+ # HTTP header 'Accept' (if needed)
2730
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2731
+ # HTTP header 'Content-Type'
2732
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2733
+
2734
+ # form parameters
2735
+ form_params = {}
2736
+
2737
+ if not form_params.empty?
2738
+ header_params['Content-Type'] = 'multipart/form-data'
2739
+ end
2740
+
2741
+ # http body (model)
2742
+ post_body = @api_client.object_to_http_body(request.options)
2743
+ auth_names = ['Bearer']
2744
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2289
2745
  header_params: header_params,
2290
2746
  query_params: query_params,
2291
2747
  form_params: form_params,
@@ -2294,34 +2750,1848 @@ module AsposeCadCloud
2294
2750
  return_type: 'File')
2295
2751
  if @api_client.config.debugging
2296
2752
  @api_client.config.logger.debug "API called:
2297
- CadApi#put_drawing_bmp\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2753
+ CadApi#post_drawing_psd\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2298
2754
  end
2299
2755
  [data, status_code, headers]
2300
2756
  end
2301
2757
 
2302
- # Export drawing to GIF format. Drawing data is passed as zero-indexed multipart/form-data as well as export GIF options serialized as JSON. Order of drawing data and GIF options could vary.
2758
+ # Resize a drawing. Drawing data is passed as a zero-indexed multipart/form-data content or as raw body stream.
2303
2759
  #
2304
- # @param request PutDrawingGifRequest
2760
+ # @param request PostDrawingResizeRequest
2305
2761
  # @return [File]
2306
- def put_drawing_gif(request)
2307
- data, _status_code, _headers = put_drawing_gif_with_http_info(request)
2762
+ def post_drawing_resize(request)
2763
+ data, _status_code, _headers = post_drawing_resize_with_http_info(request)
2308
2764
  request_token if _status_code == 401
2309
2765
  data
2310
2766
  end
2311
2767
 
2312
- # Export drawing to GIF format. Drawing data is passed as zero-indexed multipart/form-data as well as export GIF options serialized as JSON. Order of drawing data and GIF options could vary.
2768
+ # Resize a drawing. Drawing data is passed as a zero-indexed multipart/form-data content or as raw body stream.
2313
2769
  #
2314
- # @param request PutDrawingGifRequest
2770
+ # @param request PostDrawingResizeRequest
2315
2771
  # @return [Array<(File, Fixnum, Hash)>]
2316
2772
  # File data, response status code and response headers
2317
- def put_drawing_gif_with_http_info(request)
2318
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingGifRequest
2773
+ def post_drawing_resize_with_http_info(request)
2774
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingResizeRequest
2775
+
2776
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_resize ...' if @api_client.config.debugging
2777
+ # verify the required parameter 'drawing_data' is set
2778
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.post_drawing_resize' if @api_client.config.client_side_validation && request.drawing_data.nil?
2779
+ # verify the required parameter 'output_format' is set
2780
+ raise ArgumentError, 'Missing the required parameter output_format when calling CadApi.post_drawing_resize' if @api_client.config.client_side_validation && request.output_format.nil?
2781
+ # verify the required parameter 'new_width' is set
2782
+ raise ArgumentError, 'Missing the required parameter new_width when calling CadApi.post_drawing_resize' if @api_client.config.client_side_validation && request.new_width.nil?
2783
+ # verify the required parameter 'new_height' is set
2784
+ raise ArgumentError, 'Missing the required parameter new_height when calling CadApi.post_drawing_resize' if @api_client.config.client_side_validation && request.new_height.nil?
2785
+ # resource path
2786
+ local_var_path = '/cad/resize'
2787
+
2788
+ # query parameters
2789
+ query_params = {}
2790
+ query_params[downcase_first_letter('outputFormat')] = request.output_format
2791
+ query_params[downcase_first_letter('newWidth')] = request.new_width
2792
+ query_params[downcase_first_letter('newHeight')] = request.new_height
2793
+
2794
+
2795
+
2796
+ if local_var_path.include? downcase_first_letter('outPath')
2797
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
2798
+ else
2799
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
2800
+ end
2801
+ if local_var_path.include? downcase_first_letter('storage')
2802
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
2803
+ else
2804
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
2805
+ end
2806
+
2807
+ # header parameters
2808
+ header_params = {}
2809
+ # HTTP header 'Accept' (if needed)
2810
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2811
+ # HTTP header 'Content-Type'
2812
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream', 'multipart/form-data'])
2813
+
2814
+ # form parameters
2815
+ form_params = {}
2816
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
2817
+
2818
+ if not form_params.empty?
2819
+ header_params['Content-Type'] = 'multipart/form-data'
2820
+ end
2821
+
2822
+ # http body (model)
2823
+ post_body = nil
2824
+ auth_names = ['Bearer']
2825
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2826
+ header_params: header_params,
2827
+ query_params: query_params,
2828
+ form_params: form_params,
2829
+ body: post_body,
2830
+ auth_names: auth_names,
2831
+ return_type: 'File')
2832
+ if @api_client.config.debugging
2833
+ @api_client.config.logger.debug "API called:
2834
+ CadApi#post_drawing_resize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2835
+ end
2836
+ [data, status_code, headers]
2837
+ end
2838
+
2839
+ # Rotate/flip a drawing. Drawing data is passed as a zero-indexed multipart/form-data content or as raw body stream.
2840
+ #
2841
+ # @param request PostDrawingRotateFlipRequest
2842
+ # @return [File]
2843
+ def post_drawing_rotate_flip(request)
2844
+ data, _status_code, _headers = post_drawing_rotate_flip_with_http_info(request)
2845
+ request_token if _status_code == 401
2846
+ data
2847
+ end
2848
+
2849
+ # Rotate/flip a drawing. Drawing data is passed as a zero-indexed multipart/form-data content or as raw body stream.
2850
+ #
2851
+ # @param request PostDrawingRotateFlipRequest
2852
+ # @return [Array<(File, Fixnum, Hash)>]
2853
+ # File data, response status code and response headers
2854
+ def post_drawing_rotate_flip_with_http_info(request)
2855
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingRotateFlipRequest
2856
+
2857
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_rotate_flip ...' if @api_client.config.debugging
2858
+ # verify the required parameter 'drawing_data' is set
2859
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.post_drawing_rotate_flip' if @api_client.config.client_side_validation && request.drawing_data.nil?
2860
+ # verify the required parameter 'output_format' is set
2861
+ raise ArgumentError, 'Missing the required parameter output_format when calling CadApi.post_drawing_rotate_flip' if @api_client.config.client_side_validation && request.output_format.nil?
2862
+ # verify the required parameter 'rotate_flip_type' is set
2863
+ raise ArgumentError, 'Missing the required parameter rotate_flip_type when calling CadApi.post_drawing_rotate_flip' if @api_client.config.client_side_validation && request.rotate_flip_type.nil?
2864
+ # verify enum value
2865
+ raise ArgumentError, 'invalid value for rotate_flip_type, must be one of RotateNoneFlipNone, Rotate90FlipNone, Rotate180FlipNone, Rotate270FlipNone, RotateNoneFlipX, Rotate90FlipX, Rotate180FlipX, Rotate270FlipX, RotateNoneFlipY, Rotate90FlipY, Rotate180FlipY, Rotate270FlipY, RotateNoneFlipXY, Rotate90FlipXY, Rotate180FlipXY, Rotate270FlipXY' if @api_client.config.client_side_validation && !['RotateNoneFlipNone', 'Rotate90FlipNone', 'Rotate180FlipNone', 'Rotate270FlipNone', 'RotateNoneFlipX', 'Rotate90FlipX', 'Rotate180FlipX', 'Rotate270FlipX', 'RotateNoneFlipY', 'Rotate90FlipY', 'Rotate180FlipY', 'Rotate270FlipY', 'RotateNoneFlipXY', 'Rotate90FlipXY', 'Rotate180FlipXY', 'Rotate270FlipXY'].include?(request.rotate_flip_type)
2866
+ # resource path
2867
+ local_var_path = '/cad/rotateflip'
2868
+
2869
+ # query parameters
2870
+ query_params = {}
2871
+ query_params[downcase_first_letter('outputFormat')] = request.output_format
2872
+ query_params[downcase_first_letter('rotateFlipType')] = request.rotate_flip_type
2873
+
2874
+
2875
+ if local_var_path.include? downcase_first_letter('outPath')
2876
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
2877
+ else
2878
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
2879
+ end
2880
+ if local_var_path.include? downcase_first_letter('storage')
2881
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
2882
+ else
2883
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
2884
+ end
2885
+
2886
+ # header parameters
2887
+ header_params = {}
2888
+ # HTTP header 'Accept' (if needed)
2889
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2890
+ # HTTP header 'Content-Type'
2891
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream', 'multipart/form-data'])
2892
+
2893
+ # form parameters
2894
+ form_params = {}
2895
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
2896
+
2897
+ if not form_params.empty?
2898
+ header_params['Content-Type'] = 'multipart/form-data'
2899
+ end
2900
+
2901
+ # http body (model)
2902
+ post_body = nil
2903
+ auth_names = ['Bearer']
2904
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2905
+ header_params: header_params,
2906
+ query_params: query_params,
2907
+ form_params: form_params,
2908
+ body: post_body,
2909
+ auth_names: auth_names,
2910
+ return_type: 'File')
2911
+ if @api_client.config.debugging
2912
+ @api_client.config.logger.debug "API called:
2913
+ CadApi#post_drawing_rotate_flip\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2914
+ end
2915
+ [data, status_code, headers]
2916
+ end
2917
+
2918
+ # Export existing drawing to another format. Drawing data is passed as zero-indexed multipart/form-data content or as raw body stream.
2919
+ #
2920
+ # @param request PostDrawingSaveAsRequest
2921
+ # @return [File]
2922
+ def post_drawing_save_as(request)
2923
+ data, _status_code, _headers = post_drawing_save_as_with_http_info(request)
2924
+ request_token if _status_code == 401
2925
+ data
2926
+ end
2927
+
2928
+ # Export existing drawing to another format. Drawing data is passed as zero-indexed multipart/form-data content or as raw body stream.
2929
+ #
2930
+ # @param request PostDrawingSaveAsRequest
2931
+ # @return [Array<(File, Fixnum, Hash)>]
2932
+ # File data, response status code and response headers
2933
+ def post_drawing_save_as_with_http_info(request)
2934
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingSaveAsRequest
2935
+
2936
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_save_as ...' if @api_client.config.debugging
2937
+ # verify the required parameter 'drawing_data' is set
2938
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.post_drawing_save_as' if @api_client.config.client_side_validation && request.drawing_data.nil?
2939
+ # verify the required parameter 'output_format' is set
2940
+ raise ArgumentError, 'Missing the required parameter output_format when calling CadApi.post_drawing_save_as' if @api_client.config.client_side_validation && request.output_format.nil?
2941
+ # resource path
2942
+ local_var_path = '/cad/saveAs/{outputFormat}'
2943
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outputFormat') + '}', request.output_format.to_s)
2944
+
2945
+ # query parameters
2946
+ query_params = {}
2947
+ if local_var_path.include? downcase_first_letter('outPath')
2948
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
2949
+ else
2950
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
2951
+ end
2952
+ if local_var_path.include? downcase_first_letter('storage')
2953
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
2954
+ else
2955
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
2956
+ end
2957
+
2958
+ # header parameters
2959
+ header_params = {}
2960
+ # HTTP header 'Accept' (if needed)
2961
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2962
+ # HTTP header 'Content-Type'
2963
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream', 'multipart/form-data'])
2964
+
2965
+ # form parameters
2966
+ form_params = {}
2967
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
2968
+
2969
+ if not form_params.empty?
2970
+ header_params['Content-Type'] = 'multipart/form-data'
2971
+ end
2972
+
2973
+ # http body (model)
2974
+ post_body = nil
2975
+ auth_names = ['Bearer']
2976
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2977
+ header_params: header_params,
2978
+ query_params: query_params,
2979
+ form_params: form_params,
2980
+ body: post_body,
2981
+ auth_names: auth_names,
2982
+ return_type: 'File')
2983
+ if @api_client.config.debugging
2984
+ @api_client.config.logger.debug "API called:
2985
+ CadApi#post_drawing_save_as\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2986
+ end
2987
+ [data, status_code, headers]
2988
+ end
2989
+
2990
+ # Export an existing drawing to STP format with export settings specified.
2991
+ #
2992
+ # @param request PostDrawingStpRequest
2993
+ # @return [File]
2994
+ def post_drawing_stp(request)
2995
+ data, _status_code, _headers = post_drawing_stp_with_http_info(request)
2996
+ request_token if _status_code == 401
2997
+ data
2998
+ end
2999
+
3000
+ # Export an existing drawing to STP format with export settings specified.
3001
+ #
3002
+ # @param request PostDrawingStpRequest
3003
+ # @return [Array<(File, Fixnum, Hash)>]
3004
+ # File data, response status code and response headers
3005
+ def post_drawing_stp_with_http_info(request)
3006
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingStpRequest
3007
+
3008
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_stp ...' if @api_client.config.debugging
3009
+ # verify the required parameter 'name' is set
3010
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_stp' if @api_client.config.client_side_validation && request.name.nil?
3011
+ # verify the required parameter 'options' is set
3012
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_stp' if @api_client.config.client_side_validation && request.options.nil?
3013
+ # resource path
3014
+ local_var_path = '/cad/{name}/stp'
3015
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
3016
+
3017
+ # query parameters
3018
+ query_params = {}
3019
+ if local_var_path.include? downcase_first_letter('folder')
3020
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('folder') + '}', request.folder.to_s)
3021
+ else
3022
+ query_params[downcase_first_letter('folder')] = request.folder unless request.folder.nil?
3023
+ end
3024
+ if local_var_path.include? downcase_first_letter('outPath')
3025
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
3026
+ else
3027
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
3028
+ end
3029
+ if local_var_path.include? downcase_first_letter('storage')
3030
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
3031
+ else
3032
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
3033
+ end
3034
+
3035
+ # header parameters
3036
+ header_params = {}
3037
+ # HTTP header 'Accept' (if needed)
3038
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3039
+ # HTTP header 'Content-Type'
3040
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3041
+
3042
+ # form parameters
3043
+ form_params = {}
3044
+
3045
+ if not form_params.empty?
3046
+ header_params['Content-Type'] = 'multipart/form-data'
3047
+ end
3048
+
3049
+ # http body (model)
3050
+ post_body = @api_client.object_to_http_body(request.options)
3051
+ auth_names = ['Bearer']
3052
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3053
+ header_params: header_params,
3054
+ query_params: query_params,
3055
+ form_params: form_params,
3056
+ body: post_body,
3057
+ auth_names: auth_names,
3058
+ return_type: 'File')
3059
+ if @api_client.config.debugging
3060
+ @api_client.config.logger.debug "API called:
3061
+ CadApi#post_drawing_stp\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3062
+ end
3063
+ [data, status_code, headers]
3064
+ end
3065
+
3066
+ # Export an existing drawing to SVG format with export settings specified.
3067
+ #
3068
+ # @param request PostDrawingSvgRequest
3069
+ # @return [File]
3070
+ def post_drawing_svg(request)
3071
+ data, _status_code, _headers = post_drawing_svg_with_http_info(request)
3072
+ request_token if _status_code == 401
3073
+ data
3074
+ end
3075
+
3076
+ # Export an existing drawing to SVG format with export settings specified.
3077
+ #
3078
+ # @param request PostDrawingSvgRequest
3079
+ # @return [Array<(File, Fixnum, Hash)>]
3080
+ # File data, response status code and response headers
3081
+ def post_drawing_svg_with_http_info(request)
3082
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingSvgRequest
3083
+
3084
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_svg ...' if @api_client.config.debugging
3085
+ # verify the required parameter 'name' is set
3086
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_svg' if @api_client.config.client_side_validation && request.name.nil?
3087
+ # verify the required parameter 'options' is set
3088
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_svg' if @api_client.config.client_side_validation && request.options.nil?
3089
+ # resource path
3090
+ local_var_path = '/cad/{name}/svg'
3091
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
3092
+
3093
+ # query parameters
3094
+ query_params = {}
3095
+ if local_var_path.include? downcase_first_letter('folder')
3096
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('folder') + '}', request.folder.to_s)
3097
+ else
3098
+ query_params[downcase_first_letter('folder')] = request.folder unless request.folder.nil?
3099
+ end
3100
+ if local_var_path.include? downcase_first_letter('outPath')
3101
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
3102
+ else
3103
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
3104
+ end
3105
+ if local_var_path.include? downcase_first_letter('storage')
3106
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
3107
+ else
3108
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
3109
+ end
3110
+
3111
+ # header parameters
3112
+ header_params = {}
3113
+ # HTTP header 'Accept' (if needed)
3114
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3115
+ # HTTP header 'Content-Type'
3116
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3117
+
3118
+ # form parameters
3119
+ form_params = {}
3120
+
3121
+ if not form_params.empty?
3122
+ header_params['Content-Type'] = 'multipart/form-data'
3123
+ end
3124
+
3125
+ # http body (model)
3126
+ post_body = @api_client.object_to_http_body(request.options)
3127
+ auth_names = ['Bearer']
3128
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3129
+ header_params: header_params,
3130
+ query_params: query_params,
3131
+ form_params: form_params,
3132
+ body: post_body,
3133
+ auth_names: auth_names,
3134
+ return_type: 'File')
3135
+ if @api_client.config.debugging
3136
+ @api_client.config.logger.debug "API called:
3137
+ CadApi#post_drawing_svg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3138
+ end
3139
+ [data, status_code, headers]
3140
+ end
3141
+
3142
+ # Export an existing drawing to 3ds format with export settings specified.
3143
+ #
3144
+ # @param request PostDrawingThreeDsRequest
3145
+ # @return [File]
3146
+ def post_drawing_three_ds(request)
3147
+ data, _status_code, _headers = post_drawing_three_ds_with_http_info(request)
3148
+ request_token if _status_code == 401
3149
+ data
3150
+ end
3151
+
3152
+ # Export an existing drawing to 3ds format with export settings specified.
3153
+ #
3154
+ # @param request PostDrawingThreeDsRequest
3155
+ # @return [Array<(File, Fixnum, Hash)>]
3156
+ # File data, response status code and response headers
3157
+ def post_drawing_three_ds_with_http_info(request)
3158
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingThreeDsRequest
3159
+
3160
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_three_ds ...' if @api_client.config.debugging
3161
+ # verify the required parameter 'name' is set
3162
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_three_ds' if @api_client.config.client_side_validation && request.name.nil?
3163
+ # verify the required parameter 'options' is set
3164
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_three_ds' if @api_client.config.client_side_validation && request.options.nil?
3165
+ # resource path
3166
+ local_var_path = '/cad/{name}/3ds'
3167
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
3168
+
3169
+ # query parameters
3170
+ query_params = {}
3171
+ if local_var_path.include? downcase_first_letter('folder')
3172
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('folder') + '}', request.folder.to_s)
3173
+ else
3174
+ query_params[downcase_first_letter('folder')] = request.folder unless request.folder.nil?
3175
+ end
3176
+ if local_var_path.include? downcase_first_letter('outPath')
3177
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
3178
+ else
3179
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
3180
+ end
3181
+ if local_var_path.include? downcase_first_letter('storage')
3182
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
3183
+ else
3184
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
3185
+ end
3186
+
3187
+ # header parameters
3188
+ header_params = {}
3189
+ # HTTP header 'Accept' (if needed)
3190
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3191
+ # HTTP header 'Content-Type'
3192
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3193
+
3194
+ # form parameters
3195
+ form_params = {}
3196
+
3197
+ if not form_params.empty?
3198
+ header_params['Content-Type'] = 'multipart/form-data'
3199
+ end
3200
+
3201
+ # http body (model)
3202
+ post_body = @api_client.object_to_http_body(request.options)
3203
+ auth_names = ['Bearer']
3204
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3205
+ header_params: header_params,
3206
+ query_params: query_params,
3207
+ form_params: form_params,
3208
+ body: post_body,
3209
+ auth_names: auth_names,
3210
+ return_type: 'File')
3211
+ if @api_client.config.debugging
3212
+ @api_client.config.logger.debug "API called:
3213
+ CadApi#post_drawing_three_ds\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3214
+ end
3215
+ [data, status_code, headers]
3216
+ end
3217
+
3218
+ # Export an existing drawing into TIFF format with export settings specified.
3219
+ #
3220
+ # @param request PostDrawingTiffRequest
3221
+ # @return [File]
3222
+ def post_drawing_tiff(request)
3223
+ data, _status_code, _headers = post_drawing_tiff_with_http_info(request)
3224
+ request_token if _status_code == 401
3225
+ data
3226
+ end
3227
+
3228
+ # Export an existing drawing into TIFF format with export settings specified.
3229
+ #
3230
+ # @param request PostDrawingTiffRequest
3231
+ # @return [Array<(File, Fixnum, Hash)>]
3232
+ # File data, response status code and response headers
3233
+ def post_drawing_tiff_with_http_info(request)
3234
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingTiffRequest
3235
+
3236
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_tiff ...' if @api_client.config.debugging
3237
+ # verify the required parameter 'name' is set
3238
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_tiff' if @api_client.config.client_side_validation && request.name.nil?
3239
+ # verify the required parameter 'options' is set
3240
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_tiff' if @api_client.config.client_side_validation && request.options.nil?
3241
+ # resource path
3242
+ local_var_path = '/cad/{name}/tiff'
3243
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
3244
+
3245
+ # query parameters
3246
+ query_params = {}
3247
+ if local_var_path.include? downcase_first_letter('folder')
3248
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('folder') + '}', request.folder.to_s)
3249
+ else
3250
+ query_params[downcase_first_letter('folder')] = request.folder unless request.folder.nil?
3251
+ end
3252
+ if local_var_path.include? downcase_first_letter('outPath')
3253
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
3254
+ else
3255
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
3256
+ end
3257
+ if local_var_path.include? downcase_first_letter('storage')
3258
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
3259
+ else
3260
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
3261
+ end
3262
+
3263
+ # header parameters
3264
+ header_params = {}
3265
+ # HTTP header 'Accept' (if needed)
3266
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3267
+ # HTTP header 'Content-Type'
3268
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3269
+
3270
+ # form parameters
3271
+ form_params = {}
3272
+
3273
+ if not form_params.empty?
3274
+ header_params['Content-Type'] = 'multipart/form-data'
3275
+ end
3276
+
3277
+ # http body (model)
3278
+ post_body = @api_client.object_to_http_body(request.options)
3279
+ auth_names = ['Bearer']
3280
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3281
+ header_params: header_params,
3282
+ query_params: query_params,
3283
+ form_params: form_params,
3284
+ body: post_body,
3285
+ auth_names: auth_names,
3286
+ return_type: 'File')
3287
+ if @api_client.config.debugging
3288
+ @api_client.config.logger.debug "API called:
3289
+ CadApi#post_drawing_tiff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3290
+ end
3291
+ [data, status_code, headers]
3292
+ end
3293
+
3294
+ # Export an existing drawing to U3d format with export settings specified.
3295
+ #
3296
+ # @param request PostDrawingU3dRequest
3297
+ # @return [File]
3298
+ def post_drawing_u3d(request)
3299
+ data, _status_code, _headers = post_drawing_u3d_with_http_info(request)
3300
+ request_token if _status_code == 401
3301
+ data
3302
+ end
3303
+
3304
+ # Export an existing drawing to U3d format with export settings specified.
3305
+ #
3306
+ # @param request PostDrawingU3dRequest
3307
+ # @return [Array<(File, Fixnum, Hash)>]
3308
+ # File data, response status code and response headers
3309
+ def post_drawing_u3d_with_http_info(request)
3310
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingU3dRequest
3311
+
3312
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_u3d ...' if @api_client.config.debugging
3313
+ # verify the required parameter 'name' is set
3314
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_u3d' if @api_client.config.client_side_validation && request.name.nil?
3315
+ # verify the required parameter 'options' is set
3316
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_u3d' if @api_client.config.client_side_validation && request.options.nil?
3317
+ # resource path
3318
+ local_var_path = '/cad/{name}/u3d'
3319
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
3320
+
3321
+ # query parameters
3322
+ query_params = {}
3323
+ if local_var_path.include? downcase_first_letter('folder')
3324
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('folder') + '}', request.folder.to_s)
3325
+ else
3326
+ query_params[downcase_first_letter('folder')] = request.folder unless request.folder.nil?
3327
+ end
3328
+ if local_var_path.include? downcase_first_letter('outPath')
3329
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
3330
+ else
3331
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
3332
+ end
3333
+ if local_var_path.include? downcase_first_letter('storage')
3334
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
3335
+ else
3336
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
3337
+ end
3338
+
3339
+ # header parameters
3340
+ header_params = {}
3341
+ # HTTP header 'Accept' (if needed)
3342
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3343
+ # HTTP header 'Content-Type'
3344
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3345
+
3346
+ # form parameters
3347
+ form_params = {}
3348
+
3349
+ if not form_params.empty?
3350
+ header_params['Content-Type'] = 'multipart/form-data'
3351
+ end
3352
+
3353
+ # http body (model)
3354
+ post_body = @api_client.object_to_http_body(request.options)
3355
+ auth_names = ['Bearer']
3356
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3357
+ header_params: header_params,
3358
+ query_params: query_params,
3359
+ form_params: form_params,
3360
+ body: post_body,
3361
+ auth_names: auth_names,
3362
+ return_type: 'File')
3363
+ if @api_client.config.debugging
3364
+ @api_client.config.logger.debug "API called:
3365
+ CadApi#post_drawing_u3d\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3366
+ end
3367
+ [data, status_code, headers]
3368
+ end
3369
+
3370
+ # Export an existing drawing to Webp format with export settings specified.
3371
+ #
3372
+ # @param request PostDrawingWebpRequest
3373
+ # @return [File]
3374
+ def post_drawing_webp(request)
3375
+ data, _status_code, _headers = post_drawing_webp_with_http_info(request)
3376
+ request_token if _status_code == 401
3377
+ data
3378
+ end
3379
+
3380
+ # Export an existing drawing to Webp format with export settings specified.
3381
+ #
3382
+ # @param request PostDrawingWebpRequest
3383
+ # @return [Array<(File, Fixnum, Hash)>]
3384
+ # File data, response status code and response headers
3385
+ def post_drawing_webp_with_http_info(request)
3386
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingWebpRequest
3387
+
3388
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_webp ...' if @api_client.config.debugging
3389
+ # verify the required parameter 'name' is set
3390
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_webp' if @api_client.config.client_side_validation && request.name.nil?
3391
+ # verify the required parameter 'options' is set
3392
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_webp' if @api_client.config.client_side_validation && request.options.nil?
3393
+ # resource path
3394
+ local_var_path = '/cad/{name}/webp'
3395
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
3396
+
3397
+ # query parameters
3398
+ query_params = {}
3399
+ if local_var_path.include? downcase_first_letter('folder')
3400
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('folder') + '}', request.folder.to_s)
3401
+ else
3402
+ query_params[downcase_first_letter('folder')] = request.folder unless request.folder.nil?
3403
+ end
3404
+ if local_var_path.include? downcase_first_letter('outPath')
3405
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
3406
+ else
3407
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
3408
+ end
3409
+ if local_var_path.include? downcase_first_letter('storage')
3410
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
3411
+ else
3412
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
3413
+ end
3414
+
3415
+ # header parameters
3416
+ header_params = {}
3417
+ # HTTP header 'Accept' (if needed)
3418
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3419
+ # HTTP header 'Content-Type'
3420
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3421
+
3422
+ # form parameters
3423
+ form_params = {}
3424
+
3425
+ if not form_params.empty?
3426
+ header_params['Content-Type'] = 'multipart/form-data'
3427
+ end
3428
+
3429
+ # http body (model)
3430
+ post_body = @api_client.object_to_http_body(request.options)
3431
+ auth_names = ['Bearer']
3432
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3433
+ header_params: header_params,
3434
+ query_params: query_params,
3435
+ form_params: form_params,
3436
+ body: post_body,
3437
+ auth_names: auth_names,
3438
+ return_type: 'File')
3439
+ if @api_client.config.debugging
3440
+ @api_client.config.logger.debug "API called:
3441
+ CadApi#post_drawing_webp\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3442
+ end
3443
+ [data, status_code, headers]
3444
+ end
3445
+
3446
+ # Export an existing drawing to WMF format with export settings specified.
3447
+ #
3448
+ # @param request PostDrawingWmfRequest
3449
+ # @return [File]
3450
+ def post_drawing_wmf(request)
3451
+ data, _status_code, _headers = post_drawing_wmf_with_http_info(request)
3452
+ request_token if _status_code == 401
3453
+ data
3454
+ end
3455
+
3456
+ # Export an existing drawing to WMF format with export settings specified.
3457
+ #
3458
+ # @param request PostDrawingWmfRequest
3459
+ # @return [Array<(File, Fixnum, Hash)>]
3460
+ # File data, response status code and response headers
3461
+ def post_drawing_wmf_with_http_info(request)
3462
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingWmfRequest
3463
+
3464
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_wmf ...' if @api_client.config.debugging
3465
+ # verify the required parameter 'name' is set
3466
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_wmf' if @api_client.config.client_side_validation && request.name.nil?
3467
+ # verify the required parameter 'options' is set
3468
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_wmf' if @api_client.config.client_side_validation && request.options.nil?
3469
+ # resource path
3470
+ local_var_path = '/cad/{name}/wmf'
3471
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
3472
+
3473
+ # query parameters
3474
+ query_params = {}
3475
+ if local_var_path.include? downcase_first_letter('folder')
3476
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('folder') + '}', request.folder.to_s)
3477
+ else
3478
+ query_params[downcase_first_letter('folder')] = request.folder unless request.folder.nil?
3479
+ end
3480
+ if local_var_path.include? downcase_first_letter('outPath')
3481
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
3482
+ else
3483
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
3484
+ end
3485
+ if local_var_path.include? downcase_first_letter('storage')
3486
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
3487
+ else
3488
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
3489
+ end
3490
+
3491
+ # header parameters
3492
+ header_params = {}
3493
+ # HTTP header 'Accept' (if needed)
3494
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3495
+ # HTTP header 'Content-Type'
3496
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3497
+
3498
+ # form parameters
3499
+ form_params = {}
3500
+
3501
+ if not form_params.empty?
3502
+ header_params['Content-Type'] = 'multipart/form-data'
3503
+ end
3504
+
3505
+ # http body (model)
3506
+ post_body = @api_client.object_to_http_body(request.options)
3507
+ auth_names = ['Bearer']
3508
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3509
+ header_params: header_params,
3510
+ query_params: query_params,
3511
+ form_params: form_params,
3512
+ body: post_body,
3513
+ auth_names: auth_names,
3514
+ return_type: 'File')
3515
+ if @api_client.config.debugging
3516
+ @api_client.config.logger.debug "API called:
3517
+ CadApi#post_drawing_wmf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3518
+ end
3519
+ [data, status_code, headers]
3520
+ end
3521
+
3522
+ # Export drawing to BMP format. Drawing data is passed as zero-indexed multipart/form-data as well as export BMP options serialized as JSON. Order of drawing data and BMP options could vary.
3523
+ #
3524
+ # @param request PutDrawingBmpRequest
3525
+ # @return [File]
3526
+ def put_drawing_bmp(request)
3527
+ data, _status_code, _headers = put_drawing_bmp_with_http_info(request)
3528
+ request_token if _status_code == 401
3529
+ data
3530
+ end
3531
+
3532
+ # Export drawing to BMP format. Drawing data is passed as zero-indexed multipart/form-data as well as export BMP options serialized as JSON. Order of drawing data and BMP options could vary.
3533
+ #
3534
+ # @param request PutDrawingBmpRequest
3535
+ # @return [Array<(File, Fixnum, Hash)>]
3536
+ # File data, response status code and response headers
3537
+ def put_drawing_bmp_with_http_info(request)
3538
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingBmpRequest
3539
+
3540
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_bmp ...' if @api_client.config.debugging
3541
+ # verify the required parameter 'drawing_data' is set
3542
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_bmp' if @api_client.config.client_side_validation && request.drawing_data.nil?
3543
+ # resource path
3544
+ local_var_path = '/cad/bmp'
3545
+
3546
+ # query parameters
3547
+ query_params = {}
3548
+ if local_var_path.include? downcase_first_letter('outPath')
3549
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
3550
+ else
3551
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
3552
+ end
3553
+ if local_var_path.include? downcase_first_letter('storage')
3554
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
3555
+ else
3556
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
3557
+ end
3558
+
3559
+ # header parameters
3560
+ header_params = {}
3561
+ # HTTP header 'Accept' (if needed)
3562
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3563
+ # HTTP header 'Content-Type'
3564
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream', 'multipart/form-data'])
3565
+
3566
+ # form parameters
3567
+ form_params = {}
3568
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
3569
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
3570
+
3571
+ if not form_params.empty?
3572
+ header_params['Content-Type'] = 'multipart/form-data'
3573
+ end
3574
+
3575
+ # http body (model)
3576
+ post_body = nil
3577
+ auth_names = ['Bearer']
3578
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3579
+ header_params: header_params,
3580
+ query_params: query_params,
3581
+ form_params: form_params,
3582
+ body: post_body,
3583
+ auth_names: auth_names,
3584
+ return_type: 'File')
3585
+ if @api_client.config.debugging
3586
+ @api_client.config.logger.debug "API called:
3587
+ CadApi#put_drawing_bmp\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3588
+ end
3589
+ [data, status_code, headers]
3590
+ end
3591
+
3592
+ # Export drawing to CGM format. Drawing data is passed as zero-indexed multipart/form-data as well as export CGM options serialized as JSON. Order of drawing data and CGM options could vary.
3593
+ #
3594
+ # @param request PutDrawingCgmRequest
3595
+ # @return [File]
3596
+ def put_drawing_cgm(request)
3597
+ data, _status_code, _headers = put_drawing_cgm_with_http_info(request)
3598
+ request_token if _status_code == 401
3599
+ data
3600
+ end
3601
+
3602
+ # Export drawing to CGM format. Drawing data is passed as zero-indexed multipart/form-data as well as export CGM options serialized as JSON. Order of drawing data and CGM options could vary.
3603
+ #
3604
+ # @param request PutDrawingCgmRequest
3605
+ # @return [Array<(File, Fixnum, Hash)>]
3606
+ # File data, response status code and response headers
3607
+ def put_drawing_cgm_with_http_info(request)
3608
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingCgmRequest
3609
+
3610
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_cgm ...' if @api_client.config.debugging
3611
+ # verify the required parameter 'drawing_data' is set
3612
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_cgm' if @api_client.config.client_side_validation && request.drawing_data.nil?
3613
+ # resource path
3614
+ local_var_path = '/cad/cgm'
3615
+
3616
+ # query parameters
3617
+ query_params = {}
3618
+ if local_var_path.include? downcase_first_letter('outPath')
3619
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
3620
+ else
3621
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
3622
+ end
3623
+ if local_var_path.include? downcase_first_letter('storage')
3624
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
3625
+ else
3626
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
3627
+ end
3628
+
3629
+ # header parameters
3630
+ header_params = {}
3631
+ # HTTP header 'Accept' (if needed)
3632
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3633
+ # HTTP header 'Content-Type'
3634
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
3635
+
3636
+ # form parameters
3637
+ form_params = {}
3638
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
3639
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
3640
+
3641
+ if not form_params.empty?
3642
+ header_params['Content-Type'] = 'multipart/form-data'
3643
+ end
3644
+
3645
+ # http body (model)
3646
+ post_body = nil
3647
+ auth_names = ['Bearer']
3648
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3649
+ header_params: header_params,
3650
+ query_params: query_params,
3651
+ form_params: form_params,
3652
+ body: post_body,
3653
+ auth_names: auth_names,
3654
+ return_type: 'File')
3655
+ if @api_client.config.debugging
3656
+ @api_client.config.logger.debug "API called:
3657
+ CadApi#put_drawing_cgm\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3658
+ end
3659
+ [data, status_code, headers]
3660
+ end
3661
+
3662
+ # Export drawing to Dicom format. Drawing data is passed as zero-indexed multipart/form-data as well as export Dicom options serialized as JSON. Order of drawing data and Dicom options could vary.
3663
+ #
3664
+ # @param request PutDrawingDicomRequest
3665
+ # @return [File]
3666
+ def put_drawing_dicom(request)
3667
+ data, _status_code, _headers = put_drawing_dicom_with_http_info(request)
3668
+ request_token if _status_code == 401
3669
+ data
3670
+ end
3671
+
3672
+ # Export drawing to Dicom format. Drawing data is passed as zero-indexed multipart/form-data as well as export Dicom options serialized as JSON. Order of drawing data and Dicom options could vary.
3673
+ #
3674
+ # @param request PutDrawingDicomRequest
3675
+ # @return [Array<(File, Fixnum, Hash)>]
3676
+ # File data, response status code and response headers
3677
+ def put_drawing_dicom_with_http_info(request)
3678
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingDicomRequest
3679
+
3680
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_dicom ...' if @api_client.config.debugging
3681
+ # verify the required parameter 'drawing_data' is set
3682
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_dicom' if @api_client.config.client_side_validation && request.drawing_data.nil?
3683
+ # resource path
3684
+ local_var_path = '/cad/dicom'
3685
+
3686
+ # query parameters
3687
+ query_params = {}
3688
+ if local_var_path.include? downcase_first_letter('outPath')
3689
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
3690
+ else
3691
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
3692
+ end
3693
+ if local_var_path.include? downcase_first_letter('storage')
3694
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
3695
+ else
3696
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
3697
+ end
3698
+
3699
+ # header parameters
3700
+ header_params = {}
3701
+ # HTTP header 'Accept' (if needed)
3702
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3703
+ # HTTP header 'Content-Type'
3704
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream', 'multipart/form-data'])
3705
+
3706
+ # form parameters
3707
+ form_params = {}
3708
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
3709
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
3710
+
3711
+ if not form_params.empty?
3712
+ header_params['Content-Type'] = 'multipart/form-data'
3713
+ end
3714
+
3715
+ # http body (model)
3716
+ post_body = nil
3717
+ auth_names = ['Bearer']
3718
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3719
+ header_params: header_params,
3720
+ query_params: query_params,
3721
+ form_params: form_params,
3722
+ body: post_body,
3723
+ auth_names: auth_names,
3724
+ return_type: 'File')
3725
+ if @api_client.config.debugging
3726
+ @api_client.config.logger.debug "API called:
3727
+ CadApi#put_drawing_dicom\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3728
+ end
3729
+ [data, status_code, headers]
3730
+ end
3731
+
3732
+ # Export drawing to Draco format. Drawing data is passed as zero-indexed multipart/form-data as well as export Draco options serialized as JSON. Order of drawing data and Draco options could vary.
3733
+ #
3734
+ # @param request PutDrawingDracoRequest
3735
+ # @return [File]
3736
+ def put_drawing_draco(request)
3737
+ data, _status_code, _headers = put_drawing_draco_with_http_info(request)
3738
+ request_token if _status_code == 401
3739
+ data
3740
+ end
3741
+
3742
+ # Export drawing to Draco format. Drawing data is passed as zero-indexed multipart/form-data as well as export Draco options serialized as JSON. Order of drawing data and Draco options could vary.
3743
+ #
3744
+ # @param request PutDrawingDracoRequest
3745
+ # @return [Array<(File, Fixnum, Hash)>]
3746
+ # File data, response status code and response headers
3747
+ def put_drawing_draco_with_http_info(request)
3748
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingDracoRequest
3749
+
3750
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_draco ...' if @api_client.config.debugging
3751
+ # verify the required parameter 'drawing_data' is set
3752
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_draco' if @api_client.config.client_side_validation && request.drawing_data.nil?
3753
+ # resource path
3754
+ local_var_path = '/cad/drc'
3755
+
3756
+ # query parameters
3757
+ query_params = {}
3758
+ if local_var_path.include? downcase_first_letter('outPath')
3759
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
3760
+ else
3761
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
3762
+ end
3763
+ if local_var_path.include? downcase_first_letter('storage')
3764
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
3765
+ else
3766
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
3767
+ end
3768
+
3769
+ # header parameters
3770
+ header_params = {}
3771
+ # HTTP header 'Accept' (if needed)
3772
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3773
+ # HTTP header 'Content-Type'
3774
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
3775
+
3776
+ # form parameters
3777
+ form_params = {}
3778
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
3779
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
3780
+
3781
+ if not form_params.empty?
3782
+ header_params['Content-Type'] = 'multipart/form-data'
3783
+ end
3784
+
3785
+ # http body (model)
3786
+ post_body = nil
3787
+ auth_names = ['Bearer']
3788
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3789
+ header_params: header_params,
3790
+ query_params: query_params,
3791
+ form_params: form_params,
3792
+ body: post_body,
3793
+ auth_names: auth_names,
3794
+ return_type: 'File')
3795
+ if @api_client.config.debugging
3796
+ @api_client.config.logger.debug "API called:
3797
+ CadApi#put_drawing_draco\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3798
+ end
3799
+ [data, status_code, headers]
3800
+ end
3801
+
3802
+ # Export drawing to Dwf format. Drawing data is passed as zero-indexed multipart/form-data as well as export Dwf options serialized as JSON. Order of drawing data and Dwf options could vary.
3803
+ #
3804
+ # @param request PutDrawingDwfRequest
3805
+ # @return [File]
3806
+ def put_drawing_dwf(request)
3807
+ data, _status_code, _headers = put_drawing_dwf_with_http_info(request)
3808
+ request_token if _status_code == 401
3809
+ data
3810
+ end
3811
+
3812
+ # Export drawing to Dwf format. Drawing data is passed as zero-indexed multipart/form-data as well as export Dwf options serialized as JSON. Order of drawing data and Dwf options could vary.
3813
+ #
3814
+ # @param request PutDrawingDwfRequest
3815
+ # @return [Array<(File, Fixnum, Hash)>]
3816
+ # File data, response status code and response headers
3817
+ def put_drawing_dwf_with_http_info(request)
3818
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingDwfRequest
3819
+
3820
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_dwf ...' if @api_client.config.debugging
3821
+ # verify the required parameter 'drawing_data' is set
3822
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_dwf' if @api_client.config.client_side_validation && request.drawing_data.nil?
3823
+ # resource path
3824
+ local_var_path = '/cad/dwf'
3825
+
3826
+ # query parameters
3827
+ query_params = {}
3828
+ if local_var_path.include? downcase_first_letter('outPath')
3829
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
3830
+ else
3831
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
3832
+ end
3833
+ if local_var_path.include? downcase_first_letter('storage')
3834
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
3835
+ else
3836
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
3837
+ end
3838
+
3839
+ # header parameters
3840
+ header_params = {}
3841
+ # HTTP header 'Accept' (if needed)
3842
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3843
+ # HTTP header 'Content-Type'
3844
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
3845
+
3846
+ # form parameters
3847
+ form_params = {}
3848
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
3849
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
3850
+
3851
+ if not form_params.empty?
3852
+ header_params['Content-Type'] = 'multipart/form-data'
3853
+ end
3854
+
3855
+ # http body (model)
3856
+ post_body = nil
3857
+ auth_names = ['Bearer']
3858
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3859
+ header_params: header_params,
3860
+ query_params: query_params,
3861
+ form_params: form_params,
3862
+ body: post_body,
3863
+ auth_names: auth_names,
3864
+ return_type: 'File')
3865
+ if @api_client.config.debugging
3866
+ @api_client.config.logger.debug "API called:
3867
+ CadApi#put_drawing_dwf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3868
+ end
3869
+ [data, status_code, headers]
3870
+ end
3871
+
3872
+ # Export drawing to DXF format. Drawing data is passed as zero-indexed multipart/form-data as well as export DXF options serialized as JSON. Order of drawing data and DXF options could vary.
3873
+ #
3874
+ # @param request PutDrawingDxfRequest
3875
+ # @return [File]
3876
+ def put_drawing_dxf(request)
3877
+ data, _status_code, _headers = put_drawing_dxf_with_http_info(request)
3878
+ request_token if _status_code == 401
3879
+ data
3880
+ end
3881
+
3882
+ # Export drawing to DXF format. Drawing data is passed as zero-indexed multipart/form-data as well as export DXF options serialized as JSON. Order of drawing data and DXF options could vary.
3883
+ #
3884
+ # @param request PutDrawingDxfRequest
3885
+ # @return [Array<(File, Fixnum, Hash)>]
3886
+ # File data, response status code and response headers
3887
+ def put_drawing_dxf_with_http_info(request)
3888
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingDxfRequest
3889
+
3890
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_dxf ...' if @api_client.config.debugging
3891
+ # verify the required parameter 'drawing_data' is set
3892
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_dxf' if @api_client.config.client_side_validation && request.drawing_data.nil?
3893
+ # resource path
3894
+ local_var_path = '/cad/dxf'
3895
+
3896
+ # query parameters
3897
+ query_params = {}
3898
+ if local_var_path.include? downcase_first_letter('outPath')
3899
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
3900
+ else
3901
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
3902
+ end
3903
+ if local_var_path.include? downcase_first_letter('storage')
3904
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
3905
+ else
3906
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
3907
+ end
3908
+
3909
+ # header parameters
3910
+ header_params = {}
3911
+ # HTTP header 'Accept' (if needed)
3912
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3913
+ # HTTP header 'Content-Type'
3914
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
3915
+
3916
+ # form parameters
3917
+ form_params = {}
3918
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
3919
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
3920
+
3921
+ if not form_params.empty?
3922
+ header_params['Content-Type'] = 'multipart/form-data'
3923
+ end
3924
+
3925
+ # http body (model)
3926
+ post_body = nil
3927
+ auth_names = ['Bearer']
3928
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3929
+ header_params: header_params,
3930
+ query_params: query_params,
3931
+ form_params: form_params,
3932
+ body: post_body,
3933
+ auth_names: auth_names,
3934
+ return_type: 'File')
3935
+ if @api_client.config.debugging
3936
+ @api_client.config.logger.debug "API called:
3937
+ CadApi#put_drawing_dxf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3938
+ end
3939
+ [data, status_code, headers]
3940
+ end
3941
+
3942
+ # Export drawing to Fbx format. Drawing data is passed as zero-indexed multipart/form-data as well as export Fbx options serialized as JSON. Order of drawing data and Fbx options could vary.
3943
+ #
3944
+ # @param request PutDrawingFbxRequest
3945
+ # @return [File]
3946
+ def put_drawing_fbx(request)
3947
+ data, _status_code, _headers = put_drawing_fbx_with_http_info(request)
3948
+ request_token if _status_code == 401
3949
+ data
3950
+ end
3951
+
3952
+ # Export drawing to Fbx format. Drawing data is passed as zero-indexed multipart/form-data as well as export Fbx options serialized as JSON. Order of drawing data and Fbx options could vary.
3953
+ #
3954
+ # @param request PutDrawingFbxRequest
3955
+ # @return [Array<(File, Fixnum, Hash)>]
3956
+ # File data, response status code and response headers
3957
+ def put_drawing_fbx_with_http_info(request)
3958
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingFbxRequest
3959
+
3960
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_fbx ...' if @api_client.config.debugging
3961
+ # verify the required parameter 'drawing_data' is set
3962
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_fbx' if @api_client.config.client_side_validation && request.drawing_data.nil?
3963
+ # resource path
3964
+ local_var_path = '/cad/fbx'
3965
+
3966
+ # query parameters
3967
+ query_params = {}
3968
+ if local_var_path.include? downcase_first_letter('outPath')
3969
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
3970
+ else
3971
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
3972
+ end
3973
+ if local_var_path.include? downcase_first_letter('storage')
3974
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
3975
+ else
3976
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
3977
+ end
3978
+
3979
+ # header parameters
3980
+ header_params = {}
3981
+ # HTTP header 'Accept' (if needed)
3982
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3983
+ # HTTP header 'Content-Type'
3984
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
3985
+
3986
+ # form parameters
3987
+ form_params = {}
3988
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
3989
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
3990
+
3991
+ if not form_params.empty?
3992
+ header_params['Content-Type'] = 'multipart/form-data'
3993
+ end
3994
+
3995
+ # http body (model)
3996
+ post_body = nil
3997
+ auth_names = ['Bearer']
3998
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3999
+ header_params: header_params,
4000
+ query_params: query_params,
4001
+ form_params: form_params,
4002
+ body: post_body,
4003
+ auth_names: auth_names,
4004
+ return_type: 'File')
4005
+ if @api_client.config.debugging
4006
+ @api_client.config.logger.debug "API called:
4007
+ CadApi#put_drawing_fbx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4008
+ end
4009
+ [data, status_code, headers]
4010
+ end
4011
+
4012
+ # Export drawing to GIF format. Drawing data is passed as zero-indexed multipart/form-data as well as export GIF options serialized as JSON. Order of drawing data and GIF options could vary.
4013
+ #
4014
+ # @param request PutDrawingGifRequest
4015
+ # @return [File]
4016
+ def put_drawing_gif(request)
4017
+ data, _status_code, _headers = put_drawing_gif_with_http_info(request)
4018
+ request_token if _status_code == 401
4019
+ data
4020
+ end
4021
+
4022
+ # Export drawing to GIF format. Drawing data is passed as zero-indexed multipart/form-data as well as export GIF options serialized as JSON. Order of drawing data and GIF options could vary.
4023
+ #
4024
+ # @param request PutDrawingGifRequest
4025
+ # @return [Array<(File, Fixnum, Hash)>]
4026
+ # File data, response status code and response headers
4027
+ def put_drawing_gif_with_http_info(request)
4028
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingGifRequest
4029
+
4030
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_gif ...' if @api_client.config.debugging
4031
+ # verify the required parameter 'drawing_data' is set
4032
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_gif' if @api_client.config.client_side_validation && request.drawing_data.nil?
4033
+ # resource path
4034
+ local_var_path = '/cad/gif'
4035
+
4036
+ # query parameters
4037
+ query_params = {}
4038
+ if local_var_path.include? downcase_first_letter('outPath')
4039
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
4040
+ else
4041
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
4042
+ end
4043
+ if local_var_path.include? downcase_first_letter('storage')
4044
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
4045
+ else
4046
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
4047
+ end
4048
+
4049
+ # header parameters
4050
+ header_params = {}
4051
+ # HTTP header 'Accept' (if needed)
4052
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4053
+ # HTTP header 'Content-Type'
4054
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
4055
+
4056
+ # form parameters
4057
+ form_params = {}
4058
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
4059
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
4060
+
4061
+ if not form_params.empty?
4062
+ header_params['Content-Type'] = 'multipart/form-data'
4063
+ end
4064
+
4065
+ # http body (model)
4066
+ post_body = nil
4067
+ auth_names = ['Bearer']
4068
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4069
+ header_params: header_params,
4070
+ query_params: query_params,
4071
+ form_params: form_params,
4072
+ body: post_body,
4073
+ auth_names: auth_names,
4074
+ return_type: 'File')
4075
+ if @api_client.config.debugging
4076
+ @api_client.config.logger.debug "API called:
4077
+ CadApi#put_drawing_gif\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4078
+ end
4079
+ [data, status_code, headers]
4080
+ end
4081
+
4082
+ # Export drawing to GLB format. Drawing data is passed as zero-indexed multipart/form-data as well as export GLB options serialized as JSON. Order of drawing data and GLB options could vary.
4083
+ #
4084
+ # @param request PutDrawingGlbRequest
4085
+ # @return [File]
4086
+ def put_drawing_glb(request)
4087
+ data, _status_code, _headers = put_drawing_glb_with_http_info(request)
4088
+ request_token if _status_code == 401
4089
+ data
4090
+ end
4091
+
4092
+ # Export drawing to GLB format. Drawing data is passed as zero-indexed multipart/form-data as well as export GLB options serialized as JSON. Order of drawing data and GLB options could vary.
4093
+ #
4094
+ # @param request PutDrawingGlbRequest
4095
+ # @return [Array<(File, Fixnum, Hash)>]
4096
+ # File data, response status code and response headers
4097
+ def put_drawing_glb_with_http_info(request)
4098
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingGlbRequest
4099
+
4100
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_glb ...' if @api_client.config.debugging
4101
+ # verify the required parameter 'drawing_data' is set
4102
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_glb' if @api_client.config.client_side_validation && request.drawing_data.nil?
4103
+ # resource path
4104
+ local_var_path = '/cad/glb'
4105
+
4106
+ # query parameters
4107
+ query_params = {}
4108
+ if local_var_path.include? downcase_first_letter('outPath')
4109
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
4110
+ else
4111
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
4112
+ end
4113
+ if local_var_path.include? downcase_first_letter('storage')
4114
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
4115
+ else
4116
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
4117
+ end
4118
+
4119
+ # header parameters
4120
+ header_params = {}
4121
+ # HTTP header 'Accept' (if needed)
4122
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4123
+ # HTTP header 'Content-Type'
4124
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
4125
+
4126
+ # form parameters
4127
+ form_params = {}
4128
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
4129
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
4130
+
4131
+ if not form_params.empty?
4132
+ header_params['Content-Type'] = 'multipart/form-data'
4133
+ end
4134
+
4135
+ # http body (model)
4136
+ post_body = nil
4137
+ auth_names = ['Bearer']
4138
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4139
+ header_params: header_params,
4140
+ query_params: query_params,
4141
+ form_params: form_params,
4142
+ body: post_body,
4143
+ auth_names: auth_names,
4144
+ return_type: 'File')
4145
+ if @api_client.config.debugging
4146
+ @api_client.config.logger.debug "API called:
4147
+ CadApi#put_drawing_glb\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4148
+ end
4149
+ [data, status_code, headers]
4150
+ end
4151
+
4152
+ # Export drawing to GLTF format. Drawing data is passed as zero-indexed multipart/form-data as well as export GLTF options serialized as JSON. Order of drawing data and GLTF options could vary.
4153
+ #
4154
+ # @param request PutDrawingGltfRequest
4155
+ # @return [File]
4156
+ def put_drawing_gltf(request)
4157
+ data, _status_code, _headers = put_drawing_gltf_with_http_info(request)
4158
+ request_token if _status_code == 401
4159
+ data
4160
+ end
4161
+
4162
+ # Export drawing to GLTF format. Drawing data is passed as zero-indexed multipart/form-data as well as export GLTF options serialized as JSON. Order of drawing data and GLTF options could vary.
4163
+ #
4164
+ # @param request PutDrawingGltfRequest
4165
+ # @return [Array<(File, Fixnum, Hash)>]
4166
+ # File data, response status code and response headers
4167
+ def put_drawing_gltf_with_http_info(request)
4168
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingGltfRequest
4169
+
4170
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_gltf ...' if @api_client.config.debugging
4171
+ # verify the required parameter 'drawing_data' is set
4172
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_gltf' if @api_client.config.client_side_validation && request.drawing_data.nil?
4173
+ # resource path
4174
+ local_var_path = '/cad/gltf'
4175
+
4176
+ # query parameters
4177
+ query_params = {}
4178
+ if local_var_path.include? downcase_first_letter('outPath')
4179
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
4180
+ else
4181
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
4182
+ end
4183
+ if local_var_path.include? downcase_first_letter('storage')
4184
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
4185
+ else
4186
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
4187
+ end
4188
+
4189
+ # header parameters
4190
+ header_params = {}
4191
+ # HTTP header 'Accept' (if needed)
4192
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4193
+ # HTTP header 'Content-Type'
4194
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
4195
+
4196
+ # form parameters
4197
+ form_params = {}
4198
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
4199
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
4200
+
4201
+ if not form_params.empty?
4202
+ header_params['Content-Type'] = 'multipart/form-data'
4203
+ end
4204
+
4205
+ # http body (model)
4206
+ post_body = nil
4207
+ auth_names = ['Bearer']
4208
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4209
+ header_params: header_params,
4210
+ query_params: query_params,
4211
+ form_params: form_params,
4212
+ body: post_body,
4213
+ auth_names: auth_names,
4214
+ return_type: 'File')
4215
+ if @api_client.config.debugging
4216
+ @api_client.config.logger.debug "API called:
4217
+ CadApi#put_drawing_gltf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4218
+ end
4219
+ [data, status_code, headers]
4220
+ end
4221
+
4222
+ # Export drawing to JPEG format. Drawing data is passed as zero-indexed multipart/form-data as well as export JPEG options serialized as JSON. Order of drawing data and JPEG options could vary.
4223
+ #
4224
+ # @param request PutDrawingJpegRequest
4225
+ # @return [File]
4226
+ def put_drawing_jpeg(request)
4227
+ data, _status_code, _headers = put_drawing_jpeg_with_http_info(request)
4228
+ request_token if _status_code == 401
4229
+ data
4230
+ end
4231
+
4232
+ # Export drawing to JPEG format. Drawing data is passed as zero-indexed multipart/form-data as well as export JPEG options serialized as JSON. Order of drawing data and JPEG options could vary.
4233
+ #
4234
+ # @param request PutDrawingJpegRequest
4235
+ # @return [Array<(File, Fixnum, Hash)>]
4236
+ # File data, response status code and response headers
4237
+ def put_drawing_jpeg_with_http_info(request)
4238
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingJpegRequest
4239
+
4240
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_jpeg ...' if @api_client.config.debugging
4241
+ # verify the required parameter 'drawing_data' is set
4242
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_jpeg' if @api_client.config.client_side_validation && request.drawing_data.nil?
4243
+ # resource path
4244
+ local_var_path = '/cad/jpeg'
4245
+
4246
+ # query parameters
4247
+ query_params = {}
4248
+ if local_var_path.include? downcase_first_letter('outPath')
4249
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
4250
+ else
4251
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
4252
+ end
4253
+ if local_var_path.include? downcase_first_letter('storage')
4254
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
4255
+ else
4256
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
4257
+ end
4258
+
4259
+ # header parameters
4260
+ header_params = {}
4261
+ # HTTP header 'Accept' (if needed)
4262
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4263
+ # HTTP header 'Content-Type'
4264
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
4265
+
4266
+ # form parameters
4267
+ form_params = {}
4268
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
4269
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
4270
+
4271
+ if not form_params.empty?
4272
+ header_params['Content-Type'] = 'multipart/form-data'
4273
+ end
4274
+
4275
+ # http body (model)
4276
+ post_body = nil
4277
+ auth_names = ['Bearer']
4278
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4279
+ header_params: header_params,
4280
+ query_params: query_params,
4281
+ form_params: form_params,
4282
+ body: post_body,
4283
+ auth_names: auth_names,
4284
+ return_type: 'File')
4285
+ if @api_client.config.debugging
4286
+ @api_client.config.logger.debug "API called:
4287
+ CadApi#put_drawing_jpeg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4288
+ end
4289
+ [data, status_code, headers]
4290
+ end
4291
+
4292
+ # Export drawing to JPEG2000 format. Drawing data is passed as zero-indexed multipart/form-data as well as export JPEG2000 options serialized as JSON. Order of drawing data and JPEG2000 options could vary.
4293
+ #
4294
+ # @param request PutDrawingJpeg2000Request
4295
+ # @return [File]
4296
+ def put_drawing_jpeg2000(request)
4297
+ data, _status_code, _headers = put_drawing_jpeg2000_with_http_info(request)
4298
+ request_token if _status_code == 401
4299
+ data
4300
+ end
4301
+
4302
+ # Export drawing to JPEG2000 format. Drawing data is passed as zero-indexed multipart/form-data as well as export JPEG2000 options serialized as JSON. Order of drawing data and JPEG2000 options could vary.
4303
+ #
4304
+ # @param request PutDrawingJpeg2000Request
4305
+ # @return [Array<(File, Fixnum, Hash)>]
4306
+ # File data, response status code and response headers
4307
+ def put_drawing_jpeg2000_with_http_info(request)
4308
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingJpeg2000Request
4309
+
4310
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_jpeg2000 ...' if @api_client.config.debugging
4311
+ # verify the required parameter 'drawing_data' is set
4312
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_jpeg2000' if @api_client.config.client_side_validation && request.drawing_data.nil?
4313
+ # resource path
4314
+ local_var_path = '/cad/jpeg2000'
4315
+
4316
+ # query parameters
4317
+ query_params = {}
4318
+ if local_var_path.include? downcase_first_letter('outPath')
4319
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
4320
+ else
4321
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
4322
+ end
4323
+ if local_var_path.include? downcase_first_letter('storage')
4324
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
4325
+ else
4326
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
4327
+ end
4328
+
4329
+ # header parameters
4330
+ header_params = {}
4331
+ # HTTP header 'Accept' (if needed)
4332
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4333
+ # HTTP header 'Content-Type'
4334
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
4335
+
4336
+ # form parameters
4337
+ form_params = {}
4338
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
4339
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
4340
+
4341
+ if not form_params.empty?
4342
+ header_params['Content-Type'] = 'multipart/form-data'
4343
+ end
4344
+
4345
+ # http body (model)
4346
+ post_body = nil
4347
+ auth_names = ['Bearer']
4348
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4349
+ header_params: header_params,
4350
+ query_params: query_params,
4351
+ form_params: form_params,
4352
+ body: post_body,
4353
+ auth_names: auth_names,
4354
+ return_type: 'File')
4355
+ if @api_client.config.debugging
4356
+ @api_client.config.logger.debug "API called:
4357
+ CadApi#put_drawing_jpeg2000\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4358
+ end
4359
+ [data, status_code, headers]
4360
+ end
4361
+
4362
+ # Export drawing to Obj format. Drawing data is passed as zero-indexed multipart/form-data as well as export Obj options serialized as JSON. Order of drawing data and Obj options could vary.
4363
+ #
4364
+ # @param request PutDrawingObjRequest
4365
+ # @return [File]
4366
+ def put_drawing_obj(request)
4367
+ data, _status_code, _headers = put_drawing_obj_with_http_info(request)
4368
+ request_token if _status_code == 401
4369
+ data
4370
+ end
4371
+
4372
+ # Export drawing to Obj format. Drawing data is passed as zero-indexed multipart/form-data as well as export Obj options serialized as JSON. Order of drawing data and Obj options could vary.
4373
+ #
4374
+ # @param request PutDrawingObjRequest
4375
+ # @return [Array<(File, Fixnum, Hash)>]
4376
+ # File data, response status code and response headers
4377
+ def put_drawing_obj_with_http_info(request)
4378
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingObjRequest
4379
+
4380
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_obj ...' if @api_client.config.debugging
4381
+ # verify the required parameter 'drawing_data' is set
4382
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_obj' if @api_client.config.client_side_validation && request.drawing_data.nil?
4383
+ # resource path
4384
+ local_var_path = '/cad/obj'
4385
+
4386
+ # query parameters
4387
+ query_params = {}
4388
+ if local_var_path.include? downcase_first_letter('outPath')
4389
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
4390
+ else
4391
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
4392
+ end
4393
+ if local_var_path.include? downcase_first_letter('storage')
4394
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
4395
+ else
4396
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
4397
+ end
4398
+
4399
+ # header parameters
4400
+ header_params = {}
4401
+ # HTTP header 'Accept' (if needed)
4402
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4403
+ # HTTP header 'Content-Type'
4404
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
4405
+
4406
+ # form parameters
4407
+ form_params = {}
4408
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
4409
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
4410
+
4411
+ if not form_params.empty?
4412
+ header_params['Content-Type'] = 'multipart/form-data'
4413
+ end
4414
+
4415
+ # http body (model)
4416
+ post_body = nil
4417
+ auth_names = ['Bearer']
4418
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4419
+ header_params: header_params,
4420
+ query_params: query_params,
4421
+ form_params: form_params,
4422
+ body: post_body,
4423
+ auth_names: auth_names,
4424
+ return_type: 'File')
4425
+ if @api_client.config.debugging
4426
+ @api_client.config.logger.debug "API called:
4427
+ CadApi#put_drawing_obj\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4428
+ end
4429
+ [data, status_code, headers]
4430
+ end
4431
+
4432
+ # Export drawing to PDF format. Drawing data is passed as zero-indexed multipart/form-data as well as export PDF options serialized as JSON. Order of drawing data and PDF options could vary.
4433
+ #
4434
+ # @param request PutDrawingPdfRequest
4435
+ # @return [File]
4436
+ def put_drawing_pdf(request)
4437
+ data, _status_code, _headers = put_drawing_pdf_with_http_info(request)
4438
+ request_token if _status_code == 401
4439
+ data
4440
+ end
4441
+
4442
+ # Export drawing to PDF format. Drawing data is passed as zero-indexed multipart/form-data as well as export PDF options serialized as JSON. Order of drawing data and PDF options could vary.
4443
+ #
4444
+ # @param request PutDrawingPdfRequest
4445
+ # @return [Array<(File, Fixnum, Hash)>]
4446
+ # File data, response status code and response headers
4447
+ def put_drawing_pdf_with_http_info(request)
4448
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingPdfRequest
4449
+
4450
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_pdf ...' if @api_client.config.debugging
4451
+ # verify the required parameter 'drawing_data' is set
4452
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_pdf' if @api_client.config.client_side_validation && request.drawing_data.nil?
4453
+ # resource path
4454
+ local_var_path = '/cad/pdf'
4455
+
4456
+ # query parameters
4457
+ query_params = {}
4458
+ if local_var_path.include? downcase_first_letter('outPath')
4459
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
4460
+ else
4461
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
4462
+ end
4463
+ if local_var_path.include? downcase_first_letter('storage')
4464
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
4465
+ else
4466
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
4467
+ end
4468
+
4469
+ # header parameters
4470
+ header_params = {}
4471
+ # HTTP header 'Accept' (if needed)
4472
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4473
+ # HTTP header 'Content-Type'
4474
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
4475
+
4476
+ # form parameters
4477
+ form_params = {}
4478
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
4479
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
4480
+
4481
+ if not form_params.empty?
4482
+ header_params['Content-Type'] = 'multipart/form-data'
4483
+ end
4484
+
4485
+ # http body (model)
4486
+ post_body = nil
4487
+ auth_names = ['Bearer']
4488
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4489
+ header_params: header_params,
4490
+ query_params: query_params,
4491
+ form_params: form_params,
4492
+ body: post_body,
4493
+ auth_names: auth_names,
4494
+ return_type: 'File')
4495
+ if @api_client.config.debugging
4496
+ @api_client.config.logger.debug "API called:
4497
+ CadApi#put_drawing_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4498
+ end
4499
+ [data, status_code, headers]
4500
+ end
4501
+
4502
+ # Export drawing to PNG format. Drawing data is passed as zero-indexed multipart/form-data as well as export PNG options serialized as JSON. Order of drawing data and PNG options could vary.
4503
+ #
4504
+ # @param request PutDrawingPngRequest
4505
+ # @return [File]
4506
+ def put_drawing_png(request)
4507
+ data, _status_code, _headers = put_drawing_png_with_http_info(request)
4508
+ request_token if _status_code == 401
4509
+ data
4510
+ end
4511
+
4512
+ # Export drawing to PNG format. Drawing data is passed as zero-indexed multipart/form-data as well as export PNG options serialized as JSON. Order of drawing data and PNG options could vary.
4513
+ #
4514
+ # @param request PutDrawingPngRequest
4515
+ # @return [Array<(File, Fixnum, Hash)>]
4516
+ # File data, response status code and response headers
4517
+ def put_drawing_png_with_http_info(request)
4518
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingPngRequest
4519
+
4520
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_png ...' if @api_client.config.debugging
4521
+ # verify the required parameter 'drawing_data' is set
4522
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_png' if @api_client.config.client_side_validation && request.drawing_data.nil?
4523
+ # resource path
4524
+ local_var_path = '/cad/png'
4525
+
4526
+ # query parameters
4527
+ query_params = {}
4528
+ if local_var_path.include? downcase_first_letter('outPath')
4529
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
4530
+ else
4531
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
4532
+ end
4533
+ if local_var_path.include? downcase_first_letter('storage')
4534
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
4535
+ else
4536
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
4537
+ end
4538
+
4539
+ # header parameters
4540
+ header_params = {}
4541
+ # HTTP header 'Accept' (if needed)
4542
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4543
+ # HTTP header 'Content-Type'
4544
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
4545
+
4546
+ # form parameters
4547
+ form_params = {}
4548
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
4549
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
4550
+
4551
+ if not form_params.empty?
4552
+ header_params['Content-Type'] = 'multipart/form-data'
4553
+ end
4554
+
4555
+ # http body (model)
4556
+ post_body = nil
4557
+ auth_names = ['Bearer']
4558
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4559
+ header_params: header_params,
4560
+ query_params: query_params,
4561
+ form_params: form_params,
4562
+ body: post_body,
4563
+ auth_names: auth_names,
4564
+ return_type: 'File')
4565
+ if @api_client.config.debugging
4566
+ @api_client.config.logger.debug "API called:
4567
+ CadApi#put_drawing_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4568
+ end
4569
+ [data, status_code, headers]
4570
+ end
4571
+
4572
+ # Export drawing to PSD format. Drawing data is passed as zero-indexed multipart/form-data as well as export PSD options serialized as JSON. Order of drawing data and PSD options could vary.
4573
+ #
4574
+ # @param request PutDrawingPsdRequest
4575
+ # @return [File]
4576
+ def put_drawing_psd(request)
4577
+ data, _status_code, _headers = put_drawing_psd_with_http_info(request)
4578
+ request_token if _status_code == 401
4579
+ data
4580
+ end
4581
+
4582
+ # Export drawing to PSD format. Drawing data is passed as zero-indexed multipart/form-data as well as export PSD options serialized as JSON. Order of drawing data and PSD options could vary.
4583
+ #
4584
+ # @param request PutDrawingPsdRequest
4585
+ # @return [Array<(File, Fixnum, Hash)>]
4586
+ # File data, response status code and response headers
4587
+ def put_drawing_psd_with_http_info(request)
4588
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingPsdRequest
2319
4589
 
2320
- @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_gif ...' if @api_client.config.debugging
4590
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_psd ...' if @api_client.config.debugging
2321
4591
  # verify the required parameter 'drawing_data' is set
2322
- raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_gif' if @api_client.config.client_side_validation && request.drawing_data.nil?
4592
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_psd' if @api_client.config.client_side_validation && request.drawing_data.nil?
2323
4593
  # resource path
2324
- local_var_path = '/cad/gif'
4594
+ local_var_path = '/cad/psd'
2325
4595
 
2326
4596
  # query parameters
2327
4597
  query_params = {}
@@ -2354,7 +4624,7 @@ module AsposeCadCloud
2354
4624
 
2355
4625
  # http body (model)
2356
4626
  post_body = nil
2357
- auth_names = ['JWT']
4627
+ auth_names = ['Bearer']
2358
4628
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2359
4629
  header_params: header_params,
2360
4630
  query_params: query_params,
@@ -2364,34 +4634,34 @@ module AsposeCadCloud
2364
4634
  return_type: 'File')
2365
4635
  if @api_client.config.debugging
2366
4636
  @api_client.config.logger.debug "API called:
2367
- CadApi#put_drawing_gif\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4637
+ CadApi#put_drawing_psd\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2368
4638
  end
2369
4639
  [data, status_code, headers]
2370
4640
  end
2371
4641
 
2372
- # Export drawing to JPEG format. Drawing data is passed as zero-indexed multipart/form-data as well as export JPEG options serialized as JSON. Order of drawing data and JPEG options could vary.
4642
+ # Export drawing to Stp format. Drawing data is passed as zero-indexed multipart/form-data as well as export Stp options serialized as JSON. Order of drawing data and Stp options could vary.
2373
4643
  #
2374
- # @param request PutDrawingJpegRequest
4644
+ # @param request PutDrawingStpRequest
2375
4645
  # @return [File]
2376
- def put_drawing_jpeg(request)
2377
- data, _status_code, _headers = put_drawing_jpeg_with_http_info(request)
4646
+ def put_drawing_stp(request)
4647
+ data, _status_code, _headers = put_drawing_stp_with_http_info(request)
2378
4648
  request_token if _status_code == 401
2379
4649
  data
2380
4650
  end
2381
4651
 
2382
- # Export drawing to JPEG format. Drawing data is passed as zero-indexed multipart/form-data as well as export JPEG options serialized as JSON. Order of drawing data and JPEG options could vary.
4652
+ # Export drawing to Stp format. Drawing data is passed as zero-indexed multipart/form-data as well as export Stp options serialized as JSON. Order of drawing data and Stp options could vary.
2383
4653
  #
2384
- # @param request PutDrawingJpegRequest
4654
+ # @param request PutDrawingStpRequest
2385
4655
  # @return [Array<(File, Fixnum, Hash)>]
2386
4656
  # File data, response status code and response headers
2387
- def put_drawing_jpeg_with_http_info(request)
2388
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingJpegRequest
4657
+ def put_drawing_stp_with_http_info(request)
4658
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingStpRequest
2389
4659
 
2390
- @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_jpeg ...' if @api_client.config.debugging
4660
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_stp ...' if @api_client.config.debugging
2391
4661
  # verify the required parameter 'drawing_data' is set
2392
- raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_jpeg' if @api_client.config.client_side_validation && request.drawing_data.nil?
4662
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_stp' if @api_client.config.client_side_validation && request.drawing_data.nil?
2393
4663
  # resource path
2394
- local_var_path = '/cad/jpeg'
4664
+ local_var_path = '/cad/stp'
2395
4665
 
2396
4666
  # query parameters
2397
4667
  query_params = {}
@@ -2424,7 +4694,7 @@ module AsposeCadCloud
2424
4694
 
2425
4695
  # http body (model)
2426
4696
  post_body = nil
2427
- auth_names = ['JWT']
4697
+ auth_names = ['Bearer']
2428
4698
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2429
4699
  header_params: header_params,
2430
4700
  query_params: query_params,
@@ -2434,34 +4704,34 @@ module AsposeCadCloud
2434
4704
  return_type: 'File')
2435
4705
  if @api_client.config.debugging
2436
4706
  @api_client.config.logger.debug "API called:
2437
- CadApi#put_drawing_jpeg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4707
+ CadApi#put_drawing_stp\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2438
4708
  end
2439
4709
  [data, status_code, headers]
2440
4710
  end
2441
4711
 
2442
- # Export drawing to JPEG2000 format. Drawing data is passed as zero-indexed multipart/form-data as well as export JPEG2000 options serialized as JSON. Order of drawing data and JPEG2000 options could vary.
4712
+ # Export drawing to SVG format. Drawing data is passed as zero-indexed multipart/form-data as well as export SVG options serialized as JSON. Order of drawing data and SVG options could vary.
2443
4713
  #
2444
- # @param request PutDrawingJpeg2000Request
4714
+ # @param request PutDrawingSvgRequest
2445
4715
  # @return [File]
2446
- def put_drawing_jpeg2000(request)
2447
- data, _status_code, _headers = put_drawing_jpeg2000_with_http_info(request)
4716
+ def put_drawing_svg(request)
4717
+ data, _status_code, _headers = put_drawing_svg_with_http_info(request)
2448
4718
  request_token if _status_code == 401
2449
4719
  data
2450
4720
  end
2451
4721
 
2452
- # Export drawing to JPEG2000 format. Drawing data is passed as zero-indexed multipart/form-data as well as export JPEG2000 options serialized as JSON. Order of drawing data and JPEG2000 options could vary.
4722
+ # Export drawing to SVG format. Drawing data is passed as zero-indexed multipart/form-data as well as export SVG options serialized as JSON. Order of drawing data and SVG options could vary.
2453
4723
  #
2454
- # @param request PutDrawingJpeg2000Request
4724
+ # @param request PutDrawingSvgRequest
2455
4725
  # @return [Array<(File, Fixnum, Hash)>]
2456
4726
  # File data, response status code and response headers
2457
- def put_drawing_jpeg2000_with_http_info(request)
2458
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingJpeg2000Request
4727
+ def put_drawing_svg_with_http_info(request)
4728
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingSvgRequest
2459
4729
 
2460
- @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_jpeg2000 ...' if @api_client.config.debugging
4730
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_svg ...' if @api_client.config.debugging
2461
4731
  # verify the required parameter 'drawing_data' is set
2462
- raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_jpeg2000' if @api_client.config.client_side_validation && request.drawing_data.nil?
4732
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_svg' if @api_client.config.client_side_validation && request.drawing_data.nil?
2463
4733
  # resource path
2464
- local_var_path = '/cad/jpeg2000'
4734
+ local_var_path = '/cad/svg'
2465
4735
 
2466
4736
  # query parameters
2467
4737
  query_params = {}
@@ -2494,7 +4764,7 @@ module AsposeCadCloud
2494
4764
 
2495
4765
  # http body (model)
2496
4766
  post_body = nil
2497
- auth_names = ['JWT']
4767
+ auth_names = ['Bearer']
2498
4768
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2499
4769
  header_params: header_params,
2500
4770
  query_params: query_params,
@@ -2504,34 +4774,34 @@ module AsposeCadCloud
2504
4774
  return_type: 'File')
2505
4775
  if @api_client.config.debugging
2506
4776
  @api_client.config.logger.debug "API called:
2507
- CadApi#put_drawing_jpeg2000\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4777
+ CadApi#put_drawing_svg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2508
4778
  end
2509
4779
  [data, status_code, headers]
2510
4780
  end
2511
4781
 
2512
- # Export drawing to PDF format. Drawing data is passed as zero-indexed multipart/form-data as well as export PDF options serialized as JSON. Order of drawing data and PDF options could vary.
4782
+ # Export drawing to 3ds format. Drawing data is passed as zero-indexed multipart/form-data as well as export 3ds options serialized as JSON. Order of drawing data and 3ds options could vary.
2513
4783
  #
2514
- # @param request PutDrawingPdfRequest
4784
+ # @param request PutDrawingThreeDsRequest
2515
4785
  # @return [File]
2516
- def put_drawing_pdf(request)
2517
- data, _status_code, _headers = put_drawing_pdf_with_http_info(request)
4786
+ def put_drawing_three_ds(request)
4787
+ data, _status_code, _headers = put_drawing_three_ds_with_http_info(request)
2518
4788
  request_token if _status_code == 401
2519
4789
  data
2520
4790
  end
2521
4791
 
2522
- # Export drawing to PDF format. Drawing data is passed as zero-indexed multipart/form-data as well as export PDF options serialized as JSON. Order of drawing data and PDF options could vary.
4792
+ # Export drawing to 3ds format. Drawing data is passed as zero-indexed multipart/form-data as well as export 3ds options serialized as JSON. Order of drawing data and 3ds options could vary.
2523
4793
  #
2524
- # @param request PutDrawingPdfRequest
4794
+ # @param request PutDrawingThreeDsRequest
2525
4795
  # @return [Array<(File, Fixnum, Hash)>]
2526
4796
  # File data, response status code and response headers
2527
- def put_drawing_pdf_with_http_info(request)
2528
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingPdfRequest
4797
+ def put_drawing_three_ds_with_http_info(request)
4798
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingThreeDsRequest
2529
4799
 
2530
- @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_pdf ...' if @api_client.config.debugging
4800
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_three_ds ...' if @api_client.config.debugging
2531
4801
  # verify the required parameter 'drawing_data' is set
2532
- raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_pdf' if @api_client.config.client_side_validation && request.drawing_data.nil?
4802
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_three_ds' if @api_client.config.client_side_validation && request.drawing_data.nil?
2533
4803
  # resource path
2534
- local_var_path = '/cad/pdf'
4804
+ local_var_path = '/cad/3ds'
2535
4805
 
2536
4806
  # query parameters
2537
4807
  query_params = {}
@@ -2551,7 +4821,7 @@ module AsposeCadCloud
2551
4821
  # HTTP header 'Accept' (if needed)
2552
4822
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2553
4823
  # HTTP header 'Content-Type'
2554
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
4824
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream', 'multipart/form-data'])
2555
4825
 
2556
4826
  # form parameters
2557
4827
  form_params = {}
@@ -2564,7 +4834,7 @@ module AsposeCadCloud
2564
4834
 
2565
4835
  # http body (model)
2566
4836
  post_body = nil
2567
- auth_names = ['JWT']
4837
+ auth_names = ['Bearer']
2568
4838
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2569
4839
  header_params: header_params,
2570
4840
  query_params: query_params,
@@ -2574,34 +4844,34 @@ module AsposeCadCloud
2574
4844
  return_type: 'File')
2575
4845
  if @api_client.config.debugging
2576
4846
  @api_client.config.logger.debug "API called:
2577
- CadApi#put_drawing_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4847
+ CadApi#put_drawing_three_ds\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2578
4848
  end
2579
4849
  [data, status_code, headers]
2580
4850
  end
2581
4851
 
2582
- # Export drawing to PNG format. Drawing data is passed as zero-indexed multipart/form-data as well as export PNG options serialized as JSON. Order of drawing data and PNG options could vary.
4852
+ # Export drawing to TIFF format. Drawing data is passed as zero-indexed multipart/form-data as well as export TIFF options serialized as JSON. Order of drawing data and TIFF options could vary.
2583
4853
  #
2584
- # @param request PutDrawingPngRequest
4854
+ # @param request PutDrawingTiffRequest
2585
4855
  # @return [File]
2586
- def put_drawing_png(request)
2587
- data, _status_code, _headers = put_drawing_png_with_http_info(request)
4856
+ def put_drawing_tiff(request)
4857
+ data, _status_code, _headers = put_drawing_tiff_with_http_info(request)
2588
4858
  request_token if _status_code == 401
2589
4859
  data
2590
4860
  end
2591
4861
 
2592
- # Export drawing to PNG format. Drawing data is passed as zero-indexed multipart/form-data as well as export PNG options serialized as JSON. Order of drawing data and PNG options could vary.
4862
+ # Export drawing to TIFF format. Drawing data is passed as zero-indexed multipart/form-data as well as export TIFF options serialized as JSON. Order of drawing data and TIFF options could vary.
2593
4863
  #
2594
- # @param request PutDrawingPngRequest
4864
+ # @param request PutDrawingTiffRequest
2595
4865
  # @return [Array<(File, Fixnum, Hash)>]
2596
4866
  # File data, response status code and response headers
2597
- def put_drawing_png_with_http_info(request)
2598
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingPngRequest
4867
+ def put_drawing_tiff_with_http_info(request)
4868
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingTiffRequest
2599
4869
 
2600
- @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_png ...' if @api_client.config.debugging
4870
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_tiff ...' if @api_client.config.debugging
2601
4871
  # verify the required parameter 'drawing_data' is set
2602
- raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_png' if @api_client.config.client_side_validation && request.drawing_data.nil?
4872
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_tiff' if @api_client.config.client_side_validation && request.drawing_data.nil?
2603
4873
  # resource path
2604
- local_var_path = '/cad/png'
4874
+ local_var_path = '/cad/tiff'
2605
4875
 
2606
4876
  # query parameters
2607
4877
  query_params = {}
@@ -2634,7 +4904,7 @@ module AsposeCadCloud
2634
4904
 
2635
4905
  # http body (model)
2636
4906
  post_body = nil
2637
- auth_names = ['JWT']
4907
+ auth_names = ['Bearer']
2638
4908
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2639
4909
  header_params: header_params,
2640
4910
  query_params: query_params,
@@ -2644,34 +4914,34 @@ module AsposeCadCloud
2644
4914
  return_type: 'File')
2645
4915
  if @api_client.config.debugging
2646
4916
  @api_client.config.logger.debug "API called:
2647
- CadApi#put_drawing_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4917
+ CadApi#put_drawing_tiff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2648
4918
  end
2649
4919
  [data, status_code, headers]
2650
4920
  end
2651
4921
 
2652
- # Export drawing to PSD format. Drawing data is passed as zero-indexed multipart/form-data as well as export PSD options serialized as JSON. Order of drawing data and PSD options could vary.
4922
+ # Export drawing to U3d format. Drawing data is passed as zero-indexed multipart/form-data as well as export U3d options serialized as JSON. Order of drawing data and U3d options could vary.
2653
4923
  #
2654
- # @param request PutDrawingPsdRequest
4924
+ # @param request PutDrawingU3dRequest
2655
4925
  # @return [File]
2656
- def put_drawing_psd(request)
2657
- data, _status_code, _headers = put_drawing_psd_with_http_info(request)
4926
+ def put_drawing_u3d(request)
4927
+ data, _status_code, _headers = put_drawing_u3d_with_http_info(request)
2658
4928
  request_token if _status_code == 401
2659
4929
  data
2660
4930
  end
2661
4931
 
2662
- # Export drawing to PSD format. Drawing data is passed as zero-indexed multipart/form-data as well as export PSD options serialized as JSON. Order of drawing data and PSD options could vary.
4932
+ # Export drawing to U3d format. Drawing data is passed as zero-indexed multipart/form-data as well as export U3d options serialized as JSON. Order of drawing data and U3d options could vary.
2663
4933
  #
2664
- # @param request PutDrawingPsdRequest
4934
+ # @param request PutDrawingU3dRequest
2665
4935
  # @return [Array<(File, Fixnum, Hash)>]
2666
4936
  # File data, response status code and response headers
2667
- def put_drawing_psd_with_http_info(request)
2668
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingPsdRequest
4937
+ def put_drawing_u3d_with_http_info(request)
4938
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingU3dRequest
2669
4939
 
2670
- @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_psd ...' if @api_client.config.debugging
4940
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_u3d ...' if @api_client.config.debugging
2671
4941
  # verify the required parameter 'drawing_data' is set
2672
- raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_psd' if @api_client.config.client_side_validation && request.drawing_data.nil?
4942
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_u3d' if @api_client.config.client_side_validation && request.drawing_data.nil?
2673
4943
  # resource path
2674
- local_var_path = '/cad/psd'
4944
+ local_var_path = '/cad/u3d'
2675
4945
 
2676
4946
  # query parameters
2677
4947
  query_params = {}
@@ -2691,7 +4961,7 @@ module AsposeCadCloud
2691
4961
  # HTTP header 'Accept' (if needed)
2692
4962
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2693
4963
  # HTTP header 'Content-Type'
2694
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
4964
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream', 'multipart/form-data'])
2695
4965
 
2696
4966
  # form parameters
2697
4967
  form_params = {}
@@ -2704,7 +4974,7 @@ module AsposeCadCloud
2704
4974
 
2705
4975
  # http body (model)
2706
4976
  post_body = nil
2707
- auth_names = ['JWT']
4977
+ auth_names = ['Bearer']
2708
4978
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2709
4979
  header_params: header_params,
2710
4980
  query_params: query_params,
@@ -2714,34 +4984,34 @@ module AsposeCadCloud
2714
4984
  return_type: 'File')
2715
4985
  if @api_client.config.debugging
2716
4986
  @api_client.config.logger.debug "API called:
2717
- CadApi#put_drawing_psd\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4987
+ CadApi#put_drawing_u3d\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2718
4988
  end
2719
4989
  [data, status_code, headers]
2720
4990
  end
2721
4991
 
2722
- # Export drawing to SVG format. Drawing data is passed as zero-indexed multipart/form-data as well as export SVG options serialized as JSON. Order of drawing data and SVG options could vary.
4992
+ # Export drawing to Webp format. Drawing data is passed as zero-indexed multipart/form-data as well as export Webp options serialized as JSON. Order of drawing data and Webp options could vary.
2723
4993
  #
2724
- # @param request PutDrawingSvgRequest
4994
+ # @param request PutDrawingWebpRequest
2725
4995
  # @return [File]
2726
- def put_drawing_svg(request)
2727
- data, _status_code, _headers = put_drawing_svg_with_http_info(request)
4996
+ def put_drawing_webp(request)
4997
+ data, _status_code, _headers = put_drawing_webp_with_http_info(request)
2728
4998
  request_token if _status_code == 401
2729
4999
  data
2730
5000
  end
2731
5001
 
2732
- # Export drawing to SVG format. Drawing data is passed as zero-indexed multipart/form-data as well as export SVG options serialized as JSON. Order of drawing data and SVG options could vary.
5002
+ # Export drawing to Webp format. Drawing data is passed as zero-indexed multipart/form-data as well as export Webp options serialized as JSON. Order of drawing data and Webp options could vary.
2733
5003
  #
2734
- # @param request PutDrawingSvgRequest
5004
+ # @param request PutDrawingWebpRequest
2735
5005
  # @return [Array<(File, Fixnum, Hash)>]
2736
5006
  # File data, response status code and response headers
2737
- def put_drawing_svg_with_http_info(request)
2738
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingSvgRequest
5007
+ def put_drawing_webp_with_http_info(request)
5008
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingWebpRequest
2739
5009
 
2740
- @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_svg ...' if @api_client.config.debugging
5010
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_webp ...' if @api_client.config.debugging
2741
5011
  # verify the required parameter 'drawing_data' is set
2742
- raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_svg' if @api_client.config.client_side_validation && request.drawing_data.nil?
5012
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_webp' if @api_client.config.client_side_validation && request.drawing_data.nil?
2743
5013
  # resource path
2744
- local_var_path = '/cad/svg'
5014
+ local_var_path = '/cad/webp'
2745
5015
 
2746
5016
  # query parameters
2747
5017
  query_params = {}
@@ -2761,7 +5031,7 @@ module AsposeCadCloud
2761
5031
  # HTTP header 'Accept' (if needed)
2762
5032
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2763
5033
  # HTTP header 'Content-Type'
2764
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
5034
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream', 'multipart/form-data'])
2765
5035
 
2766
5036
  # form parameters
2767
5037
  form_params = {}
@@ -2774,7 +5044,7 @@ module AsposeCadCloud
2774
5044
 
2775
5045
  # http body (model)
2776
5046
  post_body = nil
2777
- auth_names = ['JWT']
5047
+ auth_names = ['Bearer']
2778
5048
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2779
5049
  header_params: header_params,
2780
5050
  query_params: query_params,
@@ -2784,34 +5054,34 @@ module AsposeCadCloud
2784
5054
  return_type: 'File')
2785
5055
  if @api_client.config.debugging
2786
5056
  @api_client.config.logger.debug "API called:
2787
- CadApi#put_drawing_svg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5057
+ CadApi#put_drawing_webp\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2788
5058
  end
2789
5059
  [data, status_code, headers]
2790
5060
  end
2791
5061
 
2792
- # Export drawing to TIFF format. Drawing data is passed as zero-indexed multipart/form-data as well as export TIFF options serialized as JSON. Order of drawing data and TIFF options could vary.
5062
+ # Export drawing to WMF format. Drawing data is passed as zero-indexed multipart/form-data as well as export WMF options serialized as JSON. Order of drawing data and WMF options could vary.
2793
5063
  #
2794
- # @param request PutDrawingTiffRequest
5064
+ # @param request PutDrawingWmfRequest
2795
5065
  # @return [File]
2796
- def put_drawing_tiff(request)
2797
- data, _status_code, _headers = put_drawing_tiff_with_http_info(request)
5066
+ def put_drawing_wmf(request)
5067
+ data, _status_code, _headers = put_drawing_wmf_with_http_info(request)
2798
5068
  request_token if _status_code == 401
2799
5069
  data
2800
5070
  end
2801
5071
 
2802
- # Export drawing to TIFF format. Drawing data is passed as zero-indexed multipart/form-data as well as export TIFF options serialized as JSON. Order of drawing data and TIFF options could vary.
5072
+ # Export drawing to WMF format. Drawing data is passed as zero-indexed multipart/form-data as well as export WMF options serialized as JSON. Order of drawing data and WMF options could vary.
2803
5073
  #
2804
- # @param request PutDrawingTiffRequest
5074
+ # @param request PutDrawingWmfRequest
2805
5075
  # @return [Array<(File, Fixnum, Hash)>]
2806
5076
  # File data, response status code and response headers
2807
- def put_drawing_tiff_with_http_info(request)
2808
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingTiffRequest
5077
+ def put_drawing_wmf_with_http_info(request)
5078
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingWmfRequest
2809
5079
 
2810
- @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_tiff ...' if @api_client.config.debugging
5080
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_wmf ...' if @api_client.config.debugging
2811
5081
  # verify the required parameter 'drawing_data' is set
2812
- raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_tiff' if @api_client.config.client_side_validation && request.drawing_data.nil?
5082
+ raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_wmf' if @api_client.config.client_side_validation && request.drawing_data.nil?
2813
5083
  # resource path
2814
- local_var_path = '/cad/tiff'
5084
+ local_var_path = '/cad/wmf'
2815
5085
 
2816
5086
  # query parameters
2817
5087
  query_params = {}
@@ -2844,7 +5114,7 @@ module AsposeCadCloud
2844
5114
 
2845
5115
  # http body (model)
2846
5116
  post_body = nil
2847
- auth_names = ['JWT']
5117
+ auth_names = ['Bearer']
2848
5118
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2849
5119
  header_params: header_params,
2850
5120
  query_params: query_params,
@@ -2854,47 +5124,35 @@ module AsposeCadCloud
2854
5124
  return_type: 'File')
2855
5125
  if @api_client.config.debugging
2856
5126
  @api_client.config.logger.debug "API called:
2857
- CadApi#put_drawing_tiff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5127
+ CadApi#put_drawing_wmf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2858
5128
  end
2859
5129
  [data, status_code, headers]
2860
5130
  end
2861
5131
 
2862
- # Export drawing to WMF format. Drawing data is passed as zero-indexed multipart/form-data as well as export WMF options serialized as JSON. Order of drawing data and WMF options could vary.
5132
+ # Save Metadata
2863
5133
  #
2864
- # @param request PutDrawingWmfRequest
5134
+ # @param request PutEditMetadataRequest
2865
5135
  # @return [File]
2866
- def put_drawing_wmf(request)
2867
- data, _status_code, _headers = put_drawing_wmf_with_http_info(request)
5136
+ def put_edit_metadata(request)
5137
+ data, _status_code, _headers = put_edit_metadata_with_http_info(request)
2868
5138
  request_token if _status_code == 401
2869
5139
  data
2870
5140
  end
2871
5141
 
2872
- # Export drawing to WMF format. Drawing data is passed as zero-indexed multipart/form-data as well as export WMF options serialized as JSON. Order of drawing data and WMF options could vary.
5142
+ # Save Metadata
2873
5143
  #
2874
- # @param request PutDrawingWmfRequest
5144
+ # @param request PutEditMetadataRequest
2875
5145
  # @return [Array<(File, Fixnum, Hash)>]
2876
5146
  # File data, response status code and response headers
2877
- def put_drawing_wmf_with_http_info(request)
2878
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingWmfRequest
5147
+ def put_edit_metadata_with_http_info(request)
5148
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutEditMetadataRequest
2879
5149
 
2880
- @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_wmf ...' if @api_client.config.debugging
2881
- # verify the required parameter 'drawing_data' is set
2882
- raise ArgumentError, 'Missing the required parameter drawing_data when calling CadApi.put_drawing_wmf' if @api_client.config.client_side_validation && request.drawing_data.nil?
5150
+ @api_client.config.logger.debug 'Calling API: CadApi.put_edit_metadata ...' if @api_client.config.debugging
2883
5151
  # resource path
2884
- local_var_path = '/cad/wmf'
5152
+ local_var_path = '/cad/EditMetadata'
2885
5153
 
2886
5154
  # query parameters
2887
5155
  query_params = {}
2888
- if local_var_path.include? downcase_first_letter('outPath')
2889
- local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
2890
- else
2891
- query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
2892
- end
2893
- if local_var_path.include? downcase_first_letter('storage')
2894
- local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
2895
- else
2896
- query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
2897
- end
2898
5156
 
2899
5157
  # header parameters
2900
5158
  header_params = {}
@@ -2905,8 +5163,8 @@ module AsposeCadCloud
2905
5163
 
2906
5164
  # form parameters
2907
5165
  form_params = {}
2908
- form_params[downcase_first_letter('drawingData')] = request.drawing_data
2909
- form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
5166
+ form_params[downcase_first_letter('drawing')] = request.drawing unless request.drawing.nil?
5167
+ form_params[downcase_first_letter('metadataComponent')] = request.metadata_component unless request.metadata_component.nil?
2910
5168
 
2911
5169
  if not form_params.empty?
2912
5170
  header_params['Content-Type'] = 'multipart/form-data'
@@ -2914,7 +5172,7 @@ module AsposeCadCloud
2914
5172
 
2915
5173
  # http body (model)
2916
5174
  post_body = nil
2917
- auth_names = ['JWT']
5175
+ auth_names = ['Bearer']
2918
5176
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2919
5177
  header_params: header_params,
2920
5178
  query_params: query_params,
@@ -2924,7 +5182,7 @@ module AsposeCadCloud
2924
5182
  return_type: 'File')
2925
5183
  if @api_client.config.debugging
2926
5184
  @api_client.config.logger.debug "API called:
2927
- CadApi#put_drawing_wmf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5185
+ CadApi#put_edit_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2928
5186
  end
2929
5187
  [data, status_code, headers]
2930
5188
  end
@@ -2973,7 +5231,7 @@ module AsposeCadCloud
2973
5231
 
2974
5232
  # http body (model)
2975
5233
  post_body = nil
2976
- auth_names = ['JWT']
5234
+ auth_names = ['Bearer']
2977
5235
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2978
5236
  header_params: header_params,
2979
5237
  query_params: query_params,
@@ -3040,7 +5298,7 @@ module AsposeCadCloud
3040
5298
 
3041
5299
  # http body (model)
3042
5300
  post_body = nil
3043
- auth_names = ['JWT']
5301
+ auth_names = ['Bearer']
3044
5302
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3045
5303
  header_params: header_params,
3046
5304
  query_params: query_params,
@@ -3055,6 +5313,134 @@ module AsposeCadCloud
3055
5313
  [data, status_code, headers]
3056
5314
  end
3057
5315
 
5316
+ # Return file for viewer
5317
+ #
5318
+ # @param request ViewerRequest
5319
+ # @return [File]
5320
+ def viewer(request)
5321
+ data, _status_code, _headers = viewer_with_http_info(request)
5322
+ request_token if _status_code == 401
5323
+ data
5324
+ end
5325
+
5326
+ # Return file for viewer
5327
+ #
5328
+ # @param request ViewerRequest
5329
+ # @return [Array<(File, Fixnum, Hash)>]
5330
+ # File data, response status code and response headers
5331
+ def viewer_with_http_info(request)
5332
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? ViewerRequest
5333
+
5334
+ @api_client.config.logger.debug 'Calling API: CadApi.viewer ...' if @api_client.config.debugging
5335
+ # verify the required parameter 'output_format' is set
5336
+ raise ArgumentError, 'Missing the required parameter output_format when calling CadApi.viewer' if @api_client.config.client_side_validation && request.output_format.nil?
5337
+ # resource path
5338
+ local_var_path = '/cad/Viewer'
5339
+
5340
+ # query parameters
5341
+ query_params = {}
5342
+ query_params[downcase_first_letter('outputFormat')] = request.output_format
5343
+
5344
+
5345
+ # header parameters
5346
+ header_params = {}
5347
+ # HTTP header 'Accept' (if needed)
5348
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
5349
+ # HTTP header 'Content-Type'
5350
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
5351
+
5352
+ # form parameters
5353
+ form_params = {}
5354
+ form_params[downcase_first_letter('drawing')] = request.drawing unless request.drawing.nil?
5355
+
5356
+ if not form_params.empty?
5357
+ header_params['Content-Type'] = 'multipart/form-data'
5358
+ end
5359
+
5360
+ # http body (model)
5361
+ post_body = nil
5362
+ auth_names = ['Bearer']
5363
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
5364
+ header_params: header_params,
5365
+ query_params: query_params,
5366
+ form_params: form_params,
5367
+ body: post_body,
5368
+ auth_names: auth_names,
5369
+ return_type: 'File')
5370
+ if @api_client.config.debugging
5371
+ @api_client.config.logger.debug "API called:
5372
+ CadApi#viewer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5373
+ end
5374
+ [data, status_code, headers]
5375
+ end
5376
+
5377
+ # Add watermark to drawing
5378
+ #
5379
+ # @param request WatermarkRequest
5380
+ # @return [File]
5381
+ def watermark(request)
5382
+ data, _status_code, _headers = watermark_with_http_info(request)
5383
+ request_token if _status_code == 401
5384
+ data
5385
+ end
5386
+
5387
+ # Add watermark to drawing
5388
+ #
5389
+ # @param request WatermarkRequest
5390
+ # @return [Array<(File, Fixnum, Hash)>]
5391
+ # File data, response status code and response headers
5392
+ def watermark_with_http_info(request)
5393
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? WatermarkRequest
5394
+
5395
+ @api_client.config.logger.debug 'Calling API: CadApi.watermark ...' if @api_client.config.debugging
5396
+ # verify the required parameter 'output_format' is set
5397
+ raise ArgumentError, 'Missing the required parameter output_format when calling CadApi.watermark' if @api_client.config.client_side_validation && request.output_format.nil?
5398
+ # resource path
5399
+ local_var_path = '/cad/Watermark'
5400
+
5401
+ # query parameters
5402
+ query_params = {}
5403
+ query_params[downcase_first_letter('outputFormat')] = request.output_format
5404
+
5405
+ if local_var_path.include? downcase_first_letter('outputTypeExt')
5406
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outputTypeExt') + '}', request.output_type_ext.to_s)
5407
+ else
5408
+ query_params[downcase_first_letter('outputTypeExt')] = request.output_type_ext unless request.output_type_ext.nil?
5409
+ end
5410
+
5411
+ # header parameters
5412
+ header_params = {}
5413
+ # HTTP header 'Accept' (if needed)
5414
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
5415
+ # HTTP header 'Content-Type'
5416
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
5417
+
5418
+ # form parameters
5419
+ form_params = {}
5420
+ form_params[downcase_first_letter('drawing')] = request.drawing unless request.drawing.nil?
5421
+ form_params[downcase_first_letter('watermarkRgb')] = request.watermark_rgb unless request.watermark_rgb.nil?
5422
+
5423
+ if not form_params.empty?
5424
+ header_params['Content-Type'] = 'multipart/form-data'
5425
+ end
5426
+
5427
+ # http body (model)
5428
+ post_body = nil
5429
+ auth_names = ['Bearer']
5430
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
5431
+ header_params: header_params,
5432
+ query_params: query_params,
5433
+ form_params: form_params,
5434
+ body: post_body,
5435
+ auth_names: auth_names,
5436
+ return_type: 'File')
5437
+ if @api_client.config.debugging
5438
+ @api_client.config.logger.debug "API called:
5439
+ CadApi#watermark\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5440
+ end
5441
+ [data, status_code, headers]
5442
+ end
5443
+
3058
5444
  #
3059
5445
  # Helper method to convert first letter to downcase
3060
5446
  #