aspose_cad_cloud 20.11 → 24.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose_cad_cloud/api/cad_api.rb +2630 -390
  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/dwf_options_dto.rb +281 -0
  14. data/lib/aspose_cad_cloud/models/dxf_options_dto.rb +281 -0
  15. data/lib/aspose_cad_cloud/models/{error.rb → error_model.rb} +2 -2
  16. data/lib/aspose_cad_cloud/models/fbx_options_dto.rb +281 -0
  17. data/lib/aspose_cad_cloud/models/fbx_properties.rb +197 -0
  18. data/lib/aspose_cad_cloud/models/files_upload_result.rb +1 -1
  19. data/lib/aspose_cad_cloud/models/glb_options_dto.rb +281 -0
  20. data/lib/aspose_cad_cloud/models/gltf_options_dto.rb +281 -0
  21. data/lib/aspose_cad_cloud/models/interpolation_mode.rb +28 -0
  22. data/lib/aspose_cad_cloud/models/jpeg2000_codec.rb +22 -0
  23. data/lib/aspose_cad_cloud/models/jpeg_compression_color_mode.rb +24 -0
  24. data/lib/aspose_cad_cloud/models/jpeg_compression_mode.rb +23 -0
  25. data/lib/aspose_cad_cloud/models/line_cap.rb +30 -0
  26. data/lib/aspose_cad_cloud/models/obj_options_dto.rb +281 -0
  27. data/lib/aspose_cad_cloud/models/obj_properties.rb +197 -0
  28. data/lib/aspose_cad_cloud/models/pdf_compliance.rb +22 -0
  29. data/lib/aspose_cad_cloud/models/pdf_digital_signature_details_core_dto.rb +294 -0
  30. data/lib/aspose_cad_cloud/models/pdf_digital_signature_hash_algorithm_core.rb +24 -0
  31. data/lib/aspose_cad_cloud/models/{pdf_document_options.rb → pdf_document_options_dto.rb} +17 -7
  32. data/lib/aspose_cad_cloud/models/pdf_options_dto.rb +1 -1
  33. data/lib/aspose_cad_cloud/models/plt_properties.rb +197 -0
  34. data/lib/aspose_cad_cloud/models/png_color_type.rb +24 -0
  35. data/lib/aspose_cad_cloud/models/png_filter_type.rb +25 -0
  36. data/lib/aspose_cad_cloud/models/requests/ConvertRequest.rb +53 -0
  37. data/lib/aspose_cad_cloud/models/requests/EditMetadataRequest.rb +45 -0
  38. data/lib/aspose_cad_cloud/models/requests/ExtractMetadataRequest.rb +49 -0
  39. data/lib/aspose_cad_cloud/models/requests/ExtractTextRequest.rb +45 -0
  40. data/lib/aspose_cad_cloud/models/requests/PaperToCadRequest.rb +49 -0
  41. data/lib/aspose_cad_cloud/models/requests/PostDrawingCgmRequest.rb +61 -0
  42. data/lib/aspose_cad_cloud/models/requests/PostDrawingDicomRequest.rb +61 -0
  43. data/lib/aspose_cad_cloud/models/requests/PostDrawingDwfRequest.rb +61 -0
  44. data/lib/aspose_cad_cloud/models/requests/PostDrawingDxfRequest.rb +61 -0
  45. data/lib/aspose_cad_cloud/models/requests/PostDrawingFbxRequest.rb +61 -0
  46. data/lib/aspose_cad_cloud/models/requests/PostDrawingGlbRequest.rb +61 -0
  47. data/lib/aspose_cad_cloud/models/requests/PostDrawingGltfRequest.rb +61 -0
  48. data/lib/aspose_cad_cloud/models/requests/PostDrawingObjRequest.rb +61 -0
  49. data/lib/aspose_cad_cloud/models/requests/PostDrawingStpRequest.rb +61 -0
  50. data/lib/aspose_cad_cloud/models/requests/PostDrawingThreeDsRequest.rb +61 -0
  51. data/lib/aspose_cad_cloud/models/requests/PostDrawingU3dRequest.rb +61 -0
  52. data/lib/aspose_cad_cloud/models/requests/PostDrawingWebpRequest.rb +61 -0
  53. data/lib/aspose_cad_cloud/models/requests/PutDrawingCgmRequest.rb +57 -0
  54. data/lib/aspose_cad_cloud/models/requests/PutDrawingDicomRequest.rb +57 -0
  55. data/lib/aspose_cad_cloud/models/requests/PutDrawingDwfRequest.rb +57 -0
  56. data/lib/aspose_cad_cloud/models/requests/PutDrawingDxfRequest.rb +57 -0
  57. data/lib/aspose_cad_cloud/models/requests/PutDrawingFbxRequest.rb +57 -0
  58. data/lib/aspose_cad_cloud/models/requests/PutDrawingGlbRequest.rb +57 -0
  59. data/lib/aspose_cad_cloud/models/requests/PutDrawingGltfRequest.rb +57 -0
  60. data/lib/aspose_cad_cloud/models/requests/PutDrawingObjRequest.rb +57 -0
  61. data/lib/aspose_cad_cloud/models/requests/PutDrawingStpRequest.rb +57 -0
  62. data/lib/aspose_cad_cloud/models/requests/PutDrawingThreeDsRequest.rb +57 -0
  63. data/lib/aspose_cad_cloud/models/requests/PutDrawingU3dRequest.rb +57 -0
  64. data/lib/aspose_cad_cloud/models/requests/PutDrawingWebpRequest.rb +57 -0
  65. data/lib/aspose_cad_cloud/models/requests/PutEditMetadataRequest.rb +49 -0
  66. data/lib/aspose_cad_cloud/models/requests/ViewerRequest.rb +49 -0
  67. data/lib/aspose_cad_cloud/models/requests/WatermarkRequest.rb +57 -0
  68. data/lib/aspose_cad_cloud/models/rotate_flip_type.rb +35 -0
  69. data/lib/aspose_cad_cloud/models/smoothing_mode.rb +25 -0
  70. data/lib/aspose_cad_cloud/models/stp_options_dto.rb +281 -0
  71. data/lib/aspose_cad_cloud/models/stp_properties.rb +197 -0
  72. data/lib/aspose_cad_cloud/models/svg_color_mode.rb +24 -0
  73. data/lib/aspose_cad_cloud/models/text_rendering_hint.rb +25 -0
  74. data/lib/aspose_cad_cloud/models/three_ds_options_dto.rb +281 -0
  75. data/lib/aspose_cad_cloud/models/tiff_byte_order.rb +21 -0
  76. data/lib/aspose_cad_cloud/models/tiff_compressions.rb +43 -0
  77. data/lib/aspose_cad_cloud/models/tiff_expected_format.rb +35 -0
  78. data/lib/aspose_cad_cloud/models/tiff_photometrics.rb +31 -0
  79. data/lib/aspose_cad_cloud/models/u3d_options_dto.rb +281 -0
  80. data/lib/aspose_cad_cloud/models/unit_type.rb +41 -0
  81. data/lib/aspose_cad_cloud/models/webp_options_dto.rb +281 -0
  82. data/lib/aspose_cad_cloud/version.rb +1 -1
  83. data/lib/aspose_cad_cloud.rb +42 -3
  84. metadata +97 -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, 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, 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 [String]
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<(String, Fixnum, Hash)>]
538
+ # String 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', 'multipart/form-data'])
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: 'String')
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, 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, 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 Dwf format with export settings specified.
1410
1712
  #
1411
- # @param request PostDrawingJpeg2000Request
1713
+ # @param request PostDrawingDwfRequest
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_dwf(request)
1716
+ data, _status_code, _headers = post_drawing_dwf_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 Dwf format with export settings specified.
1420
1722
  #
1421
- # @param request PostDrawingJpeg2000Request
1723
+ # @param request PostDrawingDwfRequest
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_dwf_with_http_info(request)
1727
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingDwfRequest
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_dwf ...' 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_dwf' 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_dwf' 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}/dwf'
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_dwf\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 DXF format with export settings specified.
1486
1788
  #
1487
- # @param request PostDrawingPdfRequest
1789
+ # @param request PostDrawingDxfRequest
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_dxf(request)
1792
+ data, _status_code, _headers = post_drawing_dxf_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 DXF format with export settings specified.
1496
1798
  #
1497
- # @param request PostDrawingPdfRequest
1799
+ # @param request PostDrawingDxfRequest
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_dxf_with_http_info(request)
1803
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingDxfRequest
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_dxf ...' 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_dxf' 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_dxf' 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}/dxf'
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_dxf\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 Fbx format with export settings specified.
1562
1864
  #
1563
- # @param request PostDrawingPngRequest
1865
+ # @param request PostDrawingFbxRequest
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_fbx(request)
1868
+ data, _status_code, _headers = post_drawing_fbx_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 Fbx format with export settings specified.
1572
1874
  #
1573
- # @param request PostDrawingPngRequest
1875
+ # @param request PostDrawingFbxRequest
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_fbx_with_http_info(request)
1879
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingFbxRequest
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_fbx ...' 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_fbx' 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_fbx' 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}/fbx'
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_fbx\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 into GIF 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 PostDrawingGifRequest
1942
+ # @return [File]
1943
+ def post_drawing_gif(request)
1944
+ data, _status_code, _headers = post_drawing_gif_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 into GIF 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 PostDrawingGifRequest
1952
+ # @return [Array<(File, Fixnum, Hash)>]
1953
+ # File data, response status code and response headers
1954
+ def post_drawing_gif_with_http_info(request)
1955
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingGifRequest
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_gif ...' 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_gif' 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_gif' 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}/gif'
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_gif\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 to GLB format with export settings specified.
1697
2016
  #
1698
- # @param request PostDrawingPsdRequest
2017
+ # @param request PostDrawingGlbRequest
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_glb(request)
2020
+ data, _status_code, _headers = post_drawing_glb_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 to GLB format with export settings specified.
1707
2026
  #
1708
- # @param request PostDrawingPsdRequest
2027
+ # @param request PostDrawingGlbRequest
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_glb_with_http_info(request)
2031
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingGlbRequest
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_glb ...' 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_glb' 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_glb' 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}/glb'
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_glb\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 GLTF format with export settings specified.
1773
2092
  #
1774
- # @param request PostDrawingResizeRequest
2093
+ # @param request PostDrawingGltfRequest
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_gltf(request)
2096
+ data, _status_code, _headers = post_drawing_gltf_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 GLTF format with export settings specified.
1783
2102
  #
1784
- # @param request PostDrawingResizeRequest
2103
+ # @param request PostDrawingGltfRequest
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_gltf_with_http_info(request)
2107
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingGltfRequest
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_gltf ...' 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_gltf' 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_gltf' 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}/gltf'
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_gltf\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 into JPEG format with export settings specified.
1854
2168
  #
1855
- # @param request PostDrawingRotateFlipRequest
2169
+ # @param request PostDrawingJpegRequest
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_jpeg(request)
2172
+ data, _status_code, _headers = post_drawing_jpeg_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 into JPEG format with export settings specified.
1864
2178
  #
1865
- # @param request PostDrawingRotateFlipRequest
2179
+ # @param request PostDrawingJpegRequest
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_jpeg_with_http_info(request)
2183
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingJpegRequest
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_jpeg ...' 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_jpeg' 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_jpeg' 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}/jpeg'
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_jpeg\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 JPEG2000 format with export settings specified.
1933
2244
  #
