indexea_client 0.0.9

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.
Files changed (301) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +3413 -0
  4. data/Rakefile +8 -0
  5. data/docs/AccountApi.md +685 -0
  6. data/docs/AccountBean.md +27 -0
  7. data/docs/AccountPasswdBody.md +8 -0
  8. data/docs/AccountPortraitBody.md +7 -0
  9. data/docs/AccountProfileBody.md +8 -0
  10. data/docs/AccountResetpwdBody.md +9 -0
  11. data/docs/AccountSigninBody.md +9 -0
  12. data/docs/AccountSignupBody.md +10 -0
  13. data/docs/AccountsFeedbackBody.md +8 -0
  14. data/docs/AccountsMessageBody.md +8 -0
  15. data/docs/AnalyzeObject.md +8 -0
  16. data/docs/AnalyzeToken.md +11 -0
  17. data/docs/AppBean.md +23 -0
  18. data/docs/AppCompanyBody.md +22 -0
  19. data/docs/AppIndexBody.md +7 -0
  20. data/docs/AppLogAccount.md +9 -0
  21. data/docs/AppLogBean.md +19 -0
  22. data/docs/AppLogsBean.md +9 -0
  23. data/docs/AppMentorBean.md +14 -0
  24. data/docs/AppOauthBody.md +7 -0
  25. data/docs/AppOauthBody1.md +7 -0
  26. data/docs/AppOauthresetsecretBody.md +7 -0
  27. data/docs/AppTokensBody.md +7 -0
  28. data/docs/AppTokensBody1.md +7 -0
  29. data/docs/AppWidgetBody.md +7 -0
  30. data/docs/AppsApi.md +1843 -0
  31. data/docs/AppsAppBody.md +8 -0
  32. data/docs/AppsBody.md +8 -0
  33. data/docs/AutoCompleteItem.md +9 -0
  34. data/docs/BlacklistBean.md +12 -0
  35. data/docs/Bulletin.md +15 -0
  36. data/docs/CompanyBean.md +24 -0
  37. data/docs/ContactForm.md +11 -0
  38. data/docs/CrawlerLog.md +14 -0
  39. data/docs/CrawlerLogs.md +8 -0
  40. data/docs/CrawlerTask.md +16 -0
  41. data/docs/FieldsApi.md +215 -0
  42. data/docs/GlobalApi.md +258 -0
  43. data/docs/GlobalOptionForm.md +8 -0
  44. data/docs/IndexBean.md +26 -0
  45. data/docs/IndexFieldBean.md +8 -0
  46. data/docs/IndexForm.md +15 -0
  47. data/docs/IndexRebuildForm.md +12 -0
  48. data/docs/IndexSettings.md +10 -0
  49. data/docs/IndexSettingsBody.md +7 -0
  50. data/docs/IndexStatBean.md +14 -0
  51. data/docs/IndexSynonymsflushBody.md +7 -0
  52. data/docs/IndexTask.md +13 -0
  53. data/docs/IndexTemplate.md +17 -0
  54. data/docs/IndexTemplates.md +8 -0
  55. data/docs/IndexUploadBody.md +7 -0
  56. data/docs/IndicesApi.md +1620 -0
  57. data/docs/IntelligentMapping.md +8 -0
  58. data/docs/KeywordBindingBean.md +14 -0
  59. data/docs/MentorForm.md +8 -0
  60. data/docs/Message.md +18 -0
  61. data/docs/MessageApi.md +262 -0
  62. data/docs/Messages.md +8 -0
  63. data/docs/OauthAppBean.md +20 -0
  64. data/docs/OpenidBean.md +10 -0
  65. data/docs/OptionForm.md +10 -0
  66. data/docs/OrdersIdentBody.md +7 -0
  67. data/docs/PayResult.md +9 -0
  68. data/docs/PaymentApi.md +788 -0
  69. data/docs/PaymentInvoice.md +15 -0
  70. data/docs/PaymentOrder.md +25 -0
  71. data/docs/PaymentRecord.md +13 -0
  72. data/docs/PaymentService.md +12 -0
  73. data/docs/QueriesApi.md +1821 -0
  74. data/docs/QueryActionBean.md +27 -0
  75. data/docs/QueryBean.md +22 -0
  76. data/docs/QueryForm.md +15 -0
  77. data/docs/QueryNode.md +10 -0
  78. data/docs/QuerySortField.md +9 -0
  79. data/docs/QueryVariableBean.md +17 -0
  80. data/docs/RecommendApi.md +365 -0
  81. data/docs/RecommendBean.md +18 -0
  82. data/docs/RecordFilter.md +10 -0
  83. data/docs/RecordsApi.md +286 -0
  84. data/docs/SearchApi.md +646 -0
  85. data/docs/SearchEstimateResult.md +11 -0
  86. data/docs/SearchWord.md +8 -0
  87. data/docs/StatIndexBean.md +14 -0
  88. data/docs/StatsApi.md +245 -0
  89. data/docs/SynonymsBean.md +14 -0
  90. data/docs/TokenBean.md +12 -0
  91. data/docs/TriggerBean.md +13 -0
  92. data/docs/TriggerLogBean.md +15 -0
  93. data/docs/ValueOfField.md +8 -0
  94. data/docs/WidgetBean.md +21 -0
  95. data/docs/WidgetForm.md +13 -0
  96. data/docs/WidgetLogo.md +7 -0
  97. data/docs/WidgetLogoBody.md +7 -0
  98. data/docs/WidgetStatusForm.md +8 -0
  99. data/docs/WidgetsApi.md +573 -0
  100. data/git_push.sh +55 -0
  101. data/indexea_client.gemspec +38 -0
  102. data/lib/indexea_client/api/account_api.rb +846 -0
  103. data/lib/indexea_client/api/apps_api.rb +2271 -0
  104. data/lib/indexea_client/api/fields_api.rb +289 -0
  105. data/lib/indexea_client/api/global_api.rb +326 -0
  106. data/lib/indexea_client/api/indices_api.rb +2076 -0
  107. data/lib/indexea_client/api/message_api.rb +337 -0
  108. data/lib/indexea_client/api/payment_api.rb +975 -0
  109. data/lib/indexea_client/api/queries_api.rb +2320 -0
  110. data/lib/indexea_client/api/recommend_api.rb +461 -0
  111. data/lib/indexea_client/api/records_api.rb +375 -0
  112. data/lib/indexea_client/api/search_api.rb +892 -0
  113. data/lib/indexea_client/api/stats_api.rb +312 -0
  114. data/lib/indexea_client/api/widgets_api.rb +741 -0
  115. data/lib/indexea_client/api_client.rb +391 -0
  116. data/lib/indexea_client/api_error.rb +57 -0
  117. data/lib/indexea_client/configuration.rb +205 -0
  118. data/lib/indexea_client/models/account_bean.rb +396 -0
  119. data/lib/indexea_client/models/account_passwd_body.rb +227 -0
  120. data/lib/indexea_client/models/account_portrait_body.rb +206 -0
  121. data/lib/indexea_client/models/account_profile_body.rb +228 -0
  122. data/lib/indexea_client/models/account_resetpwd_body.rb +240 -0
  123. data/lib/indexea_client/models/account_signin_body.rb +237 -0
  124. data/lib/indexea_client/models/account_signup_body.rb +254 -0
  125. data/lib/indexea_client/models/accounts_feedback_body.rb +262 -0
  126. data/lib/indexea_client/models/accounts_message_body.rb +226 -0
  127. data/lib/indexea_client/models/analyze_object.rb +216 -0
  128. data/lib/indexea_client/models/analyze_token.rb +243 -0
  129. data/lib/indexea_client/models/app_bean.rb +360 -0
  130. data/lib/indexea_client/models/app_company_body.rb +357 -0
  131. data/lib/indexea_client/models/app_index_body.rb +212 -0
  132. data/lib/indexea_client/models/app_log_account.rb +224 -0
  133. data/lib/indexea_client/models/app_log_bean.rb +318 -0
  134. data/lib/indexea_client/models/app_logs_bean.rb +229 -0
  135. data/lib/indexea_client/models/app_mentor_bean.rb +277 -0
  136. data/lib/indexea_client/models/app_oauth_body.rb +206 -0
  137. data/lib/indexea_client/models/app_oauth_body_1.rb +212 -0
  138. data/lib/indexea_client/models/app_oauthresetsecret_body.rb +212 -0
  139. data/lib/indexea_client/models/app_tokens_body.rb +212 -0
  140. data/lib/indexea_client/models/app_tokens_body_1.rb +212 -0
  141. data/lib/indexea_client/models/app_widget_body.rb +212 -0
  142. data/lib/indexea_client/models/apps_app_body.rb +216 -0
  143. data/lib/indexea_client/models/apps_body.rb +221 -0
  144. data/lib/indexea_client/models/auto_complete_item.rb +224 -0
  145. data/lib/indexea_client/models/blacklist_bean.rb +258 -0
  146. data/lib/indexea_client/models/bulletin.rb +312 -0
  147. data/lib/indexea_client/models/company_bean.rb +378 -0
  148. data/lib/indexea_client/models/contact_form.rb +258 -0
  149. data/lib/indexea_client/models/crawler_log.rb +270 -0
  150. data/lib/indexea_client/models/crawler_logs.rb +217 -0
  151. data/lib/indexea_client/models/crawler_task.rb +288 -0
  152. data/lib/indexea_client/models/global_option_form.rb +218 -0
  153. data/lib/indexea_client/models/index_bean.rb +390 -0
  154. data/lib/indexea_client/models/index_field_bean.rb +217 -0
  155. data/lib/indexea_client/models/index_form.rb +283 -0
  156. data/lib/indexea_client/models/index_rebuild_form.rb +254 -0
  157. data/lib/indexea_client/models/index_settings.rb +234 -0
  158. data/lib/indexea_client/models/index_settings_body.rb +212 -0
  159. data/lib/indexea_client/models/index_stat_bean.rb +270 -0
  160. data/lib/indexea_client/models/index_synonymsflush_body.rb +212 -0
  161. data/lib/indexea_client/models/index_task.rb +261 -0
  162. data/lib/indexea_client/models/index_template.rb +299 -0
  163. data/lib/indexea_client/models/index_templates.rb +219 -0
  164. data/lib/indexea_client/models/index_upload_body.rb +208 -0
  165. data/lib/indexea_client/models/intelligent_mapping.rb +217 -0
  166. data/lib/indexea_client/models/keyword_binding_bean.rb +274 -0
  167. data/lib/indexea_client/models/mentor_form.rb +220 -0
  168. data/lib/indexea_client/models/message.rb +306 -0
  169. data/lib/indexea_client/models/messages.rb +217 -0
  170. data/lib/indexea_client/models/oauth_app_bean.rb +329 -0
  171. data/lib/indexea_client/models/openid_bean.rb +238 -0
  172. data/lib/indexea_client/models/option_form.rb +287 -0
  173. data/lib/indexea_client/models/orders_ident_body.rb +206 -0
  174. data/lib/indexea_client/models/pay_result.rb +258 -0
  175. data/lib/indexea_client/models/payment_invoice.rb +283 -0
  176. data/lib/indexea_client/models/payment_order.rb +412 -0
  177. data/lib/indexea_client/models/payment_record.rb +261 -0
  178. data/lib/indexea_client/models/payment_service.rb +258 -0
  179. data/lib/indexea_client/models/query_action_bean.rb +391 -0
  180. data/lib/indexea_client/models/query_bean.rb +348 -0
  181. data/lib/indexea_client/models/query_form.rb +285 -0
  182. data/lib/indexea_client/models/query_node.rb +234 -0
  183. data/lib/indexea_client/models/query_sort_field.rb +264 -0
  184. data/lib/indexea_client/models/query_variable_bean.rb +335 -0
  185. data/lib/indexea_client/models/recommend_bean.rb +318 -0
  186. data/lib/indexea_client/models/record_filter.rb +242 -0
  187. data/lib/indexea_client/models/search_estimate_result.rb +242 -0
  188. data/lib/indexea_client/models/search_word.rb +218 -0
  189. data/lib/indexea_client/models/stat_index_bean.rb +270 -0
  190. data/lib/indexea_client/models/synonyms_bean.rb +274 -0
  191. data/lib/indexea_client/models/token_bean.rb +252 -0
  192. data/lib/indexea_client/models/trigger_bean.rb +263 -0
  193. data/lib/indexea_client/models/trigger_log_bean.rb +279 -0
  194. data/lib/indexea_client/models/value_of_field.rb +217 -0
  195. data/lib/indexea_client/models/widget_bean.rb +387 -0
  196. data/lib/indexea_client/models/widget_form.rb +328 -0
  197. data/lib/indexea_client/models/widget_logo.rb +206 -0
  198. data/lib/indexea_client/models/widget_logo_body.rb +206 -0
  199. data/lib/indexea_client/models/widget_status_form.rb +223 -0
  200. data/lib/indexea_client/version.rb +14 -0
  201. data/lib/indexea_client.rb +133 -0
  202. data/spec/api/account_api_spec.rb +200 -0
  203. data/spec/api/apps_api_spec.rb +492 -0
  204. data/spec/api/fields_api_spec.rb +86 -0
  205. data/spec/api/global_api_spec.rb +98 -0
  206. data/spec/api/indices_api_spec.rb +434 -0
  207. data/spec/api/message_api_spec.rb +96 -0
  208. data/spec/api/payment_api_spec.rb +227 -0
  209. data/spec/api/queries_api_spec.rb +482 -0
  210. data/spec/api/recommend_api_spec.rb +125 -0
  211. data/spec/api/records_api_spec.rb +107 -0
  212. data/spec/api/search_api_spec.rb +220 -0
  213. data/spec/api/stats_api_spec.rb +99 -0
  214. data/spec/api/widgets_api_spec.rb +174 -0
  215. data/spec/api_client_spec.rb +225 -0
  216. data/spec/base_object_spec.rb +109 -0
  217. data/spec/configuration_spec.rb +41 -0
  218. data/spec/models/account_bean_spec.rb +160 -0
  219. data/spec/models/account_passwd_body_spec.rb +46 -0
  220. data/spec/models/account_portrait_body_spec.rb +40 -0
  221. data/spec/models/account_profile_body_spec.rb +46 -0
  222. data/spec/models/account_resetpwd_body_spec.rb +52 -0
  223. data/spec/models/account_signin_body_spec.rb +52 -0
  224. data/spec/models/account_signup_body_spec.rb +58 -0
  225. data/spec/models/accounts_feedback_body_spec.rb +50 -0
  226. data/spec/models/accounts_message_body_spec.rb +46 -0
  227. data/spec/models/analyze_object_spec.rb +46 -0
  228. data/spec/models/analyze_token_spec.rb +64 -0
  229. data/spec/models/app_bean_spec.rb +136 -0
  230. data/spec/models/app_company_body_spec.rb +130 -0
  231. data/spec/models/app_index_body_spec.rb +40 -0
  232. data/spec/models/app_log_account_spec.rb +52 -0
  233. data/spec/models/app_log_bean_spec.rb +112 -0
  234. data/spec/models/app_logs_bean_spec.rb +52 -0
  235. data/spec/models/app_mentor_bean_spec.rb +82 -0
  236. data/spec/models/app_oauth_body_1_spec.rb +40 -0
  237. data/spec/models/app_oauth_body_spec.rb +40 -0
  238. data/spec/models/app_oauthresetsecret_body_spec.rb +40 -0
  239. data/spec/models/app_tokens_body_1_spec.rb +40 -0
  240. data/spec/models/app_tokens_body_spec.rb +40 -0
  241. data/spec/models/app_widget_body_spec.rb +40 -0
  242. data/spec/models/apps_app_body_spec.rb +46 -0
  243. data/spec/models/apps_body_spec.rb +46 -0
  244. data/spec/models/auto_complete_item_spec.rb +52 -0
  245. data/spec/models/blacklist_bean_spec.rb +70 -0
  246. data/spec/models/bulletin_spec.rb +92 -0
  247. data/spec/models/company_bean_spec.rb +142 -0
  248. data/spec/models/contact_form_spec.rb +64 -0
  249. data/spec/models/crawler_log_spec.rb +82 -0
  250. data/spec/models/crawler_logs_spec.rb +46 -0
  251. data/spec/models/crawler_task_spec.rb +94 -0
  252. data/spec/models/global_option_form_spec.rb +46 -0
  253. data/spec/models/index_bean_spec.rb +154 -0
  254. data/spec/models/index_field_bean_spec.rb +46 -0
  255. data/spec/models/index_form_spec.rb +88 -0
  256. data/spec/models/index_rebuild_form_spec.rb +70 -0
  257. data/spec/models/index_settings_body_spec.rb +40 -0
  258. data/spec/models/index_settings_spec.rb +58 -0
  259. data/spec/models/index_stat_bean_spec.rb +82 -0
  260. data/spec/models/index_synonymsflush_body_spec.rb +40 -0
  261. data/spec/models/index_task_spec.rb +76 -0
  262. data/spec/models/index_template_spec.rb +100 -0
  263. data/spec/models/index_templates_spec.rb +46 -0
  264. data/spec/models/index_upload_body_spec.rb +40 -0
  265. data/spec/models/intelligent_mapping_spec.rb +46 -0
  266. data/spec/models/keyword_binding_bean_spec.rb +82 -0
  267. data/spec/models/mentor_form_spec.rb +46 -0
  268. data/spec/models/message_spec.rb +106 -0
  269. data/spec/models/messages_spec.rb +46 -0
  270. data/spec/models/oauth_app_bean_spec.rb +118 -0
  271. data/spec/models/openid_bean_spec.rb +58 -0
  272. data/spec/models/option_form_spec.rb +62 -0
  273. data/spec/models/orders_ident_body_spec.rb +40 -0
  274. data/spec/models/pay_result_spec.rb +56 -0
  275. data/spec/models/payment_invoice_spec.rb +88 -0
  276. data/spec/models/payment_order_spec.rb +152 -0
  277. data/spec/models/payment_record_spec.rb +76 -0
  278. data/spec/models/payment_service_spec.rb +70 -0
  279. data/spec/models/query_action_bean_spec.rb +160 -0
  280. data/spec/models/query_bean_spec.rb +130 -0
  281. data/spec/models/query_form_spec.rb +88 -0
  282. data/spec/models/query_node_spec.rb +58 -0
  283. data/spec/models/query_sort_field_spec.rb +56 -0
  284. data/spec/models/query_variable_bean_spec.rb +104 -0
  285. data/spec/models/recommend_bean_spec.rb +106 -0
  286. data/spec/models/record_filter_spec.rb +58 -0
  287. data/spec/models/search_estimate_result_spec.rb +64 -0
  288. data/spec/models/search_word_spec.rb +46 -0
  289. data/spec/models/stat_index_bean_spec.rb +82 -0
  290. data/spec/models/synonyms_bean_spec.rb +82 -0
  291. data/spec/models/token_bean_spec.rb +70 -0
  292. data/spec/models/trigger_bean_spec.rb +76 -0
  293. data/spec/models/trigger_log_bean_spec.rb +88 -0
  294. data/spec/models/value_of_field_spec.rb +46 -0
  295. data/spec/models/widget_bean_spec.rb +132 -0
  296. data/spec/models/widget_form_spec.rb +84 -0
  297. data/spec/models/widget_logo_body_spec.rb +40 -0
  298. data/spec/models/widget_logo_spec.rb +40 -0
  299. data/spec/models/widget_status_form_spec.rb +46 -0
  300. data/spec/spec_helper.rb +110 -0
  301. metadata +501 -0
