groupdocs_platform_cloud 1.0.0
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 +7 -0
- data/LICENSE +22 -0
- data/README.md +160 -0
- data/Ruby Mustache Templates/ReadMe.txt +1 -0
- data/Ruby Mustache Templates/api_client.mustache +441 -0
- data/Swagger Specs File/platform.json +1683 -0
- data/groupdocs_platform_cloud.gemspec +26 -0
- data/lib/groupdocs_platform_cloud.rb +72 -0
- data/lib/groupdocs_platform_cloud/api/app_api.rb +359 -0
- data/lib/groupdocs_platform_cloud/api/app_statistics_api.rb +572 -0
- data/lib/groupdocs_platform_cloud/api/auth_api.rb +176 -0
- data/lib/groupdocs_platform_cloud/api/file_api.rb +282 -0
- data/lib/groupdocs_platform_cloud/api/folder_api.rb +267 -0
- data/lib/groupdocs_platform_cloud/api/heroku_api.rb +241 -0
- data/lib/groupdocs_platform_cloud/api/storage_api.rb +249 -0
- data/lib/groupdocs_platform_cloud/api/usage_api.rb +233 -0
- data/lib/groupdocs_platform_cloud/api_client.rb +446 -0
- data/lib/groupdocs_platform_cloud/api_error.rb +38 -0
- data/lib/groupdocs_platform_cloud/configuration.rb +216 -0
- data/lib/groupdocs_platform_cloud/groupdocs_app.rb +20 -0
- data/lib/groupdocs_platform_cloud/models/access_token_list_response.rb +213 -0
- data/lib/groupdocs_platform_cloud/models/access_token_response.rb +211 -0
- data/lib/groupdocs_platform_cloud/models/app.rb +243 -0
- data/lib/groupdocs_platform_cloud/models/app_usage.rb +235 -0
- data/lib/groupdocs_platform_cloud/models/application_usage_response.rb +202 -0
- data/lib/groupdocs_platform_cloud/models/disc_usage.rb +207 -0
- data/lib/groupdocs_platform_cloud/models/disc_usage_response.rb +211 -0
- data/lib/groupdocs_platform_cloud/models/file.rb +253 -0
- data/lib/groupdocs_platform_cloud/models/file_exist.rb +207 -0
- data/lib/groupdocs_platform_cloud/models/file_exist_response.rb +211 -0
- data/lib/groupdocs_platform_cloud/models/file_response.rb +224 -0
- data/lib/groupdocs_platform_cloud/models/file_version.rb +276 -0
- data/lib/groupdocs_platform_cloud/models/file_versions_response.rb +213 -0
- data/lib/groupdocs_platform_cloud/models/folder_response.rb +208 -0
- data/lib/groupdocs_platform_cloud/models/heroku_request.rb +233 -0
- data/lib/groupdocs_platform_cloud/models/heroku_request_options.rb +188 -0
- data/lib/groupdocs_platform_cloud/models/move_file_response.rb +202 -0
- data/lib/groupdocs_platform_cloud/models/move_folder_response.rb +202 -0
- data/lib/groupdocs_platform_cloud/models/remove_file_response.rb +202 -0
- data/lib/groupdocs_platform_cloud/models/remove_folder_response.rb +202 -0
- data/lib/groupdocs_platform_cloud/models/saa_spose_response.rb +202 -0
- data/lib/groupdocs_platform_cloud/models/storage_exist_response.rb +216 -0
- data/lib/groupdocs_platform_cloud/models/user_usage_summary_response.rb +211 -0
- data/lib/groupdocs_platform_cloud/models/user_usage_summary_statistics.rb +291 -0
- data/lib/groupdocs_platform_cloud/version.rb +15 -0
- data/test/data/SampleExecuteTemplate.doc +0 -0
- data/test/data/SampleExecuteTemplateData.txt +49 -0
- data/test/data/SampleWordDocument.docx +0 -0
- data/test/data/buzz.png +0 -0
- data/test/data/testfile.txt +1 -0
- data/test/platform_tests.rb +144 -0
- metadata +156 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "groupdocs_platform_cloud/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "groupdocs_platform_cloud"
|
7
|
+
s.version = GroupDocsPlatformCloud::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["M. Sohail Ismail"]
|
10
|
+
s.email = ["muhammad.sohail@aspose.com"]
|
11
|
+
s.homepage = "https://www.groupdocs.cloud/products/total"
|
12
|
+
s.summary = %q{A powerful API for web apps that work with files.}
|
13
|
+
s.description = %q{This SDK allows you to perform storage operations like download a specific file, upload a specific file, remove a specific file, move a specific file, get the file listing of a specific folder etc. on GroupDocs Cloud Storage.}
|
14
|
+
s.license = "MIT"
|
15
|
+
s.required_ruby_version = ">= 1.9"
|
16
|
+
|
17
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
18
|
+
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
19
|
+
|
20
|
+
s.add_development_dependency 'minitest', '~> 5.8'
|
21
|
+
|
22
|
+
s.files = `git ls-files`.split("\n")
|
23
|
+
s.test_files = `git ls-files -- test/*`.split("\n")
|
24
|
+
s.executables = []
|
25
|
+
s.require_paths = ["lib"]
|
26
|
+
end
|
@@ -0,0 +1,72 @@
|
|
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_relative 'groupdocs_platform_cloud/api_client'
|
15
|
+
require_relative 'groupdocs_platform_cloud/api_error'
|
16
|
+
require_relative 'groupdocs_platform_cloud/version'
|
17
|
+
require_relative 'groupdocs_platform_cloud/groupdocs_app'
|
18
|
+
require_relative 'groupdocs_platform_cloud/configuration'
|
19
|
+
|
20
|
+
# Models
|
21
|
+
require_relative 'groupdocs_platform_cloud/models/app'
|
22
|
+
require_relative 'groupdocs_platform_cloud/models/app_usage'
|
23
|
+
require_relative 'groupdocs_platform_cloud/models/disc_usage'
|
24
|
+
require_relative 'groupdocs_platform_cloud/models/file'
|
25
|
+
require_relative 'groupdocs_platform_cloud/models/file_exist'
|
26
|
+
require_relative 'groupdocs_platform_cloud/models/heroku_request'
|
27
|
+
require_relative 'groupdocs_platform_cloud/models/heroku_request_options'
|
28
|
+
require_relative 'groupdocs_platform_cloud/models/saa_spose_response'
|
29
|
+
require_relative 'groupdocs_platform_cloud/models/user_usage_summary_statistics'
|
30
|
+
require_relative 'groupdocs_platform_cloud/models/access_token_list_response'
|
31
|
+
require_relative 'groupdocs_platform_cloud/models/access_token_response'
|
32
|
+
require_relative 'groupdocs_platform_cloud/models/application_usage_response'
|
33
|
+
require_relative 'groupdocs_platform_cloud/models/disc_usage_response'
|
34
|
+
require_relative 'groupdocs_platform_cloud/models/file_exist_response'
|
35
|
+
require_relative 'groupdocs_platform_cloud/models/file_version'
|
36
|
+
require_relative 'groupdocs_platform_cloud/models/file_versions_response'
|
37
|
+
require_relative 'groupdocs_platform_cloud/models/move_file_response'
|
38
|
+
require_relative 'groupdocs_platform_cloud/models/move_folder_response'
|
39
|
+
require_relative 'groupdocs_platform_cloud/models/remove_file_response'
|
40
|
+
require_relative 'groupdocs_platform_cloud/models/remove_folder_response'
|
41
|
+
require_relative 'groupdocs_platform_cloud/models/storage_exist_response'
|
42
|
+
require_relative 'groupdocs_platform_cloud/models/user_usage_summary_response'
|
43
|
+
require_relative 'groupdocs_platform_cloud/models/folder_response'
|
44
|
+
require_relative 'groupdocs_platform_cloud/models/file_response'
|
45
|
+
|
46
|
+
# APIs
|
47
|
+
require_relative 'groupdocs_platform_cloud/api/app_api'
|
48
|
+
require_relative 'groupdocs_platform_cloud/api/app_statistics_api'
|
49
|
+
require_relative 'groupdocs_platform_cloud/api/auth_api'
|
50
|
+
require_relative 'groupdocs_platform_cloud/api/file_api'
|
51
|
+
require_relative 'groupdocs_platform_cloud/api/folder_api'
|
52
|
+
require_relative 'groupdocs_platform_cloud/api/heroku_api'
|
53
|
+
require_relative 'groupdocs_platform_cloud/api/storage_api'
|
54
|
+
require_relative 'groupdocs_platform_cloud/api/usage_api'
|
55
|
+
|
56
|
+
module GroupDocsPlatformCloud
|
57
|
+
class << self
|
58
|
+
# Customize default settings for the SDK using block.
|
59
|
+
# GroupDocsPlatformCloud.configure do |config|
|
60
|
+
# config.username = "xxx"
|
61
|
+
# config.password = "xxx"
|
62
|
+
# end
|
63
|
+
# If no block given, return the default Configuration object.
|
64
|
+
def configure
|
65
|
+
if block_given?
|
66
|
+
yield(Configuration.default)
|
67
|
+
else
|
68
|
+
Configuration.default
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,359 @@
|
|
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 GroupDocsPlatformCloud
|
16
|
+
class AppApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# Delete Application
|
24
|
+
#
|
25
|
+
# @param name Application Name
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [File]
|
28
|
+
def app_delete(name, opts = {})
|
29
|
+
data, _status_code, _headers = app_delete_with_http_info(name, opts)
|
30
|
+
return data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Delete Application
|
34
|
+
#
|
35
|
+
# @param name Application Name
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
38
|
+
def app_delete_with_http_info(name, opts = {})
|
39
|
+
if @api_client.config.debugging
|
40
|
+
@api_client.config.logger.debug "Calling API: AppApi.app_delete ..."
|
41
|
+
end
|
42
|
+
# verify the required parameter 'name' is set
|
43
|
+
if @api_client.config.client_side_validation && name.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling AppApi.app_delete"
|
45
|
+
end
|
46
|
+
# resource path
|
47
|
+
local_var_path = "/app/{name}".sub('{' + 'name' + '}', name.to_s)
|
48
|
+
|
49
|
+
# query parameters
|
50
|
+
query_params = {}
|
51
|
+
|
52
|
+
# header parameters
|
53
|
+
header_params = {}
|
54
|
+
# HTTP header 'Accept' (if needed)
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
56
|
+
# HTTP header 'Content-Type'
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
58
|
+
|
59
|
+
# form parameters
|
60
|
+
form_params = {}
|
61
|
+
|
62
|
+
# http body (model)
|
63
|
+
post_body = nil
|
64
|
+
auth_names = []
|
65
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
66
|
+
:header_params => header_params,
|
67
|
+
:query_params => query_params,
|
68
|
+
:form_params => form_params,
|
69
|
+
:body => post_body,
|
70
|
+
:auth_names => auth_names,
|
71
|
+
:return_type => 'File')
|
72
|
+
if @api_client.config.debugging
|
73
|
+
@api_client.config.logger.debug "API called: AppApi#app_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
74
|
+
end
|
75
|
+
return data, status_code, headers
|
76
|
+
end
|
77
|
+
|
78
|
+
# Get List of Applications
|
79
|
+
#
|
80
|
+
# @param [Hash] opts the optional parameters
|
81
|
+
# @return [Array<App>]
|
82
|
+
def app_get(opts = {})
|
83
|
+
data, _status_code, _headers = app_get_with_http_info(opts)
|
84
|
+
return data
|
85
|
+
end
|
86
|
+
|
87
|
+
# Get List of Applications
|
88
|
+
#
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [Array<(Array<App>, Fixnum, Hash)>] Array<App> data, response status code and response headers
|
91
|
+
def app_get_with_http_info(opts = {})
|
92
|
+
if @api_client.config.debugging
|
93
|
+
@api_client.config.logger.debug "Calling API: AppApi.app_get ..."
|
94
|
+
end
|
95
|
+
# resource path
|
96
|
+
local_var_path = "/app"
|
97
|
+
|
98
|
+
# query parameters
|
99
|
+
query_params = {}
|
100
|
+
|
101
|
+
# header parameters
|
102
|
+
header_params = {}
|
103
|
+
# HTTP header 'Accept' (if needed)
|
104
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
105
|
+
# HTTP header 'Content-Type'
|
106
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
107
|
+
|
108
|
+
# form parameters
|
109
|
+
form_params = {}
|
110
|
+
|
111
|
+
# http body (model)
|
112
|
+
post_body = nil
|
113
|
+
auth_names = []
|
114
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
115
|
+
:header_params => header_params,
|
116
|
+
:query_params => query_params,
|
117
|
+
:form_params => form_params,
|
118
|
+
:body => post_body,
|
119
|
+
:auth_names => auth_names,
|
120
|
+
:return_type => 'Array<App>')
|
121
|
+
if @api_client.config.debugging
|
122
|
+
@api_client.config.logger.debug "API called: AppApi#app_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
123
|
+
end
|
124
|
+
return data, status_code, headers
|
125
|
+
end
|
126
|
+
|
127
|
+
# Get Application by Name
|
128
|
+
#
|
129
|
+
# @param name Application Name
|
130
|
+
# @param [Hash] opts the optional parameters
|
131
|
+
# @return [App]
|
132
|
+
def app_get_by_name(name, opts = {})
|
133
|
+
data, _status_code, _headers = app_get_by_name_with_http_info(name, opts)
|
134
|
+
return data
|
135
|
+
end
|
136
|
+
|
137
|
+
# Get Application by Name
|
138
|
+
#
|
139
|
+
# @param name Application Name
|
140
|
+
# @param [Hash] opts the optional parameters
|
141
|
+
# @return [Array<(App, Fixnum, Hash)>] App data, response status code and response headers
|
142
|
+
def app_get_by_name_with_http_info(name, opts = {})
|
143
|
+
if @api_client.config.debugging
|
144
|
+
@api_client.config.logger.debug "Calling API: AppApi.app_get_by_name ..."
|
145
|
+
end
|
146
|
+
# verify the required parameter 'name' is set
|
147
|
+
if @api_client.config.client_side_validation && name.nil?
|
148
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling AppApi.app_get_by_name"
|
149
|
+
end
|
150
|
+
# resource path
|
151
|
+
local_var_path = "/app/{name}".sub('{' + 'name' + '}', name.to_s)
|
152
|
+
|
153
|
+
# query parameters
|
154
|
+
query_params = {}
|
155
|
+
|
156
|
+
# header parameters
|
157
|
+
header_params = {}
|
158
|
+
# HTTP header 'Accept' (if needed)
|
159
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
160
|
+
# HTTP header 'Content-Type'
|
161
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
162
|
+
|
163
|
+
# form parameters
|
164
|
+
form_params = {}
|
165
|
+
|
166
|
+
# http body (model)
|
167
|
+
post_body = nil
|
168
|
+
auth_names = []
|
169
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
170
|
+
:header_params => header_params,
|
171
|
+
:query_params => query_params,
|
172
|
+
:form_params => form_params,
|
173
|
+
:body => post_body,
|
174
|
+
:auth_names => auth_names,
|
175
|
+
:return_type => 'App')
|
176
|
+
if @api_client.config.debugging
|
177
|
+
@api_client.config.logger.debug "API called: AppApi#app_get_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
178
|
+
end
|
179
|
+
return data, status_code, headers
|
180
|
+
end
|
181
|
+
|
182
|
+
# Get Application Usage By Period
|
183
|
+
#
|
184
|
+
# @param name Application Name
|
185
|
+
# @param start Period end date
|
186
|
+
# @param _end Period end date
|
187
|
+
# @param [Hash] opts the optional parameters
|
188
|
+
# @return [ApplicationUsageResponse]
|
189
|
+
def app_get_usage(name, start, _end, opts = {})
|
190
|
+
data, _status_code, _headers = app_get_usage_with_http_info(name, start, _end, opts)
|
191
|
+
return data
|
192
|
+
end
|
193
|
+
|
194
|
+
# Get Application Usage By Period
|
195
|
+
#
|
196
|
+
# @param name Application Name
|
197
|
+
# @param start Period end date
|
198
|
+
# @param _end Period end date
|
199
|
+
# @param [Hash] opts the optional parameters
|
200
|
+
# @return [Array<(ApplicationUsageResponse, Fixnum, Hash)>] ApplicationUsageResponse data, response status code and response headers
|
201
|
+
def app_get_usage_with_http_info(name, start, _end, opts = {})
|
202
|
+
if @api_client.config.debugging
|
203
|
+
@api_client.config.logger.debug "Calling API: AppApi.app_get_usage ..."
|
204
|
+
end
|
205
|
+
# verify the required parameter 'name' is set
|
206
|
+
if @api_client.config.client_side_validation && name.nil?
|
207
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling AppApi.app_get_usage"
|
208
|
+
end
|
209
|
+
# verify the required parameter 'start' is set
|
210
|
+
if @api_client.config.client_side_validation && start.nil?
|
211
|
+
fail ArgumentError, "Missing the required parameter 'start' when calling AppApi.app_get_usage"
|
212
|
+
end
|
213
|
+
# verify the required parameter '_end' is set
|
214
|
+
if @api_client.config.client_side_validation && _end.nil?
|
215
|
+
fail ArgumentError, "Missing the required parameter '_end' when calling AppApi.app_get_usage"
|
216
|
+
end
|
217
|
+
# resource path
|
218
|
+
local_var_path = "/app/{name}/usage".sub('{' + 'name' + '}', name.to_s)
|
219
|
+
|
220
|
+
# query parameters
|
221
|
+
query_params = {}
|
222
|
+
query_params[:'start'] = start
|
223
|
+
query_params[:'end'] = _end
|
224
|
+
|
225
|
+
# header parameters
|
226
|
+
header_params = {}
|
227
|
+
# HTTP header 'Accept' (if needed)
|
228
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
229
|
+
# HTTP header 'Content-Type'
|
230
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
231
|
+
|
232
|
+
# form parameters
|
233
|
+
form_params = {}
|
234
|
+
|
235
|
+
# http body (model)
|
236
|
+
post_body = nil
|
237
|
+
auth_names = []
|
238
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
239
|
+
:header_params => header_params,
|
240
|
+
:query_params => query_params,
|
241
|
+
:form_params => form_params,
|
242
|
+
:body => post_body,
|
243
|
+
:auth_names => auth_names,
|
244
|
+
:return_type => 'ApplicationUsageResponse')
|
245
|
+
if @api_client.config.debugging
|
246
|
+
@api_client.config.logger.debug "API called: AppApi#app_get_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
247
|
+
end
|
248
|
+
return data, status_code, headers
|
249
|
+
end
|
250
|
+
|
251
|
+
# Create new Application
|
252
|
+
#
|
253
|
+
# @param [Hash] opts the optional parameters
|
254
|
+
# @option opts [App] :app Application
|
255
|
+
# @return [File]
|
256
|
+
def app_post(opts = {})
|
257
|
+
data, _status_code, _headers = app_post_with_http_info(opts)
|
258
|
+
return data
|
259
|
+
end
|
260
|
+
|
261
|
+
# Create new Application
|
262
|
+
#
|
263
|
+
# @param [Hash] opts the optional parameters
|
264
|
+
# @option opts [App] :app Application
|
265
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
266
|
+
def app_post_with_http_info(opts = {})
|
267
|
+
if @api_client.config.debugging
|
268
|
+
@api_client.config.logger.debug "Calling API: AppApi.app_post ..."
|
269
|
+
end
|
270
|
+
# resource path
|
271
|
+
local_var_path = "/app"
|
272
|
+
|
273
|
+
# query parameters
|
274
|
+
query_params = {}
|
275
|
+
|
276
|
+
# header parameters
|
277
|
+
header_params = {}
|
278
|
+
# HTTP header 'Accept' (if needed)
|
279
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
280
|
+
# HTTP header 'Content-Type'
|
281
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
282
|
+
|
283
|
+
# form parameters
|
284
|
+
form_params = {}
|
285
|
+
|
286
|
+
# http body (model)
|
287
|
+
post_body = @api_client.object_to_http_body(opts[:'app'])
|
288
|
+
auth_names = []
|
289
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
290
|
+
:header_params => header_params,
|
291
|
+
:query_params => query_params,
|
292
|
+
:form_params => form_params,
|
293
|
+
:body => post_body,
|
294
|
+
:auth_names => auth_names,
|
295
|
+
:return_type => 'File')
|
296
|
+
if @api_client.config.debugging
|
297
|
+
@api_client.config.logger.debug "API called: AppApi#app_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
298
|
+
end
|
299
|
+
return data, status_code, headers
|
300
|
+
end
|
301
|
+
|
302
|
+
# Update Application Name
|
303
|
+
#
|
304
|
+
# @param name Application Name
|
305
|
+
# @param [Hash] opts the optional parameters
|
306
|
+
# @option opts [App] :app Application
|
307
|
+
# @return [File]
|
308
|
+
def app_put(name, opts = {})
|
309
|
+
data, _status_code, _headers = app_put_with_http_info(name, opts)
|
310
|
+
return data
|
311
|
+
end
|
312
|
+
|
313
|
+
# Update Application Name
|
314
|
+
#
|
315
|
+
# @param name Application Name
|
316
|
+
# @param [Hash] opts the optional parameters
|
317
|
+
# @option opts [App] :app Application
|
318
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
319
|
+
def app_put_with_http_info(name, opts = {})
|
320
|
+
if @api_client.config.debugging
|
321
|
+
@api_client.config.logger.debug "Calling API: AppApi.app_put ..."
|
322
|
+
end
|
323
|
+
# verify the required parameter 'name' is set
|
324
|
+
if @api_client.config.client_side_validation && name.nil?
|
325
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling AppApi.app_put"
|
326
|
+
end
|
327
|
+
# resource path
|
328
|
+
local_var_path = "/app/{name}".sub('{' + 'name' + '}', name.to_s)
|
329
|
+
|
330
|
+
# query parameters
|
331
|
+
query_params = {}
|
332
|
+
|
333
|
+
# header parameters
|
334
|
+
header_params = {}
|
335
|
+
# HTTP header 'Accept' (if needed)
|
336
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
337
|
+
# HTTP header 'Content-Type'
|
338
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
339
|
+
|
340
|
+
# form parameters
|
341
|
+
form_params = {}
|
342
|
+
|
343
|
+
# http body (model)
|
344
|
+
post_body = @api_client.object_to_http_body(opts[:'app'])
|
345
|
+
auth_names = []
|
346
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
347
|
+
:header_params => header_params,
|
348
|
+
:query_params => query_params,
|
349
|
+
:form_params => form_params,
|
350
|
+
:body => post_body,
|
351
|
+
:auth_names => auth_names,
|
352
|
+
:return_type => 'File')
|
353
|
+
if @api_client.config.debugging
|
354
|
+
@api_client.config.logger.debug "API called: AppApi#app_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
355
|
+
end
|
356
|
+
return data, status_code, headers
|
357
|
+
end
|
358
|
+
end
|
359
|
+
end
|