aspose_diagram_cloud 18.10.3 → 19.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/{aspose_diagram_cloud.gemspec → AsposeDiagramCloud.gemspec} +5 -5
  3. data/README.md +94 -124
  4. data/docs/{FileFormatRequest.md → CreateNewResponse.md} +2 -2
  5. data/docs/DiagramApi.md +241 -0
  6. data/docs/DiagramSaveOptions.md +10 -0
  7. data/docs/DiscUsage.md +9 -0
  8. data/docs/Error.md +11 -0
  9. data/docs/ErrorDetails.md +9 -0
  10. data/docs/FileVersion.md +14 -0
  11. data/docs/FileVersions.md +8 -0
  12. data/docs/FilesList.md +8 -0
  13. data/docs/FilesUploadResult.md +9 -0
  14. data/docs/HTMLSaveOptions.md +19 -0
  15. data/docs/ImageSaveOptions.md +29 -0
  16. data/docs/ModifyResponse.md +9 -0
  17. data/docs/OAuthApi.md +3 -3
  18. data/docs/ObjectExist.md +9 -0
  19. data/docs/PageSize.md +8 -0
  20. data/docs/PdfDigitalSignatureDetails.md +11 -0
  21. data/docs/PdfEncryptionDetails.md +11 -0
  22. data/docs/PdfSaveOptions.md +25 -0
  23. data/docs/PointF.md +10 -0
  24. data/docs/RectangleF.md +18 -0
  25. data/docs/RenderingSaveOptions.md +13 -0
  26. data/docs/SVGSaveOptions.md +18 -0
  27. data/docs/SWFSaveOptions.md +13 -0
  28. data/docs/SaaSposeResponse.md +0 -2
  29. data/docs/SaveAsResponse.md +10 -0
  30. data/docs/SaveOptionsModel.md +9 -0
  31. data/docs/SaveOptionsRequest.md +10 -0
  32. data/docs/StorageApi.md +799 -0
  33. data/docs/StorageExist.md +8 -0
  34. data/docs/StorageFile.md +12 -0
  35. data/docs/{SharpModel.md → UploadResponse.md} +2 -2
  36. data/docs/XAMLSaveOptions.md +12 -0
  37. data/docs/XPSSaveOptions.md +13 -0
  38. data/lib/AsposeDiagramCloud.rb +74 -0
  39. data/lib/AsposeDiagramCloud/api/diagram_api.rb +300 -0
  40. data/lib/{aspose_diagram_cloud → AsposeDiagramCloud}/api/o_auth_api.rb +3 -3
  41. data/lib/AsposeDiagramCloud/api/storage_api.rb +905 -0
  42. data/lib/{aspose_diagram_cloud → AsposeDiagramCloud}/api_client.rb +7 -4
  43. data/lib/{aspose_diagram_cloud → AsposeDiagramCloud}/api_error.rb +2 -2
  44. data/lib/{aspose_diagram_cloud → AsposeDiagramCloud}/configuration.rb +4 -18
  45. data/lib/{aspose_diagram_cloud → AsposeDiagramCloud}/models/access_token_response.rb +2 -2
  46. data/lib/{aspose_diagram_cloud/models/file_format_request.rb → AsposeDiagramCloud/models/create_new_response.rb} +10 -10
  47. data/lib/AsposeDiagramCloud/models/diagram_save_options.rb +244 -0
  48. data/lib/{aspose_diagram_cloud/models/link.rb → AsposeDiagramCloud/models/disc_usage.rb} +29 -35
  49. data/lib/AsposeDiagramCloud/models/error.rb +219 -0
  50. data/lib/{aspose_diagram_cloud/models/saa_spose_response.rb → AsposeDiagramCloud/models/error_details.rb} +22 -20
  51. data/lib/AsposeDiagramCloud/models/file_version.rb +264 -0
  52. data/lib/{aspose_diagram_cloud/models/page_model.rb → AsposeDiagramCloud/models/file_versions.rb} +13 -21
  53. data/lib/AsposeDiagramCloud/models/files_list.rb +191 -0
  54. data/lib/AsposeDiagramCloud/models/files_upload_result.rb +203 -0
  55. data/lib/AsposeDiagramCloud/models/html_save_options.rb +330 -0
  56. data/lib/AsposeDiagramCloud/models/image_save_options.rb +492 -0
  57. data/lib/AsposeDiagramCloud/models/modify_response.rb +202 -0
  58. data/lib/{aspose_diagram_cloud/models/diagram_response.rb → AsposeDiagramCloud/models/object_exist.rb} +27 -29
  59. data/lib/AsposeDiagramCloud/models/page_size.rb +221 -0
  60. data/lib/AsposeDiagramCloud/models/pdf_digital_signature_details.rb +248 -0
  61. data/lib/AsposeDiagramCloud/models/pdf_encryption_details.rb +260 -0
  62. data/lib/AsposeDiagramCloud/models/pdf_save_options.rb +408 -0
  63. data/lib/{aspose_diagram_cloud/models/save_result.rb → AsposeDiagramCloud/models/point_f.rb} +37 -24
  64. data/lib/AsposeDiagramCloud/models/rectangle_f.rb +333 -0
  65. data/lib/AsposeDiagramCloud/models/rendering_save_options.rb +276 -0
  66. data/lib/{aspose_diagram_cloud/models/sharp_model.rb → AsposeDiagramCloud/models/saa_spose_response.rb} +5 -14
  67. data/lib/{aspose_diagram_cloud/models/save_response.rb → AsposeDiagramCloud/models/save_as_response.rb} +24 -27
  68. data/lib/AsposeDiagramCloud/models/save_options_model.rb +235 -0
  69. data/lib/{aspose_diagram_cloud/models/diagram_model.rb → AsposeDiagramCloud/models/save_options_request.rb} +19 -12
  70. data/lib/AsposeDiagramCloud/models/storage_exist.rb +194 -0
  71. data/lib/AsposeDiagramCloud/models/storage_file.rb +239 -0
  72. data/lib/AsposeDiagramCloud/models/svg_save_options.rb +321 -0
  73. data/lib/AsposeDiagramCloud/models/swf_save_options.rb +271 -0
  74. data/lib/AsposeDiagramCloud/models/upload_response.rb +188 -0
  75. data/lib/AsposeDiagramCloud/models/xaml_save_options.rb +262 -0
  76. data/lib/AsposeDiagramCloud/models/xps_save_options.rb +271 -0
  77. data/lib/{aspose_diagram_cloud → AsposeDiagramCloud}/version.rb +3 -3
  78. data/spec/api/test_convert_spec.rb +308 -0
  79. data/spec/api_client_spec.rb +2 -2
  80. data/spec/configuration_spec.rb +5 -5
  81. data/spec/spec_helper.rb +10 -6
  82. data/testData/FileUpload.vdx +437 -0
  83. metadata +80 -55
  84. data/docs/DiagramFileApi.md +0 -228
  85. data/docs/DiagramModel.md +0 -9
  86. data/docs/DiagramResponse.md +0 -10
  87. data/docs/Link.md +0 -11
  88. data/docs/PageModel.md +0 -9
  89. data/docs/SaveResponse.md +0 -10
  90. data/docs/SaveResult.md +0 -10
  91. data/lib/aspose_diagram_cloud.rb +0 -51
  92. data/lib/aspose_diagram_cloud/api/diagram_file_api.rb +0 -304
  93. data/spec/api/diagram_file_api_spec.rb +0 -118
  94. data/spec/api/o_auth_api_spec.rb +0 -56
  95. data/spec/models/access_token_response_spec.rb +0 -84
  96. data/spec/models/diagram_model_spec.rb +0 -48
  97. data/spec/models/diagram_response_spec.rb +0 -54
  98. data/spec/models/file_format_request_spec.rb +0 -42
  99. data/spec/models/link_spec.rb +0 -60
  100. data/spec/models/page_model_spec.rb +0 -48
  101. data/spec/models/saa_spose_response_spec.rb +0 -48
  102. data/spec/models/save_response_spec.rb +0 -54
  103. data/spec/models/save_result_spec.rb +0 -54
  104. data/spec/models/sharp_model_spec.rb +0 -42
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2a794767fe37a6b4ba9866b5e67d2329b0e2674
4
- data.tar.gz: 738ade2f45d6ea81f7b5cb0b6180678e098ed8a1
3
+ metadata.gz: 677332a0fed405cae7e5cd04feaf4c09b427eb5b
4
+ data.tar.gz: aaf40b832efc82625ede388064f3557b1de4d398
5
5
  SHA512:
6
- metadata.gz: 8398637e8b6b5a36ca51f6c1e988727d3581f71d4aa0ecb93af51b6383fd6a32105d52ec53b41dc5c9b4f1bfd576c08d5dcd28c441b25d92bb22d47369743680
7
- data.tar.gz: 1694b612d464eabb49c71b15960c07cb495dda430df3196760ba97f1f8b39849ccd33317d80023505e8443d19d97649dc8c2c28247fc9b74f793bca7c1181d96
6
+ metadata.gz: 1728f8e6d0e521ca1fa380436fa8318e55bfdd55f81511bdc2e7f2e38dc9964b2c625edc23b4d8c29e17f09930dade865fa852adaadfd7b2ab1947258f8cca9c
7
+ data.tar.gz: 750335f8ed368be4c671a9336da16b0c9fb7e2364ef38e19d0db3cf7e78100d995e75b8fe236f20de3a95166991616a613e97e1ddd738a5ca305e67a4ca96013
@@ -1,11 +1,11 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  #
3
3
  =begin
4
- #Web API Swagger specification
4
+ #Aspose.Diagram Cloud API Reference
5
5
 
6
6
  #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
7
7
 
8
- OpenAPI spec version: 1.0
8
+ OpenAPI spec version: 3.0
9
9
 