1934
- # @param request PostDrawingSaveAsRequest
2245
+ # @param request PostDrawingJpeg2000Request
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_jpeg2000(request)
2248
+ data, _status_code, _headers = post_drawing_jpeg2000_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 JPEG2000 format with export settings specified.
1943
2254
  #
1944
- # @param request PostDrawingSaveAsRequest
2255
+ # @param request PostDrawingJpeg2000Request
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_jpeg2000_with_http_info(request)
2259
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingJpeg2000Request
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_jpeg2000 ...' 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_jpeg2000' 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_jpeg2000' 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}/jpeg2000'
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_jpeg2000\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 to Obj format with export settings specified.
2005
2320
  #
2006
- # @param request PostDrawingSvgRequest
2321
+ # @param request PostDrawingObjRequest
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_obj(request)
2324
+ data, _status_code, _headers = post_drawing_obj_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 to Obj format with export settings specified.
2015
2330
  #
2016
- # @param request PostDrawingSvgRequest
2331
+ # @param request PostDrawingObjRequest
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_obj_with_http_info(request)
2335
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingObjRequest
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_obj ...' 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_obj' 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_obj' 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}/obj'
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_obj\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 PDF format with export settings specified.
2081
2396
  #
2082
- # @param request PostDrawingTiffRequest
2397
+ # @param request PostDrawingPdfRequest
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_pdf(request)
2400
+ data, _status_code, _headers = post_drawing_pdf_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 PDF format with export settings specified.
2091
2406
  #
2092
- # @param request PostDrawingTiffRequest
2407
+ # @param request PostDrawingPdfRequest
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_pdf_with_http_info(request)
2411
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingPdfRequest
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_pdf ...' 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_pdf' 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_pdf' 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}/pdf'
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_pdf\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 into PNG format with export settings specified.
2157
2472
  #
2158
- # @param request PostDrawingWmfRequest
2473
+ # @param request PostDrawingPngRequest
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_png(request)
2476
+ data, _status_code, _headers = post_drawing_png_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 into PNG format with export settings specified.
2167
2482
  #
2168
- # @param request PostDrawingWmfRequest
2483
+ # @param request PostDrawingPngRequest
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_png_with_http_info(request)
2487
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingPngRequest
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_png ...' 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_png' 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_png' 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}/png'
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,184 @@ 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_png\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
+ # Retrieves info about drawing which is passed as a zero-indexed multipart/form-data content or as raw body stream.
2233
2548
  #
2234
- # @param request PutDrawingBmpRequest
2549
+ # @param request PostDrawingPropertiesRequest
2550
+ # @return [CadResponse]
2551
+ def post_drawing_properties(request)
2552
+ data, _status_code, _headers = post_drawing_properties_with_http_info(request)
2553
+ request_token if _status_code == 401
2554
+ data
2555
+ end
2556
+
2557
+ # Retrieves info about drawing which is passed as a zero-indexed multipart/form-data content or as raw body stream.
2558
+ #
2559
+ # @param request PostDrawingPropertiesRequest
2560
+ # @return [Array<(CadResponse, Fixnum, Hash)>]
2561
+ # CadResponse data, response status code and response headers
2562
+ def post_drawing_properties_with_http_info(request)
2563
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingPropertiesRequest
2564
+
2565
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_properties ...' if @api_client.config.debugging
2566
+ # verify the required parameter 'drawing_data' is set
2567
+ 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?
2568
+ # resource path
2569
+ local_var_path = '/cad/properties'
2570
+
2571
+ # query parameters
2572
+ query_params = {}
2573
+
2574
+ # header parameters
2575
+ header_params = {}
2576
+ # HTTP header 'Accept' (if needed)
2577
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2578
+ # HTTP header 'Content-Type'
2579
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
2580
+
2581
+ # form parameters
2582
+ form_params = {}
2583
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
2584
+
2585
+ if not form_params.empty?
2586
+ header_params['Content-Type'] = 'multipart/form-data'
2587
+ end
2588
+
2589
+ # http body (model)
2590
+ post_body = nil
2591
+ auth_names = ['Bearer']
2592
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2593
+ header_params: header_params,
2594
+ query_params: query_params,
2595
+ form_params: form_params,
2596
+ body: post_body,
2597
+ auth_names: auth_names,
2598
+ return_type: 'CadResponse')
2599
+ if @api_client.config.debugging
2600
+ @api_client.config.logger.debug "API called:
2601
+ CadApi#post_drawing_properties\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2602
+ end
2603
+ [data, status_code, headers]
2604
+ end
2605
+
2606
+ # Export an existing drawing into PSD format with export settings specified.
2607
+ #
2608
+ # @param request PostDrawingPsdRequest
2235
2609
  # @return [File]
2236
- def put_drawing_bmp(request)
2237
- data, _status_code, _headers = put_drawing_bmp_with_http_info(request)
2610
+ def post_drawing_psd(request)
2611
+ data, _status_code, _headers = post_drawing_psd_with_http_info(request)
2238
2612
  request_token if _status_code == 401
2239
2613
  data
2240
2614
  end
2241
2615
 
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.
2616
+ # Export an existing drawing into PSD format with export settings specified.
2243
2617
  #
2244
- # @param request PutDrawingBmpRequest
2618
+ # @param request PostDrawingPsdRequest
2245
2619
  # @return [Array<(File, Fixnum, Hash)>]
2246
2620
  # 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
2621
+ def post_drawing_psd_with_http_info(request)
2622
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingPsdRequest
2249
2623
 
2250
- @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_bmp ...' if @api_client.config.debugging
2624
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_psd ...' if @api_client.config.debugging
2625
+ # verify the required parameter 'name' is set
2626
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_psd' if @api_client.config.client_side_validation && request.name.nil?
2627
+ # verify the required parameter 'options' is set
2628
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_psd' if @api_client.config.client_side_validation && request.options.nil?
2629
+ # resource path
2630
+ local_var_path = '/cad/{name}/psd'
2631
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
2632
+
2633
+ # query parameters
2634
+ query_params = {}
2635
+ if local_var_path.include? downcase_first_letter('folder')
2636
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('folder') + '}', request.folder.to_s)
2637
+ else
2638
+ query_params[downcase_first_letter('folder')] = request.folder unless request.folder.nil?
2639
+ end
2640
+ if local_var_path.include? downcase_first_letter('outPath')
2641
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
2642
+ else
2643
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
2644
+ end
2645
+ if local_var_path.include? downcase_first_letter('storage')
2646
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
2647
+ else
2648
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
2649
+ end
2650
+
2651
+ # header parameters
2652
+ header_params = {}
2653
+ # HTTP header 'Accept' (if needed)
2654
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2655
+ # HTTP header 'Content-Type'
2656
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2657
+
2658
+ # form parameters
2659
+ form_params = {}
2660
+
2661
+ if not form_params.empty?
2662
+ header_params['Content-Type'] = 'multipart/form-data'
2663
+ end
2664
+
2665
+ # http body (model)
2666
+ post_body = @api_client.object_to_http_body(request.options)
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: 'File')
2675
+ if @api_client.config.debugging
2676
+ @api_client.config.logger.debug "API called:
2677
+ CadApi#post_drawing_psd\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2678
+ end
2679
+ [data, status_code, headers]
2680
+ end
2681
+
2682
+ # Resize a drawing. Drawing data is passed as a zero-indexed multipart/form-data content or as raw body stream.
2683
+ #
2684
+ # @param request PostDrawingResizeRequest
2685
+ # @return [File]
2686
+ def post_drawing_resize(request)
2687
+ data, _status_code, _headers = post_drawing_resize_with_http_info(request)
2688
+ request_token if _status_code == 401
2689
+ data
2690
+ end
2691
+
2692
+ # Resize a drawing. Drawing data is passed as a zero-indexed multipart/form-data content or as raw body stream.
2693
+ #
2694
+ # @param request PostDrawingResizeRequest
2695
+ # @return [Array<(File, Fixnum, Hash)>]
2696
+ # File data, response status code and response headers
2697
+ def post_drawing_resize_with_http_info(request)
2698
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingResizeRequest
2699
+
2700
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_resize ...' if @api_client.config.debugging
2251
2701
  # 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?
2702
+ 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?
2703
+ # verify the required parameter 'output_format' is set
2704
+ 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?
2705
+ # verify the required parameter 'new_width' is set
2706
+ 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?
2707
+ # verify the required parameter 'new_height' is set
2708
+ 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?
2253
2709
  # resource path
2254
- local_var_path = '/cad/bmp'
2710
+ local_var_path = '/cad/resize'
2255
2711
 
2256
2712
  # query parameters
2257
2713
  query_params = {}
2714
+ query_params[downcase_first_letter('outputFormat')] = request.output_format
2715
+ query_params[downcase_first_letter('newWidth')] = request.new_width
2716
+ query_params[downcase_first_letter('newHeight')] = request.new_height
2717
+
2718
+
2719
+
2258
2720
  if local_var_path.include? downcase_first_letter('outPath')
2259
2721
  local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
2260
2722
  else
@@ -2276,7 +2738,6 @@ module AsposeCadCloud
2276
2738
  # form parameters
2277
2739
  form_params = {}
2278
2740
  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
2741
 
2281
2742
  if not form_params.empty?
2282
2743
  header_params['Content-Type'] = 'multipart/form-data'
@@ -2284,8 +2745,8 @@ module AsposeCadCloud
2284
2745
 
2285
2746
  # http body (model)
2286
2747
  post_body = nil
2287
- auth_names = ['JWT']
2288
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2748
+ auth_names = ['Bearer']
2749
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2289
2750
  header_params: header_params,
2290
2751
  query_params: query_params,
2291
2752
  form_params: form_params,
@@ -2294,34 +2755,1697 @@ module AsposeCadCloud
2294
2755
  return_type: 'File')
2295
2756
  if @api_client.config.debugging
2296
2757
  @api_client.config.logger.debug "API called:
2297
- CadApi#put_drawing_bmp\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2758
+ CadApi#post_drawing_resize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2298
2759
  end
2299
2760
  [data, status_code, headers]
2300
2761
  end
2301
2762
 
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.
2763
+ # Rotate/flip a drawing. Drawing data is passed as a zero-indexed multipart/form-data content or as raw body stream.
2303
2764
  #
2304
- # @param request PutDrawingGifRequest
2765
+ # @param request PostDrawingRotateFlipRequest
2305
2766
  # @return [File]
2306
- def put_drawing_gif(request)
2307
- data, _status_code, _headers = put_drawing_gif_with_http_info(request)
2767
+ def post_drawing_rotate_flip(request)
2768
+ data, _status_code, _headers = post_drawing_rotate_flip_with_http_info(request)
2308
2769
  request_token if _status_code == 401
2309
2770
  data
2310
2771
  end
2311
2772
 
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.
2773
+ # Rotate/flip a drawing. Drawing data is passed as a zero-indexed multipart/form-data content or as raw body stream.
2313
2774
  #
2314
- # @param request PutDrawingGifRequest
2775
+ # @param request PostDrawingRotateFlipRequest
2315
2776
  # @return [Array<(File, Fixnum, Hash)>]
2316
2777
  # 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
