AsposeDiagramCloud 18.10 → 20.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/AsposeDiagramCloud.gemspec +46 -0
- data/Gemfile +7 -0
- data/README.md +74 -0
- data/Rakefile +8 -0
- data/git_push.sh +55 -0
- data/lib/AsposeDiagramCloud.rb +85 -0
- data/lib/AsposeDiagramCloud/api/diagram_api.rb +768 -0
- data/lib/AsposeDiagramCloud/api/o_auth_api.rb +93 -0
- data/lib/AsposeDiagramCloud/api/storage_api.rb +905 -0
- data/lib/AsposeDiagramCloud/api_client.rb +391 -0
- data/lib/AsposeDiagramCloud/api_error.rb +38 -0
- data/lib/AsposeDiagramCloud/configuration.rb +209 -0
- data/lib/AsposeDiagramCloud/models/access_token_response.rb +251 -0
- data/lib/AsposeDiagramCloud/models/api_response_of_list_of_page_data.rb +190 -0
- data/lib/AsposeDiagramCloud/models/create_new_response.rb +188 -0
- data/lib/AsposeDiagramCloud/models/diagram_save_options.rb +244 -0
- data/lib/AsposeDiagramCloud/models/disc_usage.rb +209 -0
- data/lib/AsposeDiagramCloud/models/draw_shape_data.rb +262 -0
- data/lib/AsposeDiagramCloud/models/ellipse_data.rb +262 -0
- data/lib/AsposeDiagramCloud/models/error.rb +219 -0
- data/lib/AsposeDiagramCloud/models/error_details.rb +204 -0
- data/lib/AsposeDiagramCloud/models/file_version.rb +264 -0
- data/lib/AsposeDiagramCloud/models/file_versions.rb +191 -0
- data/lib/AsposeDiagramCloud/models/files_list.rb +191 -0
- data/lib/AsposeDiagramCloud/models/files_upload_result.rb +203 -0
- data/lib/AsposeDiagramCloud/models/html_save_options.rb +330 -0
- data/lib/AsposeDiagramCloud/models/image_save_options.rb +492 -0
- data/lib/AsposeDiagramCloud/models/line_data.rb +273 -0
- data/lib/AsposeDiagramCloud/models/modify_response.rb +202 -0
- data/lib/AsposeDiagramCloud/models/object_exist.rb +209 -0
- data/lib/AsposeDiagramCloud/models/page_data.rb +216 -0
- data/lib/AsposeDiagramCloud/models/page_setting.rb +219 -0
- data/lib/AsposeDiagramCloud/models/page_size.rb +221 -0
- data/lib/AsposeDiagramCloud/models/pdf_digital_signature_details.rb +248 -0
- data/lib/AsposeDiagramCloud/models/pdf_encryption_details.rb +260 -0
- data/lib/AsposeDiagramCloud/models/pdf_save_options.rb +408 -0
- data/lib/AsposeDiagramCloud/models/point_f.rb +221 -0
- data/lib/AsposeDiagramCloud/models/polyline_data.rb +273 -0
- data/lib/AsposeDiagramCloud/models/rectangle_f.rb +333 -0
- data/lib/AsposeDiagramCloud/models/rendering_save_options.rb +276 -0
- data/lib/AsposeDiagramCloud/models/saa_spose_response.rb +179 -0
- data/lib/AsposeDiagramCloud/models/save_as_response.rb +208 -0
- data/lib/AsposeDiagramCloud/models/save_options_model.rb +235 -0
- data/lib/AsposeDiagramCloud/models/save_options_request.rb +206 -0
- data/lib/AsposeDiagramCloud/models/shape_data.rb +221 -0
- data/lib/AsposeDiagramCloud/models/shape_style_data.rb +189 -0
- data/lib/AsposeDiagramCloud/models/storage_exist.rb +194 -0
- data/lib/AsposeDiagramCloud/models/storage_file.rb +239 -0
- data/lib/AsposeDiagramCloud/models/svg_save_options.rb +321 -0
- data/lib/AsposeDiagramCloud/models/swf_save_options.rb +271 -0
- data/lib/AsposeDiagramCloud/models/text_style_data.rb +253 -0
- data/lib/AsposeDiagramCloud/models/upload_response.rb +188 -0
- data/lib/AsposeDiagramCloud/models/xaml_save_options.rb +262 -0
- data/lib/AsposeDiagramCloud/models/xps_save_options.rb +271 -0
- data/lib/AsposeDiagramCloud/version.rb +15 -0
- data/spec/_spec.rb +308 -0
- data/spec/api/test_convert_spec.rb +308 -0
- data/spec/api/test_drawing_spec.rb +136 -0
- data/spec/api/test_page_spec.rb +92 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/spec_helper.rb +120 -0
- data/testData/FileUpload.vdx +437 -0
- metadata +118 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 00822c612de6b06b507567c7ae2619198f94daa3
|
4
|
+
data.tar.gz: 2480a352457e917c85c70942ac19a299e2530161
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d18ac50a2d8f0363f618e7cc917119c0425691ae379045337433bed5da813eede0e3e298a5b49b95113cf6058161399ab0e63b7a8bf96f0ff20a78262213ad30
|
7
|
+
data.tar.gz: df959e2ee5d36855f850c8f2cfe51b77c96bf9b74386db1c1fa75e972787a4353b756d5dac0641e23acb7be6184798f22b0e9b96dad9f4a3ba8c1612695a49e1
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
#
|
3
|
+
=begin
|
4
|
+
#Aspose.Diagram Cloud API Reference
|
5
|
+
|
6
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
7
|
+
|
8
|
+
OpenAPI spec version: 3.0
|
9
|
+
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
12
|
+
|
13
|
+
=end
|
14
|
+
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
16
|
+
require "AsposeDiagramCloud/version"
|
17
|
+
|
18
|
+
Gem::Specification.new do |s|
|
19
|
+
s.name = "AsposeDiagramCloud"
|
20
|
+
s.version = AsposeDiagramCloud::VERSION
|
21
|
+
s.platform = Gem::Platform::RUBY
|
22
|
+
s.authors = ["Swagger-Codegen"]
|
23
|
+
s.email = [""]
|
24
|
+
s.homepage = "https://github.com/swagger-api/swagger-codegen"
|
25
|
+
s.summary = "Aspose.Diagram Cloud API Reference Ruby Gem"
|
26
|
+
s.description = "No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)"
|
27
|
+
# TODO uncommnet and update below with a proper license
|
28
|
+
#s.license = "Apache 2.0"
|
29
|
+
s.required_ruby_version = ">= 1.9"
|
30
|
+
|
31
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
32
|
+
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
33
|
+
|
34
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
35
|
+
s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
|
36
|
+
s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
|
37
|
+
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
|
38
|
+
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
|
39
|
+
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
40
|
+
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
|
41
|
+
|
42
|
+
s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
|
43
|
+
s.test_files = `find spec/*`.split("\n")
|
44
|
+
s.executables = []
|
45
|
+
s.require_paths = ["lib"]
|
46
|
+
end
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Ruby Cloud REST API for Visio Processing
|
2
|
+
|
3
|
+
This cloud SDK enables your Ruby cloud apps to [create & process Visio diagrams](https://products.aspose.cloud/diagram/ruby) from within your apps without installing Microsoft Visio.
|
4
|
+
|
5
|
+
## Visio Processing Features
|
6
|
+
|
7
|
+
- Retrieve document information of a Visio diagram.
|
8
|
+
- Programmatically create a new Microsoft Visio diagram file.
|
9
|
+
- Convert Visio flow-charts to other supported formats.
|
10
|
+
- Upload your business oriented Visio diagrams to cloud storage.
|
11
|
+
- Export Visio files to raster images, fixed-layout and HTML formats.
|
12
|
+
|
13
|
+
## New Features in Version 20.3
|
14
|
+
|
15
|
+
Added support to draw following objects on a page:
|
16
|
+
- Polyline
|
17
|
+
- Line
|
18
|
+
- Ellipse
|
19
|
+
|
20
|
+
Added support to:
|
21
|
+
- Set page setting
|
22
|
+
- Add new empty page
|
23
|
+
- Get pages info
|
24
|
+
|
25
|
+
For the detailed notes, please visit [Aspose.Diagram Cloud 20.3 Release Notes](https://docs.aspose.cloud/display/diagramcloud/Aspose.Diagram+Cloud+20.3+Release+Notes).
|
26
|
+
|
27
|
+
## Read & Write Visio Formats
|
28
|
+
|
29
|
+
**Microsoft Visio:** VSDX, VSX, VTX, VDX, VSSX, VSTX, VSDM, VSSM, VSTM
|
30
|
+
|
31
|
+
## Save Visio As
|
32
|
+
|
33
|
+
**Fixed Layout:** PDF, XPS
|
34
|
+
**Images:** JPEG, PNG, BMP, TIFF, SVG, EMF
|
35
|
+
**Web:** HTML
|
36
|
+
**Other:** XAML, SWF
|
37
|
+
|
38
|
+
## Read Visio Formats
|
39
|
+
|
40
|
+
**Microsoft Visio:** VDW, VSD, VSS, VST
|
41
|
+
|
42
|
+
## Getting Started with Aspose.Diagram Cloud SDK for Ruby
|
43
|
+
|
44
|
+
You do not need to install anything to get started with Aspose.Diagram Cloud SDK for Ruby. All you need to do is create an account at [Aspose for Cloud](https://dashboard.aspose.cloud/#/apps) and get your application information.
|
45
|
+
|
46
|
+
Please check the [GitHub Repository](https://github.com/aspose-diagram-cloud/aspose-diagram-cloud-dotnet) for other common usage scenarios.
|
47
|
+
|
48
|
+
## Usage
|
49
|
+
|
50
|
+
Please, add the following [gem](https://rubygems.org/gems/aspose_diagram_cloud) to your project.
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
gem install aspose_diagram_cloud
|
54
|
+
```
|
55
|
+
|
56
|
+
### Aspose Cloud-hosted service VS on-premise deployment (experimental feature)
|
57
|
+
|
58
|
+
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. The details about key differences and deployment process will be described on the dedicated Docker Hub page as soon as it's released.
|
59
|
+
|
60
|
+
To succeed with your on-premise service usage by the SDK, you need to:
|
61
|
+
|
62
|
+
- Use the new API class constructor with grantType parameter, clientId and clientSecret parameters.
|
63
|
+
|
64
|
+
```ruby
|
65
|
+
$diagramApi = AsposeDiagramCloud::DiagramApi.new($grant_type,$client_id,$client_secret)
|
66
|
+
```
|
67
|
+
|
68
|
+
- Set storage or storageName parameters for each request where they're present (mandatory!).
|
69
|
+
|
70
|
+
## Licensing
|
71
|
+
|
72
|
+
All Aspose.Diagram Cloud SDKs, helper scripts and templates are licensed under [MIT License](https://github.com/aspose-diagram-cloud/aspose-diagram-cloud-ruby/blob/master/LICENSE).
|
73
|
+
|
74
|
+
[Product Page](https://products.aspose.cloud/diagram/net) | [Documentation](https://docs.aspose.cloud/display/diagramcloud/Home) | [Live Demo](https://products.aspose.app/diagram/family) | [API Reference](https://apireference.aspose.cloud/diagram/) | [Code Samples](https://github.com/aspose-diagram-cloud/aspose-diagram-cloud-dotnet) | [Blog](https://blog.aspose.cloud/category/diagram/) | [Free Support](https://forum.aspose.cloud/c/diagram) | [Free Trial](https://dashboard.aspose.cloud/#/apps)
|
data/Rakefile
ADDED
data/git_push.sh
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
#
|
3
|
+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
+
#
|
5
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
|
+
#
|
7
|
+
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
8
|
+
|
9
|
+
git_user_id=$1
|
10
|
+
git_repo_id=$2
|
11
|
+
release_note=$3
|
12
|
+
|
13
|
+
if [ "$git_user_id" = "" ]; then
|
14
|
+
git_user_id="GIT_USER_ID"
|
15
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
16
|
+
fi
|
17
|
+
|
18
|
+
if [ "$git_repo_id" = "" ]; then
|
19
|
+
git_repo_id="GIT_REPO_ID"
|
20
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
21
|
+
fi
|
22
|
+
|
23
|
+
if [ "$release_note" = "" ]; then
|
24
|
+
release_note="Minor update"
|
25
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
26
|
+
fi
|
27
|
+
|
28
|
+
# Initialize the local directory as a Git repository
|
29
|
+
git init
|
30
|
+
|
31
|
+
# Adds the files in the local repository and stages them for commit.
|
32
|
+
git add .
|
33
|
+
|
34
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
35
|
+
git commit -m "$release_note"
|
36
|
+
|
37
|
+
# Sets the new remote
|
38
|
+
git_remote=`git remote`
|
39
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
40
|
+
|
41
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
42
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment."
|
43
|
+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
44
|
+
else
|
45
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
46
|
+
fi
|
47
|
+
|
48
|
+
fi
|
49
|
+
|
50
|
+
git pull origin master
|
51
|
+
|
52
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
53
|
+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
54
|
+
git push origin master 2>&1 | grep -v 'To https'
|
55
|
+
|
@@ -0,0 +1,85 @@
|
|
1
|
+
=begin
|
2
|
+
#Aspose.Diagram Cloud API Reference
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 3.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
# Common files
|
14
|
+
require 'AsposeDiagramCloud/api_client'
|
15
|
+
require 'AsposeDiagramCloud/api_error'
|
16
|
+
require 'AsposeDiagramCloud/version'
|
17
|
+
require 'AsposeDiagramCloud/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
require 'AsposeDiagramCloud/models/access_token_response'
|
21
|
+
require 'AsposeDiagramCloud/models/disc_usage'
|
22
|
+
require 'AsposeDiagramCloud/models/error'
|
23
|
+
require 'AsposeDiagramCloud/models/error_details'
|
24
|
+
require 'AsposeDiagramCloud/models/file_versions'
|
25
|
+
require 'AsposeDiagramCloud/models/files_list'
|
26
|
+
require 'AsposeDiagramCloud/models/files_upload_result'
|
27
|
+
require 'AsposeDiagramCloud/models/object_exist'
|
28
|
+
require 'AsposeDiagramCloud/models/page_size'
|
29
|
+
require 'AsposeDiagramCloud/models/pdf_digital_signature_details'
|
30
|
+
require 'AsposeDiagramCloud/models/pdf_encryption_details'
|
31
|
+
require 'AsposeDiagramCloud/models/point_f'
|
32
|
+
require 'AsposeDiagramCloud/models/rectangle_f'
|
33
|
+
require 'AsposeDiagramCloud/models/saa_spose_response'
|
34
|
+
require 'AsposeDiagramCloud/models/save_options_model'
|
35
|
+
require 'AsposeDiagramCloud/models/save_options_request'
|
36
|
+
require 'AsposeDiagramCloud/models/storage_exist'
|
37
|
+
require 'AsposeDiagramCloud/models/storage_file'
|
38
|
+
require 'AsposeDiagramCloud/models/create_new_response'
|
39
|
+
require 'AsposeDiagramCloud/models/diagram_save_options'
|
40
|
+
require 'AsposeDiagramCloud/models/file_version'
|
41
|
+
require 'AsposeDiagramCloud/models/modify_response'
|
42
|
+
require 'AsposeDiagramCloud/models/rendering_save_options'
|
43
|
+
require 'AsposeDiagramCloud/models/swf_save_options'
|
44
|
+
require 'AsposeDiagramCloud/models/save_as_response'
|
45
|
+
require 'AsposeDiagramCloud/models/upload_response'
|
46
|
+
require 'AsposeDiagramCloud/models/xaml_save_options'
|
47
|
+
require 'AsposeDiagramCloud/models/xps_save_options'
|
48
|
+
require 'AsposeDiagramCloud/models/html_save_options'
|
49
|
+
require 'AsposeDiagramCloud/models/image_save_options'
|
50
|
+
require 'AsposeDiagramCloud/models/pdf_save_options'
|
51
|
+
require 'AsposeDiagramCloud/models/svg_save_options'
|
52
|
+
require 'AsposeDiagramCloud/models/draw_shape_data'
|
53
|
+
require 'AsposeDiagramCloud/models/page_data'
|
54
|
+
require 'AsposeDiagramCloud/models/page_setting'
|
55
|
+
require 'AsposeDiagramCloud/models/point_f'
|
56
|
+
require 'AsposeDiagramCloud/models/shape_data'
|
57
|
+
require 'AsposeDiagramCloud/models/shape_style_data'
|
58
|
+
require 'AsposeDiagramCloud/models/text_style_data'
|
59
|
+
require 'AsposeDiagramCloud/models/api_response_of_list_of_page_data'
|
60
|
+
require 'AsposeDiagramCloud/models/ellipse_data'
|
61
|
+
require 'AsposeDiagramCloud/models/line_data'
|
62
|
+
require 'AsposeDiagramCloud/models/polyline_data'
|
63
|
+
|
64
|
+
# APIs
|
65
|
+
require 'AsposeDiagramCloud/api/diagram_api'
|
66
|
+
require 'AsposeDiagramCloud/api/o_auth_api'
|
67
|
+
require 'AsposeDiagramCloud/api/storage_api'
|
68
|
+
|
69
|
+
module AsposeDiagramCloud
|
70
|
+
class << self
|
71
|
+
# Customize default settings for the SDK using block.
|
72
|
+
# AsposeDiagramCloud.configure do |config|
|
73
|
+
# config.username = "xxx"
|
74
|
+
# config.password = "xxx"
|
75
|
+
# end
|
76
|
+
# If no block given, return the default Configuration object.
|
77
|
+
def configure
|
78
|
+
if block_given?
|
79
|
+
yield(Configuration.default)
|
80
|
+
else
|
81
|
+
Configuration.default
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,768 @@
|
|
1
|
+
=begin
|
2
|
+
#Aspose.Diagram Cloud API Reference
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 3.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require "uri"
|
14
|
+
|
15
|
+
module AsposeDiagramCloud
|
16
|
+
class DiagramApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(grant_type,app_sid,app_key,api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
@api_client.config.api_key['api_key'] = app_key
|
22
|
+
@api_client.config.api_key['app_sid'] = app_sid
|
23
|
+
@api_client.config.api_key['grant_type'] = grant_type
|
24
|
+
request_token
|
25
|
+
|
26
|
+
end
|
27
|
+
|
28
|
+
#
|
29
|
+
# Gets a request token from server
|
30
|
+
#
|
31
|
+
def request_token
|
32
|
+
authconfig=Configuration.new
|
33
|
+
authconfig.base_path=""
|
34
|
+
authClient=ApiClient.new(authconfig)
|
35
|
+
authApi=AsposeDiagramCloud::OAuthApi.new(authClient)
|
36
|
+
config=@api_client.config
|
37
|
+
data, _status_code, _headers=authApi.o_auth_post(config.api_key['grant_type'],config.api_key['app_sid'],config.api_key['api_key'])
|
38
|
+
#print(data.access_token)
|
39
|
+
@api_client.default_headers["Authorization"] ="Bearer " + data.access_token
|
40
|
+
end
|
41
|
+
# Converts document from the request's content to the specified format.
|
42
|
+
#
|
43
|
+
# @param name Download document name.
|
44
|
+
# @param file File to upload
|
45
|
+
# @param [Hash] opts the optional parameters
|
46
|
+
# @option opts [String] :source_filename Source document name.
|
47
|
+
# @return [File]
|
48
|
+
def convert_document(name, file, opts = {})
|
49
|
+
data, _status_code, _headers = convert_document_with_http_info(name, file, opts)
|
50
|
+
return data
|
51
|
+
end
|
52
|
+
|
53
|
+
# Converts document from the request's content to the specified format.
|
54
|
+
#
|
55
|
+
# @param name Download document name.
|
56
|
+
# @param file File to upload
|
57
|
+
# @param [Hash] opts the optional parameters
|
58
|
+
# @option opts [String] :source_filename Source document name.
|
59
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
60
|
+
def convert_document_with_http_info(name, file, opts = {})
|
61
|
+
if @api_client.config.debugging
|
62
|
+
@api_client.config.logger.debug "Calling API: DiagramApi.convert_document ..."
|
63
|
+
end
|
64
|
+
# verify the required parameter 'name' is set
|
65
|
+
if @api_client.config.client_side_validation && name.nil?
|
66
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling DiagramApi.convert_document"
|
67
|
+
end
|
68
|
+
# verify the required parameter 'file' is set
|
69
|
+
if @api_client.config.client_side_validation && file.nil?
|
70
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling DiagramApi.convert_document"
|
71
|
+
end
|
72
|
+
# resource path
|
73
|
+
local_var_path = "/diagram/{name}/convert".sub('{' + 'name' + '}', name.to_s)
|
74
|
+
|
75
|
+
# query parameters
|
76
|
+
query_params = {}
|
77
|
+
query_params[:'sourceFilename'] = opts[:'source_filename'] if !opts[:'source_filename'].nil?
|
78
|
+
|
79
|
+
# header parameters
|
80
|
+
header_params = {}
|
81
|
+
# HTTP header 'Accept' (if needed)
|
82
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
83
|
+
# HTTP header 'Content-Type'
|
84
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
85
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
86
|
+
|
87
|
+
# form parameters
|
88
|
+
form_params = {}
|
89
|
+
#form_params["File"] = file
|
90
|
+
|
91
|
+
# http body (model)
|
92
|
+
post_body = file
|
93
|
+
auth_names = ['JWT']
|
94
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
95
|
+
:header_params => header_params,
|
96
|
+
:query_params => query_params,
|
97
|
+
:form_params => form_params,
|
98
|
+
:body => post_body,
|
99
|
+
:auth_names => auth_names,
|
100
|
+
:return_type => 'File')
|
101
|
+
if @api_client.config.debugging
|
102
|
+
@api_client.config.logger.debug "API called: DiagramApi#convert_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
103
|
+
end
|
104
|
+
return data, status_code, headers
|
105
|
+
end
|
106
|
+
|
107
|
+
# Create Empty file into the specified format.
|
108
|
+
#
|
109
|
+
# @param name The document name.
|
110
|
+
# @param [Hash] opts the optional parameters
|
111
|
+
# @option opts [String] :folder The document folder.
|
112
|
+
# @option opts [BOOLEAN] :is_overwrite If true overwrite the same name file.The default value is false (default to false)
|
113
|
+
# @return [CreateNewResponse]
|
114
|
+
def create_new(name, opts = {})
|
115
|
+
data, _status_code, _headers = create_new_with_http_info(name, opts)
|
116
|
+
return data
|
117
|
+
end
|
118
|
+
|
119
|
+
# Create Empty file into the specified format.
|
120
|
+
#
|
121
|
+
# @param name The document name.
|
122
|
+
# @param [Hash] opts the optional parameters
|
123
|
+
# @option opts [String] :folder The document folder.
|
124
|
+
# @option opts [BOOLEAN] :is_overwrite If true overwrite the same name file.The default value is false
|
125
|
+
# @return [Array<(CreateNewResponse, Fixnum, Hash)>] CreateNewResponse data, response status code and response headers
|
126
|
+
def create_new_with_http_info(name, opts = {})
|
127
|
+
if @api_client.config.debugging
|
128
|
+
@api_client.config.logger.debug "Calling API: DiagramApi.create_new ..."
|
129
|
+
end
|
130
|
+
# verify the required parameter 'name' is set
|
131
|
+
if @api_client.config.client_side_validation && name.nil?
|
132
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling DiagramApi.create_new"
|
133
|
+
end
|
134
|
+
# resource path
|
135
|
+
local_var_path = "/diagram/{name}".sub('{' + 'name' + '}', name.to_s)
|
136
|
+
|
137
|
+
# query parameters
|
138
|
+
query_params = {}
|
139
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
140
|
+
query_params[:'IsOverwrite'] = opts[:'is_overwrite'] if !opts[:'is_overwrite'].nil?
|
141
|
+
|
142
|
+
# header parameters
|
143
|
+
header_params = {}
|
144
|
+
# HTTP header 'Accept' (if needed)
|
145
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
146
|
+
# HTTP header 'Content-Type'
|
147
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
148
|
+
|
149
|
+
# form parameters
|
150
|
+
form_params = {}
|
151
|
+
|
152
|
+
# http body (model)
|
153
|
+
post_body = nil
|
154
|
+
auth_names = ['JWT']
|
155
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
156
|
+
:header_params => header_params,
|
157
|
+
:query_params => query_params,
|
158
|
+
:form_params => form_params,
|
159
|
+
:body => post_body,
|
160
|
+
:auth_names => auth_names,
|
161
|
+
:return_type => 'CreateNewResponse')
|
162
|
+
if @api_client.config.debugging
|
163
|
+
@api_client.config.logger.debug "API called: DiagramApi#create_new\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
164
|
+
end
|
165
|
+
return data, status_code, headers
|
166
|
+
end
|
167
|
+
|
168
|
+
# Exports the document into the specified format.
|
169
|
+
#
|
170
|
+
# @param name The document name.
|
171
|
+
# @param format The destination format.
|
172
|
+
# @param [Hash] opts the optional parameters
|
173
|
+
# @option opts [String] :folder Original document folder.
|
174
|
+
# @return [File]
|
175
|
+
def download_file_with_format(name, format, opts = {})
|
176
|
+
data, _status_code, _headers = download_file_with_format_with_http_info(name, format, opts)
|
177
|
+
return data
|
178
|
+
end
|
179
|
+
|
180
|
+
# Exports the document into the specified format.
|
181
|
+
#
|
182
|
+
# @param name The document name.
|
183
|
+
# @param format The destination format.
|
184
|
+
# @param [Hash] opts the optional parameters
|
185
|
+
# @option opts [String] :folder Original document folder.
|
186
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
187
|
+
def download_file_with_format_with_http_info(name, format, opts = {})
|
188
|
+
if @api_client.config.debugging
|
189
|
+
@api_client.config.logger.debug "Calling API: DiagramApi.download_file_with_format ..."
|
190
|
+
end
|
191
|
+
# verify the required parameter 'name' is set
|
192
|
+
if @api_client.config.client_side_validation && name.nil?
|
193
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling DiagramApi.download_file_with_format"
|
194
|
+
end
|
195
|
+
# verify the required parameter 'format' is set
|
196
|
+
if @api_client.config.client_side_validation && format.nil?
|
197
|
+
fail ArgumentError, "Missing the required parameter 'format' when calling DiagramApi.download_file_with_format"
|
198
|
+
end
|
199
|
+
# resource path
|
200
|
+
local_var_path = "/diagram/{name}".sub('{' + 'name' + '}', name.to_s)
|
201
|
+
|
202
|
+
# query parameters
|
203
|
+
query_params = {}
|
204
|
+
query_params[:'format'] = format
|
205
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
206
|
+
|
207
|
+
# header parameters
|
208
|
+
header_params = {}
|
209
|
+
# HTTP header 'Accept' (if needed)
|
210
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
211
|
+
# HTTP header 'Content-Type'
|
212
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
213
|
+
|
214
|
+
# form parameters
|
215
|
+
form_params = {}
|
216
|
+
|
217
|
+
# http body (model)
|
218
|
+
post_body = nil
|
219
|
+
auth_names = ['JWT']
|
220
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
221
|
+
:header_params => header_params,
|
222
|
+
:query_params => query_params,
|
223
|
+
:form_params => form_params,
|
224
|
+
:body => post_body,
|
225
|
+
:auth_names => auth_names,
|
226
|
+
:return_type => 'File')
|
227
|
+
if @api_client.config.debugging
|
228
|
+
@api_client.config.logger.debug "API called: DiagramApi#download_file_with_format\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
229
|
+
end
|
230
|
+
return data, status_code, headers
|
231
|
+
end
|
232
|
+
|
233
|
+
# Converts document to destination format with detailed settings and saves result to storage.
|
234
|
+
#
|
235
|
+
# @param name Original document name.
|
236
|
+
# @param save_options_request Save options.
|
237
|
+
# @param [Hash] opts the optional parameters
|
238
|
+
# @option opts [String] :folder Original document folder.
|
239
|
+
# @option opts [BOOLEAN] :is_overwrite If true overwrite the same name file.The default value is false (default to false)
|
240
|
+
# @return [SaveAsResponse]
|
241
|
+
def save_as(name, save_options_request, opts = {})
|
242
|
+
data, _status_code, _headers = save_as_with_http_info(name, save_options_request, opts)
|
243
|
+
return data
|
244
|
+
end
|
245
|
+
|
246
|
+
# Converts document to destination format with detailed settings and saves result to storage.
|
247
|
+
#
|
248
|
+
# @param name Original document name.
|
249
|
+
# @param save_options_request Save options.
|
250
|
+
# @param [Hash] opts the optional parameters
|
251
|
+
# @option opts [String] :folder Original document folder.
|
252
|
+
# @option opts [BOOLEAN] :is_overwrite If true overwrite the same name file.The default value is false
|
253
|
+
# @return [Array<(SaveAsResponse, Fixnum, Hash)>] SaveAsResponse data, response status code and response headers
|
254
|
+
def save_as_with_http_info(name, save_options_request, opts = {})
|
255
|
+
if @api_client.config.debugging
|
256
|
+
@api_client.config.logger.debug "Calling API: DiagramApi.save_as ..."
|
257
|
+
end
|
258
|
+
# verify the required parameter 'name' is set
|
259
|
+
if @api_client.config.client_side_validation && name.nil?
|
260
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling DiagramApi.save_as"
|
261
|
+
end
|
262
|
+
# verify the required parameter 'save_options_request' is set
|
263
|
+
if @api_client.config.client_side_validation && save_options_request.nil?
|
264
|
+
fail ArgumentError, "Missing the required parameter 'save_options_request' when calling DiagramApi.save_as"
|
265
|
+
end
|
266
|
+
# resource path
|
267
|
+
local_var_path = "/diagram/{name}/saveAs".sub('{' + 'name' + '}', name.to_s)
|
268
|
+
|
269
|
+
# query parameters
|
270
|
+
query_params = {}
|
271
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
272
|
+
query_params[:'IsOverwrite'] = opts[:'is_overwrite'] if !opts[:'is_overwrite'].nil?
|
273
|
+
|
274
|
+
# header parameters
|
275
|
+
header_params = {}
|
276
|
+
# HTTP header 'Accept' (if needed)
|
277
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
278
|
+
# HTTP header 'Content-Type'
|
279
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
280
|
+
|
281
|
+
# form parameters
|
282
|
+
form_params = {}
|
283
|
+
|
284
|
+
# http body (model)
|
285
|
+
post_body = @api_client.object_to_http_body(save_options_request)
|
286
|
+
auth_names = ['JWT']
|
287
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
288
|
+
:header_params => header_params,
|
289
|
+
:query_params => query_params,
|
290
|
+
:form_params => form_params,
|
291
|
+
:body => post_body,
|
292
|
+
:auth_names => auth_names,
|
293
|
+
:return_type => 'SaveAsResponse')
|
294
|
+
if @api_client.config.debugging
|
295
|
+
@api_client.config.logger.debug "API called: DiagramApi#save_as\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
296
|
+
end
|
297
|
+
return data, status_code, headers
|
298
|
+
end
|
299
|
+
|
300
|
+
# draw ellipse on the page.
|
301
|
+
#
|
302
|
+
# @param name Document name.
|
303
|
+
# @param page_name Page name.
|
304
|
+
# @param ellipse_data drawing ellipse data.
|
305
|
+
# @param [Hash] opts the optional parameters
|
306
|
+
# @option opts [String] :folder Document folder.
|
307
|
+
# @return [ModifyResponse]
|
308
|
+
def put_draw_ellipse(name, page_name, ellipse_data, opts = {})
|
309
|
+
data, _status_code, _headers = put_draw_ellipse_with_http_info(name, page_name, ellipse_data, opts)
|
310
|
+
return data
|
311
|
+
end
|
312
|
+
|
313
|
+
# draw ellipse on the page.
|
314
|
+
#
|
315
|
+
# @param name Document name.
|
316
|
+
# @param page_name Page name.
|
317
|
+
# @param ellipse_data drawing ellipse data.
|
318
|
+
# @param [Hash] opts the optional parameters
|
319
|
+
# @option opts [String] :folder Document folder.
|
320
|
+
# @return [Array<(ModifyResponse, Fixnum, Hash)>] ModifyResponse data, response status code and response headers
|
321
|
+
def put_draw_ellipse_with_http_info(name, page_name, ellipse_data, opts = {})
|
322
|
+
if @api_client.config.debugging
|
323
|
+
@api_client.config.logger.debug "Calling API: DrawApi.put_draw_ellipse ..."
|
324
|
+
end
|
325
|
+
# verify the required parameter 'name' is set
|
326
|
+
if @api_client.config.client_side_validation && name.nil?
|
327
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling DrawApi.put_draw_ellipse"
|
328
|
+
end
|
329
|
+
# verify the required parameter 'page_name' is set
|
330
|
+
if @api_client.config.client_side_validation && page_name.nil?
|
331
|
+
fail ArgumentError, "Missing the required parameter 'page_name' when calling DrawApi.put_draw_ellipse"
|
332
|
+
end
|
333
|
+
# verify the required parameter 'ellipse_data' is set
|
334
|
+
if @api_client.config.client_side_validation && ellipse_data.nil?
|
335
|
+
fail ArgumentError, "Missing the required parameter 'ellipse_data' when calling DrawApi.put_draw_ellipse"
|
336
|
+
end
|
337
|
+
# resource path
|
338
|
+
local_var_path = "/diagram/{name}/pages/{pageName}/drawEllipse".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageName' + '}', page_name.to_s)
|
339
|
+
|
340
|
+
# query parameters
|
341
|
+
query_params = {}
|
342
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
343
|
+
|
344
|
+
# header parameters
|
345
|
+
header_params = {}
|
346
|
+
# HTTP header 'Accept' (if needed)
|
347
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
348
|
+
# HTTP header 'Content-Type'
|
349
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
350
|
+
|
351
|
+
# form parameters
|
352
|
+
form_params = {}
|
353
|
+
|
354
|
+
# http body (model)
|
355
|
+
post_body = @api_client.object_to_http_body(ellipse_data)
|
356
|
+
auth_names = ['JWT']
|
357
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
358
|
+
:header_params => header_params,
|
359
|
+
:query_params => query_params,
|
360
|
+
:form_params => form_params,
|
361
|
+
:body => post_body,
|
362
|
+
:auth_names => auth_names,
|
363
|
+
:return_type => 'ModifyResponse')
|
364
|
+
if @api_client.config.debugging
|
365
|
+
@api_client.config.logger.debug "API called: DrawApi#put_draw_ellipse\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
366
|
+
end
|
367
|
+
return data, status_code, headers
|
368
|
+
end
|
369
|
+
|
370
|
+
# draw line on the page.
|
371
|
+
#
|
372
|
+
# @param name Document name.
|
373
|
+
# @param page_name Page name.
|
374
|
+
# @param line_data drawing line data.
|
375
|
+
# @param [Hash] opts the optional parameters
|
376
|
+
# @option opts [String] :folder Document folder.
|
377
|
+
# @return [ModifyResponse]
|
378
|
+
def put_draw_line(name, page_name, line_data, opts = {})
|
379
|
+
data, _status_code, _headers = put_draw_line_with_http_info(name, page_name, line_data, opts)
|
380
|
+
return data
|
381
|
+
end
|
382
|
+
|
383
|
+
# draw line on the page.
|
384
|
+
#
|
385
|
+
# @param name Document name.
|
386
|
+
# @param page_name Page name.
|
387
|
+
# @param line_data drawing line data.
|
388
|
+
# @param [Hash] opts the optional parameters
|
389
|
+
# @option opts [String] :folder Document folder.
|
390
|
+
# @return [Array<(ModifyResponse, Fixnum, Hash)>] ModifyResponse data, response status code and response headers
|
391
|
+
def put_draw_line_with_http_info(name, page_name, line_data, opts = {})
|
392
|
+
if @api_client.config.debugging
|
393
|
+
@api_client.config.logger.debug "Calling API: DrawApi.put_draw_line ..."
|
394
|
+
end
|
395
|
+
# verify the required parameter 'name' is set
|
396
|
+
if @api_client.config.client_side_validation && name.nil?
|
397
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling DrawApi.put_draw_line"
|
398
|
+
end
|
399
|
+
# verify the required parameter 'page_name' is set
|
400
|
+
if @api_client.config.client_side_validation && page_name.nil?
|
401
|
+
fail ArgumentError, "Missing the required parameter 'page_name' when calling DrawApi.put_draw_line"
|
402
|
+
end
|
403
|
+
# verify the required parameter 'line_data' is set
|
404
|
+
if @api_client.config.client_side_validation && line_data.nil?
|
405
|
+
fail ArgumentError, "Missing the required parameter 'line_data' when calling DrawApi.put_draw_line"
|
406
|
+
end
|
407
|
+
# resource path
|
408
|
+
local_var_path = "/diagram/{name}/pages/{pageName}/drawLine".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageName' + '}', page_name.to_s)
|
409
|
+
|
410
|
+
# query parameters
|
411
|
+
query_params = {}
|
412
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
413
|
+
|
414
|
+
# header parameters
|
415
|
+
header_params = {}
|
416
|
+
# HTTP header 'Accept' (if needed)
|
417
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
418
|
+
# HTTP header 'Content-Type'
|
419
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
420
|
+
|
421
|
+
# form parameters
|
422
|
+
form_params = {}
|
423
|
+
|
424
|
+
# http body (model)
|
425
|
+
post_body = @api_client.object_to_http_body(line_data)
|
426
|
+
auth_names = ['JWT']
|
427
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
428
|
+
:header_params => header_params,
|
429
|
+
:query_params => query_params,
|
430
|
+
:form_params => form_params,
|
431
|
+
:body => post_body,
|
432
|
+
:auth_names => auth_names,
|
433
|
+
:return_type => 'ModifyResponse')
|
434
|
+
if @api_client.config.debugging
|
435
|
+
@api_client.config.logger.debug "API called: DrawApi#put_draw_line\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
436
|
+
end
|
437
|
+
return data, status_code, headers
|
438
|
+
end
|
439
|
+
|
440
|
+
# draw polyline on the page.
|
441
|
+
#
|
442
|
+
# @param name Document name.
|
443
|
+
# @param page_name Page name.
|
444
|
+
# @param polyline_data drawing polyline data.
|
445
|
+
# @param [Hash] opts the optional parameters
|
446
|
+
# @option opts [String] :folder Document folder.
|
447
|
+
# @return [ModifyResponse]
|
448
|
+
def put_draw_polyline(name, page_name, polyline_data, opts = {})
|
449
|
+
data, _status_code, _headers = put_draw_polyline_with_http_info(name, page_name, polyline_data, opts)
|
450
|
+
return data
|
451
|
+
end
|
452
|
+
|
453
|
+
# draw polyline on the page.
|
454
|
+
#
|
455
|
+
# @param name Document name.
|
456
|
+
# @param page_name Page name.
|
457
|
+
# @param polyline_data drawing polyline data.
|
458
|
+
# @param [Hash] opts the optional parameters
|
459
|
+
# @option opts [String] :folder Document folder.
|
460
|
+
# @return [Array<(ModifyResponse, Fixnum, Hash)>] ModifyResponse data, response status code and response headers
|
461
|
+
def put_draw_polyline_with_http_info(name, page_name, polyline_data, opts = {})
|
462
|
+
if @api_client.config.debugging
|
463
|
+
@api_client.config.logger.debug "Calling API: DrawApi.put_draw_polyline ..."
|
464
|
+
end
|
465
|
+
# verify the required parameter 'name' is set
|
466
|
+
if @api_client.config.client_side_validation && name.nil?
|
467
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling DrawApi.put_draw_polyline"
|
468
|
+
end
|
469
|
+
# verify the required parameter 'page_name' is set
|
470
|
+
if @api_client.config.client_side_validation && page_name.nil?
|
471
|
+
fail ArgumentError, "Missing the required parameter 'page_name' when calling DrawApi.put_draw_polyline"
|
472
|
+
end
|
473
|
+
# verify the required parameter 'polyline_data' is set
|
474
|
+
if @api_client.config.client_side_validation && polyline_data.nil?
|
475
|
+
fail ArgumentError, "Missing the required parameter 'polyline_data' when calling DrawApi.put_draw_polyline"
|
476
|
+
end
|
477
|
+
# resource path
|
478
|
+
local_var_path = "/diagram/{name}/pages/{pageName}/drawPolyline".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageName' + '}', page_name.to_s)
|
479
|
+
|
480
|
+
# query parameters
|
481
|
+
query_params = {}
|
482
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
483
|
+
|
484
|
+
# header parameters
|
485
|
+
header_params = {}
|
486
|
+
# HTTP header 'Accept' (if needed)
|
487
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
488
|
+
# HTTP header 'Content-Type'
|
489
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
490
|
+
|
491
|
+
# form parameters
|
492
|
+
form_params = {}
|
493
|
+
|
494
|
+
# http body (model)
|
495
|
+
post_body = @api_client.object_to_http_body(polyline_data)
|
496
|
+
auth_names = ['JWT']
|
497
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
498
|
+
:header_params => header_params,
|
499
|
+
:query_params => query_params,
|
500
|
+
:form_params => form_params,
|
501
|
+
:body => post_body,
|
502
|
+
:auth_names => auth_names,
|
503
|
+
:return_type => 'ModifyResponse')
|
504
|
+
if @api_client.config.debugging
|
505
|
+
@api_client.config.logger.debug "API called: DrawApi#put_draw_polyline\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
506
|
+
end
|
507
|
+
return data, status_code, headers
|
508
|
+
end
|
509
|
+
|
510
|
+
# Remove Page
|
511
|
+
#
|
512
|
+
# @param name Document name.
|
513
|
+
# @param page_name The page name for delete.
|
514
|
+
# @param [Hash] opts the optional parameters
|
515
|
+
# @option opts [String] :folder Document folder.
|
516
|
+
# @return [ModifyResponse]
|
517
|
+
def delete_page(name, page_name, opts = {})
|
518
|
+
data, _status_code, _headers = delete_page_with_http_info(name, page_name, opts)
|
519
|
+
return data
|
520
|
+
end
|
521
|
+
|
522
|
+
# Remove Page
|
523
|
+
#
|
524
|
+
# @param name Document name.
|
525
|
+
# @param page_name The page name for delete.
|
526
|
+
# @param [Hash] opts the optional parameters
|
527
|
+
# @option opts [String] :folder Document folder.
|
528
|
+
# @return [Array<(ModifyResponse, Fixnum, Hash)>] ModifyResponse data, response status code and response headers
|
529
|
+
def delete_page_with_http_info(name, page_name, opts = {})
|
530
|
+
if @api_client.config.debugging
|
531
|
+
@api_client.config.logger.debug "Calling API: PageApi.delete_page ..."
|
532
|
+
end
|
533
|
+
# verify the required parameter 'name' is set
|
534
|
+
if @api_client.config.client_side_validation && name.nil?
|
535
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PageApi.delete_page"
|
536
|
+
end
|
537
|
+
# verify the required parameter 'page_name' is set
|
538
|
+
if @api_client.config.client_side_validation && page_name.nil?
|
539
|
+
fail ArgumentError, "Missing the required parameter 'page_name' when calling PageApi.delete_page"
|
540
|
+
end
|
541
|
+
# resource path
|
542
|
+
local_var_path = "/diagram/{name}/pages/{pageName}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageName' + '}', page_name.to_s)
|
543
|
+
|
544
|
+
# query parameters
|
545
|
+
query_params = {}
|
546
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
547
|
+
|
548
|
+
# header parameters
|
549
|
+
header_params = {}
|
550
|
+
# HTTP header 'Accept' (if needed)
|
551
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
552
|
+
# HTTP header 'Content-Type'
|
553
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
554
|
+
|
555
|
+
# form parameters
|
556
|
+
form_params = {}
|
557
|
+
|
558
|
+
# http body (model)
|
559
|
+
post_body = nil
|
560
|
+
auth_names = ['JWT']
|
561
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
562
|
+
:header_params => header_params,
|
563
|
+
:query_params => query_params,
|
564
|
+
:form_params => form_params,
|
565
|
+
:body => post_body,
|
566
|
+
:auth_names => auth_names,
|
567
|
+
:return_type => 'ModifyResponse')
|
568
|
+
if @api_client.config.debugging
|
569
|
+
@api_client.config.logger.debug "API called: PageApi#delete_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
570
|
+
end
|
571
|
+
return data, status_code, headers
|
572
|
+
end
|
573
|
+
|
574
|
+
# Read pages info.
|
575
|
+
#
|
576
|
+
# @param name Document name.
|
577
|
+
# @param [Hash] opts the optional parameters
|
578
|
+
# @option opts [String] :folder Document folder.
|
579
|
+
# @return [ApiResponseOfListOfPageData]
|
580
|
+
def get_pages(name, opts = {})
|
581
|
+
data, _status_code, _headers = get_pages_with_http_info(name, opts)
|
582
|
+
return data
|
583
|
+
end
|
584
|
+
|
585
|
+
# Read pages info.
|
586
|
+
#
|
587
|
+
# @param name Document name.
|
588
|
+
# @param [Hash] opts the optional parameters
|
589
|
+
# @option opts [String] :folder Document folder.
|
590
|
+
# @return [Array<(ApiResponseOfListOfPageData, Fixnum, Hash)>] ApiResponseOfListOfPageData data, response status code and response headers
|
591
|
+
def get_pages_with_http_info(name, opts = {})
|
592
|
+
if @api_client.config.debugging
|
593
|
+
@api_client.config.logger.debug "Calling API: PageApi.get_pages ..."
|
594
|
+
end
|
595
|
+
# verify the required parameter 'name' is set
|
596
|
+
if @api_client.config.client_side_validation && name.nil?
|
597
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PageApi.get_pages"
|
598
|
+
end
|
599
|
+
# resource path
|
600
|
+
local_var_path = "/diagram/{name}/pages".sub('{' + 'name' + '}', name.to_s)
|
601
|
+
|
602
|
+
# query parameters
|
603
|
+
query_params = {}
|
604
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
605
|
+
|
606
|
+
# header parameters
|
607
|
+
header_params = {}
|
608
|
+
# HTTP header 'Accept' (if needed)
|
609
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
610
|
+
# HTTP header 'Content-Type'
|
611
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
612
|
+
|
613
|
+
# form parameters
|
614
|
+
form_params = {}
|
615
|
+
|
616
|
+
# http body (model)
|
617
|
+
post_body = nil
|
618
|
+
auth_names = ['JWT']
|
619
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
620
|
+
:header_params => header_params,
|
621
|
+
:query_params => query_params,
|
622
|
+
:form_params => form_params,
|
623
|
+
:body => post_body,
|
624
|
+
:auth_names => auth_names,
|
625
|
+
:return_type => 'ApiResponseOfListOfPageData')
|
626
|
+
if @api_client.config.debugging
|
627
|
+
@api_client.config.logger.debug "API called: PageApi#get_pages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
628
|
+
end
|
629
|
+
return data, status_code, headers
|
630
|
+
end
|
631
|
+
|
632
|
+
# page setup
|
633
|
+
#
|
634
|
+
# @param name Document name.
|
635
|
+
# @param page_name The page name for setting.
|
636
|
+
# @param page_setting Page setting info.
|
637
|
+
# @param [Hash] opts the optional parameters
|
638
|
+
# @option opts [String] :folder Document folder.
|
639
|
+
# @return [ModifyResponse]
|
640
|
+
def post_page_setup(name, page_name, page_setting, opts = {})
|
641
|
+
data, _status_code, _headers = post_page_setup_with_http_info(name, page_name, page_setting, opts)
|
642
|
+
return data
|
643
|
+
end
|
644
|
+
|
645
|
+
# page setup
|
646
|
+
#
|
647
|
+
# @param name Document name.
|
648
|
+
# @param page_name The page name for setting.
|
649
|
+
# @param page_setting Page setting info.
|
650
|
+
# @param [Hash] opts the optional parameters
|
651
|
+
# @option opts [String] :folder Document folder.
|
652
|
+
# @return [Array<(ModifyResponse, Fixnum, Hash)>] ModifyResponse data, response status code and response headers
|
653
|
+
def post_page_setup_with_http_info(name, page_name, page_setting, opts = {})
|
654
|
+
if @api_client.config.debugging
|
655
|
+
@api_client.config.logger.debug "Calling API: PageApi.post_page_setup ..."
|
656
|
+
end
|
657
|
+
# verify the required parameter 'name' is set
|
658
|
+
if @api_client.config.client_side_validation && name.nil?
|
659
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PageApi.post_page_setup"
|
660
|
+
end
|
661
|
+
# verify the required parameter 'page_name' is set
|
662
|
+
if @api_client.config.client_side_validation && page_name.nil?
|
663
|
+
fail ArgumentError, "Missing the required parameter 'page_name' when calling PageApi.post_page_setup"
|
664
|
+
end
|
665
|
+
# verify the required parameter 'page_setting' is set
|
666
|
+
if @api_client.config.client_side_validation && page_setting.nil?
|
667
|
+
fail ArgumentError, "Missing the required parameter 'page_setting' when calling PageApi.post_page_setup"
|
668
|
+
end
|
669
|
+
# resource path
|
670
|
+
local_var_path = "/diagram/{name}/pages/PageSetup".sub('{' + 'name' + '}', name.to_s)
|
671
|
+
|
672
|
+
# query parameters
|
673
|
+
query_params = {}
|
674
|
+
query_params[:'pageName'] = page_name
|
675
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
676
|
+
|
677
|
+
# header parameters
|
678
|
+
header_params = {}
|
679
|
+
# HTTP header 'Accept' (if needed)
|
680
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
681
|
+
# HTTP header 'Content-Type'
|
682
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
683
|
+
|
684
|
+
# form parameters
|
685
|
+
form_params = {}
|
686
|
+
|
687
|
+
# http body (model)
|
688
|
+
post_body = @api_client.object_to_http_body(page_setting)
|
689
|
+
auth_names = ['JWT']
|
690
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
691
|
+
:header_params => header_params,
|
692
|
+
:query_params => query_params,
|
693
|
+
:form_params => form_params,
|
694
|
+
:body => post_body,
|
695
|
+
:auth_names => auth_names,
|
696
|
+
:return_type => 'ModifyResponse')
|
697
|
+
if @api_client.config.debugging
|
698
|
+
@api_client.config.logger.debug "API called: PageApi#post_page_setup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
699
|
+
end
|
700
|
+
return data, status_code, headers
|
701
|
+
end
|
702
|
+
|
703
|
+
# Add new empty page
|
704
|
+
#
|
705
|
+
# @param name Document name.
|
706
|
+
# @param page_name New page name.
|
707
|
+
# @param [Hash] opts the optional parameters
|
708
|
+
# @option opts [String] :folder Document folder.
|
709
|
+
# @return [ModifyResponse]
|
710
|
+
def put_new_page(name, page_name, opts = {})
|
711
|
+
data, _status_code, _headers = put_new_page_with_http_info(name, page_name, opts)
|
712
|
+
return data
|
713
|
+
end
|
714
|
+
|
715
|
+
# Add new empty page
|
716
|
+
#
|
717
|
+
# @param name Document name.
|
718
|
+
# @param page_name New page name.
|
719
|
+
# @param [Hash] opts the optional parameters
|
720
|
+
# @option opts [String] :folder Document folder.
|
721
|
+
# @return [Array<(ModifyResponse, Fixnum, Hash)>] ModifyResponse data, response status code and response headers
|
722
|
+
def put_new_page_with_http_info(name, page_name, opts = {})
|
723
|
+
if @api_client.config.debugging
|
724
|
+
@api_client.config.logger.debug "Calling API: PageApi.put_new_page ..."
|
725
|
+
end
|
726
|
+
# verify the required parameter 'name' is set
|
727
|
+
if @api_client.config.client_side_validation && name.nil?
|
728
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PageApi.put_new_page"
|
729
|
+
end
|
730
|
+
# verify the required parameter 'page_name' is set
|
731
|
+
if @api_client.config.client_side_validation && page_name.nil?
|
732
|
+
fail ArgumentError, "Missing the required parameter 'page_name' when calling PageApi.put_new_page"
|
733
|
+
end
|
734
|
+
# resource path
|
735
|
+
local_var_path = "/diagram/{name}/pages/addNew".sub('{' + 'name' + '}', name.to_s)
|
736
|
+
|
737
|
+
# query parameters
|
738
|
+
query_params = {}
|
739
|
+
query_params[:'pageName'] = page_name
|
740
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
741
|
+
|
742
|
+
# header parameters
|
743
|
+
header_params = {}
|
744
|
+
# HTTP header 'Accept' (if needed)
|
745
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
746
|
+
# HTTP header 'Content-Type'
|
747
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
748
|
+
|
749
|
+
# form parameters
|
750
|
+
form_params = {}
|
751
|
+
|
752
|
+
# http body (model)
|
753
|
+
post_body = nil
|
754
|
+
auth_names = ['JWT']
|
755
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
756
|
+
:header_params => header_params,
|
757
|
+
:query_params => query_params,
|
758
|
+
:form_params => form_params,
|
759
|
+
:body => post_body,
|
760
|
+
:auth_names => auth_names,
|
761
|
+
:return_type => 'ModifyResponse')
|
762
|
+
if @api_client.config.debugging
|
763
|
+
@api_client.config.logger.debug "API called: PageApi#put_new_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
764
|
+
end
|
765
|
+
return data, status_code, headers
|
766
|
+
end
|
767
|
+
end
|
768
|
+
end
|