10
10
  Generated by: https://github.com/swagger-api/swagger-codegen.git
11
11
  Swagger Codegen version: 2.3.0-SNAPSHOT
@@ -13,14 +13,14 @@ Swagger Codegen version: 2.3.0-SNAPSHOT
13
13
  =end
14
14
 
15
15
  $:.push File.expand_path("../lib", __FILE__)
16
- require "aspose_diagram_cloud/version"
16
+ require "AsposeDiagramCloud/version"
17
17
 
18
18
  Gem::Specification.new do |s|
19
19
  s.name = "aspose_diagram_cloud"
20
20
  s.version = AsposeDiagramCloud::VERSION
21
21
  s.platform = Gem::Platform::RUBY
22
- s.authors = ["Aspose Diagram Cloud"]
23
- s.email = [""]
22
+ s.authors = ["AsposeCloud"]
23
+ s.email = ["aspose.cloud@asposeptyltd.com"]
24
24
  s.homepage = "https://github.com/aspose-diagram-cloud/aspose-diagram-cloud-ruby"
25
25
  s.summary = "Aspose.Diagram Cloud API"
26
26
  s.description = "Ruby library for communicating with the Aspose.Diagram Cloud API"
data/README.md CHANGED
@@ -1,126 +1,96 @@
1
- # AsposeDiagramCloud
2
-
3
- AsposeDiagramCloud - the Ruby gem for the Web API Swagger specification
4
-
5
- No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
6
-
7
- This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
-
9
- - API version: 1.0
10
- - Package version: 18.10
11
- - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
-
13
- ## Installation
14
-
15
- ### Build a gem
16
-
17
- To build the Ruby code into a gem:
18
-
19
- ```shell
20
- gem build AsposeDiagramCloud.gemspec
21
- ```
22
-
23
- Then either install the gem locally:
24
-
25
- ```shell
26
- gem install ./AsposeDiagramCloud-18.10.gem
1
+ [Aspose.Diagram Cloud](https://products.aspose.cloud/Diagram) helps you develop diagrams manipulation applications. Our REST API based Diagram Cloud SDK allows your applications to work with Microsoft Visio Object Model.
2
+
3
+ This repository contains Aspose.Diagram Cloud SDK source code. This SDK allows you to work with Aspose.Diagram Cloud REST APIs in your applications quickly and easily, with zero initial cost.
4
+
5
+ To use this SDK, you will need App SID and App Key which can be looked up at [Aspose Cloud Dashboard](https://dashboard.aspose.cloud/#/apps) (free registration in Aspose Cloud is required for this).
6
+
7
+
8
+ # Features
9
+
10
+ ### Support Import Formats
11
+ * VSDX
12
+ * VDX
13
+ * VSD
14
+ * VSX
15
+ * VTX
16
+ * VSSX
17
+ * VSTX
18
+ * VSDM
19
+ * VSSM
20
+ * VSTM
21
+ * VDW
22
+ * VSS
23
+ * VST
24
+
25
+ ### Support Export Formats
26
+ * VSDX
27
+ * VDX
28
+ * VSX
29
+ * VTX
30
+ * VSSX
31
+ * VSTX
32
+ * VSDM
33
+ * VSSM
34
+ * VSTM
35
+ * PDF
36
+ * XPS
37
+ * SWF
38
+ * SVG
39
+ * EMF
40
+ * JPEG
41
+ * PNG
42
+ * BMP
43
+ * TIFF
44
+ * HTML
45
+
46
+ ### Supported Operations
47
+ * Convert document format
48
+ * Create new document
49
+ * Upload document and save it with supported format
50
+ * Download document with supported format
51
+
52
+ For the complete list of use-cases, please refer to [common operations format support map](https://docs.aspose.cloud/display/diagramcloud/Supported+File+Formats#SupportedFileFormats-CommonOperationsFormatSupportMap) to see what you can achieve!
53
+
54
+
55
+ # Storage API support
56
+ #### Since version 19.10, SDK includes support of storage operations for better user experience and unification, so now there's no need to use 2 different SDKs!
57
+
58
+ It gives you an ability to:
59
+ * Upload, download, copy, move and delete files, including versions handling (if you are using Cloud storage that supports this feature - true by default)
60
+ * Create, copy, move and delete folders
61
+ * Copy and move files and folders accross separate storages in scope of a single operation
62
+ * Check if certain file, folder or storage exists
63
+
64
+ # Examples
65
+ Please, look at [Examples](EXAMPLES.md) document for basic usage or use the [Examples](Examples) folder for more sophisticated scenarios.
66
+
67
+ ### Aspose Cloud-hosted service VS on-premise deployment (*experimental feature*)
68
+ Starting from v19.10, you can choose either to use Aspose Cloud-hosted image processing service (the standard way) or the Docker image from Docker Hub deployed on-premise to serve the requests.
69
+ The details about key differences and deployment process will be described on the dedicated Docker Hub page as soon as it's released.
70
+
71
+ To succeed with your on-premise service usage by the SDK, you need to:
72
+ 1. Use the new API class constructor with grantType parameter, clientId and clientSecret parameters.
27
73
  ```