2778
+ def post_drawing_rotate_flip_with_http_info(request)
2779
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingRotateFlipRequest
2780
+
2781
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_rotate_flip ...' if @api_client.config.debugging
2782
+ # verify the required parameter 'drawing_data' is set
2783
+ 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?
2784
+ # verify the required parameter 'output_format' is set
2785
+ 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?
2786
+ # verify the required parameter 'rotate_flip_type' is set
2787
+ 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?
2788
+ # verify enum value
2789
+ 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)
2790
+ # resource path
2791
+ local_var_path = '/cad/rotateflip'
2792
+
2793
+ # query parameters
2794
+ query_params = {}
2795
+ query_params[downcase_first_letter('outputFormat')] = request.output_format
2796
+ query_params[downcase_first_letter('rotateFlipType')] = request.rotate_flip_type
2797
+
2798
+
2799
+ if local_var_path.include? downcase_first_letter('outPath')
2800
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
2801
+ else
2802
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
2803
+ end
2804
+ if local_var_path.include? downcase_first_letter('storage')
2805
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
2806
+ else
2807
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
2808
+ end
2809
+
2810
+ # header parameters
2811
+ header_params = {}
2812
+ # HTTP header 'Accept' (if needed)
2813
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2814
+ # HTTP header 'Content-Type'
2815
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream', 'multipart/form-data'])
2816
+
2817
+ # form parameters
2818
+ form_params = {}
2819
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
2820
+
2821
+ if not form_params.empty?
2822
+ header_params['Content-Type'] = 'multipart/form-data'
2823
+ end
2824
+
2825
+ # http body (model)
2826
+ post_body = nil
2827
+ auth_names = ['Bearer']
2828
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2829
+ header_params: header_params,
2830
+ query_params: query_params,
2831
+ form_params: form_params,
2832
+ body: post_body,
2833
+ auth_names: auth_names,
2834
+ return_type: 'File')
2835
+ if @api_client.config.debugging
2836
+ @api_client.config.logger.debug "API called:
2837
+ CadApi#post_drawing_rotate_flip\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2838
+ end
2839
+ [data, status_code, headers]
2840
+ end
2841
+
2842
+ # Export existing drawing to another format. Drawing data is passed as zero-indexed multipart/form-data content or as raw body stream.
2843
+ #
2844
+ # @param request PostDrawingSaveAsRequest
2845
+ # @return [File]
2846
+ def post_drawing_save_as(request)
2847
+ data, _status_code, _headers = post_drawing_save_as_with_http_info(request)
2848
+ request_token if _status_code == 401
2849
+ data
2850
+ end
2851
+
2852
+ # Export existing drawing to another format. Drawing data is passed as zero-indexed multipart/form-data content or as raw body stream.
2853
+ #
2854
+ # @param request PostDrawingSaveAsRequest
2855
+ # @return [Array<(File, Fixnum, Hash)>]
2856
+ # File data, response status code and response headers
2857
+ def post_drawing_save_as_with_http_info(request)
2858
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingSaveAsRequest
2859
+
2860
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_save_as ...' if @api_client.config.debugging
2861
+ # verify the required parameter 'drawing_data' is set
2862
+ 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?
2863
+ # verify the required parameter 'output_format' is set
2864
+ 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?
2865
+ # resource path
2866
+ local_var_path = '/cad/saveAs/{outputFormat}'
2867
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outputFormat') + '}', request.output_format.to_s)
2868
+
2869
+ # query parameters
2870
+ query_params = {}
2871
+ if local_var_path.include? downcase_first_letter('outPath')
2872
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
2873
+ else
2874
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
2875
+ end
2876
+ if local_var_path.include? downcase_first_letter('storage')
2877
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
2878
+ else
2879
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
2880
+ end
2881
+
2882
+ # header parameters
2883
+ header_params = {}
2884
+ # HTTP header 'Accept' (if needed)
2885
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2886
+ # HTTP header 'Content-Type'
2887
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream', 'multipart/form-data'])
2888
+
2889
+ # form parameters
2890
+ form_params = {}
2891
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
2892
+
2893
+ if not form_params.empty?
2894
+ header_params['Content-Type'] = 'multipart/form-data'
2895
+ end
2896
+
2897
+ # http body (model)
2898
+ post_body = nil
2899
+ auth_names = ['Bearer']
2900
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2901
+ header_params: header_params,
2902
+ query_params: query_params,
2903
+ form_params: form_params,
2904
+ body: post_body,
2905
+ auth_names: auth_names,
2906
+ return_type: 'File')
2907
+ if @api_client.config.debugging
2908
+ @api_client.config.logger.debug "API called:
2909
+ CadApi#post_drawing_save_as\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2910
+ end
2911
+ [data, status_code, headers]
2912
+ end
2913
+
2914
+ # Export an existing drawing to STP format with export settings specified.
2915
+ #
2916
+ # @param request PostDrawingStpRequest
2917
+ # @return [File]
2918
+ def post_drawing_stp(request)
2919
+ data, _status_code, _headers = post_drawing_stp_with_http_info(request)
2920
+ request_token if _status_code == 401
2921
+ data
2922
+ end
2923
+
2924
+ # Export an existing drawing to STP format with export settings specified.
2925
+ #
2926
+ # @param request PostDrawingStpRequest
2927
+ # @return [Array<(File, Fixnum, Hash)>]
2928
+ # File data, response status code and response headers
2929
+ def post_drawing_stp_with_http_info(request)
2930
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingStpRequest
2931
+
2932
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_stp ...' if @api_client.config.debugging
2933
+ # verify the required parameter 'name' is set
2934
+ raise ArgumentError, 'Missing the required parameter name when calling CadApi.post_drawing_stp' if @api_client.config.client_side_validation && request.name.nil?
2935
+ # verify the required parameter 'options' is set
2936
+ raise ArgumentError, 'Missing the required parameter options when calling CadApi.post_drawing_stp' if @api_client.config.client_side_validation && request.options.nil?
2937
+ # resource path
2938
+ local_var_path = '/cad/{name}/stp'
2939
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('name') + '}', request.name.to_s)
2940
+
2941
+ # query parameters
2942
+ query_params = {}
2943
+ if local_var_path.include? downcase_first_letter('folder')
2944
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('folder') + '}', request.folder.to_s)
2945
+ else
2946
+ query_params[downcase_first_letter('folder')] = request.folder unless request.folder.nil?
2947
+ end
2948
+ if local_var_path.include? downcase_first_letter('outPath')
2949
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
2950
+ else
2951
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
2952
+ end
2953
+ if local_var_path.include? downcase_first_letter('storage')
2954
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
2955
+ else
2956
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
2957
+ end
2958
+
2959
+ # header parameters
2960
+ header_params = {}
2961
+ # HTTP header 'Accept' (if needed)
2962
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2963
+ # HTTP header 'Content-Type'
2964
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2965
+
2966
+ # form parameters
2967
+ form_params = {}
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 = @api_client.object_to_http_body(request.options)
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_stp\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 SVG format with export settings specified.
2991
+ #
2992
+ # @param request PostDrawingSvgRequest
2993
+ # @return [File]
2994
+ def post_drawing_svg(request)
2995
+ data, _status_code, _headers = post_drawing_svg_with_http_info(request)
2996
+ request_token if _status_code == 401
2997
+ data
2998
+ end
2999
+
3000
+ # Export an existing drawing to SVG format with export settings specified.
3001
+ #
3002
+ # @param request PostDrawingSvgRequest
3003
+ # @return [Array<(File, Fixnum, Hash)>]
3004
+ # File data, response status code and response headers
3005
+ def post_drawing_svg_with_http_info(request)
3006
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingSvgRequest
3007
+
3008
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_svg ...' 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_svg' 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_svg' if @api_client.config.client_side_validation && request.options.nil?
3013
+ # resource path
3014
+ local_var_path = '/cad/{name}/svg'
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_svg\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 3ds format with export settings specified.
3067
+ #
3068
+ # @param request PostDrawingThreeDsRequest
3069
+ # @return [File]
3070
+ def post_drawing_three_ds(request)
3071
+ data, _status_code, _headers = post_drawing_three_ds_with_http_info(request)
3072
+ request_token if _status_code == 401
3073
+ data
3074
+ end
3075
+
3076
+ # Export an existing drawing to 3ds format with export settings specified.
3077
+ #
3078
+ # @param request PostDrawingThreeDsRequest
3079
+ # @return [Array<(File, Fixnum, Hash)>]
3080
+ # File data, response status code and response headers
3081
+ def post_drawing_three_ds_with_http_info(request)
3082
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingThreeDsRequest
3083
+
3084
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_three_ds ...' 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_three_ds' 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_three_ds' if @api_client.config.client_side_validation && request.options.nil?
3089
+ # resource path
3090
+ local_var_path = '/cad/{name}/3ds'
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_three_ds\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3138
+ end
3139
+ [data, status_code, headers]
3140
+ end
3141
+
3142
+ # Export an existing drawing into TIFF format with export settings specified.
3143
+ #
3144
+ # @param request PostDrawingTiffRequest
3145
+ # @return [File]
3146
+ def post_drawing_tiff(request)
3147
+ data, _status_code, _headers = post_drawing_tiff_with_http_info(request)
3148
+ request_token if _status_code == 401
3149
+ data
3150
+ end
3151
+
3152
+ # Export an existing drawing into TIFF format with export settings specified.
3153
+ #
3154
+ # @param request PostDrawingTiffRequest
3155
+ # @return [Array<(File, Fixnum, Hash)>]
3156
+ # File data, response status code and response headers
3157
+ def post_drawing_tiff_with_http_info(request)
3158
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingTiffRequest
3159
+
3160
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_tiff ...' 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_tiff' 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_tiff' if @api_client.config.client_side_validation && request.options.nil?
3165
+ # resource path
3166
+ local_var_path = '/cad/{name}/tiff'
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_tiff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3214
+ end
3215
+ [data, status_code, headers]
3216
+ end
3217
+
3218
+ # Export an existing drawing to U3d format with export settings specified.
3219
+ #
3220
+ # @param request PostDrawingU3dRequest
3221
+ # @return [File]
3222
+ def post_drawing_u3d(request)
3223
+ data, _status_code, _headers = post_drawing_u3d_with_http_info(request)
3224
+ request_token if _status_code == 401
3225
+ data
3226
+ end
3227
+
3228
+ # Export an existing drawing to U3d format with export settings specified.
3229
+ #
3230
+ # @param request PostDrawingU3dRequest
3231
+ # @return [Array<(File, Fixnum, Hash)>]
3232
+ # File data, response status code and response headers
3233
+ def post_drawing_u3d_with_http_info(request)
3234
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingU3dRequest
3235
+
3236
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_u3d ...' 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_u3d' 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_u3d' if @api_client.config.client_side_validation && request.options.nil?
3241
+ # resource path
3242
+ local_var_path = '/cad/{name}/u3d'
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_u3d\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 Webp format with export settings specified.
3295
+ #
3296
+ # @param request PostDrawingWebpRequest
3297
+ # @return [File]
3298
+ def post_drawing_webp(request)
3299
+ data, _status_code, _headers = post_drawing_webp_with_http_info(request)
3300
+ request_token if _status_code == 401
3301
+ data
3302
+ end
3303
+
3304
+ # Export an existing drawing to Webp format with export settings specified.
3305
+ #
3306
+ # @param request PostDrawingWebpRequest
3307
+ # @return [Array<(File, Fixnum, Hash)>]
3308
+ # File data, response status code and response headers
3309
+ def post_drawing_webp_with_http_info(request)
3310
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingWebpRequest
3311
+
3312
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_webp ...' 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_webp' 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_webp' if @api_client.config.client_side_validation && request.options.nil?
3317
+ # resource path
3318
+ local_var_path = '/cad/{name}/webp'
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_webp\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 WMF format with export settings specified.
3371
+ #
3372
+ # @param request PostDrawingWmfRequest
3373
+ # @return [File]
3374
+ def post_drawing_wmf(request)
3375
+ data, _status_code, _headers = post_drawing_wmf_with_http_info(request)
3376
+ request_token if _status_code == 401
3377
+ data
3378
+ end
3379
+
3380
+ # Export an existing drawing to WMF format with export settings specified.
3381
+ #
3382
+ # @param request PostDrawingWmfRequest
3383
+ # @return [Array<(File, Fixnum, Hash)>]
3384
+ # File data, response status code and response headers
3385
+ def post_drawing_wmf_with_http_info(request)
3386
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDrawingWmfRequest
3387
+
3388
+ @api_client.config.logger.debug 'Calling API: CadApi.post_drawing_wmf ...' 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_wmf' 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_wmf' if @api_client.config.client_side_validation && request.options.nil?
3393
+ # resource path
3394
+ local_var_path = '/cad/{name}/wmf'
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_wmf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3442
+ end
3443
+ [data, status_code, headers]
3444
+ end
3445
+
3446
+ # 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.
3447
+ #
3448
+ # @param request PutDrawingBmpRequest
3449
+ # @return [File]
3450
+ def put_drawing_bmp(request)
3451
+ data, _status_code, _headers = put_drawing_bmp_with_http_info(request)
3452
+ request_token if _status_code == 401
3453
+ data
3454
+ end
3455
+
3456
+ # 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.
3457
+ #
3458
+ # @param request PutDrawingBmpRequest
3459
+ # @return [Array<(File, Fixnum, Hash)>]
3460
+ # File data, response status code and response headers
3461
+ def put_drawing_bmp_with_http_info(request)
3462
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingBmpRequest
3463
+
3464
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_bmp ...' if @api_client.config.debugging
3465
+ # verify the required parameter 'drawing_data' is set
3466
+ 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?
3467
+ # resource path
3468
+ local_var_path = '/cad/bmp'
3469
+
3470
+ # query parameters
3471
+ query_params = {}
3472
+ if local_var_path.include? downcase_first_letter('outPath')
3473
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
3474
+ else
3475
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
3476
+ end
3477
+ if local_var_path.include? downcase_first_letter('storage')
3478
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
3479
+ else
3480
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
3481
+ end
3482
+
3483
+ # header parameters
3484
+ header_params = {}
3485
+ # HTTP header 'Accept' (if needed)
3486
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3487
+ # HTTP header 'Content-Type'
3488
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream', 'multipart/form-data'])
3489
+
3490
+ # form parameters
3491
+ form_params = {}
3492
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
3493
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
3494
+
3495
+ if not form_params.empty?
3496
+ header_params['Content-Type'] = 'multipart/form-data'
3497
+ end
3498
+
3499
+ # http body (model)
3500
+ post_body = nil
3501
+ auth_names = ['Bearer']
3502
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3503
+ header_params: header_params,
3504
+ query_params: query_params,
3505
+ form_params: form_params,
3506
+ body: post_body,
3507
+ auth_names: auth_names,
3508
+ return_type: 'File')
3509
+ if @api_client.config.debugging
3510
+ @api_client.config.logger.debug "API called:
3511
+ CadApi#put_drawing_bmp\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3512
+ end
3513
+ [data, status_code, headers]
3514
+ end
3515
+
3516
+ # 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.
3517
+ #
3518
+ # @param request PutDrawingCgmRequest
3519
+ # @return [File]
3520
+ def put_drawing_cgm(request)
3521
+ data, _status_code, _headers = put_drawing_cgm_with_http_info(request)
3522
+ request_token if _status_code == 401
3523
+ data
3524
+ end
3525
+
3526
+ # 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.
3527
+ #
3528
+ # @param request PutDrawingCgmRequest
3529
+ # @return [Array<(File, Fixnum, Hash)>]
3530
+ # File data, response status code and response headers
3531
+ def put_drawing_cgm_with_http_info(request)
3532
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingCgmRequest
3533
+
3534
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_cgm ...' if @api_client.config.debugging
3535
+ # verify the required parameter 'drawing_data' is set
3536
+ 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?
3537
+ # resource path
3538
+ local_var_path = '/cad/cgm'
3539
+
3540
+ # query parameters
3541
+ query_params = {}
3542
+ if local_var_path.include? downcase_first_letter('outPath')
3543
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
3544
+ else
3545
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
3546
+ end
3547
+ if local_var_path.include? downcase_first_letter('storage')
3548
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
3549
+ else
3550
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
3551
+ end
3552
+
3553
+ # header parameters
3554
+ header_params = {}
3555
+ # HTTP header 'Accept' (if needed)
3556
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3557
+ # HTTP header 'Content-Type'
3558
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
3559
+
3560
+ # form parameters
3561
+ form_params = {}
3562
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
3563
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
3564
+
3565
+ if not form_params.empty?
3566
+ header_params['Content-Type'] = 'multipart/form-data'
3567
+ end
3568
+
3569
+ # http body (model)
3570
+ post_body = nil
3571
+ auth_names = ['Bearer']
3572
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3573
+ header_params: header_params,
3574
+ query_params: query_params,
3575
+ form_params: form_params,
3576
+ body: post_body,
3577
+ auth_names: auth_names,
3578
+ return_type: 'File')
3579
+ if @api_client.config.debugging
3580
+ @api_client.config.logger.debug "API called:
3581
+ CadApi#put_drawing_cgm\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3582
+ end
3583
+ [data, status_code, headers]
3584
+ end
3585
+
3586
+ # 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.
3587
+ #
3588
+ # @param request PutDrawingDicomRequest
3589
+ # @return [File]
3590
+ def put_drawing_dicom(request)
3591
+ data, _status_code, _headers = put_drawing_dicom_with_http_info(request)
3592
+ request_token if _status_code == 401
3593
+ data
3594
+ end
3595
+
3596
+ # 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.
3597
+ #
3598
+ # @param request PutDrawingDicomRequest
3599
+ # @return [Array<(File, Fixnum, Hash)>]
3600
+ # File data, response status code and response headers
3601
+ def put_drawing_dicom_with_http_info(request)
3602
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingDicomRequest
3603
+
3604
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_dicom ...' if @api_client.config.debugging
3605
+ # verify the required parameter 'drawing_data' is set
3606
+ 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?
3607
+ # resource path
3608
+ local_var_path = '/cad/dicom'
3609
+
3610
+ # query parameters
3611
+ query_params = {}
3612
+ if local_var_path.include? downcase_first_letter('outPath')
3613
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
3614
+ else
3615
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
3616
+ end
3617
+ if local_var_path.include? downcase_first_letter('storage')
3618
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
3619
+ else
3620
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
3621
+ end
3622
+
3623
+ # header parameters
3624
+ header_params = {}
3625
+ # HTTP header 'Accept' (if needed)
3626
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3627
+ # HTTP header 'Content-Type'
3628
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream', 'multipart/form-data'])
3629
+
3630
+ # form parameters
3631
+ form_params = {}
3632
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
3633
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
3634
+
3635
+ if not form_params.empty?
3636
+ header_params['Content-Type'] = 'multipart/form-data'
3637
+ end
3638
+
3639
+ # http body (model)
3640
+ post_body = nil
3641
+ auth_names = ['Bearer']
3642
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3643
+ header_params: header_params,
3644
+ query_params: query_params,
3645
+ form_params: form_params,
3646
+ body: post_body,
3647
+ auth_names: auth_names,
3648
+ return_type: 'File')
3649
+ if @api_client.config.debugging
3650
+ @api_client.config.logger.debug "API called:
3651
+ CadApi#put_drawing_dicom\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3652
+ end
3653
+ [data, status_code, headers]
3654
+ end
3655
+
3656
+ # 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.
3657
+ #
3658
+ # @param request PutDrawingDwfRequest
3659
+ # @return [File]
3660
+ def put_drawing_dwf(request)
3661
+ data, _status_code, _headers = put_drawing_dwf_with_http_info(request)
3662
+ request_token if _status_code == 401
3663
+ data
3664
+ end
3665
+
3666
+ # 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.
3667
+ #
3668
+ # @param request PutDrawingDwfRequest
3669
+ # @return [Array<(File, Fixnum, Hash)>]
3670
+ # File data, response status code and response headers
3671
+ def put_drawing_dwf_with_http_info(request)
3672
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingDwfRequest
3673
+
3674
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_dwf ...' if @api_client.config.debugging
3675
+ # verify the required parameter 'drawing_data' is set
3676
+ 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?
3677
+ # resource path
3678
+ local_var_path = '/cad/dwf'
3679
+
3680
+ # query parameters
3681
+ query_params = {}
3682
+ if local_var_path.include? downcase_first_letter('outPath')
3683
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
3684
+ else
3685
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
3686
+ end
3687
+ if local_var_path.include? downcase_first_letter('storage')
3688
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
3689
+ else
3690
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
3691
+ end
3692
+
3693
+ # header parameters
3694
+ header_params = {}
3695
+ # HTTP header 'Accept' (if needed)
3696
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3697
+ # HTTP header 'Content-Type'
3698
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
3699
+
3700
+ # form parameters
3701
+ form_params = {}
3702
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
3703
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
3704
+
3705
+ if not form_params.empty?
3706
+ header_params['Content-Type'] = 'multipart/form-data'
3707
+ end
3708
+
3709
+ # http body (model)
3710
+ post_body = nil
3711
+ auth_names = ['Bearer']
3712
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3713
+ header_params: header_params,
3714
+ query_params: query_params,
3715
+ form_params: form_params,
3716
+ body: post_body,
3717
+ auth_names: auth_names,
3718
+ return_type: 'File')
3719
+ if @api_client.config.debugging
3720
+ @api_client.config.logger.debug "API called:
3721
+ CadApi#put_drawing_dwf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3722
+ end
3723
+ [data, status_code, headers]
3724
+ end
3725
+
3726
+ # 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.
3727
+ #
3728
+ # @param request PutDrawingDxfRequest
3729
+ # @return [File]
3730
+ def put_drawing_dxf(request)
3731
+ data, _status_code, _headers = put_drawing_dxf_with_http_info(request)
3732
+ request_token if _status_code == 401
3733
+ data
3734
+ end
3735
+
3736
+ # 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.
3737
+ #
3738
+ # @param request PutDrawingDxfRequest
3739
+ # @return [Array<(File, Fixnum, Hash)>]
3740
+ # File data, response status code and response headers
3741
+ def put_drawing_dxf_with_http_info(request)
3742
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingDxfRequest
3743
+
3744
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_dxf ...' if @api_client.config.debugging
3745
+ # verify the required parameter 'drawing_data' is set
3746
+ 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?
3747
+ # resource path
3748
+ local_var_path = '/cad/dxf'
3749
+
3750
+ # query parameters
3751
+ query_params = {}
3752
+ if local_var_path.include? downcase_first_letter('outPath')
3753
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
3754
+ else
3755
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
3756
+ end
3757
+ if local_var_path.include? downcase_first_letter('storage')
3758
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
3759
+ else
3760
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
3761
+ end
3762
+
3763
+ # header parameters
3764
+ header_params = {}
3765
+ # HTTP header 'Accept' (if needed)
3766
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3767
+ # HTTP header 'Content-Type'
3768
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
3769
+
3770
+ # form parameters
3771
+ form_params = {}
3772
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
3773
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
3774
+
3775
+ if not form_params.empty?
3776
+ header_params['Content-Type'] = 'multipart/form-data'
3777
+ end
3778
+
3779
+ # http body (model)
3780
+ post_body = nil
3781
+ auth_names = ['Bearer']
3782
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3783
+ header_params: header_params,
3784
+ query_params: query_params,
3785
+ form_params: form_params,
3786
+ body: post_body,
3787
+ auth_names: auth_names,
3788
+ return_type: 'File')
3789
+ if @api_client.config.debugging
3790
+ @api_client.config.logger.debug "API called:
3791
+ CadApi#put_drawing_dxf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3792
+ end
3793
+ [data, status_code, headers]
3794
+ end
3795
+
3796
+ # 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.
3797
+ #
3798
+ # @param request PutDrawingFbxRequest
3799
+ # @return [File]
3800
+ def put_drawing_fbx(request)
3801
+ data, _status_code, _headers = put_drawing_fbx_with_http_info(request)
3802
+ request_token if _status_code == 401
3803
+ data
3804
+ end
3805
+
3806
+ # 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.
3807
+ #
3808
+ # @param request PutDrawingFbxRequest
3809
+ # @return [Array<(File, Fixnum, Hash)>]
3810
+ # File data, response status code and response headers
3811
+ def put_drawing_fbx_with_http_info(request)
3812
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingFbxRequest
3813
+
3814
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_fbx ...' if @api_client.config.debugging
3815
+ # verify the required parameter 'drawing_data' is set
3816
+ 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?
3817
+ # resource path
3818
+ local_var_path = '/cad/fbx'
3819
+
3820
+ # query parameters
3821
+ query_params = {}
3822
+ if local_var_path.include? downcase_first_letter('outPath')
3823
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
3824
+ else
3825
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
3826
+ end
3827
+ if local_var_path.include? downcase_first_letter('storage')
3828
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
3829
+ else
3830
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
3831
+ end
3832
+
3833
+ # header parameters
3834
+ header_params = {}
3835
+ # HTTP header 'Accept' (if needed)
3836
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3837
+ # HTTP header 'Content-Type'
3838
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
3839
+
3840
+ # form parameters
3841
+ form_params = {}
3842
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
3843
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
3844
+
3845
+ if not form_params.empty?
3846
+ header_params['Content-Type'] = 'multipart/form-data'
3847
+ end
3848
+
3849
+ # http body (model)
3850
+ post_body = nil
3851
+ auth_names = ['Bearer']
3852
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3853
+ header_params: header_params,
3854
+ query_params: query_params,
3855
+ form_params: form_params,
3856
+ body: post_body,
3857
+ auth_names: auth_names,
3858
+ return_type: 'File')
3859
+ if @api_client.config.debugging
3860
+ @api_client.config.logger.debug "API called:
3861
+ CadApi#put_drawing_fbx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3862
+ end
3863
+ [data, status_code, headers]
3864
+ end
3865
+
3866
+ # 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.
3867
+ #
3868
+ # @param request PutDrawingGifRequest
3869
+ # @return [File]
3870
+ def put_drawing_gif(request)
3871
+ data, _status_code, _headers = put_drawing_gif_with_http_info(request)
3872
+ request_token if _status_code == 401
3873
+ data
3874
+ end
3875
+
3876
+ # 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.
3877
+ #
3878
+ # @param request PutDrawingGifRequest
3879
+ # @return [Array<(File, Fixnum, Hash)>]
3880
+ # File data, response status code and response headers
3881
+ def put_drawing_gif_with_http_info(request)
3882
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingGifRequest
3883
+
3884
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_gif ...' if @api_client.config.debugging
3885
+ # verify the required parameter 'drawing_data' is set
3886
+ 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?
3887
+ # resource path
3888
+ local_var_path = '/cad/gif'
3889
+
3890
+ # query parameters
3891
+ query_params = {}
3892
+ if local_var_path.include? downcase_first_letter('outPath')
3893
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
3894
+ else
3895
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
3896
+ end
3897
+ if local_var_path.include? downcase_first_letter('storage')
3898
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
3899
+ else
3900
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
3901
+ end
3902
+
3903
+ # header parameters
3904
+ header_params = {}
3905
+ # HTTP header 'Accept' (if needed)
3906
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3907
+ # HTTP header 'Content-Type'
3908
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
3909
+
3910
+ # form parameters
3911
+ form_params = {}
3912
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
3913
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
3914
+
3915
+ if not form_params.empty?
3916
+ header_params['Content-Type'] = 'multipart/form-data'
3917
+ end
3918
+
3919
+ # http body (model)
3920
+ post_body = nil
3921
+ auth_names = ['Bearer']
3922
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3923
+ header_params: header_params,
3924
+ query_params: query_params,
3925
+ form_params: form_params,
3926
+ body: post_body,
3927
+ auth_names: auth_names,
3928
+ return_type: 'File')
3929
+ if @api_client.config.debugging
3930
+ @api_client.config.logger.debug "API called:
3931
+ CadApi#put_drawing_gif\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3932
+ end
3933
+ [data, status_code, headers]
3934
+ end
3935
+
3936
+ # 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.
3937
+ #
3938
+ # @param request PutDrawingGlbRequest
3939
+ # @return [File]
3940
+ def put_drawing_glb(request)
3941
+ data, _status_code, _headers = put_drawing_glb_with_http_info(request)
3942
+ request_token if _status_code == 401
3943
+ data
3944
+ end
3945
+
3946
+ # 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.
3947
+ #
3948
+ # @param request PutDrawingGlbRequest
3949
+ # @return [Array<(File, Fixnum, Hash)>]
3950
+ # File data, response status code and response headers
3951
+ def put_drawing_glb_with_http_info(request)
3952
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingGlbRequest
3953
+
3954
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_glb ...' if @api_client.config.debugging
3955
+ # verify the required parameter 'drawing_data' is set
3956
+ 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?
3957
+ # resource path
3958
+ local_var_path = '/cad/glb'
3959
+
3960
+ # query parameters
3961
+ query_params = {}
3962
+ if local_var_path.include? downcase_first_letter('outPath')
3963
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
3964
+ else
3965
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
3966
+ end
3967
+ if local_var_path.include? downcase_first_letter('storage')
3968
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
3969
+ else
3970
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
3971
+ end
3972
+
3973
+ # header parameters
3974
+ header_params = {}
3975
+ # HTTP header 'Accept' (if needed)
3976
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3977
+ # HTTP header 'Content-Type'
3978
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
3979
+
3980
+ # form parameters
3981
+ form_params = {}
3982
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
3983
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
3984
+
3985
+ if not form_params.empty?
3986
+ header_params['Content-Type'] = 'multipart/form-data'
3987
+ end
3988
+
3989
+ # http body (model)
3990
+ post_body = nil
3991
+ auth_names = ['Bearer']
3992
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3993
+ header_params: header_params,
3994
+ query_params: query_params,
3995
+ form_params: form_params,
3996
+ body: post_body,
3997
+ auth_names: auth_names,
3998
+ return_type: 'File')
3999
+ if @api_client.config.debugging
4000
+ @api_client.config.logger.debug "API called:
4001
+ CadApi#put_drawing_glb\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4002
+ end
4003
+ [data, status_code, headers]
4004
+ end
4005
+
4006
+ # 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.
4007
+ #
4008
+ # @param request PutDrawingGltfRequest
4009
+ # @return [File]
4010
+ def put_drawing_gltf(request)
4011
+ data, _status_code, _headers = put_drawing_gltf_with_http_info(request)
4012
+ request_token if _status_code == 401
4013
+ data
4014
+ end
4015
+
4016
+ # 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.
4017
+ #
4018
+ # @param request PutDrawingGltfRequest
4019
+ # @return [Array<(File, Fixnum, Hash)>]
4020
+ # File data, response status code and response headers
4021
+ def put_drawing_gltf_with_http_info(request)
4022
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingGltfRequest
4023
+
4024
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_gltf ...' if @api_client.config.debugging
4025
+ # verify the required parameter 'drawing_data' is set
4026
+ 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?
4027
+ # resource path
4028
+ local_var_path = '/cad/gltf'
4029
+
4030
+ # query parameters
4031
+ query_params = {}
4032
+ if local_var_path.include? downcase_first_letter('outPath')
4033
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
4034
+ else
4035
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
4036
+ end
4037
+ if local_var_path.include? downcase_first_letter('storage')
4038
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
4039
+ else
4040
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
4041
+ end
4042
+
4043
+ # header parameters
4044
+ header_params = {}
4045
+ # HTTP header 'Accept' (if needed)
4046
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4047
+ # HTTP header 'Content-Type'
4048
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
4049
+
4050
+ # form parameters
4051
+ form_params = {}
4052
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
4053
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
4054
+
4055
+ if not form_params.empty?
4056
+ header_params['Content-Type'] = 'multipart/form-data'
4057
+ end
4058
+
4059
+ # http body (model)
4060
+ post_body = nil
4061
+ auth_names = ['Bearer']
4062
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4063
+ header_params: header_params,
4064
+ query_params: query_params,
4065
+ form_params: form_params,
4066
+ body: post_body,
4067
+ auth_names: auth_names,
4068
+ return_type: 'File')
4069
+ if @api_client.config.debugging
4070
+ @api_client.config.logger.debug "API called:
4071
+ CadApi#put_drawing_gltf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4072
+ end
4073
+ [data, status_code, headers]
4074
+ end
4075
+
4076
+ # 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.
4077
+ #
4078
+ # @param request PutDrawingJpegRequest
4079
+ # @return [File]
4080
+ def put_drawing_jpeg(request)
4081
+ data, _status_code, _headers = put_drawing_jpeg_with_http_info(request)
4082
+ request_token if _status_code == 401
4083
+ data
4084
+ end
4085
+
4086
+ # 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.
4087
+ #
4088
+ # @param request PutDrawingJpegRequest
4089
+ # @return [Array<(File, Fixnum, Hash)>]
4090
+ # File data, response status code and response headers
4091
+ def put_drawing_jpeg_with_http_info(request)
4092
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingJpegRequest
4093
+
4094
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_jpeg ...' if @api_client.config.debugging
4095
+ # verify the required parameter 'drawing_data' is set
4096
+ 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?
4097
+ # resource path
4098
+ local_var_path = '/cad/jpeg'
4099
+
4100
+ # query parameters
4101
+ query_params = {}
4102
+ if local_var_path.include? downcase_first_letter('outPath')
4103
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
4104
+ else
4105
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
4106
+ end
4107
+ if local_var_path.include? downcase_first_letter('storage')
4108
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
4109
+ else
4110
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
4111
+ end
4112
+
4113
+ # header parameters
4114
+ header_params = {}
4115
+ # HTTP header 'Accept' (if needed)
4116
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4117
+ # HTTP header 'Content-Type'
4118
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
4119
+
4120
+ # form parameters
4121
+ form_params = {}
4122
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
4123
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
4124
+
4125
+ if not form_params.empty?
4126
+ header_params['Content-Type'] = 'multipart/form-data'
4127
+ end
4128
+
4129
+ # http body (model)
4130
+ post_body = nil
4131
+ auth_names = ['Bearer']
4132
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4133
+ header_params: header_params,
4134
+ query_params: query_params,
4135
+ form_params: form_params,
4136
+ body: post_body,
4137
+ auth_names: auth_names,
4138
+ return_type: 'File')
4139
+ if @api_client.config.debugging
4140
+ @api_client.config.logger.debug "API called:
4141
+ CadApi#put_drawing_jpeg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4142
+ end
4143
+ [data, status_code, headers]
4144
+ end
4145
+
4146
+ # 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.
4147
+ #
4148
+ # @param request PutDrawingJpeg2000Request
4149
+ # @return [File]
4150
+ def put_drawing_jpeg2000(request)
4151
+ data, _status_code, _headers = put_drawing_jpeg2000_with_http_info(request)
4152
+ request_token if _status_code == 401
4153
+ data
4154
+ end
4155
+
4156
+ # 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.
4157
+ #
4158
+ # @param request PutDrawingJpeg2000Request
4159
+ # @return [Array<(File, Fixnum, Hash)>]
4160
+ # File data, response status code and response headers
4161
+ def put_drawing_jpeg2000_with_http_info(request)
4162
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingJpeg2000Request
4163
+
4164
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_jpeg2000 ...' if @api_client.config.debugging
4165
+ # verify the required parameter 'drawing_data' is set
4166
+ 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?
4167
+ # resource path
4168
+ local_var_path = '/cad/jpeg2000'
4169
+
4170
+ # query parameters
4171
+ query_params = {}
4172
+ if local_var_path.include? downcase_first_letter('outPath')
4173
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
4174
+ else
4175
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
4176
+ end
4177
+ if local_var_path.include? downcase_first_letter('storage')
4178
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
4179
+ else
4180
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
4181
+ end
4182
+
4183
+ # header parameters
4184
+ header_params = {}
4185
+ # HTTP header 'Accept' (if needed)
4186
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4187
+ # HTTP header 'Content-Type'
4188
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
4189
+
4190
+ # form parameters
4191
+ form_params = {}
4192
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
4193
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
4194
+
4195
+ if not form_params.empty?
4196
+ header_params['Content-Type'] = 'multipart/form-data'
4197
+ end
4198
+
4199
+ # http body (model)
4200
+ post_body = nil
4201
+ auth_names = ['Bearer']
4202
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4203
+ header_params: header_params,
4204
+ query_params: query_params,
4205
+ form_params: form_params,
4206
+ body: post_body,
4207
+ auth_names: auth_names,
4208
+ return_type: 'File')
4209
+ if @api_client.config.debugging
4210
+ @api_client.config.logger.debug "API called:
4211
+ CadApi#put_drawing_jpeg2000\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4212
+ end
4213
+ [data, status_code, headers]
4214
+ end
4215
+
4216
+ # 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.
4217
+ #
4218
+ # @param request PutDrawingObjRequest
4219
+ # @return [File]
4220
+ def put_drawing_obj(request)
4221
+ data, _status_code, _headers = put_drawing_obj_with_http_info(request)
4222
+ request_token if _status_code == 401
4223
+ data
4224
+ end
4225
+
4226
+ # 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.
4227
+ #
4228
+ # @param request PutDrawingObjRequest
4229
+ # @return [Array<(File, Fixnum, Hash)>]
4230
+ # File data, response status code and response headers
4231
+ def put_drawing_obj_with_http_info(request)
4232
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingObjRequest
4233
+
4234
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_obj ...' if @api_client.config.debugging
4235
+ # verify the required parameter 'drawing_data' is set
4236
+ 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?
4237
+ # resource path
4238
+ local_var_path = '/cad/obj'
4239
+
4240
+ # query parameters
4241
+ query_params = {}
4242
+ if local_var_path.include? downcase_first_letter('outPath')
4243
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
4244
+ else
4245
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
4246
+ end
4247
+ if local_var_path.include? downcase_first_letter('storage')
4248
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
4249
+ else
4250
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
4251
+ end
4252
+
4253
+ # header parameters
4254
+ header_params = {}
4255
+ # HTTP header 'Accept' (if needed)
4256
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4257
+ # HTTP header 'Content-Type'
4258
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
4259
+
4260
+ # form parameters
4261
+ form_params = {}
4262
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
4263
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
4264
+
4265
+ if not form_params.empty?
4266
+ header_params['Content-Type'] = 'multipart/form-data'
4267
+ end
4268
+
4269
+ # http body (model)
4270
+ post_body = nil
4271
+ auth_names = ['Bearer']
4272
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4273
+ header_params: header_params,
4274
+ query_params: query_params,
4275
+ form_params: form_params,
4276
+ body: post_body,
4277
+ auth_names: auth_names,
4278
+ return_type: 'File')
4279
+ if @api_client.config.debugging
4280
+ @api_client.config.logger.debug "API called:
4281
+ CadApi#put_drawing_obj\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4282
+ end
4283
+ [data, status_code, headers]
4284
+ end
4285
+
4286
+ # 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.
4287
+ #
4288
+ # @param request PutDrawingPdfRequest
4289
+ # @return [File]
4290
+ def put_drawing_pdf(request)
4291
+ data, _status_code, _headers = put_drawing_pdf_with_http_info(request)
4292
+ request_token if _status_code == 401
4293
+ data
4294
+ end
4295
+
4296
+ # 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.
4297
+ #
4298
+ # @param request PutDrawingPdfRequest
4299
+ # @return [Array<(File, Fixnum, Hash)>]
4300
+ # File data, response status code and response headers
4301
+ def put_drawing_pdf_with_http_info(request)
4302
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingPdfRequest
4303
+
4304
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_pdf ...' if @api_client.config.debugging
4305
+ # verify the required parameter 'drawing_data' is set
4306
+ 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?
4307
+ # resource path
4308
+ local_var_path = '/cad/pdf'
4309
+
4310
+ # query parameters
4311
+ query_params = {}
4312
+ if local_var_path.include? downcase_first_letter('outPath')
4313
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
4314
+ else
4315
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
4316
+ end
4317
+ if local_var_path.include? downcase_first_letter('storage')
4318
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
4319
+ else
4320
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
4321
+ end
4322
+
4323
+ # header parameters
4324
+ header_params = {}
4325
+ # HTTP header 'Accept' (if needed)
4326
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4327
+ # HTTP header 'Content-Type'
4328
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
4329
+
4330
+ # form parameters
4331
+ form_params = {}
4332
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
4333
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
4334
+
4335
+ if not form_params.empty?
4336
+ header_params['Content-Type'] = 'multipart/form-data'
4337
+ end
4338
+
4339
+ # http body (model)
4340
+ post_body = nil
4341
+ auth_names = ['Bearer']
4342
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4343
+ header_params: header_params,
4344
+ query_params: query_params,
4345
+ form_params: form_params,
4346
+ body: post_body,
4347
+ auth_names: auth_names,
4348
+ return_type: 'File')
4349
+ if @api_client.config.debugging
4350
+ @api_client.config.logger.debug "API called:
4351
+ CadApi#put_drawing_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4352
+ end
4353
+ [data, status_code, headers]
4354
+ end
4355
+
4356
+ # 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.
4357
+ #
4358
+ # @param request PutDrawingPngRequest
4359
+ # @return [File]
4360
+ def put_drawing_png(request)
4361
+ data, _status_code, _headers = put_drawing_png_with_http_info(request)
4362
+ request_token if _status_code == 401
4363
+ data
4364
+ end
4365
+
4366
+ # 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.
4367
+ #
4368
+ # @param request PutDrawingPngRequest
4369
+ # @return [Array<(File, Fixnum, Hash)>]
4370
+ # File data, response status code and response headers
4371
+ def put_drawing_png_with_http_info(request)
4372
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingPngRequest
4373
+
4374
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_png ...' if @api_client.config.debugging
4375
+ # verify the required parameter 'drawing_data' is set
4376
+ 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?
4377
+ # resource path
4378
+ local_var_path = '/cad/png'
4379
+
4380
+ # query parameters
4381
+ query_params = {}
4382
+ if local_var_path.include? downcase_first_letter('outPath')
4383
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outPath') + '}', request.out_path.to_s)
4384
+ else
4385
+ query_params[downcase_first_letter('outPath')] = request.out_path unless request.out_path.nil?
4386
+ end
4387
+ if local_var_path.include? downcase_first_letter('storage')
4388
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storage') + '}', request.storage.to_s)
4389
+ else
4390
+ query_params[downcase_first_letter('storage')] = request.storage unless request.storage.nil?
4391
+ end
4392
+
4393
+ # header parameters
4394
+ header_params = {}
4395
+ # HTTP header 'Accept' (if needed)
4396
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4397
+ # HTTP header 'Content-Type'
4398
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
4399
+
4400
+ # form parameters
4401
+ form_params = {}
4402
+ form_params[downcase_first_letter('drawingData')] = request.drawing_data
4403
+ form_params[downcase_first_letter('exportOptions')] = request.export_options unless request.export_options.nil?
4404
+
4405
+ if not form_params.empty?
4406
+ header_params['Content-Type'] = 'multipart/form-data'
4407
+ end
4408
+
4409
+ # http body (model)
4410
+ post_body = nil
4411
+ auth_names = ['Bearer']
4412
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4413
+ header_params: header_params,
4414
+ query_params: query_params,
4415
+ form_params: form_params,
4416
+ body: post_body,
4417
+ auth_names: auth_names,
4418
+ return_type: 'File')
4419
+ if @api_client.config.debugging
4420
+ @api_client.config.logger.debug "API called:
4421
+ CadApi#put_drawing_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4422
+ end
4423
+ [data, status_code, headers]
4424
+ end
4425
+
4426
+ # 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.
4427
+ #
4428
+ # @param request PutDrawingPsdRequest
4429
+ # @return [File]
4430
+ def put_drawing_psd(request)
4431
+ data, _status_code, _headers = put_drawing_psd_with_http_info(request)
4432
+ request_token if _status_code == 401
4433
+ data
4434
+ end
4435
+
4436
+ # 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.
4437
+ #
4438
+ # @param request PutDrawingPsdRequest
4439
+ # @return [Array<(File, Fixnum, Hash)>]
4440
+ # File data, response status code and response headers
4441
+ def put_drawing_psd_with_http_info(request)
4442
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingPsdRequest
2319
4443
 
