aspose_diagram_cloud 18.10.1 → 18.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +7 -0
  3. data/README.md +126 -0
  4. data/Rakefile +8 -0
  5. data/aspose_diagram_cloud-18.10.1.gem +0 -0
  6. data/aspose_diagram_cloud-18.10.gem +0 -0
  7. data/aspose_diagram_cloud.gemspec +46 -0
  8. data/docs/AccessTokenResponse.md +15 -0
  9. data/docs/DiagramFileApi.md +228 -0
  10. data/docs/DiagramModel.md +9 -0
  11. data/docs/DiagramResponse.md +10 -0
  12. data/docs/FileFormatRequest.md +8 -0
  13. data/docs/Link.md +11 -0
  14. data/docs/OAuthApi.md +60 -0
  15. data/docs/PageModel.md +9 -0
  16. data/docs/SaaSposeResponse.md +9 -0
  17. data/docs/SaveResponse.md +10 -0
  18. data/docs/SaveResult.md +10 -0
  19. data/docs/SharpModel.md +8 -0
  20. data/git_push.sh +55 -0
  21. data/lib/aspose_diagram_cloud.rb +51 -0
  22. data/lib/aspose_diagram_cloud/api/diagram_file_api.rb +284 -0
  23. data/lib/aspose_diagram_cloud/api/o_auth_api.rb +93 -0
  24. data/lib/aspose_diagram_cloud/api_client.rb +389 -0
  25. data/lib/aspose_diagram_cloud/api_error.rb +38 -0
  26. data/lib/aspose_diagram_cloud/configuration.rb +223 -0
  27. data/lib/aspose_diagram_cloud/models/access_token_response.rb +251 -0
  28. data/lib/aspose_diagram_cloud/models/diagram_model.rb +199 -0
  29. data/lib/aspose_diagram_cloud/models/diagram_response.rb +211 -0
  30. data/lib/aspose_diagram_cloud/models/file_format_request.rb +188 -0
  31. data/lib/aspose_diagram_cloud/models/link.rb +215 -0
  32. data/lib/aspose_diagram_cloud/models/page_model.rb +199 -0
  33. data/lib/aspose_diagram_cloud/models/saa_spose_response.rb +202 -0
  34. data/lib/aspose_diagram_cloud/models/save_response.rb +211 -0
  35. data/lib/aspose_diagram_cloud/models/save_result.rb +208 -0
  36. data/lib/aspose_diagram_cloud/models/sharp_model.rb +188 -0
  37. data/lib/aspose_diagram_cloud/version.rb +15 -0
  38. data/spec/api/diagram_file_api_spec.rb +126 -0
  39. data/spec/api/o_auth_api_spec.rb +56 -0
  40. data/spec/api_client_spec.rb +226 -0
  41. data/spec/configuration_spec.rb +42 -0
  42. data/spec/models/access_token_response_spec.rb +84 -0
  43. data/spec/models/diagram_model_spec.rb +48 -0
  44. data/spec/models/diagram_response_spec.rb +54 -0
  45. data/spec/models/file_format_request_spec.rb +42 -0
  46. data/spec/models/link_spec.rb +60 -0
  47. data/spec/models/page_model_spec.rb +48 -0
  48. data/spec/models/saa_spose_response_spec.rb +48 -0
  49. data/spec/models/save_response_spec.rb +54 -0
  50. data/spec/models/save_result_spec.rb +54 -0
  51. data/spec/models/sharp_model_spec.rb +42 -0
  52. data/spec/spec_helper.rb +116 -0
  53. metadata +108 -42