28
- (for development, run `gem install --dev ./AsposeDiagramCloud-18.10.gem` to install the development dependencies)
29
-
30
- or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
-
32
- Finally add this to the Gemfile:
33
-
34
- gem 'AsposeDiagramCloud', '~> 18.10'
35
-
36
- ### Install from Git
37
-
38
- If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
39
-
40
- gem 'AsposeDiagramCloud', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
41
-
42
- ### Include the Ruby code directly
43
-
44
- Include the Ruby code directly using `-I` as follows:
45
-
46
- ```shell
47
- ruby -Ilib script.rb
48
- ```
49
-
50
- ## Getting Started
51
-
52
- Please follow the [installation](#installation) procedure and then run the following code:
53
- ```ruby
54
- # Load the gem
55
- require 'aspose_diagram_cloud'
56
-
57
- api_instance = AsposeDiagramCloud::DiagramFileApi.new
58
-
59
- name = "name_example" # String | The document name.
60
-
61
- opts = {
62
- format: "format_example", # String | The exported file format.
63
- folder: "folder_example", # String | The document folder.
64
- storage: "storage_example" # String | storage name.
65
- }
66
-
67
- begin
68
- #Read document info or export.
69
- result = api_instance.diagram_file_get_diagram(name, opts)
70
- p result
71
- rescue AsposeDiagramCloud::ApiError => e
72
- puts "Exception when calling DiagramFileApi->diagram_file_get_diagram: #{e}"
73
- end
74
-
74
+ $diagramApi = AsposeDiagramCloud::DiagramApi.new($grant_type,$client_id,$client_secret)
75
75
  ```
76
-
77
- ## Documentation for API Endpoints
78
-
79
- All URIs are relative to *https://api.aspose.cloud/v1.1/*
80
-
81
- Class | Method | HTTP request | Description
82
- ------------ | ------------- | ------------- | -------------
83
- *AsposeDiagramCloud::DiagramFileApi* | [**diagram_file_get_diagram**](docs/DiagramFileApi.md#diagram_file_get_diagram) | **GET** /diagram/{name} | Read document info or export.
84
- *AsposeDiagramCloud::DiagramFileApi* | [**diagram_file_post_save_as**](docs/DiagramFileApi.md#diagram_file_post_save_as) | **POST** /diagram/{name}/SaveAs | Convert document and save result to storage.
85
- *AsposeDiagramCloud::DiagramFileApi* | [**diagram_file_put_create**](docs/DiagramFileApi.md#diagram_file_put_create) | **PUT** /diagram/{name} | Create new diagram and save result to storage.
86
- *AsposeDiagramCloud::DiagramFileApi* | [**diagram_file_put_upload**](docs/DiagramFileApi.md#diagram_file_put_upload) | **PUT** /diagram/{name}/upload | Upload file and save result to storage.
87
- *AsposeDiagramCloud::OAuthApi* | [**o_auth_post**](docs/OAuthApi.md#o_auth_post) | **POST** /oauth2/token | Get Access token
88
-
89
-
90
- ## Documentation for Models
91
-
92
- - [AsposeDiagramCloud::AccessTokenResponse](docs/AccessTokenResponse.md)
93
- - [AsposeDiagramCloud::DiagramModel](docs/DiagramModel.md)
94
- - [AsposeDiagramCloud::FileFormatRequest](docs/FileFormatRequest.md)
95
- - [AsposeDiagramCloud::Link](docs/Link.md)
96
- - [AsposeDiagramCloud::PageModel](docs/PageModel.md)
97
- - [AsposeDiagramCloud::SaaSposeResponse](docs/SaaSposeResponse.md)
98
- - [AsposeDiagramCloud::SaveResult](docs/SaveResult.md)
99
- - [AsposeDiagramCloud::SharpModel](docs/SharpModel.md)
100
- - [AsposeDiagramCloud::DiagramResponse](docs/DiagramResponse.md)
101
- - [AsposeDiagramCloud::SaveResponse](docs/SaveResponse.md)
102
-
103
-
104
- ## Documentation for Authorization
105
-
106
-
107
- ### appsid
108
-
109
- - **Type**: API key
110
- - **API key parameter name**: appsid
111
- - **Location**: URL query string
112
-
113
- ### oauth
114
-
115
- - **Type**: OAuth
116
- - **Flow**: implicit
117
- - **Authorization URL**:
118
- - **Scopes**:
119
- - write:pets: modify pets in your account
120
-
121
- ### signature
122
-
123
- - **Type**: API key
124
- - **API key parameter name**: signature
125
- - **Location**: URL query string
126
-
76
+ 2. Set *storage* or *storageName* parameters for each request where they're present (mandatory!).
77
+
78
+ # Tests
79
+ Tests are intended for internal usage only.
80
+
81
+ # Licensing
82
+ All Aspose.Diagram Cloud SDKs, helper scripts and templates are licensed under [MIT License](LICENSE).
83
+
84
+ # Contact Us
85
+ Your feedback is very important to us. Please feel free to contact via
86
+ + [**Free Support Forum**](https://forum.aspose.cloud/c/diagram)
87
+ + [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/)
88
+
89
+ # Resources
90
+ + [**Website**](https://www.aspose.cloud)
91
+ + [**Product Home**](https://products.aspose.cloud/diagram)
92
+ + [**Documentation**](https://docs.aspose.cloud/display/diagramcloud/Home)
93
+ + [**API Reference**](https://apireference.aspose.cloud/diagram/)
94
+ + [**Free Support Forum**](https://forum.aspose.cloud/c/diagram)
95
+ + [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/)
96
+ + [**Blog**](https://blog.aspose.cloud/category/diagram/
@@ -1,8 +1,8 @@
1
- # AsposeDiagramCloud::FileFormatRequest
1
+ # AsposeDiagramCloud::CreateNewResponse
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **format** | **String** | | [optional]
6
+ **created** | **String** | | [optional]
7
7
 
8
8
 
@@ -0,0 +1,241 @@
1
+ # AsposeDiagramCloud::DiagramApi
2
+
3
+ All URIs are relative to *https://api.aspose.cloud/v3.0*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**convert_document**](DiagramApi.md#convert_document) | **PUT** /diagram/{name}/convert | Converts document from the request's content to the specified format.
8
+ [**create_new**](DiagramApi.md#create_new) | **PUT** /diagram/{name} | Create Empty file into the specified format.
9
+ [**download_file_with_format**](DiagramApi.md#download_file_with_format) | **GET** /diagram/{name} | Exports the document into the specified format.
10
+ [**save_as**](DiagramApi.md#save_as) | **POST** /diagram/{name}/saveAs | Converts document to destination format with detailed settings and saves result to storage.
11
+
12
+
13
+ # **convert_document**
14
+ > File convert_document(name, file, opts)
15
+
16
+ Converts document from the request's content to the specified format.
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'AsposeDiagramCloud'
22
+ # setup authorization
23
+ AsposeDiagramCloud.configure do |config|
24
+ # Configure OAuth2 access token for authorization: JWT
25
+ config.access_token = 'YOUR ACCESS TOKEN'
26
+ end
27
+
28
+ api_instance = AsposeDiagramCloud::DiagramApi.new
29
+
30
+ name = "name_example" # String | Download document name.
31
+
32
+ file = File.new("/path/to/file.txt") # File | File to upload
33
+
34
+ opts = {
35
+ source_filename: "source_filename_example" # String | Source document name.
36
+ }
37
+
38
+ begin
39
+ #Converts document from the request's content to the specified format.
40
+ result = api_instance.convert_document(name, file, opts)
41
+ p result
42
+ rescue AsposeDiagramCloud::ApiError => e
43
+ puts "Exception when calling DiagramApi->convert_document: #{e}"
44
+ end
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **name** | **String**| Download document name. |
52
+ **file** | **File**| File to upload |
53
+ **source_filename** | **String**| Source document name. | [optional]
54
+
55
+ ### Return type
56
+
57
+ **File**
58
+
59
+ ### Authorization
60
+
61
+ [JWT](../README.md#JWT)
62
+
63
+ ### HTTP request headers
64
+
65
+ - **Content-Type**: multipart/form-data
66
+ - **Accept**: multipart/form-data
67
+
68
+
69
+
70
+ # **create_new**
71
+ > CreateNewResponse create_new(name, opts)
72
+
73
+ Create Empty file into the specified format.
74
+
75
+ ### Example
76
+ ```ruby
77
+ # load the gem
78
+ require 'AsposeDiagramCloud'
79
+ # setup authorization
80
+ AsposeDiagramCloud.configure do |config|
81
+ # Configure OAuth2 access token for authorization: JWT
82
+ config.access_token = 'YOUR ACCESS TOKEN'
83
+ end
84
+
85
+ api_instance = AsposeDiagramCloud::DiagramApi.new
86
+
87
+ name = "name_example" # String | The document name.
88
+
89
+ opts = {
90
+ folder: "folder_example", # String | The document folder.
91
+ is_overwrite: false # BOOLEAN | If true overwrite the same name file.The default value is false
92
+ }
93
+
94
+ begin
95
+ #Create Empty file into the specified format.
96
+ result = api_instance.create_new(name, opts)
97
+ p result
98
+ rescue AsposeDiagramCloud::ApiError => e
99
+ puts "Exception when calling DiagramApi->create_new: #{e}"
100
+ end
101
+ ```
102
+
103
+ ### Parameters
104
+
105
+ Name | Type | Description | Notes
106
+ ------------- | ------------- | ------------- | -------------
107
+ **name** | **String**| The document name. |
108
+ **folder** | **String**| The document folder. | [optional]
109
+ **is_overwrite** | **BOOLEAN**| If true overwrite the same name file.The default value is false | [optional] [default to false]
110
+
111
+ ### Return type
112
+
113
+ [**CreateNewResponse**](CreateNewResponse.md)
114
+
115
+ ### Authorization
116
+
117
+ [JWT](../README.md#JWT)
118
+
119
+ ### HTTP request headers
120
+
121
+ - **Content-Type**: application/json
122
+ - **Accept**: application/json
123
+
124
+
125
+
126
+ # **download_file_with_format**
127
+ > File download_file_with_format(name, format, opts)
128
+
129
+ Exports the document into the specified format.
130
+
131
+ ### Example
132
+ ```ruby
133
+ # load the gem
134
+ require 'AsposeDiagramCloud'
135
+ # setup authorization
136
+ AsposeDiagramCloud.configure do |config|
137
+ # Configure OAuth2 access token for authorization: JWT
138
+ config.access_token = 'YOUR ACCESS TOKEN'
139
+ end
140
+
141
+ api_instance = AsposeDiagramCloud::DiagramApi.new
142
+
143
+ name = "name_example" # String | The document name.
144
+
145
+ format = "format_example" # String | The destination format.
146
+
147
+ opts = {
148
+ folder: "folder_example" # String | Original document folder.
149
+ }
150
+
151
+ begin
152
+ #Exports the document into the specified format.
153
+ result = api_instance.download_file_with_format(name, format, opts)
154
+ p result
155
+ rescue AsposeDiagramCloud::ApiError => e
156
+ puts "Exception when calling DiagramApi->download_file_with_format: #{e}"
157
+ end
158
+ ```
159
+
160
+ ### Parameters
161
+
162
+ Name | Type | Description | Notes
163
+ ------------- | ------------- | ------------- | -------------
164
+ **name** | **String**| The document name. |
165
+ **format** | **String**| The destination format. |
166
+ **folder** | **String**| Original document folder. | [optional]
167
+
168
+ ### Return type
169
+
170
+ **File**
171
+
172
+ ### Authorization
173
+
174
+ [JWT](../README.md#JWT)
175
+
176
+ ### HTTP request headers
177
+
178
+ - **Content-Type**: application/json
179
+ - **Accept**: multipart/form-data
180
+
181
+
182
+
183
+ # **save_as**
184
+ > SaveAsResponse save_as(name, save_options_request, opts)
185
+
186
+ Converts document to destination format with detailed settings and saves result to storage.
187
+
188
+ ### Example
189
+ ```ruby
190
+ # load the gem
191
+ require 'AsposeDiagramCloud'
192
+ # setup authorization
193
+ AsposeDiagramCloud.configure do |config|
194
+ # Configure OAuth2 access token for authorization: JWT
195
+ config.access_token = 'YOUR ACCESS TOKEN'
196
+ end
197
+
198
+ api_instance = AsposeDiagramCloud::DiagramApi.new
199
+
200
+ name = "name_example" # String | Original document name.
201
+
202
+ save_options_request = AsposeDiagramCloud::SaveOptionsRequest.new # SaveOptionsRequest | Save options.
203
+
204
+ opts = {
205
+ folder: "folder_example", # String | Original document folder.
206
+ is_overwrite: false # BOOLEAN | If true overwrite the same name file.The default value is false
207
+ }
208
+
209
+ begin
210
+ #Converts document to destination format with detailed settings and saves result to storage.
211
+ result = api_instance.save_as(name, save_options_request, opts)
212
+ p result
213
+ rescue AsposeDiagramCloud::ApiError => e
214
+ puts "Exception when calling DiagramApi->save_as: #{e}"
215
+ end
216
+ ```
217
+
218
+ ### Parameters
219
+
220
+ Name | Type | Description | Notes
221
+ ------------- | ------------- | ------------- | -------------
222
+ **name** | **String**| Original document name. |
223
+ **save_options_request** | [**SaveOptionsRequest**](SaveOptionsRequest.md)| Save options. |
224
+ **folder** | **String**| Original document folder. | [optional]
225
+ **is_overwrite** | **BOOLEAN**| If true overwrite the same name file.The default value is false | [optional] [default to false]
226
+
227
+ ### Return type
228
+
229
+ [**SaveAsResponse**](SaveAsResponse.md)
230
+
231
+ ### Authorization
232
+
233
+ [JWT](../README.md#JWT)
234
+
235
+ ### HTTP request headers
236
+
237
+ - **Content-Type**: application/json
238
+ - **Accept**: application/json
239
+
240
+
241
+