2320
- @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_gif ...' if @api_client.config.debugging
4444
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_psd ...' if @api_client.config.debugging
2321
4445
  # 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?
4446
+ 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
4447
  # resource path
2324
- local_var_path = '/cad/gif'
4448
+ local_var_path = '/cad/psd'
2325
4449
 
2326
4450
  # query parameters
2327
4451
  query_params = {}
@@ -2354,7 +4478,7 @@ module AsposeCadCloud
2354
4478
 
2355
4479
  # http body (model)
2356
4480
  post_body = nil
2357
- auth_names = ['JWT']
4481
+ auth_names = ['Bearer']
2358
4482
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2359
4483
  header_params: header_params,
2360
4484
  query_params: query_params,
@@ -2364,34 +4488,34 @@ module AsposeCadCloud
2364
4488
  return_type: 'File')
2365
4489
  if @api_client.config.debugging
2366
4490
  @api_client.config.logger.debug "API called:
2367
- CadApi#put_drawing_gif\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4491
+ CadApi#put_drawing_psd\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2368
4492
  end
2369
4493
  [data, status_code, headers]
2370
4494
  end
2371
4495
 
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.
4496
+ # 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
4497
  #
2374
- # @param request PutDrawingJpegRequest
4498
+ # @param request PutDrawingStpRequest
2375
4499
  # @return [File]