@@ -0,0 +1,2271 @@
1
+ =begin
2
+ #Indexea OpenAPI
3
+
4
+ #OpenAPI of Indexea
5
+
6
+ OpenAPI spec version: 1.0.0
7
+ Contact: indexea.com@gmail.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.54
10
+ =end
11
+
12
+ module IndexeaClient
13
+ class AppsApi
14
+ attr_accessor :api_client
15
+
16
+ def initialize(api_client = ApiClient.default)
17
+ @api_client = api_client
18
+ end
19
+ # 添加应用成员
20
+ # @param app 应用标识
21
+ # @param account 成员账号
22
+ # @param scopes 权限
23
+ # @param [Hash] opts the optional parameters
24
+ # @option opts [String] :name 备注名称
25
+ # @return [MentorForm]
26
+ def app_add_mentor(app, account, scopes, opts = {})
27
+ data, _status_code, _headers = app_add_mentor_with_http_info(app, account, scopes, opts)
28
+ data
29
+ end
30
+
31
+ # 添加应用成员
32
+ # @param app 应用标识
33
+ # @param account 成员账号
34
+ # @param scopes 权限
35
+ # @param [Hash] opts the optional parameters
36
+ # @option opts [String] :name 备注名称
37
+ # @return [Array<(MentorForm, Integer, Hash)>] MentorForm data, response status code and response headers
38
+ def app_add_mentor_with_http_info(app, account, scopes, opts = {})
39
+ if @api_client.config.debugging
40
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_add_mentor ...'
41
+ end
42
+ # verify the required parameter 'app' is set
43
+ if @api_client.config.client_side_validation && app.nil?
44
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_add_mentor"
45
+ end
46
+ # verify the required parameter 'account' is set
47
+ if @api_client.config.client_side_validation && account.nil?
48
+ fail ArgumentError, "Missing the required parameter 'account' when calling AppsApi.app_add_mentor"
49
+ end
50
+ # verify the required parameter 'scopes' is set
51
+ if @api_client.config.client_side_validation && scopes.nil?
52
+ fail ArgumentError, "Missing the required parameter 'scopes' when calling AppsApi.app_add_mentor"
53
+ end
54
+ # resource path
55
+ local_var_path = '/apps/{app}/mentors'.sub('{' + 'app' + '}', app.to_s)
56
+
57
+ # query parameters
58
+ query_params = opts[:query_params] || {}
59
+ query_params[:'account'] = account
60
+ query_params[:'scopes'] = scopes
61
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
62
+
63
+ # header parameters
64
+ header_params = opts[:header_params] || {}
65
+ # HTTP header 'Accept' (if needed)
66
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
67
+
68
+ # form parameters
69
+ form_params = opts[:form_params] || {}
70
+
71
+ # http body (model)
72
+ post_body = opts[:body]
73
+
74
+ return_type = opts[:return_type] || 'MentorForm'
75
+
76
+ auth_names = opts[:auth_names] || ['TokenAuth']
77
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
78
+ :header_params => header_params,
79
+ :query_params => query_params,
80
+ :form_params => form_params,
81
+ :body => post_body,
82
+ :auth_names => auth_names,
83
+ :return_type => return_type)
84
+
85
+ if @api_client.config.debugging
86
+ @api_client.config.logger.debug "API called: AppsApi#app_add_mentor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
+ end
88
+ return data, status_code, headers
89
+ end
90
+ # 获取黑名单信息
91
+ # @param app 应用标识
92
+ # @param [Hash] opts the optional parameters
93
+ # @return [BlacklistBean]
94
+ def app_blacklist(app, opts = {})
95
+ data, _status_code, _headers = app_blacklist_with_http_info(app, opts)
96
+ data
97
+ end
98
+
99
+ # 获取黑名单信息
100
+ # @param app 应用标识
101
+ # @param [Hash] opts the optional parameters
102
+ # @return [Array<(BlacklistBean, Integer, Hash)>] BlacklistBean data, response status code and response headers
103
+ def app_blacklist_with_http_info(app, opts = {})
104
+ if @api_client.config.debugging
105
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_blacklist ...'
106
+ end
107
+ # verify the required parameter 'app' is set
108
+ if @api_client.config.client_side_validation && app.nil?
109
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_blacklist"
110
+ end
111
+ # resource path
112
+ local_var_path = '/apps/{app}/blacklist'.sub('{' + 'app' + '}', app.to_s)
113
+
114
+ # query parameters
115
+ query_params = opts[:query_params] || {}
116
+
117
+ # header parameters
118
+ header_params = opts[:header_params] || {}
119
+ # HTTP header 'Accept' (if needed)
120
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
121
+
122
+ # form parameters
123
+ form_params = opts[:form_params] || {}
124
+
125
+ # http body (model)
126
+ post_body = opts[:body]
127
+
128
+ return_type = opts[:return_type] || 'BlacklistBean'
129
+
130
+ auth_names = opts[:auth_names] || ['TokenAuth']
131
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
132
+ :header_params => header_params,
133
+ :query_params => query_params,
134
+ :form_params => form_params,
135
+ :body => post_body,
136
+ :auth_names => auth_names,
137
+ :return_type => return_type)
138
+
139
+ if @api_client.config.debugging
140
+ @api_client.config.logger.debug "API called: AppsApi#app_blacklist\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
141
+ end
142
+ return data, status_code, headers
143
+ end
144
+ # 创建应用
145
+ # @param [Hash] opts the optional parameters
146
+ # @option opts [String] :name
147
+ # @option opts [String] :intro
148
+ # @return [AppBean]
149
+ def app_create(opts = {})
150
+ data, _status_code, _headers = app_create_with_http_info(opts)
151
+ data
152
+ end
153
+
154
+ # 创建应用
155
+ # @param [Hash] opts the optional parameters
156
+ # @option opts [String] :name
157
+ # @option opts [String] :intro
158
+ # @return [Array<(AppBean, Integer, Hash)>] AppBean data, response status code and response headers
159
+ def app_create_with_http_info(opts = {})
160
+ if @api_client.config.debugging
161
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_create ...'
162
+ end
163
+ # resource path
164
+ local_var_path = '/apps'
165
+
166
+ # query parameters
167
+ query_params = opts[:query_params] || {}
168
+
169
+ # header parameters
170
+ header_params = opts[:header_params] || {}
171
+ # HTTP header 'Accept' (if needed)
172
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
173
+ # HTTP header 'Content-Type'
174
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
175
+
176
+ # form parameters
177
+ form_params = opts[:form_params] || {}
178
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
179
+ form_params['intro'] = opts[:'intro'] if !opts[:'intro'].nil?
180
+
181
+ # http body (model)
182
+ post_body = opts[:body]
183
+
184
+ return_type = opts[:return_type] || 'AppBean'
185
+
186
+ auth_names = opts[:auth_names] || ['TokenAuth']
187
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
188
+ :header_params => header_params,
189
+ :query_params => query_params,
190
+ :form_params => form_params,
191
+ :body => post_body,
192
+ :auth_names => auth_names,
193
+ :return_type => return_type)
194
+
195
+ if @api_client.config.debugging
196
+ @api_client.config.logger.debug "API called: AppsApi#app_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
197
+ end
198
+ return data, status_code, headers
199
+ end
200
+ # 创建 Access Token
201
+ # @param body
202
+ # @param app 应用标识
203
+ # @param [Hash] opts the optional parameters
204
+ # @return [TokenBean]
205
+ def app_create_access_token(body, app, opts = {})
206
+ data, _status_code, _headers = app_create_access_token_with_http_info(body, app, opts)
207
+ data
208
+ end
209
+
210
+ # 创建 Access Token
211
+ # @param body
212
+ # @param app 应用标识
213
+ # @param [Hash] opts the optional parameters
214
+ # @return [Array<(TokenBean, Integer, Hash)>] TokenBean data, response status code and response headers
215
+ def app_create_access_token_with_http_info(body, app, opts = {})
216
+ if @api_client.config.debugging
217
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_create_access_token ...'
218
+ end
219
+ # verify the required parameter 'body' is set
220
+ if @api_client.config.client_side_validation && body.nil?
221
+ fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.app_create_access_token"
222
+ end
223
+ # verify the required parameter 'app' is set
224
+ if @api_client.config.client_side_validation && app.nil?
225
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_create_access_token"
226
+ end
227
+ # resource path
228
+ local_var_path = '/apps/{app}/tokens'.sub('{' + 'app' + '}', app.to_s)
229
+
230
+ # query parameters
231
+ query_params = opts[:query_params] || {}
232
+
233
+ # header parameters
234
+ header_params = opts[:header_params] || {}
235
+ # HTTP header 'Accept' (if needed)
236
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
237
+ # HTTP header 'Content-Type'
238
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
239
+
240
+ # form parameters
241
+ form_params = opts[:form_params] || {}
242
+
243
+ # http body (model)
244
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
245
+
246
+ return_type = opts[:return_type] || 'TokenBean'
247
+
248
+ auth_names = opts[:auth_names] || ['TokenAuth']
249
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
250
+ :header_params => header_params,
251
+ :query_params => query_params,
252
+ :form_params => form_params,
253
+ :body => post_body,
254
+ :auth_names => auth_names,
255
+ :return_type => return_type)
256
+
257
+ if @api_client.config.debugging
258
+ @api_client.config.logger.debug "API called: AppsApi#app_create_access_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
259
+ end
260
+ return data, status_code, headers
261
+ end
262
+ # 创建第三方应用
263
+ # @param body
264
+ # @param app 应用标识
265
+ # @param [Hash] opts the optional parameters
266
+ # @return [OauthAppBean]
267
+ def app_create_oauth_app(body, app, opts = {})
268
+ data, _status_code, _headers = app_create_oauth_app_with_http_info(body, app, opts)
269
+ data
270
+ end
271
+
272
+ # 创建第三方应用
273
+ # @param body
274
+ # @param app 应用标识
275
+ # @param [Hash] opts the optional parameters
276
+ # @return [Array<(OauthAppBean, Integer, Hash)>] OauthAppBean data, response status code and response headers
277
+ def app_create_oauth_app_with_http_info(body, app, opts = {})
278
+ if @api_client.config.debugging
279
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_create_oauth_app ...'
280
+ end
281
+ # verify the required parameter 'body' is set
282
+ if @api_client.config.client_side_validation && body.nil?
283
+ fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.app_create_oauth_app"
284
+ end
285
+ # verify the required parameter 'app' is set
286
+ if @api_client.config.client_side_validation && app.nil?
287
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_create_oauth_app"
288
+ end
289
+ # resource path
290
+ local_var_path = '/apps/{app}/oauth'.sub('{' + 'app' + '}', app.to_s)
291
+
292
+ # query parameters
293
+ query_params = opts[:query_params] || {}
294
+
295
+ # header parameters
296
+ header_params = opts[:header_params] || {}
297
+ # HTTP header 'Accept' (if needed)
298
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
299
+ # HTTP header 'Content-Type'
300
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
301
+
302
+ # form parameters
303
+ form_params = opts[:form_params] || {}
304
+
305
+ # http body (model)
306
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
307
+
308
+ return_type = opts[:return_type] || 'OauthAppBean'
309
+
310
+ auth_names = opts[:auth_names] || ['TokenAuth']
311
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
312
+ :header_params => header_params,
313
+ :query_params => query_params,
314
+ :form_params => form_params,
315
+ :body => post_body,
316
+ :auth_names => auth_names,
317
+ :return_type => return_type)
318
+
319
+ if @api_client.config.debugging
320
+ @api_client.config.logger.debug "API called: AppsApi#app_create_oauth_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
321
+ end
322
+ return data, status_code, headers
323
+ end
324
+ # 删除应用
325
+ # @param app 应用标识
326
+ # @param [Hash] opts the optional parameters
327
+ # @return [BOOLEAN]
328
+ def app_delete(app, opts = {})
329
+ data, _status_code, _headers = app_delete_with_http_info(app, opts)
330
+ data
331
+ end
332
+
333
+ # 删除应用
334
+ # @param app 应用标识
335
+ # @param [Hash] opts the optional parameters
336
+ # @return [Array<(BOOLEAN, Integer, Hash)>] BOOLEAN data, response status code and response headers
337
+ def app_delete_with_http_info(app, opts = {})
338
+ if @api_client.config.debugging
339
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_delete ...'
340
+ end
341
+ # verify the required parameter 'app' is set
342
+ if @api_client.config.client_side_validation && app.nil?
343
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_delete"
344
+ end
345
+ # resource path
346
+ local_var_path = '/apps/{app}'.sub('{' + 'app' + '}', app.to_s)
347
+
348
+ # query parameters
349
+ query_params = opts[:query_params] || {}
350
+
351
+ # header parameters
352
+ header_params = opts[:header_params] || {}
353
+ # HTTP header 'Accept' (if needed)
354
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
355
+
356
+ # form parameters
357
+ form_params = opts[:form_params] || {}
358
+
359
+ # http body (model)
360
+ post_body = opts[:body]
361
+
362
+ return_type = opts[:return_type] || 'BOOLEAN'
363
+
364
+ auth_names = opts[:auth_names] || ['TokenAuth']
365
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
366
+ :header_params => header_params,
367
+ :query_params => query_params,
368
+ :form_params => form_params,
369
+ :body => post_body,
370
+ :auth_names => auth_names,
371
+ :return_type => return_type)
372
+
373
+ if @api_client.config.debugging
374
+ @api_client.config.logger.debug "API called: AppsApi#app_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
375
+ end
376
+ return data, status_code, headers
377
+ end
378
+ # 删除 Access Token
379
+ # @param id Access Token 编号
380
+ # @param app 应用标识
381
+ # @param [Hash] opts the optional parameters
382
+ # @option opts [String] :vcode
383
+ # @return [BOOLEAN]
384
+ def app_delete_access_token(id, app, opts = {})
385
+ data, _status_code, _headers = app_delete_access_token_with_http_info(id, app, opts)
386
+ data
387
+ end
388
+
389
+ # 删除 Access Token
390
+ # @param id Access Token 编号
391
+ # @param app 应用标识
392
+ # @param [Hash] opts the optional parameters
393
+ # @option opts [String] :vcode
394
+ # @return [Array<(BOOLEAN, Integer, Hash)>] BOOLEAN data, response status code and response headers
395
+ def app_delete_access_token_with_http_info(id, app, opts = {})
396
+ if @api_client.config.debugging
397
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_delete_access_token ...'
398
+ end
399
+ # verify the required parameter 'id' is set
400
+ if @api_client.config.client_side_validation && id.nil?
401
+ fail ArgumentError, "Missing the required parameter 'id' when calling AppsApi.app_delete_access_token"
402
+ end
403
+ # verify the required parameter 'app' is set
404
+ if @api_client.config.client_side_validation && app.nil?
405
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_delete_access_token"
406
+ end
407
+ # resource path
408
+ local_var_path = '/apps/{app}/tokens'.sub('{' + 'app' + '}', app.to_s)
409
+
410
+ # query parameters
411
+ query_params = opts[:query_params] || {}
412
+ query_params[:'id'] = id
413
+
414
+ # header parameters
415
+ header_params = opts[: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/x-www-form-urlencoded'])
420
+
421
+ # form parameters
422
+ form_params = opts[:form_params] || {}
423
+ form_params['vcode'] = opts[:'vcode'] if !opts[:'vcode'].nil?
424
+
425
+ # http body (model)
426
+ post_body = opts[:body]
427
+
428
+ return_type = opts[:return_type] || 'BOOLEAN'
429
+
430
+ auth_names = opts[:auth_names] || ['TokenAuth']
431
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
432
+ :header_params => header_params,
433
+ :query_params => query_params,
434
+ :form_params => form_params,
435
+ :body => post_body,
436
+ :auth_names => auth_names,
437
+ :return_type => return_type)
438
+
439
+ if @api_client.config.debugging
440
+ @api_client.config.logger.debug "API called: AppsApi#app_delete_access_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
441
+ end
442
+ return data, status_code, headers
443
+ end
444
+ # 删除应用成员
445
+ # @param app 应用标识
446
+ # @param account 成员编号
447
+ # @param [Hash] opts the optional parameters
448
+ # @return [BOOLEAN]
449
+ def app_delete_mentor(app, account, opts = {})
450
+ data, _status_code, _headers = app_delete_mentor_with_http_info(app, account, opts)
451
+ data
452
+ end
453
+
454
+ # 删除应用成员
455
+ # @param app 应用标识
456
+ # @param account 成员编号
457
+ # @param [Hash] opts the optional parameters
458
+ # @return [Array<(BOOLEAN, Integer, Hash)>] BOOLEAN data, response status code and response headers
459
+ def app_delete_mentor_with_http_info(app, account, opts = {})
460
+ if @api_client.config.debugging
461
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_delete_mentor ...'
462
+ end
463
+ # verify the required parameter 'app' is set
464
+ if @api_client.config.client_side_validation && app.nil?
465
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_delete_mentor"
466
+ end
467
+ # verify the required parameter 'account' is set
468
+ if @api_client.config.client_side_validation && account.nil?
469
+ fail ArgumentError, "Missing the required parameter 'account' when calling AppsApi.app_delete_mentor"
470
+ end
471
+ # resource path
472
+ local_var_path = '/apps/{app}/mentors'.sub('{' + 'app' + '}', app.to_s)
473
+
474
+ # query parameters
475
+ query_params = opts[:query_params] || {}
476
+ query_params[:'account'] = account
477
+
478
+ # header parameters
479
+ header_params = opts[:header_params] || {}
480
+ # HTTP header 'Accept' (if needed)
481
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
482
+
483
+ # form parameters
484
+ form_params = opts[:form_params] || {}
485
+
486
+ # http body (model)
487
+ post_body = opts[:body]
488
+
489
+ return_type = opts[:return_type] || 'BOOLEAN'
490
+
491
+ auth_names = opts[:auth_names] || ['TokenAuth']
492
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
493
+ :header_params => header_params,
494
+ :query_params => query_params,
495
+ :form_params => form_params,
496
+ :body => post_body,
497
+ :auth_names => auth_names,
498
+ :return_type => return_type)
499
+
500
+ if @api_client.config.debugging
501
+ @api_client.config.logger.debug "API called: AppsApi#app_delete_mentor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
502
+ end
503
+ return data, status_code, headers
504
+ end
505
+ # 删除第三方应用
506
+ # @param ident 三方应用编号
507
+ # @param app 应用标识
508
+ # @param [Hash] opts the optional parameters
509
+ # @option opts [String] :vcode
510
+ # @return [BOOLEAN]
511
+ def app_delete_oauth_app(ident, app, opts = {})
512
+ data, _status_code, _headers = app_delete_oauth_app_with_http_info(ident, app, opts)
513
+ data
514
+ end
515
+
516
+ # 删除第三方应用
517
+ # @param ident 三方应用编号
518
+ # @param app 应用标识
519
+ # @param [Hash] opts the optional parameters
520
+ # @option opts [String] :vcode
521
+ # @return [Array<(BOOLEAN, Integer, Hash)>] BOOLEAN data, response status code and response headers
522
+ def app_delete_oauth_app_with_http_info(ident, app, opts = {})
523
+ if @api_client.config.debugging
524
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_delete_oauth_app ...'
525
+ end
526
+ # verify the required parameter 'ident' is set
527
+ if @api_client.config.client_side_validation && ident.nil?
528
+ fail ArgumentError, "Missing the required parameter 'ident' when calling AppsApi.app_delete_oauth_app"
529
+ end
530
+ # verify the required parameter 'app' is set
531
+ if @api_client.config.client_side_validation && app.nil?
532
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_delete_oauth_app"
533
+ end
534
+ # resource path
535
+ local_var_path = '/apps/{app}/oauth'.sub('{' + 'app' + '}', app.to_s)
536
+
537
+ # query parameters
538
+ query_params = opts[:query_params] || {}
539
+ query_params[:'ident'] = ident
540
+
541
+ # header parameters
542
+ header_params = opts[:header_params] || {}
543
+ # HTTP header 'Accept' (if needed)
544
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
545
+ # HTTP header 'Content-Type'
546
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
547
+
548
+ # form parameters
549
+ form_params = opts[:form_params] || {}
550
+ form_params['vcode'] = opts[:'vcode'] if !opts[:'vcode'].nil?
551
+
552
+ # http body (model)
553
+ post_body = opts[:body]
554
+
555
+ return_type = opts[:return_type] || 'BOOLEAN'
556
+
557
+ auth_names = opts[:auth_names] || ['TokenAuth']
558
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
559
+ :header_params => header_params,
560
+ :query_params => query_params,
561
+ :form_params => form_params,
562
+ :body => post_body,
563
+ :auth_names => auth_names,
564
+ :return_type => return_type)
565
+
566
+ if @api_client.config.debugging
567
+ @api_client.config.logger.debug "API called: AppsApi#app_delete_oauth_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
568
+ end
569
+ return data, status_code, headers
570
+ end
571
+ # 导出应用日志到 Excel
572
+ # @param app 应用标识
573
+ # @param [Hash] opts the optional parameters
574
+ # @option opts [Integer] :account 账号 (default to 0)
575
+ # @option opts [Array<Integer>] :indices 索引
576
+ # @option opts [Integer] :widget 组件 (default to 0)
577
+ # @option opts [Integer] :query 查询 (default to 0)
578
+ # @option opts [Integer] :type 类型 (default to 0)
579
+ # @option opts [Date] :start_date 起始日期
580
+ # @option opts [Date] :end_date 结束日期
581
+ # @return [String]
582
+ def app_excel_of_logs(app, opts = {})
583
+ data, _status_code, _headers = app_excel_of_logs_with_http_info(app, opts)
584
+ data
585
+ end
586
+
587
+ # 导出应用日志到 Excel
588
+ # @param app 应用标识
589
+ # @param [Hash] opts the optional parameters
590
+ # @option opts [Integer] :account 账号
591
+ # @option opts [Array<Integer>] :indices 索引
592
+ # @option opts [Integer] :widget 组件
593
+ # @option opts [Integer] :query 查询
594
+ # @option opts [Integer] :type 类型
595
+ # @option opts [Date] :start_date 起始日期
596
+ # @option opts [Date] :end_date 结束日期
597
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
598
+ def app_excel_of_logs_with_http_info(app, opts = {})
599
+ if @api_client.config.debugging
600
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_excel_of_logs ...'
601
+ end
602
+ # verify the required parameter 'app' is set
603
+ if @api_client.config.client_side_validation && app.nil?
604
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_excel_of_logs"
605
+ end
606
+ # resource path
607
+ local_var_path = '/apps/{app}/logs'.sub('{' + 'app' + '}', app.to_s)
608
+
609
+ # query parameters
610
+ query_params = opts[:query_params] || {}
611
+ query_params[:'account'] = opts[:'account'] if !opts[:'account'].nil?
612
+ query_params[:'indices'] = @api_client.build_collection_param(opts[:'indices'], :multi) if !opts[:'indices'].nil?
613
+ query_params[:'widget'] = opts[:'widget'] if !opts[:'widget'].nil?
614
+ query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
615
+ query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
616
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
617
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
618
+
619
+ # header parameters
620
+ header_params = opts[:header_params] || {}
621
+ # HTTP header 'Accept' (if needed)
622
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
623
+
624
+ # form parameters
625
+ form_params = opts[:form_params] || {}
626
+
627
+ # http body (model)
628
+ post_body = opts[:body]
629
+
630
+ return_type = opts[:return_type] || 'String'
631
+
632
+ auth_names = opts[:auth_names] || ['TokenAuth']
633
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
634
+ :header_params => header_params,
635
+ :query_params => query_params,
636
+ :form_params => form_params,
637
+ :body => post_body,
638
+ :auth_names => auth_names,
639
+ :return_type => return_type)
640
+
641
+ if @api_client.config.debugging
642
+ @api_client.config.logger.debug "API called: AppsApi#app_excel_of_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
643
+ end
644
+ return data, status_code, headers
645
+ end
646
+ # 获取应用详情
647
+ # @param app 应用标识
648
+ # @param [Hash] opts the optional parameters
649
+ # @return [AppBean]
650
+ def app_get(app, opts = {})
651
+ data, _status_code, _headers = app_get_with_http_info(app, opts)
652
+ data
653
+ end
654
+
655
+ # 获取应用详情
656
+ # @param app 应用标识
657
+ # @param [Hash] opts the optional parameters
658
+ # @return [Array<(AppBean, Integer, Hash)>] AppBean data, response status code and response headers
659
+ def app_get_with_http_info(app, opts = {})
660
+ if @api_client.config.debugging
661
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_get ...'
662
+ end
663
+ # verify the required parameter 'app' is set
664
+ if @api_client.config.client_side_validation && app.nil?
665
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_get"
666
+ end
667
+ # resource path
668
+ local_var_path = '/apps/{app}'.sub('{' + 'app' + '}', app.to_s)
669
+
670
+ # query parameters
671
+ query_params = opts[:query_params] || {}
672
+
673
+ # header parameters
674
+ header_params = opts[:header_params] || {}
675
+ # HTTP header 'Accept' (if needed)
676
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
677
+
678
+ # form parameters
679
+ form_params = opts[:form_params] || {}
680
+
681
+ # http body (model)
682
+ post_body = opts[:body]
683
+
684
+ return_type = opts[:return_type] || 'AppBean'
685
+
686
+ auth_names = opts[:auth_names] || ['TokenAuth']
687
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
688
+ :header_params => header_params,
689
+ :query_params => query_params,
690
+ :form_params => form_params,
691
+ :body => post_body,
692
+ :auth_names => auth_names,
693
+ :return_type => return_type)
694
+
695
+ if @api_client.config.debugging
696
+ @api_client.config.logger.debug "API called: AppsApi#app_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
697
+ end
698
+ return data, status_code, headers
699
+ end
700
+ # 获取应用填写的公司信息
701
+ # @param app 应用标识
702
+ # @param [Hash] opts the optional parameters
703
+ # @return [CompanyBean]
704
+ def app_get_company(app, opts = {})
705
+ data, _status_code, _headers = app_get_company_with_http_info(app, opts)
706
+ data
707
+ end
708
+
709
+ # 获取应用填写的公司信息
710
+ # @param app 应用标识
711
+ # @param [Hash] opts the optional parameters
712
+ # @return [Array<(CompanyBean, Integer, Hash)>] CompanyBean data, response status code and response headers
713
+ def app_get_company_with_http_info(app, opts = {})
714
+ if @api_client.config.debugging
715
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_get_company ...'
716
+ end
717
+ # verify the required parameter 'app' is set
718
+ if @api_client.config.client_side_validation && app.nil?
719
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_get_company"
720
+ end
721
+ # resource path
722
+ local_var_path = '/apps/{app}/company'.sub('{' + 'app' + '}', app.to_s)
723
+
724
+ # query parameters
725
+ query_params = opts[:query_params] || {}
726
+
727
+ # header parameters
728
+ header_params = opts[:header_params] || {}
729
+ # HTTP header 'Accept' (if needed)
730
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
731
+
732
+ # form parameters
733
+ form_params = opts[:form_params] || {}
734
+
735
+ # http body (model)
736
+ post_body = opts[:body]
737
+
738
+ return_type = opts[:return_type] || 'CompanyBean'
739
+
740
+ auth_names = opts[:auth_names] || ['TokenAuth']
741
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
742
+ :header_params => header_params,
743
+ :query_params => query_params,
744
+ :form_params => form_params,
745
+ :body => post_body,
746
+ :auth_names => auth_names,
747
+ :return_type => return_type)
748
+
749
+ if @api_client.config.debugging
750
+ @api_client.config.logger.debug "API called: AppsApi#app_get_company\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
751
+ end
752
+ return data, status_code, headers
753
+ end
754
+ # 获取公司营业执照或者一般纳税人证明
755
+ # @param app 应用标识
756
+ # @param type 获取图片的类型 [license,certificate]
757
+ # @param [Hash] opts the optional parameters
758
+ # @return [String]
759
+ def app_get_company_pic(app, type, opts = {})
760
+ data, _status_code, _headers = app_get_company_pic_with_http_info(app, type, opts)
761
+ data
762
+ end
763
+
764
+ # 获取公司营业执照或者一般纳税人证明
765
+ # @param app 应用标识
766
+ # @param type 获取图片的类型 [license,certificate]
767
+ # @param [Hash] opts the optional parameters
768
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
769
+ def app_get_company_pic_with_http_info(app, type, opts = {})
770
+ if @api_client.config.debugging
771
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_get_company_pic ...'
772
+ end
773
+ # verify the required parameter 'app' is set
774
+ if @api_client.config.client_side_validation && app.nil?
775
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_get_company_pic"
776
+ end
777
+ # verify the required parameter 'type' is set
778
+ if @api_client.config.client_side_validation && type.nil?
779
+ fail ArgumentError, "Missing the required parameter 'type' when calling AppsApi.app_get_company_pic"
780
+ end
781
+ # verify enum value
782
+ if @api_client.config.client_side_validation && !['license', 'certificate'].include?(type)
783
+ fail ArgumentError, "invalid value for 'type', must be one of license, certificate"
784
+ end
785
+ # resource path
786
+ local_var_path = '/apps/{app}/company'.sub('{' + 'app' + '}', app.to_s)
787
+
788
+ # query parameters
789
+ query_params = opts[:query_params] || {}
790
+ query_params[:'type'] = type
791
+
792
+ # header parameters
793
+ header_params = opts[:header_params] || {}
794
+ # HTTP header 'Accept' (if needed)
795
+ header_params['Accept'] = @api_client.select_header_accept(['default'])
796
+
797
+ # form parameters
798
+ form_params = opts[:form_params] || {}
799
+
800
+ # http body (model)
801
+ post_body = opts[:body]
802
+
803
+ return_type = opts[:return_type] || 'String'
804
+
805
+ auth_names = opts[:auth_names] || ['TokenAuth']
806
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
807
+ :header_params => header_params,
808
+ :query_params => query_params,
809
+ :form_params => form_params,
810
+ :body => post_body,
811
+ :auth_names => auth_names,
812
+ :return_type => return_type)
813
+
814
+ if @api_client.config.debugging
815
+ @api_client.config.logger.debug "API called: AppsApi#app_get_company_pic\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
816
+ end
817
+ return data, status_code, headers
818
+ end
819
+ # 获取应用列表
820
+ # @param [Hash] opts the optional parameters
821
+ # @return [Array<AppBean>]
822
+ def app_list(opts = {})
823
+ data, _status_code, _headers = app_list_with_http_info(opts)
824
+ data
825
+ end
826
+
827
+ # 获取应用列表
828
+ # @param [Hash] opts the optional parameters
829
+ # @return [Array<(Array<AppBean>, Integer, Hash)>] Array<AppBean> data, response status code and response headers
830
+ def app_list_with_http_info(opts = {})
831
+ if @api_client.config.debugging
832
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_list ...'
833
+ end
834
+ # resource path
835
+ local_var_path = '/apps'
836
+
837
+ # query parameters
838
+ query_params = opts[:query_params] || {}
839
+
840
+ # header parameters
841
+ header_params = opts[:header_params] || {}
842
+ # HTTP header 'Accept' (if needed)
843
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
844
+
845
+ # form parameters
846
+ form_params = opts[:form_params] || {}
847
+
848
+ # http body (model)
849
+ post_body = opts[:body]
850
+
851
+ return_type = opts[:return_type] || 'Array<AppBean>'
852
+
853
+ auth_names = opts[:auth_names] || ['TokenAuth']
854
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
855
+ :header_params => header_params,
856
+ :query_params => query_params,
857
+ :form_params => form_params,
858
+ :body => post_body,
859
+ :auth_names => auth_names,
860
+ :return_type => return_type)
861
+
862
+ if @api_client.config.debugging
863
+ @api_client.config.logger.debug "API called: AppsApi#app_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
864
+ end
865
+ return data, status_code, headers
866
+ end
867
+ # 获取应用成员列表
868
+ # @param app 应用标识
869
+ # @param [Hash] opts the optional parameters
870
+ # @option opts [Integer] :from 开始位置 (default to 0)
871
+ # @option opts [Integer] :size 获取的数量 (default to 20)
872
+ # @return [MentorForm]
873
+ def app_list_mentors(app, opts = {})
874
+ data, _status_code, _headers = app_list_mentors_with_http_info(app, opts)
875
+ data
876
+ end
877
+
878
+ # 获取应用成员列表
879
+ # @param app 应用标识
880
+ # @param [Hash] opts the optional parameters
881
+ # @option opts [Integer] :from 开始位置
882
+ # @option opts [Integer] :size 获取的数量
883
+ # @return [Array<(MentorForm, Integer, Hash)>] MentorForm data, response status code and response headers
884
+ def app_list_mentors_with_http_info(app, opts = {})
885
+ if @api_client.config.debugging
886
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_list_mentors ...'
887
+ end
888
+ # verify the required parameter 'app' is set
889
+ if @api_client.config.client_side_validation && app.nil?
890
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_list_mentors"
891
+ end
892
+ # resource path
893
+ local_var_path = '/apps/{app}/mentors'.sub('{' + 'app' + '}', app.to_s)
894
+
895
+ # query parameters
896
+ query_params = opts[:query_params] || {}
897
+ query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
898
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
899
+
900
+ # header parameters
901
+ header_params = opts[:header_params] || {}
902
+ # HTTP header 'Accept' (if needed)
903
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
904
+
905
+ # form parameters
906
+ form_params = opts[:form_params] || {}
907
+
908
+ # http body (model)
909
+ post_body = opts[:body]
910
+
911
+ return_type = opts[:return_type] || 'MentorForm'
912
+
913
+ auth_names = opts[:auth_names] || ['TokenAuth']
914
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
915
+ :header_params => header_params,
916
+ :query_params => query_params,
917
+ :form_params => form_params,
918
+ :body => post_body,
919
+ :auth_names => auth_names,
920
+ :return_type => return_type)
921
+
922
+ if @api_client.config.debugging
923
+ @api_client.config.logger.debug "API called: AppsApi#app_list_mentors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
924
+ end
925
+ return data, status_code, headers
926
+ end
927
+ # 获取第三方应用列表
928
+ # @param app 应用标识
929
+ # @param [Hash] opts the optional parameters
930
+ # @return [Array<OauthAppBean>]
931
+ def app_list_oauth_apps(app, opts = {})
932
+ data, _status_code, _headers = app_list_oauth_apps_with_http_info(app, opts)
933
+ data
934
+ end
935
+
936
+ # 获取第三方应用列表
937
+ # @param app 应用标识
938
+ # @param [Hash] opts the optional parameters
939
+ # @return [Array<(Array<OauthAppBean>, Integer, Hash)>] Array<OauthAppBean> data, response status code and response headers
940
+ def app_list_oauth_apps_with_http_info(app, opts = {})
941
+ if @api_client.config.debugging
942
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_list_oauth_apps ...'
943
+ end
944
+ # verify the required parameter 'app' is set
945
+ if @api_client.config.client_side_validation && app.nil?
946
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_list_oauth_apps"
947
+ end
948
+ # resource path
949
+ local_var_path = '/apps/{app}/oauth'.sub('{' + 'app' + '}', app.to_s)
950
+
951
+ # query parameters
952
+ query_params = opts[:query_params] || {}
953
+
954
+ # header parameters
955
+ header_params = opts[:header_params] || {}
956
+ # HTTP header 'Accept' (if needed)
957
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
958
+
959
+ # form parameters
960
+ form_params = opts[:form_params] || {}
961
+
962
+ # http body (model)
963
+ post_body = opts[:body]
964
+
965
+ return_type = opts[:return_type] || 'Array<OauthAppBean>'
966
+
967
+ auth_names = opts[:auth_names] || ['TokenAuth']
968
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
969
+ :header_params => header_params,
970
+ :query_params => query_params,
971
+ :form_params => form_params,
972
+ :body => post_body,
973
+ :auth_names => auth_names,
974
+ :return_type => return_type)
975
+
976
+ if @api_client.config.debugging
977
+ @api_client.config.logger.debug "API called: AppsApi#app_list_oauth_apps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
978
+ end
979
+ return data, status_code, headers
980
+ end
981
+ # 获取应用的日志列表
982
+ # @param app 应用标识
983
+ # @param [Hash] opts the optional parameters
984
+ # @option opts [Integer] :account 账号 (default to 0)
985
+ # @option opts [Array<Integer>] :indices 索引
986
+ # @option opts [Integer] :widget 组件 (default to 0)
987
+ # @option opts [Integer] :query 查询 (default to 0)
988
+ # @option opts [Integer] :type 类型 (default to 0)
989
+ # @option opts [Date] :start_date 起始日期
990
+ # @option opts [Date] :end_date 结束日期
991
+ # @option opts [Integer] :from 起始位置 (default to 0)
992
+ # @option opts [Integer] :size 数量 (default to 20)
993
+ # @return [AppLogsBean]
994
+ def app_logs(app, opts = {})
995
+ data, _status_code, _headers = app_logs_with_http_info(app, opts)
996
+ data
997
+ end
998
+
999
+ # 获取应用的日志列表
1000
+ # @param app 应用标识
1001
+ # @param [Hash] opts the optional parameters
1002
+ # @option opts [Integer] :account 账号
1003
+ # @option opts [Array<Integer>] :indices 索引
1004
+ # @option opts [Integer] :widget 组件
1005
+ # @option opts [Integer] :query 查询
1006
+ # @option opts [Integer] :type 类型
1007
+ # @option opts [Date] :start_date 起始日期
1008
+ # @option opts [Date] :end_date 结束日期
1009
+ # @option opts [Integer] :from 起始位置
1010
+ # @option opts [Integer] :size 数量
1011
+ # @return [Array<(AppLogsBean, Integer, Hash)>] AppLogsBean data, response status code and response headers
1012
+ def app_logs_with_http_info(app, opts = {})
1013
+ if @api_client.config.debugging
1014
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_logs ...'
1015
+ end
1016
+ # verify the required parameter 'app' is set
1017
+ if @api_client.config.client_side_validation && app.nil?
1018
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_logs"
1019
+ end
1020
+ # resource path
1021
+ local_var_path = '/apps/{app}/logs'.sub('{' + 'app' + '}', app.to_s)
1022
+
1023
+ # query parameters
1024
+ query_params = opts[:query_params] || {}
1025
+ query_params[:'account'] = opts[:'account'] if !opts[:'account'].nil?
1026
+ query_params[:'indices'] = @api_client.build_collection_param(opts[:'indices'], :multi) if !opts[:'indices'].nil?
1027
+ query_params[:'widget'] = opts[:'widget'] if !opts[:'widget'].nil?
1028
+ query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
1029
+ query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
1030
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1031
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1032
+ query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
1033
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
1034
+
1035
+ # header parameters
1036
+ header_params = opts[:header_params] || {}
1037
+ # HTTP header 'Accept' (if needed)
1038
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1039
+
1040
+ # form parameters
1041
+ form_params = opts[:form_params] || {}
1042
+
1043
+ # http body (model)
1044
+ post_body = opts[:body]
1045
+
1046
+ return_type = opts[:return_type] || 'AppLogsBean'
1047
+
1048
+ auth_names = opts[:auth_names] || ['TokenAuth']
1049
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1050
+ :header_params => header_params,
1051
+ :query_params => query_params,
1052
+ :form_params => form_params,
1053
+ :body => post_body,
1054
+ :auth_names => auth_names,
1055
+ :return_type => return_type)
1056
+
1057
+ if @api_client.config.debugging
1058
+ @api_client.config.logger.debug "API called: AppsApi#app_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1059
+ end
1060
+ return data, status_code, headers
1061
+ end
1062
+ # 重置 Access Token
1063
+ # @param id Access Token 编号
1064
+ # @param app 应用标识
1065
+ # @param [Hash] opts the optional parameters
1066
+ # @option opts [String] :vcode
1067
+ # @return [TokenBean]
1068
+ def app_reset_access_token(id, app, opts = {})
1069
+ data, _status_code, _headers = app_reset_access_token_with_http_info(id, app, opts)
1070
+ data
1071
+ end
1072
+
1073
+ # 重置 Access Token
1074
+ # @param id Access Token 编号
1075
+ # @param app 应用标识
1076
+ # @param [Hash] opts the optional parameters
1077
+ # @option opts [String] :vcode
1078
+ # @return [Array<(TokenBean, Integer, Hash)>] TokenBean data, response status code and response headers
1079
+ def app_reset_access_token_with_http_info(id, app, opts = {})
1080
+ if @api_client.config.debugging
1081
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_reset_access_token ...'
1082
+ end
1083
+ # verify the required parameter 'id' is set
1084
+ if @api_client.config.client_side_validation && id.nil?
1085
+ fail ArgumentError, "Missing the required parameter 'id' when calling AppsApi.app_reset_access_token"
1086
+ end
1087
+ # verify the required parameter 'app' is set
1088
+ if @api_client.config.client_side_validation && app.nil?
1089
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_reset_access_token"
1090
+ end
1091
+ # resource path
1092
+ local_var_path = '/apps/{app}/tokens'.sub('{' + 'app' + '}', app.to_s)
1093
+
1094
+ # query parameters
1095
+ query_params = opts[:query_params] || {}
1096
+ query_params[:'id'] = id
1097
+
1098
+ # header parameters
1099
+ header_params = opts[:header_params] || {}
1100
+ # HTTP header 'Accept' (if needed)
1101
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1102
+ # HTTP header 'Content-Type'
1103
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
1104
+
1105
+ # form parameters
1106
+ form_params = opts[:form_params] || {}
1107
+ form_params['vcode'] = opts[:'vcode'] if !opts[:'vcode'].nil?
1108
+
1109
+ # http body (model)
1110
+ post_body = opts[:body]
1111
+
1112
+ return_type = opts[:return_type] || 'TokenBean'
1113
+
1114
+ auth_names = opts[:auth_names] || ['TokenAuth']
1115
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1116
+ :header_params => header_params,
1117
+ :query_params => query_params,
1118
+ :form_params => form_params,
1119
+ :body => post_body,
1120
+ :auth_names => auth_names,
1121
+ :return_type => return_type)
1122
+
1123
+ if @api_client.config.debugging
1124
+ @api_client.config.logger.debug "API called: AppsApi#app_reset_access_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1125
+ end
1126
+ return data, status_code, headers
1127
+ end
1128
+ # 重新生成三方应用的密钥
1129
+ # @param ident 三方应用标识
1130
+ # @param app 应用标识
1131
+ # @param [Hash] opts the optional parameters
1132
+ # @option opts [String] :vcode
1133
+ # @return [OauthAppBean]
1134
+ def app_reset_oauth_app_secret(ident, app, opts = {})
1135
+ data, _status_code, _headers = app_reset_oauth_app_secret_with_http_info(ident, app, opts)
1136
+ data
1137
+ end
1138
+
1139
+ # 重新生成三方应用的密钥
1140
+ # @param ident 三方应用标识
1141
+ # @param app 应用标识
1142
+ # @param [Hash] opts the optional parameters
1143
+ # @option opts [String] :vcode
1144
+ # @return [Array<(OauthAppBean, Integer, Hash)>] OauthAppBean data, response status code and response headers
1145
+ def app_reset_oauth_app_secret_with_http_info(ident, app, opts = {})
1146
+ if @api_client.config.debugging
1147
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_reset_oauth_app_secret ...'
1148
+ end
1149
+ # verify the required parameter 'ident' is set
1150
+ if @api_client.config.client_side_validation && ident.nil?
1151
+ fail ArgumentError, "Missing the required parameter 'ident' when calling AppsApi.app_reset_oauth_app_secret"
1152
+ end
1153
+ # verify the required parameter 'app' is set
1154
+ if @api_client.config.client_side_validation && app.nil?
1155
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_reset_oauth_app_secret"
1156
+ end
1157
+ # resource path
1158
+ local_var_path = '/apps/{app}/oauth-reset-secret'.sub('{' + 'app' + '}', app.to_s)
1159
+
1160
+ # query parameters
1161
+ query_params = opts[:query_params] || {}
1162
+ query_params[:'ident'] = ident
1163
+
1164
+ # header parameters
1165
+ header_params = opts[:header_params] || {}
1166
+ # HTTP header 'Accept' (if needed)
1167
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1168
+ # HTTP header 'Content-Type'
1169
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
1170
+
1171
+ # form parameters
1172
+ form_params = opts[:form_params] || {}
1173
+ form_params['vcode'] = opts[:'vcode'] if !opts[:'vcode'].nil?
1174
+
1175
+ # http body (model)
1176
+ post_body = opts[:body]
1177
+
1178
+ return_type = opts[:return_type] || 'OauthAppBean'
1179
+
1180
+ auth_names = opts[:auth_names] || ['TokenAuth']
1181
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1182
+ :header_params => header_params,
1183
+ :query_params => query_params,
1184
+ :form_params => form_params,
1185
+ :body => post_body,
1186
+ :auth_names => auth_names,
1187
+ :return_type => return_type)
1188
+
1189
+ if @api_client.config.debugging
1190
+ @api_client.config.logger.debug "API called: AppsApi#app_reset_oauth_app_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1191
+ end
1192
+ return data, status_code, headers
1193
+ end
1194
+ # 修改应用的黑名单信息
1195
+ # @param body
1196
+ # @param app 应用标识
1197
+ # @param [Hash] opts the optional parameters
1198
+ # @return [BOOLEAN]
1199
+ def app_save_blacklist(body, app, opts = {})
1200
+ data, _status_code, _headers = app_save_blacklist_with_http_info(body, app, opts)
1201
+ data
1202
+ end
1203
+
1204
+ # 修改应用的黑名单信息
1205
+ # @param body
1206
+ # @param app 应用标识
1207
+ # @param [Hash] opts the optional parameters
1208
+ # @return [Array<(BOOLEAN, Integer, Hash)>] BOOLEAN data, response status code and response headers
1209
+ def app_save_blacklist_with_http_info(body, app, opts = {})
1210
+ if @api_client.config.debugging
1211
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_save_blacklist ...'
1212
+ end
1213
+ # verify the required parameter 'body' is set
1214
+ if @api_client.config.client_side_validation && body.nil?
1215
+ fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.app_save_blacklist"
1216
+ end
1217
+ # verify the required parameter 'app' is set
1218
+ if @api_client.config.client_side_validation && app.nil?
1219
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_save_blacklist"
1220
+ end
1221
+ # resource path
1222
+ local_var_path = '/apps/{app}/blacklist'.sub('{' + 'app' + '}', app.to_s)
1223
+
1224
+ # query parameters
1225
+ query_params = opts[:query_params] || {}
1226
+
1227
+ # header parameters
1228
+ header_params = opts[:header_params] || {}
1229
+ # HTTP header 'Accept' (if needed)
1230
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1231
+ # HTTP header 'Content-Type'
1232
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1233
+
1234
+ # form parameters
1235
+ form_params = opts[:form_params] || {}
1236
+
1237
+ # http body (model)
1238
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
1239
+
1240
+ return_type = opts[:return_type] || 'BOOLEAN'
1241
+
1242
+ auth_names = opts[:auth_names] || ['TokenAuth']
1243
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1244
+ :header_params => header_params,
1245
+ :query_params => query_params,
1246
+ :form_params => form_params,
1247
+ :body => post_body,
1248
+ :auth_names => auth_names,
1249
+ :return_type => return_type)
1250
+
1251
+ if @api_client.config.debugging
1252
+ @api_client.config.logger.debug "API called: AppsApi#app_save_blacklist\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1253
+ end
1254
+ return data, status_code, headers
1255
+ end
1256
+ # 修改应用的公司信息
1257
+ # @param app 应用标识
1258
+ # @param [Hash] opts the optional parameters
1259
+ # @option opts [String] :name
1260
+ # @option opts [String] :url
1261
+ # @option opts [String] :nation
1262
+ # @option opts [String] :province
1263
+ # @option opts [String] :city
1264
+ # @option opts [String] :taxpayer
1265
+ # @option opts [String] :bank
1266
+ # @option opts [String] :account
1267
+ # @option opts [String] :address
1268
+ # @option opts [String] :tel
1269
+ # @option opts [String] :license
1270
+ # @option opts [String] :certificate
1271
+ # @option opts [String] :post_addr
1272
+ # @option opts [String] :post_code
1273
+ # @option opts [String] :post_name
1274
+ # @option opts [String] :post_tel
1275
+ # @return [CompanyBean]
1276
+ def app_save_company(app, opts = {})
1277
+ data, _status_code, _headers = app_save_company_with_http_info(app, opts)
1278
+ data
1279
+ end
1280
+
1281
+ # 修改应用的公司信息
1282
+ # @param app 应用标识
1283
+ # @param [Hash] opts the optional parameters
1284
+ # @option opts [String] :name
1285
+ # @option opts [String] :url
1286
+ # @option opts [String] :nation
1287
+ # @option opts [String] :province
1288
+ # @option opts [String] :city
1289
+ # @option opts [String] :taxpayer
1290
+ # @option opts [String] :bank
1291
+ # @option opts [String] :account
1292
+ # @option opts [String] :address
1293
+ # @option opts [String] :tel
1294
+ # @option opts [String] :license
1295
+ # @option opts [String] :certificate
1296
+ # @option opts [String] :post_addr
1297
+ # @option opts [String] :post_code
1298
+ # @option opts [String] :post_name
1299
+ # @option opts [String] :post_tel
1300
+ # @return [Array<(CompanyBean, Integer, Hash)>] CompanyBean data, response status code and response headers
1301
+ def app_save_company_with_http_info(app, opts = {})
1302
+ if @api_client.config.debugging
1303
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_save_company ...'
1304
+ end
1305
+ # verify the required parameter 'app' is set
1306
+ if @api_client.config.client_side_validation && app.nil?
1307
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_save_company"
1308
+ end
1309
+ # resource path
1310
+ local_var_path = '/apps/{app}/company'.sub('{' + 'app' + '}', app.to_s)
1311
+
1312
+ # query parameters
1313
+ query_params = opts[:query_params] || {}
1314
+
1315
+ # header parameters
1316
+ header_params = opts[:header_params] || {}
1317
+ # HTTP header 'Accept' (if needed)
1318
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1319
+ # HTTP header 'Content-Type'
1320
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1321
+
1322
+ # form parameters
1323
+ form_params = opts[:form_params] || {}
1324
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
1325
+ form_params['url'] = opts[:'url'] if !opts[:'url'].nil?
1326
+ form_params['nation'] = opts[:'nation'] if !opts[:'nation'].nil?
1327
+ form_params['province'] = opts[:'province'] if !opts[:'province'].nil?
1328
+ form_params['city'] = opts[:'city'] if !opts[:'city'].nil?
1329
+ form_params['taxpayer'] = opts[:'taxpayer'] if !opts[:'taxpayer'].nil?
1330
+ form_params['bank'] = opts[:'bank'] if !opts[:'bank'].nil?
1331
+ form_params['account'] = opts[:'account'] if !opts[:'account'].nil?
1332
+ form_params['address'] = opts[:'address'] if !opts[:'address'].nil?
1333
+ form_params['tel'] = opts[:'tel'] if !opts[:'tel'].nil?
1334
+ form_params['license'] = opts[:'license'] if !opts[:'license'].nil?
1335
+ form_params['certificate'] = opts[:'certificate'] if !opts[:'certificate'].nil?
1336
+ form_params['post_addr'] = opts[:'post_addr'] if !opts[:'post_addr'].nil?
1337
+ form_params['post_code'] = opts[:'post_code'] if !opts[:'post_code'].nil?
1338
+ form_params['post_name'] = opts[:'post_name'] if !opts[:'post_name'].nil?
1339
+ form_params['post_tel'] = opts[:'post_tel'] if !opts[:'post_tel'].nil?
1340
+
1341
+ # http body (model)
1342
+ post_body = opts[:body]
1343
+
1344
+ return_type = opts[:return_type] || 'CompanyBean'
1345
+
1346
+ auth_names = opts[:auth_names] || ['TokenAuth']
1347
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1348
+ :header_params => header_params,
1349
+ :query_params => query_params,
1350
+ :form_params => form_params,
1351
+ :body => post_body,
1352
+ :auth_names => auth_names,
1353
+ :return_type => return_type)
1354
+
1355
+ if @api_client.config.debugging
1356
+ @api_client.config.logger.debug "API called: AppsApi#app_save_company\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1357
+ end
1358
+ return data, status_code, headers
1359
+ end
1360
+ # 获取搜索流量包使用配额信息
1361
+ # @param app 应用标识
1362
+ # @param days 计算平均搜索数的最近天数
1363
+ # @param [Hash] opts the optional parameters
1364
+ # @return [SearchEstimateResult]
1365
+ def app_searchs_estimate(app, days, opts = {})
1366
+ data, _status_code, _headers = app_searchs_estimate_with_http_info(app, days, opts)
1367
+ data
1368
+ end
1369
+
1370
+ # 获取搜索流量包使用配额信息
1371
+ # @param app 应用标识
1372
+ # @param days 计算平均搜索数的最近天数
1373
+ # @param [Hash] opts the optional parameters
1374
+ # @return [Array<(SearchEstimateResult, Integer, Hash)>] SearchEstimateResult data, response status code and response headers
1375
+ def app_searchs_estimate_with_http_info(app, days, opts = {})
1376
+ if @api_client.config.debugging
1377
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_searchs_estimate ...'
1378
+ end
1379
+ # verify the required parameter 'app' is set
1380
+ if @api_client.config.client_side_validation && app.nil?
1381
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_searchs_estimate"
1382
+ end
1383
+ # verify the required parameter 'days' is set
1384
+ if @api_client.config.client_side_validation && days.nil?
1385
+ fail ArgumentError, "Missing the required parameter 'days' when calling AppsApi.app_searchs_estimate"
1386
+ end
1387
+ # resource path
1388
+ local_var_path = '/apps/{app}/searchs-estimate'.sub('{' + 'app' + '}', app.to_s)
1389
+
1390
+ # query parameters
1391
+ query_params = opts[:query_params] || {}
1392
+ query_params[:'days'] = days
1393
+
1394
+ # header parameters
1395
+ header_params = opts[:header_params] || {}
1396
+ # HTTP header 'Accept' (if needed)
1397
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1398
+
1399
+ # form parameters
1400
+ form_params = opts[:form_params] || {}
1401
+
1402
+ # http body (model)
1403
+ post_body = opts[:body]
1404
+
1405
+ return_type = opts[:return_type] || 'SearchEstimateResult'
1406
+
1407
+ auth_names = opts[:auth_names] || ['TokenAuth']
1408
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1409
+ :header_params => header_params,
1410
+ :query_params => query_params,
1411
+ :form_params => form_params,
1412
+ :body => post_body,
1413
+ :auth_names => auth_names,
1414
+ :return_type => return_type)
1415
+
1416
+ if @api_client.config.debugging
1417
+ @api_client.config.logger.debug "API called: AppsApi#app_searchs_estimate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1418
+ end
1419
+ return data, status_code, headers
1420
+ end
1421
+ # 修改应用的触发器信息
1422
+ # @param body
1423
+ # @param app 应用标识
1424
+ # @param [Hash] opts the optional parameters
1425
+ # @return [BOOLEAN]
1426
+ def app_set_trigger(body, app, opts = {})
1427
+ data, _status_code, _headers = app_set_trigger_with_http_info(body, app, opts)
1428
+ data
1429
+ end
1430
+
1431
+ # 修改应用的触发器信息
1432
+ # @param body
1433
+ # @param app 应用标识
1434
+ # @param [Hash] opts the optional parameters
1435
+ # @return [Array<(BOOLEAN, Integer, Hash)>] BOOLEAN data, response status code and response headers
1436
+ def app_set_trigger_with_http_info(body, app, opts = {})
1437
+ if @api_client.config.debugging
1438
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_set_trigger ...'
1439
+ end
1440
+ # verify the required parameter 'body' is set
1441
+ if @api_client.config.client_side_validation && body.nil?
1442
+ fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.app_set_trigger"
1443
+ end
1444
+ # verify the required parameter 'app' is set
1445
+ if @api_client.config.client_side_validation && app.nil?
1446
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_set_trigger"
1447
+ end
1448
+ # resource path
1449
+ local_var_path = '/apps/{app}/trigger'.sub('{' + 'app' + '}', app.to_s)
1450
+
1451
+ # query parameters
1452
+ query_params = opts[:query_params] || {}
1453
+
1454
+ # header parameters
1455
+ header_params = opts[:header_params] || {}
1456
+ # HTTP header 'Accept' (if needed)
1457
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1458
+ # HTTP header 'Content-Type'
1459
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1460
+
1461
+ # form parameters
1462
+ form_params = opts[:form_params] || {}
1463
+
1464
+ # http body (model)
1465
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
1466
+
1467
+ return_type = opts[:return_type] || 'BOOLEAN'
1468
+
1469
+ auth_names = opts[:auth_names] || ['TokenAuth']
1470
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1471
+ :header_params => header_params,
1472
+ :query_params => query_params,
1473
+ :form_params => form_params,
1474
+ :body => post_body,
1475
+ :auth_names => auth_names,
1476
+ :return_type => return_type)
1477
+
1478
+ if @api_client.config.debugging
1479
+ @api_client.config.logger.debug "API called: AppsApi#app_set_trigger\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1480
+ end
1481
+ return data, status_code, headers
1482
+ end
1483
+ # 获取 Access Token 列表
1484
+ # @param app 应用标识
1485
+ # @param [Hash] opts the optional parameters
1486
+ # @return [Array<TokenBean>]
1487
+ def app_tokens(app, opts = {})
1488
+ data, _status_code, _headers = app_tokens_with_http_info(app, opts)
1489
+ data
1490
+ end
1491
+
1492
+ # 获取 Access Token 列表
1493
+ # @param app 应用标识
1494
+ # @param [Hash] opts the optional parameters
1495
+ # @return [Array<(Array<TokenBean>, Integer, Hash)>] Array<TokenBean> data, response status code and response headers
1496
+ def app_tokens_with_http_info(app, opts = {})
1497
+ if @api_client.config.debugging
1498
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_tokens ...'
1499
+ end
1500
+ # verify the required parameter 'app' is set
1501
+ if @api_client.config.client_side_validation && app.nil?
1502
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_tokens"
1503
+ end
1504
+ # resource path
1505
+ local_var_path = '/apps/{app}/tokens'.sub('{' + 'app' + '}', app.to_s)
1506
+
1507
+ # query parameters
1508
+ query_params = opts[:query_params] || {}
1509
+
1510
+ # header parameters
1511
+ header_params = opts[:header_params] || {}
1512
+ # HTTP header 'Accept' (if needed)
1513
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1514
+
1515
+ # form parameters
1516
+ form_params = opts[:form_params] || {}
1517
+
1518
+ # http body (model)
1519
+ post_body = opts[:body]
1520
+
1521
+ return_type = opts[:return_type] || 'Array<TokenBean>'
1522
+
1523
+ auth_names = opts[:auth_names] || ['TokenAuth']
1524
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1525
+ :header_params => header_params,
1526
+ :query_params => query_params,
1527
+ :form_params => form_params,
1528
+ :body => post_body,
1529
+ :auth_names => auth_names,
1530
+ :return_type => return_type)
1531
+
1532
+ if @api_client.config.debugging
1533
+ @api_client.config.logger.debug "API called: AppsApi#app_tokens\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1534
+ end
1535
+ return data, status_code, headers
1536
+ end
1537
+ # 转让应用给他人
1538
+ # @param app 应用标识
1539
+ # @param vcode 验证码
1540
+ # @param account 目标账号
1541
+ # @param [Hash] opts the optional parameters
1542
+ # @return [BOOLEAN]
1543
+ def app_transfer(app, vcode, account, opts = {})
1544
+ data, _status_code, _headers = app_transfer_with_http_info(app, vcode, account, opts)
1545
+ data
1546
+ end
1547
+
1548
+ # 转让应用给他人
1549
+ # @param app 应用标识
1550
+ # @param vcode 验证码
1551
+ # @param account 目标账号
1552
+ # @param [Hash] opts the optional parameters
1553
+ # @return [Array<(BOOLEAN, Integer, Hash)>] BOOLEAN data, response status code and response headers
1554
+ def app_transfer_with_http_info(app, vcode, account, opts = {})
1555
+ if @api_client.config.debugging
1556
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_transfer ...'
1557
+ end
1558
+ # verify the required parameter 'app' is set
1559
+ if @api_client.config.client_side_validation && app.nil?
1560
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_transfer"
1561
+ end
1562
+ # verify the required parameter 'vcode' is set
1563
+ if @api_client.config.client_side_validation && vcode.nil?
1564
+ fail ArgumentError, "Missing the required parameter 'vcode' when calling AppsApi.app_transfer"
1565
+ end
1566
+ # verify the required parameter 'account' is set
1567
+ if @api_client.config.client_side_validation && account.nil?
1568
+ fail ArgumentError, "Missing the required parameter 'account' when calling AppsApi.app_transfer"
1569
+ end
1570
+ # resource path
1571
+ local_var_path = '/apps/{app}/transfer'.sub('{' + 'app' + '}', app.to_s)
1572
+
1573
+ # query parameters
1574
+ query_params = opts[:query_params] || {}
1575
+ query_params[:'vcode'] = vcode
1576
+ query_params[:'account'] = account
1577
+
1578
+ # header parameters
1579
+ header_params = opts[:header_params] || {}
1580
+ # HTTP header 'Accept' (if needed)
1581
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1582
+
1583
+ # form parameters
1584
+ form_params = opts[:form_params] || {}
1585
+
1586
+ # http body (model)
1587
+ post_body = opts[:body]
1588
+
1589
+ return_type = opts[:return_type] || 'BOOLEAN'
1590
+
1591
+ auth_names = opts[:auth_names] || ['TokenAuth']
1592
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1593
+ :header_params => header_params,
1594
+ :query_params => query_params,
1595
+ :form_params => form_params,
1596
+ :body => post_body,
1597
+ :auth_names => auth_names,
1598
+ :return_type => return_type)
1599
+
1600
+ if @api_client.config.debugging
1601
+ @api_client.config.logger.debug "API called: AppsApi#app_transfer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1602
+ end
1603
+ return data, status_code, headers
1604
+ end
1605
+ # 获取应用触发器详情
1606
+ # @param app 应用标识
1607
+ # @param [Hash] opts the optional parameters
1608
+ # @return [TriggerBean]
1609
+ def app_trigger(app, opts = {})
1610
+ data, _status_code, _headers = app_trigger_with_http_info(app, opts)
1611
+ data
1612
+ end
1613
+
1614
+ # 获取应用触发器详情
1615
+ # @param app 应用标识
1616
+ # @param [Hash] opts the optional parameters
1617
+ # @return [Array<(TriggerBean, Integer, Hash)>] TriggerBean data, response status code and response headers
1618
+ def app_trigger_with_http_info(app, opts = {})
1619
+ if @api_client.config.debugging
1620
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_trigger ...'
1621
+ end
1622
+ # verify the required parameter 'app' is set
1623
+ if @api_client.config.client_side_validation && app.nil?
1624
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_trigger"
1625
+ end
1626
+ # resource path
1627
+ local_var_path = '/apps/{app}/trigger'.sub('{' + 'app' + '}', app.to_s)
1628
+
1629
+ # query parameters
1630
+ query_params = opts[:query_params] || {}
1631
+
1632
+ # header parameters
1633
+ header_params = opts[:header_params] || {}
1634
+ # HTTP header 'Accept' (if needed)
1635
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1636
+
1637
+ # form parameters
1638
+ form_params = opts[:form_params] || {}
1639
+
1640
+ # http body (model)
1641
+ post_body = opts[:body]
1642
+
1643
+ return_type = opts[:return_type] || 'TriggerBean'
1644
+
1645
+ auth_names = opts[:auth_names] || ['TokenAuth']
1646
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1647
+ :header_params => header_params,
1648
+ :query_params => query_params,
1649
+ :form_params => form_params,
1650
+ :body => post_body,
1651
+ :auth_names => auth_names,
1652
+ :return_type => return_type)
1653
+
1654
+ if @api_client.config.debugging
1655
+ @api_client.config.logger.debug "API called: AppsApi#app_trigger\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1656
+ end
1657
+ return data, status_code, headers
1658
+ end
1659
+ # 获取应用触发日志列表
1660
+ # @param app 应用标识
1661
+ # @param id 起始日志编号
1662
+ # @param size 日志数
1663
+ # @param [Hash] opts the optional parameters
1664
+ # @return [Array<TriggerLogBean>]
1665
+ def app_trigger_logs(app, id, size, opts = {})
1666
+ data, _status_code, _headers = app_trigger_logs_with_http_info(app, id, size, opts)
1667
+ data
1668
+ end
1669
+
1670
+ # 获取应用触发日志列表
1671
+ # @param app 应用标识
1672
+ # @param id 起始日志编号
1673
+ # @param size 日志数
1674
+ # @param [Hash] opts the optional parameters
1675
+ # @return [Array<(Array<TriggerLogBean>, Integer, Hash)>] Array<TriggerLogBean> data, response status code and response headers
1676
+ def app_trigger_logs_with_http_info(app, id, size, opts = {})
1677
+ if @api_client.config.debugging
1678
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_trigger_logs ...'
1679
+ end
1680
+ # verify the required parameter 'app' is set
1681
+ if @api_client.config.client_side_validation && app.nil?
1682
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_trigger_logs"
1683
+ end
1684
+ # verify the required parameter 'id' is set
1685
+ if @api_client.config.client_side_validation && id.nil?
1686
+ fail ArgumentError, "Missing the required parameter 'id' when calling AppsApi.app_trigger_logs"
1687
+ end
1688
+ # verify the required parameter 'size' is set
1689
+ if @api_client.config.client_side_validation && size.nil?
1690
+ fail ArgumentError, "Missing the required parameter 'size' when calling AppsApi.app_trigger_logs"
1691
+ end
1692
+ # resource path
1693
+ local_var_path = '/apps/{app}/trigger-logs'.sub('{' + 'app' + '}', app.to_s)
1694
+
1695
+ # query parameters
1696
+ query_params = opts[:query_params] || {}
1697
+ query_params[:'id'] = id
1698
+ query_params[:'size'] = size
1699
+
1700
+ # header parameters
1701
+ header_params = opts[:header_params] || {}
1702
+ # HTTP header 'Accept' (if needed)
1703
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1704
+
1705
+ # form parameters
1706
+ form_params = opts[:form_params] || {}
1707
+
1708
+ # http body (model)
1709
+ post_body = opts[:body]
1710
+
1711
+ return_type = opts[:return_type] || 'Array<TriggerLogBean>'
1712
+
1713
+ auth_names = opts[:auth_names] || ['TokenAuth']
1714
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1715
+ :header_params => header_params,
1716
+ :query_params => query_params,
1717
+ :form_params => form_params,
1718
+ :body => post_body,
1719
+ :auth_names => auth_names,
1720
+ :return_type => return_type)
1721
+
1722
+ if @api_client.config.debugging
1723
+ @api_client.config.logger.debug "API called: AppsApi#app_trigger_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1724
+ end
1725
+ return data, status_code, headers
1726
+ end
1727
+ # 修改应用的基本信息
1728
+ # @param app 应用标识
1729
+ # @param [Hash] opts the optional parameters
1730
+ # @option opts [String] :name
1731
+ # @option opts [String] :intro
1732
+ # @return [AppBean]
1733
+ def app_update(app, opts = {})
1734
+ data, _status_code, _headers = app_update_with_http_info(app, opts)
1735
+ data
1736
+ end
1737
+
1738
+ # 修改应用的基本信息
1739
+ # @param app 应用标识
1740
+ # @param [Hash] opts the optional parameters
1741
+ # @option opts [String] :name
1742
+ # @option opts [String] :intro
1743
+ # @return [Array<(AppBean, Integer, Hash)>] AppBean data, response status code and response headers
1744
+ def app_update_with_http_info(app, opts = {})
1745
+ if @api_client.config.debugging
1746
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_update ...'
1747
+ end
1748
+ # verify the required parameter 'app' is set
1749
+ if @api_client.config.client_side_validation && app.nil?
1750
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_update"
1751
+ end
1752
+ # resource path
1753
+ local_var_path = '/apps/{app}'.sub('{' + 'app' + '}', app.to_s)
1754
+
1755
+ # query parameters
1756
+ query_params = opts[:query_params] || {}
1757
+
1758
+ # header parameters
1759
+ header_params = opts[:header_params] || {}
1760
+ # HTTP header 'Accept' (if needed)
1761
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1762
+ # HTTP header 'Content-Type'
1763
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
1764
+
1765
+ # form parameters
1766
+ form_params = opts[:form_params] || {}
1767
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
1768
+ form_params['intro'] = opts[:'intro'] if !opts[:'intro'].nil?
1769
+
1770
+ # http body (model)
1771
+ post_body = opts[:body]
1772
+
1773
+ return_type = opts[:return_type] || 'AppBean'
1774
+
1775
+ auth_names = opts[:auth_names] || ['TokenAuth']
1776
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1777
+ :header_params => header_params,
1778
+ :query_params => query_params,
1779
+ :form_params => form_params,
1780
+ :body => post_body,
1781
+ :auth_names => auth_names,
1782
+ :return_type => return_type)
1783
+
1784
+ if @api_client.config.debugging
1785
+ @api_client.config.logger.debug "API called: AppsApi#app_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1786
+ end
1787
+ return data, status_code, headers
1788
+ end
1789
+ # 修改 Access Token
1790
+ # @param body
1791
+ # @param app 应用标识
1792
+ # @param [Hash] opts the optional parameters
1793
+ # @return [TokenBean]
1794
+ def app_update_access_token(body, app, opts = {})
1795
+ data, _status_code, _headers = app_update_access_token_with_http_info(body, app, opts)
1796
+ data
1797
+ end
1798
+
1799
+ # 修改 Access Token
1800
+ # @param body
1801
+ # @param app 应用标识
1802
+ # @param [Hash] opts the optional parameters
1803
+ # @return [Array<(TokenBean, Integer, Hash)>] TokenBean data, response status code and response headers
1804
+ def app_update_access_token_with_http_info(body, app, opts = {})
1805
+ if @api_client.config.debugging
1806
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_update_access_token ...'
1807
+ end
1808
+ # verify the required parameter 'body' is set
1809
+ if @api_client.config.client_side_validation && body.nil?
1810
+ fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.app_update_access_token"
1811
+ end
1812
+ # verify the required parameter 'app' is set
1813
+ if @api_client.config.client_side_validation && app.nil?
1814
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_update_access_token"
1815
+ end
1816
+ # resource path
1817
+ local_var_path = '/apps/{app}/tokens'.sub('{' + 'app' + '}', app.to_s)
1818
+
1819
+ # query parameters
1820
+ query_params = opts[:query_params] || {}
1821
+
1822
+ # header parameters
1823
+ header_params = opts[:header_params] || {}
1824
+ # HTTP header 'Accept' (if needed)
1825
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1826
+ # HTTP header 'Content-Type'
1827
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1828
+
1829
+ # form parameters
1830
+ form_params = opts[:form_params] || {}
1831
+
1832
+ # http body (model)
1833
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
1834
+
1835
+ return_type = opts[:return_type] || 'TokenBean'
1836
+
1837
+ auth_names = opts[:auth_names] || ['TokenAuth']
1838
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1839
+ :header_params => header_params,
1840
+ :query_params => query_params,
1841
+ :form_params => form_params,
1842
+ :body => post_body,
1843
+ :auth_names => auth_names,
1844
+ :return_type => return_type)
1845
+
1846
+ if @api_client.config.debugging
1847
+ @api_client.config.logger.debug "API called: AppsApi#app_update_access_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1848
+ end
1849
+ return data, status_code, headers
1850
+ end
1851
+ # 修改成员备注和权限
1852
+ # @param app 应用标识
1853
+ # @param account 成员编号
1854
+ # @param name 备注名称
1855
+ # @param scopes 权限
1856
+ # @param [Hash] opts the optional parameters
1857
+ # @return [BOOLEAN]
1858
+ def app_update_mentor(app, account, name, scopes, opts = {})
1859
+ data, _status_code, _headers = app_update_mentor_with_http_info(app, account, name, scopes, opts)
1860
+ data
1861
+ end
1862
+
1863
+ # 修改成员备注和权限
1864
+ # @param app 应用标识
1865
+ # @param account 成员编号
1866
+ # @param name 备注名称
1867
+ # @param scopes 权限
1868
+ # @param [Hash] opts the optional parameters
1869
+ # @return [Array<(BOOLEAN, Integer, Hash)>] BOOLEAN data, response status code and response headers
1870
+ def app_update_mentor_with_http_info(app, account, name, scopes, opts = {})
1871
+ if @api_client.config.debugging
1872
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_update_mentor ...'
1873
+ end
1874
+ # verify the required parameter 'app' is set
1875
+ if @api_client.config.client_side_validation && app.nil?
1876
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_update_mentor"
1877
+ end
1878
+ # verify the required parameter 'account' is set
1879
+ if @api_client.config.client_side_validation && account.nil?
1880
+ fail ArgumentError, "Missing the required parameter 'account' when calling AppsApi.app_update_mentor"
1881
+ end
1882
+ # verify the required parameter 'name' is set
1883
+ if @api_client.config.client_side_validation && name.nil?
1884
+ fail ArgumentError, "Missing the required parameter 'name' when calling AppsApi.app_update_mentor"
1885
+ end
1886
+ # verify the required parameter 'scopes' is set
1887
+ if @api_client.config.client_side_validation && scopes.nil?
1888
+ fail ArgumentError, "Missing the required parameter 'scopes' when calling AppsApi.app_update_mentor"
1889
+ end
1890
+ # resource path
1891
+ local_var_path = '/apps/{app}/mentors'.sub('{' + 'app' + '}', app.to_s)
1892
+
1893
+ # query parameters
1894
+ query_params = opts[:query_params] || {}
1895
+ query_params[:'account'] = account
1896
+ query_params[:'name'] = name
1897
+ query_params[:'scopes'] = scopes
1898
+
1899
+ # header parameters
1900
+ header_params = opts[:header_params] || {}
1901
+ # HTTP header 'Accept' (if needed)
1902
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1903
+
1904
+ # form parameters
1905
+ form_params = opts[:form_params] || {}
1906
+
1907
+ # http body (model)
1908
+ post_body = opts[:body]
1909
+
1910
+ return_type = opts[:return_type] || 'BOOLEAN'
1911
+
1912
+ auth_names = opts[:auth_names] || ['TokenAuth']
1913
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1914
+ :header_params => header_params,
1915
+ :query_params => query_params,
1916
+ :form_params => form_params,
1917
+ :body => post_body,
1918
+ :auth_names => auth_names,
1919
+ :return_type => return_type)
1920
+
1921
+ if @api_client.config.debugging
1922
+ @api_client.config.logger.debug "API called: AppsApi#app_update_mentor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1923
+ end
1924
+ return data, status_code, headers
1925
+ end
1926
+ # 修改应用成员自身的设置(包括应用名备注,是否接收报告等)
1927
+ # @param app 应用标识
1928
+ # @param [Hash] opts the optional parameters
1929
+ # @option opts [String] :name 应用备注名称,如果不填写则使用默认名称
1930
+ # @option opts [BOOLEAN] :report 是否接收使用情况报告 (default to false)
1931
+ # @return [BOOLEAN]
1932
+ def app_update_mentor_options(app, opts = {})
1933
+ data, _status_code, _headers = app_update_mentor_options_with_http_info(app, opts)
1934
+ data
1935
+ end
1936
+
1937
+ # 修改应用成员自身的设置(包括应用名备注,是否接收报告等)
1938
+ # @param app 应用标识
1939
+ # @param [Hash] opts the optional parameters
1940
+ # @option opts [String] :name 应用备注名称,如果不填写则使用默认名称
1941
+ # @option opts [BOOLEAN] :report 是否接收使用情况报告
1942
+ # @return [Array<(BOOLEAN, Integer, Hash)>] BOOLEAN data, response status code and response headers
1943
+ def app_update_mentor_options_with_http_info(app, opts = {})
1944
+ if @api_client.config.debugging
1945
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_update_mentor_options ...'
1946
+ end
1947
+ # verify the required parameter 'app' is set
1948
+ if @api_client.config.client_side_validation && app.nil?
1949
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_update_mentor_options"
1950
+ end
1951
+ # resource path
1952
+ local_var_path = '/apps/{app}/mentors-options'.sub('{' + 'app' + '}', app.to_s)
1953
+
1954
+ # query parameters
1955
+ query_params = opts[:query_params] || {}
1956
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
1957
+ query_params[:'report'] = opts[:'report'] if !opts[:'report'].nil?
1958
+
1959
+ # header parameters
1960
+ header_params = opts[:header_params] || {}
1961
+ # HTTP header 'Accept' (if needed)
1962
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1963
+
1964
+ # form parameters
1965
+ form_params = opts[:form_params] || {}
1966
+
1967
+ # http body (model)
1968
+ post_body = opts[:body]
1969
+
1970
+ return_type = opts[:return_type] || 'BOOLEAN'
1971
+
1972
+ auth_names = opts[:auth_names] || ['TokenAuth']
1973
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1974
+ :header_params => header_params,
1975
+ :query_params => query_params,
1976
+ :form_params => form_params,
1977
+ :body => post_body,
1978
+ :auth_names => auth_names,
1979
+ :return_type => return_type)
1980
+
1981
+ if @api_client.config.debugging
1982
+ @api_client.config.logger.debug "API called: AppsApi#app_update_mentor_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1983
+ end
1984
+ return data, status_code, headers
1985
+ end
1986
+ # 修改应用成员自身的通知设置
1987
+ # @param key
1988
+ # @param type
1989
+ # @param value
1990
+ # @param vcode
1991
+ # @param app 应用标识
1992
+ # @param [Hash] opts the optional parameters
1993
+ # @return [BOOLEAN]
1994
+ def app_update_mentor_report_options(key, type, value, vcode, app, opts = {})
1995
+ data, _status_code, _headers = app_update_mentor_report_options_with_http_info(key, type, value, vcode, app, opts)
1996
+ data
1997
+ end
1998
+
1999
+ # 修改应用成员自身的通知设置
2000
+ # @param key
2001
+ # @param type
2002
+ # @param value
2003
+ # @param vcode
2004
+ # @param app 应用标识
2005
+ # @param [Hash] opts the optional parameters
2006
+ # @return [Array<(BOOLEAN, Integer, Hash)>] BOOLEAN data, response status code and response headers
2007
+ def app_update_mentor_report_options_with_http_info(key, type, value, vcode, app, opts = {})
2008
+ if @api_client.config.debugging
2009
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_update_mentor_report_options ...'
2010
+ end
2011
+ # verify the required parameter 'key' is set
2012
+ if @api_client.config.client_side_validation && key.nil?
2013
+ fail ArgumentError, "Missing the required parameter 'key' when calling AppsApi.app_update_mentor_report_options"
2014
+ end
2015
+ # verify the required parameter 'type' is set
2016
+ if @api_client.config.client_side_validation && type.nil?
2017
+ fail ArgumentError, "Missing the required parameter 'type' when calling AppsApi.app_update_mentor_report_options"
2018
+ end
2019
+ # verify enum value
2020
+ if @api_client.config.client_side_validation && !['int', 'bool', 'string'].include?(type)
2021
+ fail ArgumentError, "invalid value for 'type', must be one of int, bool, string"
2022
+ end
2023
+ # verify the required parameter 'value' is set
2024
+ if @api_client.config.client_side_validation && value.nil?
2025
+ fail ArgumentError, "Missing the required parameter 'value' when calling AppsApi.app_update_mentor_report_options"
2026
+ end
2027
+ # verify the required parameter 'vcode' is set
2028
+ if @api_client.config.client_side_validation && vcode.nil?
2029
+ fail ArgumentError, "Missing the required parameter 'vcode' when calling AppsApi.app_update_mentor_report_options"
2030
+ end
2031
+ # verify the required parameter 'app' is set
2032
+ if @api_client.config.client_side_validation && app.nil?
2033
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_update_mentor_report_options"
2034
+ end
2035
+ # resource path
2036
+ local_var_path = '/apps/{app}/mentors-options'.sub('{' + 'app' + '}', app.to_s)
2037
+
2038
+ # query parameters
2039
+ query_params = opts[:query_params] || {}
2040
+
2041
+ # header parameters
2042
+ header_params = opts[:header_params] || {}
2043
+ # HTTP header 'Accept' (if needed)
2044
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2045
+ # HTTP header 'Content-Type'
2046
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
2047
+
2048
+ # form parameters
2049
+ form_params = opts[:form_params] || {}
2050
+ form_params['key'] = key
2051
+ form_params['type'] = type
2052
+ form_params['value'] = value
2053
+ form_params['vcode'] = vcode
2054
+
2055
+ # http body (model)
2056
+ post_body = opts[:body]
2057
+
2058
+ return_type = opts[:return_type] || 'BOOLEAN'
2059
+
2060
+ auth_names = opts[:auth_names] || ['TokenAuth']
2061
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
2062
+ :header_params => header_params,
2063
+ :query_params => query_params,
2064
+ :form_params => form_params,
2065
+ :body => post_body,
2066
+ :auth_names => auth_names,
2067
+ :return_type => return_type)
2068
+
2069
+ if @api_client.config.debugging
2070
+ @api_client.config.logger.debug "API called: AppsApi#app_update_mentor_report_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2071
+ end
2072
+ return data, status_code, headers
2073
+ end
2074
+ # 修改第三方应用信息
2075
+ # @param body
2076
+ # @param app 应用标识
2077
+ # @param [Hash] opts the optional parameters
2078
+ # @return [OauthAppBean]
2079
+ def app_update_oauth_app(body, app, opts = {})
2080
+ data, _status_code, _headers = app_update_oauth_app_with_http_info(body, app, opts)
2081
+ data
2082
+ end
2083
+
2084
+ # 修改第三方应用信息
2085
+ # @param body
2086
+ # @param app 应用标识
2087
+ # @param [Hash] opts the optional parameters
2088
+ # @return [Array<(OauthAppBean, Integer, Hash)>] OauthAppBean data, response status code and response headers
2089
+ def app_update_oauth_app_with_http_info(body, app, opts = {})
2090
+ if @api_client.config.debugging
2091
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_update_oauth_app ...'
2092
+ end
2093
+ # verify the required parameter 'body' is set
2094
+ if @api_client.config.client_side_validation && body.nil?
2095
+ fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.app_update_oauth_app"
2096
+ end
2097
+ # verify the required parameter 'app' is set
2098
+ if @api_client.config.client_side_validation && app.nil?
2099
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_update_oauth_app"
2100
+ end
2101
+ # resource path
2102
+ local_var_path = '/apps/{app}/oauth'.sub('{' + 'app' + '}', app.to_s)
2103
+
2104
+ # query parameters
2105
+ query_params = opts[:query_params] || {}
2106
+
2107
+ # header parameters
2108
+ header_params = opts[:header_params] || {}
2109
+ # HTTP header 'Accept' (if needed)
2110
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2111
+ # HTTP header 'Content-Type'
2112
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2113
+
2114
+ # form parameters
2115
+ form_params = opts[:form_params] || {}
2116
+
2117
+ # http body (model)
2118
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
2119
+
2120
+ return_type = opts[:return_type] || 'OauthAppBean'
2121
+
2122
+ auth_names = opts[:auth_names] || ['TokenAuth']
2123
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
2124
+ :header_params => header_params,
2125
+ :query_params => query_params,
2126
+ :form_params => form_params,
2127
+ :body => post_body,
2128
+ :auth_names => auth_names,
2129
+ :return_type => return_type)
2130
+
2131
+ if @api_client.config.debugging
2132
+ @api_client.config.logger.debug "API called: AppsApi#app_update_oauth_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2133
+ end
2134
+ return data, status_code, headers
2135
+ end
2136
+ # 修改三方应用图标
2137
+ # @param ident 三方应用标识
2138
+ # @param app 应用标识
2139
+ # @param [Hash] opts the optional parameters
2140
+ # @option opts [String] :logo
2141
+ # @return [OauthAppBean]
2142
+ def app_update_oauth_app_logo(ident, app, opts = {})
2143
+ data, _status_code, _headers = app_update_oauth_app_logo_with_http_info(ident, app, opts)
2144
+ data
2145
+ end
2146
+
2147
+ # 修改三方应用图标
2148
+ # @param ident 三方应用标识
2149
+ # @param app 应用标识
2150
+ # @param [Hash] opts the optional parameters
2151
+ # @option opts [String] :logo
2152
+ # @return [Array<(OauthAppBean, Integer, Hash)>] OauthAppBean data, response status code and response headers
2153
+ def app_update_oauth_app_logo_with_http_info(ident, app, opts = {})
2154
+ if @api_client.config.debugging
2155
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_update_oauth_app_logo ...'
2156
+ end
2157
+ # verify the required parameter 'ident' is set
2158
+ if @api_client.config.client_side_validation && ident.nil?
2159
+ fail ArgumentError, "Missing the required parameter 'ident' when calling AppsApi.app_update_oauth_app_logo"
2160
+ end
2161
+ # verify the required parameter 'app' is set
2162
+ if @api_client.config.client_side_validation && app.nil?
2163
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_update_oauth_app_logo"
2164
+ end
2165
+ # resource path
2166
+ local_var_path = '/apps/{app}/oauth'.sub('{' + 'app' + '}', app.to_s)
2167
+
2168
+ # query parameters
2169
+ query_params = opts[:query_params] || {}
2170
+ query_params[:'ident'] = ident
2171
+
2172
+ # header parameters
2173
+ header_params = opts[:header_params] || {}
2174
+ # HTTP header 'Accept' (if needed)
2175
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2176
+ # HTTP header 'Content-Type'
2177
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2178
+
2179
+ # form parameters
2180
+ form_params = opts[:form_params] || {}
2181
+ form_params['logo'] = opts[:'logo'] if !opts[:'logo'].nil?
2182
+
2183
+ # http body (model)
2184
+ post_body = opts[:body]
2185
+
2186
+ return_type = opts[:return_type] || 'OauthAppBean'
2187
+
2188
+ auth_names = opts[:auth_names] || ['TokenAuth']
2189
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2190
+ :header_params => header_params,
2191
+ :query_params => query_params,
2192
+ :form_params => form_params,
2193
+ :body => post_body,
2194
+ :auth_names => auth_names,
2195
+ :return_type => return_type)
2196
+
2197
+ if @api_client.config.debugging
2198
+ @api_client.config.logger.debug "API called: AppsApi#app_update_oauth_app_logo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2199
+ end
2200
+ return data, status_code, headers
2201
+ end
2202
+ # 修改应用的状态
2203
+ # @param app 应用标识
2204
+ # @param vcode 验证码
2205
+ # @param status 新状态
2206
+ # @param [Hash] opts the optional parameters
2207
+ # @return [BOOLEAN]
2208
+ def app_update_status(app, vcode, status, opts = {})
2209
+ data, _status_code, _headers = app_update_status_with_http_info(app, vcode, status, opts)
2210
+ data
2211
+ end
2212
+
2213
+ # 修改应用的状态
2214
+ # @param app 应用标识
2215
+ # @param vcode 验证码
2216
+ # @param status 新状态
2217
+ # @param [Hash] opts the optional parameters
2218
+ # @return [Array<(BOOLEAN, Integer, Hash)>] BOOLEAN data, response status code and response headers
2219
+ def app_update_status_with_http_info(app, vcode, status, opts = {})
2220
+ if @api_client.config.debugging
2221
+ @api_client.config.logger.debug 'Calling API: AppsApi.app_update_status ...'
2222
+ end
2223
+ # verify the required parameter 'app' is set
2224
+ if @api_client.config.client_side_validation && app.nil?
2225
+ fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.app_update_status"
2226
+ end
2227
+ # verify the required parameter 'vcode' is set
2228
+ if @api_client.config.client_side_validation && vcode.nil?
2229
+ fail ArgumentError, "Missing the required parameter 'vcode' when calling AppsApi.app_update_status"
2230
+ end
2231
+ # verify the required parameter 'status' is set
2232
+ if @api_client.config.client_side_validation && status.nil?
2233
+ fail ArgumentError, "Missing the required parameter 'status' when calling AppsApi.app_update_status"
2234
+ end
2235
+ # resource path
2236
+ local_var_path = '/apps/{app}'.sub('{' + 'app' + '}', app.to_s)
2237
+
2238
+ # query parameters
2239
+ query_params = opts[:query_params] || {}
2240
+ query_params[:'vcode'] = vcode
2241
+ query_params[:'status'] = status
2242
+
2243
+ # header parameters
2244
+ header_params = opts[:header_params] || {}
2245
+ # HTTP header 'Accept' (if needed)
2246
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2247
+
2248
+ # form parameters
2249
+ form_params = opts[:form_params] || {}
2250
+
2251
+ # http body (model)
2252
+ post_body = opts[:body]
2253
+
2254
+ return_type = opts[:return_type] || 'BOOLEAN'
2255
+
2256
+ auth_names = opts[:auth_names] || ['TokenAuth']
2257
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
2258
+ :header_params => header_params,
2259
+ :query_params => query_params,
2260
+ :form_params => form_params,
2261
+ :body => post_body,
2262
+ :auth_names => auth_names,
2263
+ :return_type => return_type)
2264
+
2265
+ if @api_client.config.debugging
2266
+ @api_client.config.logger.debug "API called: AppsApi#app_update_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2267
+ end
2268
+ return data, status_code, headers
2269
+ end
2270
+ end
2271
+ end