@@ -0,0 +1,9 @@
1
+ # AsposeDiagramCloud::DiagramModel
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **file_name** | **String** | | [optional]
7
+ **pages** | [**Array<PageModel>**](PageModel.md) | | [optional]
8
+
9
+
@@ -0,0 +1,10 @@
1
+ # AsposeDiagramCloud::DiagramResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **status** | **String** | | [optional]
7
+ **code** | **Integer** | |
8
+ **diagram_model** | [**DiagramModel**](DiagramModel.md) | | [optional]
9
+
10
+
@@ -0,0 +1,8 @@
1
+ # AsposeDiagramCloud::FileFormatRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **format** | **String** | | [optional]
7
+
8
+
data/docs/Link.md ADDED
@@ -0,0 +1,11 @@
1
+ # AsposeDiagramCloud::Link
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **href** | **String** | | [optional]
7
+ **type** | **String** | | [optional]
8
+ **rel** | **String** | | [optional]
9
+ **title** | **String** | | [optional]
10
+
11
+
data/docs/OAuthApi.md ADDED
@@ -0,0 +1,60 @@
1
+ # AsposeDiagramCloud::OAuthApi
2
+
3
+ All URIs are relative to *https://api.aspose.cloud/v1.1/*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**o_auth_post**](OAuthApi.md#o_auth_post) | **POST** /oauth2/token | Get Access token
8
+
9
+
10
+ # **o_auth_post**
11
+ > AccessTokenResponse o_auth_post(grant_type, client_id, client_secret)
12
+
13
+ Get Access token
14
+
15
+ ### Example
16
+ ```ruby
17
+ # load the gem
18
+ require 'aspose_diagram_cloud'
19
+
20
+ api_instance = AsposeDiagramCloud::OAuthApi.new
21
+
22
+ grant_type = "grant_type_example" # String | Grant Type
23
+
24
+ client_id = "client_id_example" # String | App SID
25
+
26
+ client_secret = "client_secret_example" # String | App Key
27
+
28
+
29
+ begin
30
+ #Get Access token
31
+ result = api_instance.o_auth_post(grant_type, client_id, client_secret)
32
+ p result
33
+ rescue AsposeDiagramCloud::ApiError => e
34
+ puts "Exception when calling OAuthApi->o_auth_post: #{e}"
35
+ end
36
+ ```
37
+
38
+ ### Parameters
39
+
40
+ Name | Type | Description | Notes
41
+ ------------- | ------------- | ------------- | -------------
42
+ **grant_type** | **String**| Grant Type |
43
+ **client_id** | **String**| App SID |
44
+ **client_secret** | **String**| App Key |
45
+
46
+ ### Return type
47
+
48
+ [**AccessTokenResponse**](AccessTokenResponse.md)
49
+
50
+ ### Authorization
51
+
52
+ No authorization required
53
+
54
+ ### HTTP request headers
55
+
56
+ - **Content-Type**: application/x-www-form-urlencoded
57
+ - **Accept**: application/json
58
+
59
+
60
+
data/docs/PageModel.md ADDED
@@ -0,0 +1,9 @@
1
+ # AsposeDiagramCloud::PageModel
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **page_name** | **String** | | [optional]
7
+ **sharps** | [**Array<SharpModel>**](SharpModel.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # AsposeDiagramCloud::SaaSposeResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **status** | **String** | | [optional]
7
+ **code** | **Integer** | |
8
+
9
+
@@ -0,0 +1,10 @@
1
+ # AsposeDiagramCloud::SaveResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **status** | **String** | | [optional]
7
+ **code** | **Integer** | |
8
+ **save_result** | [**SaveResult**](SaveResult.md) | | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # AsposeDiagramCloud::SaveResult
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **source_document** | [**Link**](Link.md) | | [optional]
7
+ **dest_document** | [**Link**](Link.md) | | [optional]
8
+ **additional_items** | [**Array<Link>**](Link.md) | | [optional]
9
+
10
+
@@ -0,0 +1,8 @@
1
+ # AsposeDiagramCloud::SharpModel
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | | [optional]
7
+
8
+
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,51 @@
1
+ =begin
2
+ #Web API Swagger specification
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 1.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 'aspose_diagram_cloud/api_client'
15
+ require 'aspose_diagram_cloud/api_error'
16
+ require 'aspose_diagram_cloud/version'
17
+ require 'aspose_diagram_cloud/configuration'
18
+
19
+ # Models
20
+ require 'aspose_diagram_cloud/models/access_token_response'
21
+ require 'aspose_diagram_cloud/models/diagram_model'
22
+ require 'aspose_diagram_cloud/models/file_format_request'
23
+ require 'aspose_diagram_cloud/models/link'
24
+ require 'aspose_diagram_cloud/models/page_model'
25
+ require 'aspose_diagram_cloud/models/saa_spose_response'
26
+ require 'aspose_diagram_cloud/models/save_result'
27
+ require 'aspose_diagram_cloud/models/sharp_model'
28
+ require 'aspose_diagram_cloud/models/diagram_response'
29
+ require 'aspose_diagram_cloud/models/save_response'
30
+
31
+ # APIs
32
+ require 'aspose_diagram_cloud/api/diagram_file_api'
33
+ require 'aspose_diagram_cloud/api/o_auth_api'
34
+
35
+ module AsposeDiagramCloud
36
+ class << self
37
+ # Customize default settings for the SDK using block.
38
+ # AsposeDiagramCloud.configure do |config|
39
+ # config.username = "xxx"
40
+ # config.password = "xxx"
41
+ # end
42
+ # If no block given, return the default Configuration object.
43
+ def configure
44
+ if block_given?
45
+ yield(Configuration.default)
46
+ else
47
+ Configuration.default
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,284 @@
1
+ =begin
2
+ #Web API Swagger specification
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 1.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 DiagramFileApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Read document info or export.
24
+ #
25
+ # @param name The document name.
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :format The exported file format.
28
+ # @option opts [String] :folder The document folder.
29
+ # @option opts [String] :storage storage name.
30
+ # @return [File]
31
+ def diagram_file_get_diagram(name, opts = {})
32
+ data, _status_code, _headers = diagram_file_get_diagram_with_http_info(name, opts)
33
+ return data
34
+ end
35
+
36
+ # Read document info or export.
37
+ #
38
+ # @param name The document name.
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :format The exported file format.
41
+ # @option opts [String] :folder The document folder.
42
+ # @option opts [String] :storage storage name.
43
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
44
+ def diagram_file_get_diagram_with_http_info(name, opts = {})
45
+ if @api_client.config.debugging
46
+ @api_client.config.logger.debug "Calling API: DiagramFileApi.diagram_file_get_diagram ..."
47
+ end
48
+ # verify the required parameter 'name' is set
49
+ if @api_client.config.client_side_validation && name.nil?
50
+ fail ArgumentError, "Missing the required parameter 'name' when calling DiagramFileApi.diagram_file_get_diagram"
51
+ end
52
+ # resource path
53
+ local_var_path = "/diagram/{name}".sub('{' + 'name' + '}', name.to_s)
54
+
55
+ # query parameters
56
+ query_params = {}
57
+ query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
58
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
59
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
60
+
61
+ # header parameters
62
+ header_params = {}
63
+ # HTTP header 'Accept' (if needed)
64
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
65
+ # HTTP header 'Content-Type'
66
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
67
+
68
+ # form parameters
69
+ form_params = {}
70
+
71
+ # http body (model)
72
+ post_body = nil
73
+ auth_names = []
74
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
75
+ :header_params => header_params,
76
+ :query_params => query_params,
77
+ :form_params => form_params,
78
+ :body => post_body,
79
+ :auth_names => auth_names,
80
+ :return_type => 'File')
81
+ if @api_client.config.debugging
82
+ @api_client.config.logger.debug "API called: DiagramFileApi#diagram_file_get_diagram\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
83
+ end
84
+ return data, status_code, headers
85
+ end
86
+
87
+ # Convert document and save result to storage.
88
+ #
89
+ # @param name The document name.
90
+ # @param [Hash] opts the optional parameters
91
+ # @option opts [FileFormatRequest] :format Save format.
92
+ # @option opts [String] :newfilename The new file name.
93
+ # @option opts [String] :folder The document folder.
94
+ # @option opts [BOOLEAN] :is_overwrite If true overwrite the same name file.The default value is false. (default to false)
95
+ # @option opts [String] :storage storage name.
96
+ # @return [SaveResponse]
97
+ def diagram_file_post_save_as(name, opts = {})
98
+ data, _status_code, _headers = diagram_file_post_save_as_with_http_info(name, opts)
99
+ return data
100
+ end
101
+
102
+ # Convert document and save result to storage.
103
+ #
104
+ # @param name The document name.
105
+ # @param [Hash] opts the optional parameters
106
+ # @option opts [FileFormatRequest] :format Save format.
107
+ # @option opts [String] :newfilename The new file name.
108
+ # @option opts [String] :folder The document folder.
109
+ # @option opts [BOOLEAN] :is_overwrite If true overwrite the same name file.The default value is false.
110
+ # @option opts [String] :storage storage name.
111
+ # @return [Array<(SaveResponse, Fixnum, Hash)>] SaveResponse data, response status code and response headers
112
+ def diagram_file_post_save_as_with_http_info(name, opts = {})
113
+ if @api_client.config.debugging
114
+ @api_client.config.logger.debug "Calling API: DiagramFileApi.diagram_file_post_save_as ..."
115
+ end
116
+ # verify the required parameter 'name' is set
117
+ if @api_client.config.client_side_validation && name.nil?
118
+ fail ArgumentError, "Missing the required parameter 'name' when calling DiagramFileApi.diagram_file_post_save_as"
119
+ end
120
+ # resource path
121
+ local_var_path = "/diagram/{name}/SaveAs".sub('{' + 'name' + '}', name.to_s)
122
+
123
+ # query parameters
124
+ query_params = {}
125
+ query_params[:'newfilename'] = opts[:'newfilename'] if !opts[:'newfilename'].nil?
126
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
127
+ query_params[:'IsOverwrite'] = opts[:'is_overwrite'] if !opts[:'is_overwrite'].nil?
128
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
129
+
130
+ # header parameters
131
+ header_params = {}
132
+ # HTTP header 'Accept' (if needed)
133
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
134
+ # HTTP header 'Content-Type'
135
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
136
+
137
+ # form parameters
138
+ form_params = {}
139
+
140
+ # http body (model)
141
+ post_body = @api_client.object_to_http_body(opts[:'format'])
142
+ auth_names = []
143
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
144
+ :header_params => header_params,
145
+ :query_params => query_params,
146
+ :form_params => form_params,
147
+ :body => post_body,
148
+ :auth_names => auth_names,
149
+ :return_type => 'SaveResponse')
150
+ if @api_client.config.debugging
151
+ @api_client.config.logger.debug "API called: DiagramFileApi#diagram_file_post_save_as\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
152
+ end
153
+ return data, status_code, headers
154
+ end
155
+
156
+ # Create new diagram and save result to storage.
157
+ #
158
+ # @param name The new document name.
159
+ # @param [Hash] opts the optional parameters
160
+ # @option opts [String] :folder The new document folder.
161
+ # @option opts [BOOLEAN] :is_overwrite If true overwrite the same name file.The default value is false. (default to false)
162
+ # @option opts [String] :storage storage name.
163
+ # @return [SaaSposeResponse]
164
+ def diagram_file_put_create(name, opts = {})
165
+ data, _status_code, _headers = diagram_file_put_create_with_http_info(name, opts)
166
+ return data
167
+ end
168
+
169
+ # Create new diagram and save result to storage.
170
+ #
171
+ # @param name The new document name.
172
+ # @param [Hash] opts the optional parameters
173
+ # @option opts [String] :folder The new document folder.
174
+ # @option opts [BOOLEAN] :is_overwrite If true overwrite the same name file.The default value is false.
175
+ # @option opts [String] :storage storage name.
176
+ # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
177
+ def diagram_file_put_create_with_http_info(name, opts = {})
178
+ if @api_client.config.debugging
179
+ @api_client.config.logger.debug "Calling API: DiagramFileApi.diagram_file_put_create ..."
180
+ end
181
+ # verify the required parameter 'name' is set
182
+ if @api_client.config.client_side_validation && name.nil?
183
+ fail ArgumentError, "Missing the required parameter 'name' when calling DiagramFileApi.diagram_file_put_create"
184
+ end
185
+ # resource path
186
+ local_var_path = "/diagram/{name}".sub('{' + 'name' + '}', name.to_s)
187
+
188
+ # query parameters
189
+ query_params = {}
190
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
191
+ query_params[:'IsOverwrite'] = opts[:'is_overwrite'] if !opts[:'is_overwrite'].nil?
192
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
193
+
194
+ # header parameters
195
+ header_params = {}
196
+ # HTTP header 'Accept' (if needed)
197
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
198
+ # HTTP header 'Content-Type'
199
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
200
+
201
+ # form parameters
202
+ form_params = {}
203
+
204
+ # http body (model)
205
+ post_body = nil
206
+ auth_names = []
207
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
208
+ :header_params => header_params,
209
+ :query_params => query_params,
210
+ :form_params => form_params,
211
+ :body => post_body,
212
+ :auth_names => auth_names,
213
+ :return_type => 'SaaSposeResponse')
214
+ if @api_client.config.debugging
215
+ @api_client.config.logger.debug "API called: DiagramFileApi#diagram_file_put_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
216
+ end
217
+ return data, status_code, headers
218
+ end
219
+
220
+ # Upload file and save result to storage.
221
+ #
222
+ # @param name The document name.
223
+ # @param [Hash] opts the optional parameters
224
+ # @option opts [String] :folder The document folder.
225
+ # @option opts [BOOLEAN] :is_overwrite If true overwrite the same name file.The default value is false. (default to false)
226
+ # @option opts [String] :storage storage name.
227
+ # @return [SaaSposeResponse]
228
+ def diagram_file_put_upload(name, opts = {})
229
+ data, _status_code, _headers = diagram_file_put_upload_with_http_info(name, opts)
230
+ return data
231
+ end
232
+
233
+ # Upload file and save result to storage.
234
+ #
235
+ # @param name The document name.
236
+ # @param [Hash] opts the optional parameters
237
+ # @option opts [String] :folder The document folder.
238
+ # @option opts [BOOLEAN] :is_overwrite If true overwrite the same name file.The default value is false.
239
+ # @option opts [String] :storage storage name.
240
+ # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
241
+ def diagram_file_put_upload_with_http_info(name, opts = {})
242
+ if @api_client.config.debugging
243
+ @api_client.config.logger.debug "Calling API: DiagramFileApi.diagram_file_put_upload ..."
244
+ end
245
+ # verify the required parameter 'name' is set
246
+ if @api_client.config.client_side_validation && name.nil?
247
+ fail ArgumentError, "Missing the required parameter 'name' when calling DiagramFileApi.diagram_file_put_upload"
248
+ end
249
+ # resource path
250
+ local_var_path = "/diagram/{name}/upload".sub('{' + 'name' + '}', name.to_s)
251
+
252
+ # query parameters
253
+ query_params = {}
254
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
255
+ query_params[:'IsOverwrite'] = opts[:'is_overwrite'] if !opts[:'is_overwrite'].nil?
256
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
257
+
258
+ # header parameters
259
+ header_params = {}
260
+ # HTTP header 'Accept' (if needed)
261
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
262
+ # HTTP header 'Content-Type'
263
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
264
+
265
+ # form parameters
266
+ form_params = {}
267
+
268
+ # http body (model)
269
+ post_body = nil
270
+ auth_names = []
271
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
272
+ :header_params => header_params,
273
+ :query_params => query_params,
274
+ :form_params => form_params,
275
+ :body => post_body,
276
+ :auth_names => auth_names,
277
+ :return_type => 'SaaSposeResponse')
278
+ if @api_client.config.debugging
279
+ @api_client.config.logger.debug "API called: DiagramFileApi#diagram_file_put_upload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
280
+ end
281
+ return data, status_code, headers
282
+ end
283
+ end
284
+ end