2376
- def put_drawing_jpeg(request)
2377
- data, _status_code, _headers = put_drawing_jpeg_with_http_info(request)
4500
+ def put_drawing_stp(request)
4501
+ data, _status_code, _headers = put_drawing_stp_with_http_info(request)
2378
4502
  request_token if _status_code == 401
2379
4503
  data
2380
4504
  end
2381
4505
 
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.
4506
+ # 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
4507
  #
2384
- # @param request PutDrawingJpegRequest
4508
+ # @param request PutDrawingStpRequest
2385
4509
  # @return [Array<(File, Fixnum, Hash)>]
2386
4510
  # 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
4511
+ def put_drawing_stp_with_http_info(request)
4512
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingStpRequest
2389
4513
 
2390
- @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_jpeg ...' if @api_client.config.debugging
4514
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_stp ...' if @api_client.config.debugging
2391
4515
  # 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?
4516
+ 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
4517
  # resource path
2394
- local_var_path = '/cad/jpeg'
4518
+ local_var_path = '/cad/stp'
2395
4519
 
2396
4520
  # query parameters
2397
4521
  query_params = {}
@@ -2424,7 +4548,7 @@ module AsposeCadCloud
2424
4548
 
2425
4549
  # http body (model)
2426
4550
  post_body = nil
2427
- auth_names = ['JWT']
4551
+ auth_names = ['Bearer']
2428
4552
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2429
4553
  header_params: header_params,
2430
4554
  query_params: query_params,
@@ -2434,34 +4558,34 @@ module AsposeCadCloud
2434
4558
  return_type: 'File')
2435
4559
  if @api_client.config.debugging
2436
4560
  @api_client.config.logger.debug "API called:
2437
- CadApi#put_drawing_jpeg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4561
+ CadApi#put_drawing_stp\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2438
4562
  end
2439
4563
  [data, status_code, headers]
2440
4564
  end
2441
4565
 
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.
4566
+ # 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
4567
  #
2444
- # @param request PutDrawingJpeg2000Request
4568
+ # @param request PutDrawingSvgRequest
2445
4569
  # @return [File]
2446
- def put_drawing_jpeg2000(request)
2447
- data, _status_code, _headers = put_drawing_jpeg2000_with_http_info(request)
4570
+ def put_drawing_svg(request)
4571
+ data, _status_code, _headers = put_drawing_svg_with_http_info(request)
2448
4572
  request_token if _status_code == 401
2449
4573
  data
2450
4574
  end
2451
4575
 
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.
4576
+ # 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
4577
  #
2454
- # @param request PutDrawingJpeg2000Request
4578
+ # @param request PutDrawingSvgRequest
2455
4579
  # @return [Array<(File, Fixnum, Hash)>]
2456
4580
  # 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
4581
+ def put_drawing_svg_with_http_info(request)
4582
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingSvgRequest
2459
4583
 
2460
- @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_jpeg2000 ...' if @api_client.config.debugging
4584
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_svg ...' if @api_client.config.debugging
2461
4585
  # 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?
4586
+ 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
4587
  # resource path
2464
- local_var_path = '/cad/jpeg2000'
4588
+ local_var_path = '/cad/svg'
2465
4589
 
2466
4590
  # query parameters
2467
4591
  query_params = {}
@@ -2494,7 +4618,7 @@ module AsposeCadCloud
2494
4618
 
2495
4619
  # http body (model)
2496
4620
  post_body = nil
2497
- auth_names = ['JWT']
4621
+ auth_names = ['Bearer']
2498
4622
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2499
4623
  header_params: header_params,
2500
4624
  query_params: query_params,
@@ -2504,34 +4628,34 @@ module AsposeCadCloud
2504
4628
  return_type: 'File')
2505
4629
  if @api_client.config.debugging
2506
4630
  @api_client.config.logger.debug "API called:
2507
- CadApi#put_drawing_jpeg2000\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4631
+ CadApi#put_drawing_svg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2508
4632
  end
2509
4633
  [data, status_code, headers]
2510
4634
  end
2511
4635
 
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.
4636
+ # 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
4637
  #
2514
- # @param request PutDrawingPdfRequest
4638
+ # @param request PutDrawingThreeDsRequest
2515
4639
  # @return [File]
2516
- def put_drawing_pdf(request)
2517
- data, _status_code, _headers = put_drawing_pdf_with_http_info(request)
4640
+ def put_drawing_three_ds(request)
4641
+ data, _status_code, _headers = put_drawing_three_ds_with_http_info(request)
2518
4642
  request_token if _status_code == 401
2519
4643
  data
2520
4644
  end
2521
4645
 
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.
4646
+ # 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
4647
  #
2524
- # @param request PutDrawingPdfRequest
4648
+ # @param request PutDrawingThreeDsRequest
2525
4649
  # @return [Array<(File, Fixnum, Hash)>]
2526
4650
  # 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
4651
+ def put_drawing_three_ds_with_http_info(request)
4652
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingThreeDsRequest
2529
4653
 
2530
- @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_pdf ...' if @api_client.config.debugging
4654
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_three_ds ...' if @api_client.config.debugging
2531
4655
  # 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?
4656
+ 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
4657
  # resource path
2534
- local_var_path = '/cad/pdf'
4658
+ local_var_path = '/cad/3ds'
2535
4659
 
2536
4660
  # query parameters
2537
4661
  query_params = {}
@@ -2551,7 +4675,7 @@ module AsposeCadCloud
2551
4675
  # HTTP header 'Accept' (if needed)
2552
4676
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2553
4677
  # HTTP header 'Content-Type'
2554
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
4678
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream', 'multipart/form-data'])
2555
4679
 
2556
4680
  # form parameters
2557
4681
  form_params = {}
@@ -2564,7 +4688,7 @@ module AsposeCadCloud
2564
4688
 
2565
4689
  # http body (model)
2566
4690
  post_body = nil
2567
- auth_names = ['JWT']
4691
+ auth_names = ['Bearer']
2568
4692
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2569
4693
  header_params: header_params,
2570
4694
  query_params: query_params,
@@ -2574,34 +4698,34 @@ module AsposeCadCloud
2574
4698
  return_type: 'File')
2575
4699
  if @api_client.config.debugging
2576
4700
  @api_client.config.logger.debug "API called:
2577
- CadApi#put_drawing_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4701
+ CadApi#put_drawing_three_ds\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2578
4702
  end
2579
4703
  [data, status_code, headers]
2580
4704
  end
2581
4705
 
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.
4706
+ # 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
4707
  #
2584
- # @param request PutDrawingPngRequest
4708
+ # @param request PutDrawingTiffRequest
2585
4709
  # @return [File]
2586
- def put_drawing_png(request)
2587
- data, _status_code, _headers = put_drawing_png_with_http_info(request)
4710
+ def put_drawing_tiff(request)
4711
+ data, _status_code, _headers = put_drawing_tiff_with_http_info(request)
2588
4712
  request_token if _status_code == 401
2589
4713
  data
2590
4714
  end
2591
4715
 
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.
4716
+ # 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
4717
  #
2594
- # @param request PutDrawingPngRequest
4718
+ # @param request PutDrawingTiffRequest
2595
4719
  # @return [Array<(File, Fixnum, Hash)>]
2596
4720
  # 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
4721
+ def put_drawing_tiff_with_http_info(request)
4722
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingTiffRequest
2599
4723
 
2600
- @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_png ...' if @api_client.config.debugging
4724
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_tiff ...' if @api_client.config.debugging
2601
4725
  # 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?
4726
+ 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
4727
  # resource path
2604
- local_var_path = '/cad/png'
4728
+ local_var_path = '/cad/tiff'
2605
4729
 
2606
4730
  # query parameters
2607
4731
  query_params = {}
@@ -2634,7 +4758,7 @@ module AsposeCadCloud
2634
4758
 
2635
4759
  # http body (model)
2636
4760
  post_body = nil
2637
- auth_names = ['JWT']
4761
+ auth_names = ['Bearer']
2638
4762
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2639
4763
  header_params: header_params,
2640
4764
  query_params: query_params,
@@ -2644,34 +4768,34 @@ module AsposeCadCloud
2644
4768
  return_type: 'File')
2645
4769
  if @api_client.config.debugging
2646
4770
  @api_client.config.logger.debug "API called:
2647
- CadApi#put_drawing_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4771
+ CadApi#put_drawing_tiff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2648
4772
  end
2649
4773
  [data, status_code, headers]
2650
4774
  end
2651
4775
 
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.
4776
+ # 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
4777
  #
2654
- # @param request PutDrawingPsdRequest
4778
+ # @param request PutDrawingU3dRequest
2655
4779
  # @return [File]
2656
- def put_drawing_psd(request)
2657
- data, _status_code, _headers = put_drawing_psd_with_http_info(request)
4780
+ def put_drawing_u3d(request)
4781
+ data, _status_code, _headers = put_drawing_u3d_with_http_info(request)
2658
4782
  request_token if _status_code == 401
2659
4783
  data
2660
4784
  end
2661
4785
 
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.
4786
+ # 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
4787
  #
2664
- # @param request PutDrawingPsdRequest
4788
+ # @param request PutDrawingU3dRequest
2665
4789
  # @return [Array<(File, Fixnum, Hash)>]
2666
4790
  # 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
4791
+ def put_drawing_u3d_with_http_info(request)
4792
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingU3dRequest
2669
4793
 
2670
- @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_psd ...' if @api_client.config.debugging
4794
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_u3d ...' if @api_client.config.debugging
2671
4795
  # 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?
4796
+ 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
4797
  # resource path
2674
- local_var_path = '/cad/psd'
4798
+ local_var_path = '/cad/u3d'
2675
4799
 
2676
4800
  # query parameters
2677
4801
  query_params = {}
@@ -2691,7 +4815,7 @@ module AsposeCadCloud
2691
4815
  # HTTP header 'Accept' (if needed)
2692
4816
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2693
4817
  # HTTP header 'Content-Type'
2694
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
4818
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream', 'multipart/form-data'])
2695
4819
 
2696
4820
  # form parameters
2697
4821
  form_params = {}
@@ -2704,7 +4828,7 @@ module AsposeCadCloud
2704
4828
 
2705
4829
  # http body (model)
2706
4830
  post_body = nil
2707
- auth_names = ['JWT']
4831
+ auth_names = ['Bearer']
2708
4832
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2709
4833
  header_params: header_params,
2710
4834
  query_params: query_params,
@@ -2714,34 +4838,34 @@ module AsposeCadCloud
2714
4838
  return_type: 'File')
2715
4839
  if @api_client.config.debugging
2716
4840
  @api_client.config.logger.debug "API called:
2717
- CadApi#put_drawing_psd\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4841
+ CadApi#put_drawing_u3d\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2718
4842
  end
2719
4843
  [data, status_code, headers]
2720
4844
  end
2721
4845
 
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.
4846
+ # 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
4847
  #
2724
- # @param request PutDrawingSvgRequest
4848
+ # @param request PutDrawingWebpRequest
2725
4849
  # @return [File]
2726
- def put_drawing_svg(request)
2727
- data, _status_code, _headers = put_drawing_svg_with_http_info(request)
4850
+ def put_drawing_webp(request)
4851
+ data, _status_code, _headers = put_drawing_webp_with_http_info(request)
2728
4852
  request_token if _status_code == 401
2729
4853
  data
2730
4854
  end
2731
4855
 
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.
4856
+ # 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
4857
  #
2734
- # @param request PutDrawingSvgRequest
4858
+ # @param request PutDrawingWebpRequest
2735
4859
  # @return [Array<(File, Fixnum, Hash)>]
2736
4860
  # 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
4861
+ def put_drawing_webp_with_http_info(request)
4862
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingWebpRequest
2739
4863
 
2740
- @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_svg ...' if @api_client.config.debugging
4864
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_webp ...' if @api_client.config.debugging
2741
4865
  # 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?
4866
+ 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
4867
  # resource path
2744
- local_var_path = '/cad/svg'
4868
+ local_var_path = '/cad/webp'
2745
4869
 
2746
4870
  # query parameters
2747
4871
  query_params = {}
@@ -2761,7 +4885,7 @@ module AsposeCadCloud
2761
4885
  # HTTP header 'Accept' (if needed)
2762
4886
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2763
4887
  # HTTP header 'Content-Type'
2764
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
4888
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream', 'multipart/form-data'])
2765
4889
 
2766
4890
  # form parameters
2767
4891
  form_params = {}
@@ -2774,7 +4898,7 @@ module AsposeCadCloud
2774
4898
 
2775
4899
  # http body (model)
2776
4900
  post_body = nil
2777
- auth_names = ['JWT']
4901
+ auth_names = ['Bearer']
2778
4902
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2779
4903
  header_params: header_params,
2780
4904
  query_params: query_params,
@@ -2784,34 +4908,34 @@ module AsposeCadCloud
2784
4908
  return_type: 'File')
2785
4909
  if @api_client.config.debugging
2786
4910
  @api_client.config.logger.debug "API called:
2787
- CadApi#put_drawing_svg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4911
+ CadApi#put_drawing_webp\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2788
4912
  end
2789
4913
  [data, status_code, headers]
2790
4914
  end
2791
4915
 
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.
4916
+ # 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
4917
  #
2794
- # @param request PutDrawingTiffRequest
4918
+ # @param request PutDrawingWmfRequest
2795
4919
  # @return [File]
2796
- def put_drawing_tiff(request)
2797
- data, _status_code, _headers = put_drawing_tiff_with_http_info(request)
4920
+ def put_drawing_wmf(request)
4921
+ data, _status_code, _headers = put_drawing_wmf_with_http_info(request)
2798
4922
  request_token if _status_code == 401
2799
4923
  data
2800
4924
  end
2801
4925
 
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.
4926
+ # 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
4927
  #
2804
- # @param request PutDrawingTiffRequest
4928
+ # @param request PutDrawingWmfRequest
2805
4929
  # @return [Array<(File, Fixnum, Hash)>]
2806
4930
  # 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
4931
+ def put_drawing_wmf_with_http_info(request)
4932
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutDrawingWmfRequest
2809
4933
 
2810
- @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_tiff ...' if @api_client.config.debugging
4934
+ @api_client.config.logger.debug 'Calling API: CadApi.put_drawing_wmf ...' if @api_client.config.debugging
2811
4935
  # 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?
4936
+ 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
4937
  # resource path
2814
- local_var_path = '/cad/tiff'
4938
+ local_var_path = '/cad/wmf'
2815
4939
 
2816
4940
  # query parameters
2817
4941
  query_params = {}
@@ -2844,7 +4968,7 @@ module AsposeCadCloud
2844
4968
 
2845
4969
  # http body (model)
2846
4970
  post_body = nil
2847
- auth_names = ['JWT']
4971
+ auth_names = ['Bearer']
2848
4972
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2849
4973
  header_params: header_params,
2850
4974
  query_params: query_params,
@@ -2854,47 +4978,35 @@ module AsposeCadCloud
2854
4978
  return_type: 'File')
2855
4979
  if @api_client.config.debugging
2856
4980
  @api_client.config.logger.debug "API called:
2857
- CadApi#put_drawing_tiff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4981
+ CadApi#put_drawing_wmf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2858
4982
  end
2859
4983
  [data, status_code, headers]
2860
4984
  end
2861
4985
 
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.
4986
+ # Save Metadata
2863
4987
  #
2864
- # @param request PutDrawingWmfRequest
4988
+ # @param request PutEditMetadataRequest
2865
4989
  # @return [File]
2866
- def put_drawing_wmf(request)
2867
- data, _status_code, _headers = put_drawing_wmf_with_http_info(request)
4990
+ def put_edit_metadata(request)
4991
+ data, _status_code, _headers = put_edit_metadata_with_http_info(request)
2868
4992
  request_token if _status_code == 401
2869
4993
  data
2870
4994
  end
2871
4995
 
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.
4996
+ # Save Metadata
2873
4997
  #
2874
- # @param request PutDrawingWmfRequest
4998
+ # @param request PutEditMetadataRequest
2875
4999
  # @return [Array<(File, Fixnum, Hash)>]
2876
5000
  # 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
5001
+ def put_edit_metadata_with_http_info(request)
5002
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutEditMetadataRequest
2879
5003
 
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?
5004
+ @api_client.config.logger.debug 'Calling API: CadApi.put_edit_metadata ...' if @api_client.config.debugging
2883
5005
  # resource path
2884
- local_var_path = '/cad/wmf'
5006
+ local_var_path = '/cad/EditMetadata'
2885
5007
 
2886
5008
  # query parameters
2887
5009
  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
5010
 
2899
5011
  # header parameters
2900
5012
  header_params = {}
@@ -2905,8 +5017,8 @@ module AsposeCadCloud
2905
5017
 
2906
5018
  # form parameters
2907
5019
  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?
5020
+ form_params[downcase_first_letter('drawing')] = request.drawing unless request.drawing.nil?
5021
+ form_params[downcase_first_letter('metadataComponent')] = request.metadata_component unless request.metadata_component.nil?
2910
5022
 
2911
5023
  if not form_params.empty?
2912
5024
  header_params['Content-Type'] = 'multipart/form-data'
@@ -2914,7 +5026,7 @@ module AsposeCadCloud
2914
5026
 
2915
5027
  # http body (model)
2916
5028
  post_body = nil
2917
- auth_names = ['JWT']
5029
+ auth_names = ['Bearer']
2918
5030
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2919
5031
  header_params: header_params,
2920
5032
  query_params: query_params,
@@ -2924,7 +5036,7 @@ module AsposeCadCloud
2924
5036
  return_type: 'File')
2925
5037
  if @api_client.config.debugging
2926
5038
  @api_client.config.logger.debug "API called:
2927
- CadApi#put_drawing_wmf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5039
+ CadApi#put_edit_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2928
5040
  end
2929
5041
  [data, status_code, headers]
2930
5042
  end
@@ -2973,7 +5085,7 @@ module AsposeCadCloud
2973
5085
 
2974
5086
  # http body (model)
2975
5087
  post_body = nil
2976
- auth_names = ['JWT']
5088
+ auth_names = ['Bearer']
2977
5089
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2978
5090
  header_params: header_params,
2979
5091
  query_params: query_params,
@@ -3040,7 +5152,7 @@ module AsposeCadCloud
3040
5152
 
3041
5153
  # http body (model)
3042
5154
  post_body = nil
3043
- auth_names = ['JWT']
5155
+ auth_names = ['Bearer']
3044
5156
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3045
5157
  header_params: header_params,
3046
5158
  query_params: query_params,
@@ -3055,6 +5167,134 @@ module AsposeCadCloud
3055
5167
  [data, status_code, headers]
3056
5168
  end
3057
5169
 
5170
+ # Return file for viewer
5171
+ #
5172
+ # @param request ViewerRequest
5173
+ # @return [File]
5174
+ def viewer(request)
5175
+ data, _status_code, _headers = viewer_with_http_info(request)
5176
+ request_token if _status_code == 401
5177
+ data
5178
+ end
5179
+
5180
+ # Return file for viewer
5181
+ #
5182
+ # @param request ViewerRequest
5183
+ # @return [Array<(File, Fixnum, Hash)>]
5184
+ # File data, response status code and response headers
5185
+ def viewer_with_http_info(request)
5186
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? ViewerRequest
5187
+
5188
+ @api_client.config.logger.debug 'Calling API: CadApi.viewer ...' if @api_client.config.debugging
5189
+ # verify the required parameter 'output_format' is set
5190
+ raise ArgumentError, 'Missing the required parameter output_format when calling CadApi.viewer' if @api_client.config.client_side_validation && request.output_format.nil?
5191
+ # resource path
5192
+ local_var_path = '/cad/Viewer'
5193
+
5194
+ # query parameters
5195
+ query_params = {}
5196
+ query_params[downcase_first_letter('outputFormat')] = request.output_format
5197
+
5198
+
5199
+ # header parameters
5200
+ header_params = {}
5201
+ # HTTP header 'Accept' (if needed)
5202
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
5203
+ # HTTP header 'Content-Type'
5204
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
5205
+
5206
+ # form parameters
5207
+ form_params = {}
5208
+ form_params[downcase_first_letter('drawing')] = request.drawing unless request.drawing.nil?
5209
+
5210
+ if not form_params.empty?
5211
+ header_params['Content-Type'] = 'multipart/form-data'
5212
+ end
5213
+
5214
+ # http body (model)
5215
+ post_body = nil
5216
+ auth_names = ['Bearer']
5217
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
5218
+ header_params: header_params,
5219
+ query_params: query_params,
5220
+ form_params: form_params,
5221
+ body: post_body,
5222
+ auth_names: auth_names,
5223
+ return_type: 'File')
5224
+ if @api_client.config.debugging
5225
+ @api_client.config.logger.debug "API called:
5226
+ CadApi#viewer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5227
+ end
5228
+ [data, status_code, headers]
5229
+ end
5230
+
5231
+ # Add watermark to drawing
5232
+ #
5233
+ # @param request WatermarkRequest
5234
+ # @return [File]
5235
+ def watermark(request)
5236
+ data, _status_code, _headers = watermark_with_http_info(request)
5237
+ request_token if _status_code == 401
5238
+ data
5239
+ end
5240
+
5241
+ # Add watermark to drawing
5242
+ #
5243
+ # @param request WatermarkRequest
5244
+ # @return [Array<(File, Fixnum, Hash)>]
5245
+ # File data, response status code and response headers
5246
+ def watermark_with_http_info(request)
5247
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? WatermarkRequest
5248
+
5249
+ @api_client.config.logger.debug 'Calling API: CadApi.watermark ...' if @api_client.config.debugging
5250
+ # verify the required parameter 'output_format' is set
5251
+ raise ArgumentError, 'Missing the required parameter output_format when calling CadApi.watermark' if @api_client.config.client_side_validation && request.output_format.nil?
5252
+ # resource path
5253
+ local_var_path = '/cad/Watermark'
5254
+
5255
+ # query parameters
5256
+ query_params = {}
5257
+ query_params[downcase_first_letter('outputFormat')] = request.output_format
5258
+
5259
+ if local_var_path.include? downcase_first_letter('outputTypeExt')
5260
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('outputTypeExt') + '}', request.output_type_ext.to_s)
5261
+ else
5262
+ query_params[downcase_first_letter('outputTypeExt')] = request.output_type_ext unless request.output_type_ext.nil?
5263
+ end
5264
+
5265
+ # header parameters
5266
+ header_params = {}
5267
+ # HTTP header 'Accept' (if needed)
5268
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
5269
+ # HTTP header 'Content-Type'
5270
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/octet-stream'])
5271
+
5272
+ # form parameters
5273
+ form_params = {}
5274
+ form_params[downcase_first_letter('drawing')] = request.drawing unless request.drawing.nil?
5275
+ form_params[downcase_first_letter('watermarkRgb')] = request.watermark_rgb unless request.watermark_rgb.nil?
5276
+
5277
+ if not form_params.empty?
5278
+ header_params['Content-Type'] = 'multipart/form-data'
5279
+ end
5280
+
5281
+ # http body (model)
5282
+ post_body = nil
5283
+ auth_names = ['Bearer']
5284
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
5285
+ header_params: header_params,
5286
+ query_params: query_params,
5287
+ form_params: form_params,
5288
+ body: post_body,
5289
+ auth_names: auth_names,
5290
+ return_type: 'File')
5291
+ if @api_client.config.debugging
5292
+ @api_client.config.logger.debug "API called:
5293
+ CadApi#watermark\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5294
+ end
5295
+ [data, status_code, headers]
5296
+ end
5297
+
3058
5298
  #
3059
5299
  # Helper method to convert first letter to downcase
3060
5300
  #