zsgf_client 1.0.25 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (562) hide show
  1. checksums.yaml +4 -4
  2. data/docs/AccessTokenApi.md +1 -1
  3. data/docs/AlipayApi.md +25 -25
  4. data/docs/AppApi.md +1 -655
  5. data/docs/DingTalkApi.md +1 -1
  6. data/docs/ExternalAccountApi.md +373 -0
  7. data/docs/{OAuthAccountBindRequest.md → ExternalAccountBindRequest.md} +2 -2
  8. data/docs/{OAuthAccountPutBindRequest.md → ExternalAccountPutRequest.md} +2 -2
  9. data/docs/{OAuthAccountSignInRequest.md → ExternalAccountSignInRequest.md} +2 -2
  10. data/docs/FileApi.md +15 -15
  11. data/docs/OAuthApi.md +17 -17
  12. data/docs/OrderApi.md +1 -1
  13. data/docs/StorageApi.md +87 -917
  14. data/docs/TapPayInfo.md +5 -1
  15. data/docs/UserApi.md +105 -2459
  16. data/docs/UserCurrencyApi.md +1 -1
  17. data/docs/UserFriendsApi.md +795 -0
  18. data/docs/UserLocationApi.md +387 -0
  19. data/docs/WechatApi.md +343 -47
  20. data/lib/zsgf_client/api/access_token_api.rb +1 -1
  21. data/lib/zsgf_client/api/alipay_api.rb +13 -13
  22. data/lib/zsgf_client/api/app_api.rb +1 -588
  23. data/lib/zsgf_client/api/ding_talk_api.rb +1 -1
  24. data/lib/zsgf_client/api/{authorize_policy_api.rb → external_account_api.rb} +108 -113
  25. data/lib/zsgf_client/api/file_api.rb +11 -11
  26. data/lib/zsgf_client/api/o_auth_api.rb +9 -9
  27. data/lib/zsgf_client/api/order_api.rb +1 -1
  28. data/lib/zsgf_client/api/storage_api.rb +23 -894
  29. data/lib/zsgf_client/api/user_api.rb +112 -2374
  30. data/lib/zsgf_client/api/user_currency_api.rb +1 -1
  31. data/lib/zsgf_client/api/user_friends_api.rb +787 -0
  32. data/lib/zsgf_client/api/{user_setting_api.rb → user_location_api.rb} +106 -94
  33. data/lib/zsgf_client/api/wechat_api.rb +305 -25
  34. data/lib/zsgf_client/api_client.rb +1 -1
  35. data/lib/zsgf_client/api_error.rb +1 -1
  36. data/lib/zsgf_client/configuration.rb +4 -4
  37. data/lib/zsgf_client/models/access_token_list_result.rb +1 -1
  38. data/lib/zsgf_client/models/access_token_list_result_api_response.rb +1 -1
  39. data/lib/zsgf_client/models/access_token_post_request.rb +1 -1
  40. data/lib/zsgf_client/models/access_token_put_request.rb +1 -1
  41. data/lib/zsgf_client/models/alipay_create_order_page_pay_request.rb +1 -1
  42. data/lib/zsgf_client/models/alipay_create_order_request.rb +1 -1
  43. data/lib/zsgf_client/models/alipay_create_order_wap_pay_request.rb +1 -1
  44. data/lib/zsgf_client/models/alipay_trade_query_response.rb +1 -1
  45. data/lib/zsgf_client/models/alipay_trade_query_response_api_response.rb +1 -1
  46. data/lib/zsgf_client/models/alipay_trade_refund_response.rb +1 -1
  47. data/lib/zsgf_client/models/alipay_trade_refund_response_api_response.rb +1 -1
  48. data/lib/zsgf_client/models/app_info_item.rb +1 -1
  49. data/lib/zsgf_client/models/app_info_result.rb +1 -1
  50. data/lib/zsgf_client/models/app_info_result_api_response.rb +1 -1
  51. data/lib/zsgf_client/models/app_property.rb +1 -1
  52. data/lib/zsgf_client/models/app_user_consent_model.rb +1 -1
  53. data/lib/zsgf_client/models/app_user_consent_model_list_api_response.rb +1 -1
  54. data/lib/zsgf_client/models/app_user_reset_email_request.rb +1 -1
  55. data/lib/zsgf_client/models/app_user_reset_phone_request.rb +1 -1
  56. data/lib/zsgf_client/models/app_user_reset_pwd_request.rb +1 -1
  57. data/lib/zsgf_client/models/authorize_result.rb +1 -1
  58. data/lib/zsgf_client/models/authorize_result_api_response.rb +1 -1
  59. data/lib/zsgf_client/models/bk_agent_resp_info.rb +1 -1
  60. data/lib/zsgf_client/models/boolean_api_response.rb +1 -1
  61. data/lib/zsgf_client/models/charge_info.rb +1 -1
  62. data/lib/zsgf_client/models/common_friend_model.rb +1 -1
  63. data/lib/zsgf_client/models/contribute_detail.rb +1 -1
  64. data/lib/zsgf_client/models/create_order_request.rb +1 -1
  65. data/lib/zsgf_client/models/create_order_result.rb +1 -1
  66. data/lib/zsgf_client/models/create_order_result_api_response.rb +1 -1
  67. data/lib/zsgf_client/models/currency_consume_request.rb +1 -1
  68. data/lib/zsgf_client/models/currency_transaction.rb +1 -1
  69. data/lib/zsgf_client/models/directory_item.rb +1 -1
  70. data/lib/zsgf_client/models/email_sign_in_request.rb +1 -1
  71. data/lib/zsgf_client/models/email_sign_up_request.rb +1 -1
  72. data/lib/zsgf_client/models/enterprise_pay_info.rb +1 -1
  73. data/lib/zsgf_client/models/exchange_currency_request.rb +1 -1
  74. data/lib/zsgf_client/models/{o_auth_account_bind_request.rb → external_account_bind_request.rb} +4 -4
  75. data/lib/zsgf_client/models/{o_auth_account_put_bind_request.rb → external_account_put_request.rb} +4 -4
  76. data/lib/zsgf_client/models/{o_auth_account_sign_in_request.rb → external_account_sign_in_request.rb} +4 -4
  77. data/lib/zsgf_client/models/file_item.rb +1 -1
  78. data/lib/zsgf_client/models/file_list_result.rb +1 -1
  79. data/lib/zsgf_client/models/file_list_result_api_response.rb +1 -1
  80. data/lib/zsgf_client/models/follower_model.rb +1 -1
  81. data/lib/zsgf_client/models/follower_put_model.rb +1 -1
  82. data/lib/zsgf_client/models/fulfillment_detail.rb +1 -1
  83. data/lib/zsgf_client/models/geo_location.rb +1 -1
  84. data/lib/zsgf_client/models/geo_location_model.rb +1 -1
  85. data/lib/zsgf_client/models/geo_location_model_api_response.rb +1 -1
  86. data/lib/zsgf_client/models/geo_location_response_model.rb +1 -1
  87. data/lib/zsgf_client/models/get_user_profile_result.rb +1 -1
  88. data/lib/zsgf_client/models/get_user_profile_result_api_response.rb +1 -1
  89. data/lib/zsgf_client/models/goods_detail.rb +1 -1
  90. data/lib/zsgf_client/models/grant_request.rb +1 -1
  91. data/lib/zsgf_client/models/grant_result.rb +1 -1
  92. data/lib/zsgf_client/models/grant_result_api_response.rb +1 -1
  93. data/lib/zsgf_client/models/hb_fq_pay_info.rb +1 -1
  94. data/lib/zsgf_client/models/int64_api_response.rb +1 -1
  95. data/lib/zsgf_client/models/intact_charge_info.rb +1 -1
  96. data/lib/zsgf_client/models/my_sql_geometry.rb +1 -1
  97. data/lib/zsgf_client/models/object_api_response.rb +1 -1
  98. data/lib/zsgf_client/models/object_list_api_response.rb +1 -1
  99. data/lib/zsgf_client/models/order.rb +1 -1
  100. data/lib/zsgf_client/models/order_api_response.rb +1 -1
  101. data/lib/zsgf_client/models/order_list_result.rb +1 -1
  102. data/lib/zsgf_client/models/order_list_result_api_response.rb +1 -1
  103. data/lib/zsgf_client/models/payment_info_with_id.rb +1 -1
  104. data/lib/zsgf_client/models/phone_sign_in_request.rb +1 -1
  105. data/lib/zsgf_client/models/phone_sign_up_request.rb +1 -1
  106. data/lib/zsgf_client/models/preset_pay_tool_info.rb +1 -1
  107. data/lib/zsgf_client/models/profile_result.rb +1 -1
  108. data/lib/zsgf_client/models/profile_result_api_response.rb +1 -1
  109. data/lib/zsgf_client/models/qr_code_pre_sign_in_request.rb +1 -1
  110. data/lib/zsgf_client/models/qr_code_scan_request.rb +1 -1
  111. data/lib/zsgf_client/models/qr_code_sign_in_request.rb +1 -1
  112. data/lib/zsgf_client/models/qr_code_sign_up_request.rb +1 -1
  113. data/lib/zsgf_client/models/recharge_point_request.rb +1 -1
  114. data/lib/zsgf_client/models/recommend_friend.rb +1 -1
  115. data/lib/zsgf_client/models/refund_charge_info.rb +1 -1
  116. data/lib/zsgf_client/models/refund_sub_fee.rb +1 -1
  117. data/lib/zsgf_client/models/return_page_notify_request.rb +1 -1
  118. data/lib/zsgf_client/models/send_email_code_request.rb +1 -1
  119. data/lib/zsgf_client/models/send_sms_code_request.rb +1 -1
  120. data/lib/zsgf_client/models/setup_code.rb +1 -1
  121. data/lib/zsgf_client/models/setup_code_api_response.rb +1 -1
  122. data/lib/zsgf_client/models/sign_in_request.rb +1 -1
  123. data/lib/zsgf_client/models/sign_up_request.rb +1 -1
  124. data/lib/zsgf_client/models/storage_list_result.rb +1 -1
  125. data/lib/zsgf_client/models/storage_list_result_api_response.rb +1 -1
  126. data/lib/zsgf_client/models/string_api_response.rb +1 -1
  127. data/lib/zsgf_client/models/sub_fee.rb +1 -1
  128. data/lib/zsgf_client/models/tap_pay_info.rb +26 -6
  129. data/lib/zsgf_client/models/token_model.rb +1 -1
  130. data/lib/zsgf_client/models/token_model_api_response.rb +1 -1
  131. data/lib/zsgf_client/models/trade_fund_bill.rb +1 -1
  132. data/lib/zsgf_client/models/trade_settle_detail.rb +1 -1
  133. data/lib/zsgf_client/models/trade_settle_info.rb +1 -1
  134. data/lib/zsgf_client/models/union_id_sign_in_request.rb +1 -1
  135. data/lib/zsgf_client/models/union_id_sign_up_request.rb +1 -1
  136. data/lib/zsgf_client/models/update_profile_request.rb +1 -1
  137. data/lib/zsgf_client/models/user.rb +1 -1
  138. data/lib/zsgf_client/models/user_access_token.rb +1 -1
  139. data/lib/zsgf_client/models/user_common_interests_result.rb +1 -1
  140. data/lib/zsgf_client/models/user_common_interests_result_api_response.rb +1 -1
  141. data/lib/zsgf_client/models/user_currency.rb +1 -1
  142. data/lib/zsgf_client/models/user_currency_currency_trans_result.rb +1 -1
  143. data/lib/zsgf_client/models/user_currency_currency_trans_result_api_response.rb +1 -1
  144. data/lib/zsgf_client/models/user_currency_list_api_response.rb +1 -1
  145. data/lib/zsgf_client/models/user_followers_result.rb +1 -1
  146. data/lib/zsgf_client/models/user_followers_result_api_response.rb +1 -1
  147. data/lib/zsgf_client/models/user_friends_near_by_result.rb +1 -1
  148. data/lib/zsgf_client/models/user_friends_near_by_result_api_response.rb +1 -1
  149. data/lib/zsgf_client/models/user_location_post_result.rb +1 -1
  150. data/lib/zsgf_client/models/user_location_post_result_api_response.rb +1 -1
  151. data/lib/zsgf_client/models/user_locations_result.rb +1 -1
  152. data/lib/zsgf_client/models/user_locations_result_api_response.rb +1 -1
  153. data/lib/zsgf_client/models/user_logins.rb +1 -1
  154. data/lib/zsgf_client/models/user_logins_list_api_response.rb +1 -1
  155. data/lib/zsgf_client/models/user_mutual_followers_result.rb +1 -1
  156. data/lib/zsgf_client/models/user_mutual_followers_result_api_response.rb +1 -1
  157. data/lib/zsgf_client/models/user_mutual_followings_result.rb +1 -1
  158. data/lib/zsgf_client/models/user_mutual_followings_result_api_response.rb +1 -1
  159. data/lib/zsgf_client/models/user_profile_result.rb +1 -1
  160. data/lib/zsgf_client/models/user_profile_result_api_response.rb +1 -1
  161. data/lib/zsgf_client/models/user_qr_code_scan_result.rb +1 -1
  162. data/lib/zsgf_client/models/user_qr_code_scan_result_api_response.rb +1 -1
  163. data/lib/zsgf_client/models/voucher_detail.rb +1 -1
  164. data/lib/zsgf_client/models/wechat_js_config_result.rb +1 -1
  165. data/lib/zsgf_client/models/wechat_js_config_result_api_response.rb +1 -1
  166. data/lib/zsgf_client/version.rb +2 -2
  167. data/lib/zsgf_client.rb +7 -88
  168. data/spec/api/access_token_api_spec.rb +1 -1
  169. data/spec/api/alipay_api_spec.rb +7 -7
  170. data/spec/api/app_api_spec.rb +1 -115
  171. data/spec/api/ding_talk_api_spec.rb +1 -1
  172. data/spec/api/{user_setting_api_spec.rb → external_account_api_spec.rb} +35 -38
  173. data/spec/api/file_api_spec.rb +6 -6
  174. data/spec/api/o_auth_api_spec.rb +5 -5
  175. data/spec/api/order_api_spec.rb +1 -1
  176. data/spec/api/storage_api_spec.rb +1 -156
  177. data/spec/api/user_api_spec.rb +5 -449
  178. data/spec/api/user_currency_api_spec.rb +1 -1
  179. data/spec/api/user_friends_api_spec.rb +192 -0
  180. data/spec/api/user_location_api_spec.rb +107 -0
  181. data/spec/api/wechat_api_spec.rb +64 -12
  182. data/spec/models/access_token_list_result_api_response_spec.rb +1 -1
  183. data/spec/models/access_token_list_result_spec.rb +1 -1
  184. data/spec/models/access_token_post_request_spec.rb +1 -1
  185. data/spec/models/access_token_put_request_spec.rb +1 -1
  186. data/spec/models/alipay_create_order_page_pay_request_spec.rb +1 -1
  187. data/spec/models/alipay_create_order_request_spec.rb +1 -1
  188. data/spec/models/alipay_create_order_wap_pay_request_spec.rb +1 -1
  189. data/spec/models/alipay_trade_query_response_api_response_spec.rb +1 -1
  190. data/spec/models/alipay_trade_query_response_spec.rb +1 -1
  191. data/spec/models/alipay_trade_refund_response_api_response_spec.rb +1 -1
  192. data/spec/models/alipay_trade_refund_response_spec.rb +1 -1
  193. data/spec/models/app_info_item_spec.rb +1 -1
  194. data/spec/models/app_info_result_api_response_spec.rb +1 -1
  195. data/spec/models/app_info_result_spec.rb +1 -1
  196. data/spec/models/app_property_spec.rb +1 -1
  197. data/spec/models/app_user_consent_model_list_api_response_spec.rb +1 -1
  198. data/spec/models/app_user_consent_model_spec.rb +1 -1
  199. data/spec/models/app_user_reset_email_request_spec.rb +1 -1
  200. data/spec/models/app_user_reset_phone_request_spec.rb +1 -1
  201. data/spec/models/app_user_reset_pwd_request_spec.rb +1 -1
  202. data/spec/models/authorize_result_api_response_spec.rb +1 -1
  203. data/spec/models/authorize_result_spec.rb +1 -1
  204. data/spec/models/bk_agent_resp_info_spec.rb +1 -1
  205. data/spec/models/boolean_api_response_spec.rb +1 -1
  206. data/spec/models/charge_info_spec.rb +1 -1
  207. data/spec/models/common_friend_model_spec.rb +1 -1
  208. data/spec/models/contribute_detail_spec.rb +1 -1
  209. data/spec/models/create_order_request_spec.rb +1 -1
  210. data/spec/models/create_order_result_api_response_spec.rb +1 -1
  211. data/spec/models/create_order_result_spec.rb +1 -1
  212. data/spec/models/currency_consume_request_spec.rb +1 -1
  213. data/spec/models/currency_transaction_spec.rb +1 -1
  214. data/spec/models/directory_item_spec.rb +1 -1
  215. data/spec/models/email_sign_in_request_spec.rb +1 -1
  216. data/spec/models/email_sign_up_request_spec.rb +1 -1
  217. data/spec/models/enterprise_pay_info_spec.rb +1 -1
  218. data/spec/models/exchange_currency_request_spec.rb +1 -1
  219. data/spec/models/{o_auth_account_bind_request_spec.rb → external_account_bind_request_spec.rb} +7 -7
  220. data/spec/models/{o_auth_account_put_bind_request_spec.rb → external_account_put_request_spec.rb} +7 -7
  221. data/spec/models/{o_auth_account_sign_in_request_spec.rb → external_account_sign_in_request_spec.rb} +7 -7
  222. data/spec/models/file_item_spec.rb +1 -1
  223. data/spec/models/file_list_result_api_response_spec.rb +1 -1
  224. data/spec/models/file_list_result_spec.rb +1 -1
  225. data/spec/models/follower_model_spec.rb +1 -1
  226. data/spec/models/follower_put_model_spec.rb +1 -1
  227. data/spec/models/fulfillment_detail_spec.rb +1 -1
  228. data/spec/models/geo_location_model_api_response_spec.rb +1 -1
  229. data/spec/models/geo_location_model_spec.rb +1 -1
  230. data/spec/models/geo_location_response_model_spec.rb +1 -1
  231. data/spec/models/geo_location_spec.rb +1 -1
  232. data/spec/models/get_user_profile_result_api_response_spec.rb +1 -1
  233. data/spec/models/get_user_profile_result_spec.rb +1 -1
  234. data/spec/models/goods_detail_spec.rb +1 -1
  235. data/spec/models/grant_request_spec.rb +1 -1
  236. data/spec/models/grant_result_api_response_spec.rb +1 -1
  237. data/spec/models/grant_result_spec.rb +1 -1
  238. data/spec/models/hb_fq_pay_info_spec.rb +1 -1
  239. data/spec/models/int64_api_response_spec.rb +1 -1
  240. data/spec/models/intact_charge_info_spec.rb +1 -1
  241. data/spec/models/my_sql_geometry_spec.rb +1 -1
  242. data/spec/models/object_api_response_spec.rb +1 -1
  243. data/spec/models/object_list_api_response_spec.rb +1 -1
  244. data/spec/models/order_api_response_spec.rb +1 -1
  245. data/spec/models/order_list_result_api_response_spec.rb +1 -1
  246. data/spec/models/order_list_result_spec.rb +1 -1
  247. data/spec/models/order_spec.rb +1 -1
  248. data/spec/models/payment_info_with_id_spec.rb +1 -1
  249. data/spec/models/phone_sign_in_request_spec.rb +1 -1
  250. data/spec/models/phone_sign_up_request_spec.rb +1 -1
  251. data/spec/models/preset_pay_tool_info_spec.rb +1 -1
  252. data/spec/models/profile_result_api_response_spec.rb +1 -1
  253. data/spec/models/profile_result_spec.rb +1 -1
  254. data/spec/models/qr_code_pre_sign_in_request_spec.rb +1 -1
  255. data/spec/models/qr_code_scan_request_spec.rb +1 -1
  256. data/spec/models/qr_code_sign_in_request_spec.rb +1 -1
  257. data/spec/models/qr_code_sign_up_request_spec.rb +1 -1
  258. data/spec/models/recharge_point_request_spec.rb +1 -1
  259. data/spec/models/recommend_friend_spec.rb +1 -1
  260. data/spec/models/refund_charge_info_spec.rb +1 -1
  261. data/spec/models/refund_sub_fee_spec.rb +1 -1
  262. data/spec/models/return_page_notify_request_spec.rb +1 -1
  263. data/spec/models/send_email_code_request_spec.rb +1 -1
  264. data/spec/models/send_sms_code_request_spec.rb +1 -1
  265. data/spec/models/setup_code_api_response_spec.rb +1 -1
  266. data/spec/models/setup_code_spec.rb +1 -1
  267. data/spec/models/sign_in_request_spec.rb +1 -1
  268. data/spec/models/sign_up_request_spec.rb +1 -1
  269. data/spec/models/storage_list_result_api_response_spec.rb +1 -1
  270. data/spec/models/storage_list_result_spec.rb +1 -1
  271. data/spec/models/string_api_response_spec.rb +1 -1
  272. data/spec/models/sub_fee_spec.rb +1 -1
  273. data/spec/models/tap_pay_info_spec.rb +13 -1
  274. data/spec/models/token_model_api_response_spec.rb +1 -1
  275. data/spec/models/token_model_spec.rb +1 -1
  276. data/spec/models/trade_fund_bill_spec.rb +1 -1
  277. data/spec/models/trade_settle_detail_spec.rb +1 -1
  278. data/spec/models/trade_settle_info_spec.rb +1 -1
  279. data/spec/models/union_id_sign_in_request_spec.rb +1 -1
  280. data/spec/models/union_id_sign_up_request_spec.rb +1 -1
  281. data/spec/models/update_profile_request_spec.rb +1 -1
  282. data/spec/models/user_access_token_spec.rb +1 -1
  283. data/spec/models/user_common_interests_result_api_response_spec.rb +1 -1
  284. data/spec/models/user_common_interests_result_spec.rb +1 -1
  285. data/spec/models/user_currency_currency_trans_result_api_response_spec.rb +1 -1
  286. data/spec/models/user_currency_currency_trans_result_spec.rb +1 -1
  287. data/spec/models/user_currency_list_api_response_spec.rb +1 -1
  288. data/spec/models/user_currency_spec.rb +1 -1
  289. data/spec/models/user_followers_result_api_response_spec.rb +1 -1
  290. data/spec/models/user_followers_result_spec.rb +1 -1
  291. data/spec/models/user_friends_near_by_result_api_response_spec.rb +1 -1
  292. data/spec/models/user_friends_near_by_result_spec.rb +1 -1
  293. data/spec/models/user_location_post_result_api_response_spec.rb +1 -1
  294. data/spec/models/user_location_post_result_spec.rb +1 -1
  295. data/spec/models/user_locations_result_api_response_spec.rb +1 -1
  296. data/spec/models/user_locations_result_spec.rb +1 -1
  297. data/spec/models/user_logins_list_api_response_spec.rb +1 -1
  298. data/spec/models/user_logins_spec.rb +1 -1
  299. data/spec/models/user_mutual_followers_result_api_response_spec.rb +1 -1
  300. data/spec/models/user_mutual_followers_result_spec.rb +1 -1
  301. data/spec/models/user_mutual_followings_result_api_response_spec.rb +1 -1
  302. data/spec/models/user_mutual_followings_result_spec.rb +1 -1
  303. data/spec/models/user_profile_result_api_response_spec.rb +1 -1
  304. data/spec/models/user_profile_result_spec.rb +1 -1
  305. data/spec/models/user_qr_code_scan_result_api_response_spec.rb +1 -1
  306. data/spec/models/user_qr_code_scan_result_spec.rb +1 -1
  307. data/spec/models/user_spec.rb +1 -1
  308. data/spec/models/voucher_detail_spec.rb +1 -1
  309. data/spec/models/wechat_js_config_result_api_response_spec.rb +1 -1
  310. data/spec/models/wechat_js_config_result_spec.rb +1 -1
  311. data/spec/spec_helper.rb +1 -1
  312. data/zsgf_client.gemspec +1 -1
  313. metadata +140 -464
  314. data/docs/App.md +0 -50
  315. data/docs/AppApiResponse.md +0 -22
  316. data/docs/AppCheckVersionResult.md +0 -20
  317. data/docs/AppCheckVersionResultApiResponse.md +0 -22
  318. data/docs/AppListResult.md +0 -20
  319. data/docs/AppListResultApiResponse.md +0 -22
  320. data/docs/AppPostResult.md +0 -20
  321. data/docs/AppPostResultApiResponse.md +0 -22
  322. data/docs/AppSetting.md +0 -36
  323. data/docs/AppSettingApi.md +0 -1495
  324. data/docs/AppSettingApiResponse.md +0 -22
  325. data/docs/AppSettingGroupPostResult.md +0 -18
  326. data/docs/AppSettingGroupPostResultApiResponse.md +0 -22
  327. data/docs/AppSettingItemPostResult.md +0 -18
  328. data/docs/AppSettingItemPostResultApiResponse.md +0 -22
  329. data/docs/AppSettingListApiResponse.md +0 -22
  330. data/docs/AppSettingProviderPostResult.md +0 -18
  331. data/docs/AppSettingProviderPostResultApiResponse.md +0 -22
  332. data/docs/AppSettingSettingPostResult.md +0 -18
  333. data/docs/AppSettingSettingPostResultApiResponse.md +0 -22
  334. data/docs/AppUserListResponse.md +0 -40
  335. data/docs/AuthorizePolicy.md +0 -28
  336. data/docs/AuthorizePolicyApi.md +0 -377
  337. data/docs/AuthorizePolicyApiResponse.md +0 -22
  338. data/docs/AuthorizePolicyListApiResponse.md +0 -22
  339. data/docs/CreatePostResult.md +0 -18
  340. data/docs/CreatePostResultApiResponse.md +0 -22
  341. data/docs/Currency.md +0 -48
  342. data/docs/CurrencyApi.md +0 -677
  343. data/docs/CurrencyApiResponse.md +0 -22
  344. data/docs/CurrencyExchangeRate.md +0 -30
  345. data/docs/CurrencyExchangeRateApiResponse.md +0 -22
  346. data/docs/CurrencyListApiResponse.md +0 -22
  347. data/docs/CurrencyTransactionListApiResponse.md +0 -22
  348. data/docs/ExchangeRatePutRequest.md +0 -22
  349. data/docs/ExecuteFunctionRequest.md +0 -18
  350. data/docs/ListResponseItem.md +0 -36
  351. data/docs/ListResponseItemListApiResponse.md +0 -22
  352. data/docs/PostIndexRequest.md +0 -20
  353. data/docs/PostResult.md +0 -18
  354. data/docs/PostResultApiResponse.md +0 -22
  355. data/docs/Project.md +0 -34
  356. data/docs/ProjectApi.md +0 -367
  357. data/docs/ProjectApiResponse.md +0 -22
  358. data/docs/ProjectListResult.md +0 -20
  359. data/docs/ProjectListResultApiResponse.md +0 -22
  360. data/docs/ServiceGroup.md +0 -36
  361. data/docs/ServiceGroupApiResponse.md +0 -22
  362. data/docs/ServiceGroupListApiResponse.md +0 -22
  363. data/docs/ServiceItem.md +0 -48
  364. data/docs/ServiceItemApiResponse.md +0 -22
  365. data/docs/ServiceItemListApiResponse.md +0 -22
  366. data/docs/ServiceProvider.md +0 -38
  367. data/docs/ServiceProviderApiResponse.md +0 -22
  368. data/docs/ServiceProviderListApiResponse.md +0 -22
  369. data/docs/ServiceSettingApi.md +0 -1459
  370. data/docs/ServiceSettingGroupPostResult.md +0 -18
  371. data/docs/ServiceSettingGroupPostResultApiResponse.md +0 -22
  372. data/docs/ServiceSettingItemPostResult.md +0 -18
  373. data/docs/ServiceSettingItemPostResultApiResponse.md +0 -22
  374. data/docs/ServiceSettingProviderPostResult.md +0 -18
  375. data/docs/ServiceSettingProviderPostResultApiResponse.md +0 -22
  376. data/docs/ServiceSettingSettingPostResult.md +0 -18
  377. data/docs/ServiceSettingSettingPostResultApiResponse.md +0 -22
  378. data/docs/Settings.md +0 -40
  379. data/docs/SettingsApiResponse.md +0 -22
  380. data/docs/SettingsListApiResponse.md +0 -22
  381. data/docs/StringListApiResponse.md +0 -22
  382. data/docs/SystemDirectoryItem.md +0 -24
  383. data/docs/SystemFileApi.md +0 -371
  384. data/docs/SystemFileItem.md +0 -24
  385. data/docs/SystemFileListResult.md +0 -22
  386. data/docs/SystemFileListResultApiResponse.md +0 -22
  387. data/docs/Team.md +0 -36
  388. data/docs/TeamApi.md +0 -297
  389. data/docs/UserApiResponse.md +0 -22
  390. data/docs/UserListResult.md +0 -20
  391. data/docs/UserListResultApiResponse.md +0 -22
  392. data/docs/UserSetting.md +0 -38
  393. data/docs/UserSettingApi.md +0 -379
  394. data/docs/UserSettingApiResponse.md +0 -22
  395. data/docs/UserSettingListApiResponse.md +0 -22
  396. data/docs/UserSettingPostResult.md +0 -18
  397. data/docs/UserSettingPostResultApiResponse.md +0 -22
  398. data/lib/zsgf_client/api/app_setting_api.rb +0 -1446
  399. data/lib/zsgf_client/api/currency_api.rb +0 -667
  400. data/lib/zsgf_client/api/project_api.rb +0 -345
  401. data/lib/zsgf_client/api/service_setting_api.rb +0 -1340
  402. data/lib/zsgf_client/api/system_file_api.rb +0 -333
  403. data/lib/zsgf_client/api/team_api.rb +0 -282
  404. data/lib/zsgf_client/models/app.rb +0 -583
  405. data/lib/zsgf_client/models/app_api_response.rb +0 -245
  406. data/lib/zsgf_client/models/app_check_version_result.rb +0 -235
  407. data/lib/zsgf_client/models/app_check_version_result_api_response.rb +0 -245
  408. data/lib/zsgf_client/models/app_list_result.rb +0 -232
  409. data/lib/zsgf_client/models/app_list_result_api_response.rb +0 -245
  410. data/lib/zsgf_client/models/app_post_result.rb +0 -230
  411. data/lib/zsgf_client/models/app_post_result_api_response.rb +0 -245
  412. data/lib/zsgf_client/models/app_setting.rb +0 -437
  413. data/lib/zsgf_client/models/app_setting_api_response.rb +0 -245
  414. data/lib/zsgf_client/models/app_setting_group_post_result.rb +0 -220
  415. data/lib/zsgf_client/models/app_setting_group_post_result_api_response.rb +0 -245
  416. data/lib/zsgf_client/models/app_setting_item_post_result.rb +0 -220
  417. data/lib/zsgf_client/models/app_setting_item_post_result_api_response.rb +0 -245
  418. data/lib/zsgf_client/models/app_setting_list_api_response.rb +0 -249
  419. data/lib/zsgf_client/models/app_setting_provider_post_result.rb +0 -220
  420. data/lib/zsgf_client/models/app_setting_provider_post_result_api_response.rb +0 -245
  421. data/lib/zsgf_client/models/app_setting_setting_post_result.rb +0 -220
  422. data/lib/zsgf_client/models/app_setting_setting_post_result_api_response.rb +0 -245
  423. data/lib/zsgf_client/models/app_user_list_response.rb +0 -339
  424. data/lib/zsgf_client/models/authorize_policy.rb +0 -290
  425. data/lib/zsgf_client/models/authorize_policy_api_response.rb +0 -245
  426. data/lib/zsgf_client/models/authorize_policy_list_api_response.rb +0 -249
  427. data/lib/zsgf_client/models/create_post_result.rb +0 -220
  428. data/lib/zsgf_client/models/create_post_result_api_response.rb +0 -245
  429. data/lib/zsgf_client/models/currency.rb +0 -484
  430. data/lib/zsgf_client/models/currency_api_response.rb +0 -245
  431. data/lib/zsgf_client/models/currency_exchange_rate.rb +0 -330
  432. data/lib/zsgf_client/models/currency_exchange_rate_api_response.rb +0 -245
  433. data/lib/zsgf_client/models/currency_list_api_response.rb +0 -249
  434. data/lib/zsgf_client/models/currency_transaction_list_api_response.rb +0 -249
  435. data/lib/zsgf_client/models/exchange_rate_put_request.rb +0 -240
  436. data/lib/zsgf_client/models/execute_function_request.rb +0 -222
  437. data/lib/zsgf_client/models/list_response_item.rb +0 -308
  438. data/lib/zsgf_client/models/list_response_item_list_api_response.rb +0 -249
  439. data/lib/zsgf_client/models/post_index_request.rb +0 -251
  440. data/lib/zsgf_client/models/post_result.rb +0 -220
  441. data/lib/zsgf_client/models/post_result_api_response.rb +0 -245
  442. data/lib/zsgf_client/models/project.rb +0 -353
  443. data/lib/zsgf_client/models/project_api_response.rb +0 -245
  444. data/lib/zsgf_client/models/project_list_result.rb +0 -232
  445. data/lib/zsgf_client/models/project_list_result_api_response.rb +0 -245
  446. data/lib/zsgf_client/models/service_group.rb +0 -361
  447. data/lib/zsgf_client/models/service_group_api_response.rb +0 -245
  448. data/lib/zsgf_client/models/service_group_list_api_response.rb +0 -249
  449. data/lib/zsgf_client/models/service_item.rb +0 -502
  450. data/lib/zsgf_client/models/service_item_api_response.rb +0 -245
  451. data/lib/zsgf_client/models/service_item_list_api_response.rb +0 -249
  452. data/lib/zsgf_client/models/service_provider.rb +0 -403
  453. data/lib/zsgf_client/models/service_provider_api_response.rb +0 -245
  454. data/lib/zsgf_client/models/service_provider_list_api_response.rb +0 -249
  455. data/lib/zsgf_client/models/service_setting_group_post_result.rb +0 -220
  456. data/lib/zsgf_client/models/service_setting_group_post_result_api_response.rb +0 -245
  457. data/lib/zsgf_client/models/service_setting_item_post_result.rb +0 -220
  458. data/lib/zsgf_client/models/service_setting_item_post_result_api_response.rb +0 -245
  459. data/lib/zsgf_client/models/service_setting_provider_post_result.rb +0 -220
  460. data/lib/zsgf_client/models/service_setting_provider_post_result_api_response.rb +0 -245
  461. data/lib/zsgf_client/models/service_setting_setting_post_result.rb +0 -220
  462. data/lib/zsgf_client/models/service_setting_setting_post_result_api_response.rb +0 -245
  463. data/lib/zsgf_client/models/settings.rb +0 -445
  464. data/lib/zsgf_client/models/settings_api_response.rb +0 -245
  465. data/lib/zsgf_client/models/settings_list_api_response.rb +0 -249
  466. data/lib/zsgf_client/models/string_list_api_response.rb +0 -249
  467. data/lib/zsgf_client/models/system_directory_item.rb +0 -249
  468. data/lib/zsgf_client/models/system_file_item.rb +0 -249
  469. data/lib/zsgf_client/models/system_file_list_result.rb +0 -244
  470. data/lib/zsgf_client/models/system_file_list_result_api_response.rb +0 -245
  471. data/lib/zsgf_client/models/team.rb +0 -376
  472. data/lib/zsgf_client/models/user_api_response.rb +0 -245
  473. data/lib/zsgf_client/models/user_list_result.rb +0 -232
  474. data/lib/zsgf_client/models/user_list_result_api_response.rb +0 -245
  475. data/lib/zsgf_client/models/user_setting.rb +0 -464
  476. data/lib/zsgf_client/models/user_setting_api_response.rb +0 -245
  477. data/lib/zsgf_client/models/user_setting_list_api_response.rb +0 -249
  478. data/lib/zsgf_client/models/user_setting_post_result.rb +0 -220
  479. data/lib/zsgf_client/models/user_setting_post_result_api_response.rb +0 -245
  480. data/spec/api/app_setting_api_spec.rb +0 -307
  481. data/spec/api/authorize_policy_api_spec.rb +0 -102
  482. data/spec/api/currency_api_spec.rb +0 -159
  483. data/spec/api/project_api_spec.rb +0 -97
  484. data/spec/api/service_setting_api_spec.rb +0 -289
  485. data/spec/api/system_file_api_spec.rb +0 -97
  486. data/spec/api/team_api_spec.rb +0 -85
  487. data/spec/models/app_api_response_spec.rb +0 -48
  488. data/spec/models/app_check_version_result_api_response_spec.rb +0 -48
  489. data/spec/models/app_check_version_result_spec.rb +0 -42
  490. data/spec/models/app_list_result_api_response_spec.rb +0 -48
  491. data/spec/models/app_list_result_spec.rb +0 -42
  492. data/spec/models/app_post_result_api_response_spec.rb +0 -48
  493. data/spec/models/app_post_result_spec.rb +0 -42
  494. data/spec/models/app_setting_api_response_spec.rb +0 -48
  495. data/spec/models/app_setting_group_post_result_api_response_spec.rb +0 -48
  496. data/spec/models/app_setting_group_post_result_spec.rb +0 -36
  497. data/spec/models/app_setting_item_post_result_api_response_spec.rb +0 -48
  498. data/spec/models/app_setting_item_post_result_spec.rb +0 -36
  499. data/spec/models/app_setting_list_api_response_spec.rb +0 -48
  500. data/spec/models/app_setting_provider_post_result_api_response_spec.rb +0 -48
  501. data/spec/models/app_setting_provider_post_result_spec.rb +0 -36
  502. data/spec/models/app_setting_setting_post_result_api_response_spec.rb +0 -48
  503. data/spec/models/app_setting_setting_post_result_spec.rb +0 -36
  504. data/spec/models/app_setting_spec.rb +0 -90
  505. data/spec/models/app_spec.rb +0 -132
  506. data/spec/models/app_user_list_response_spec.rb +0 -102
  507. data/spec/models/authorize_policy_api_response_spec.rb +0 -48
  508. data/spec/models/authorize_policy_list_api_response_spec.rb +0 -48
  509. data/spec/models/authorize_policy_spec.rb +0 -66
  510. data/spec/models/create_post_result_api_response_spec.rb +0 -48
  511. data/spec/models/create_post_result_spec.rb +0 -36
  512. data/spec/models/currency_api_response_spec.rb +0 -48
  513. data/spec/models/currency_exchange_rate_api_response_spec.rb +0 -48
  514. data/spec/models/currency_exchange_rate_spec.rb +0 -72
  515. data/spec/models/currency_list_api_response_spec.rb +0 -48
  516. data/spec/models/currency_spec.rb +0 -126
  517. data/spec/models/currency_transaction_list_api_response_spec.rb +0 -48
  518. data/spec/models/exchange_rate_put_request_spec.rb +0 -48
  519. data/spec/models/execute_function_request_spec.rb +0 -36
  520. data/spec/models/list_response_item_list_api_response_spec.rb +0 -48
  521. data/spec/models/list_response_item_spec.rb +0 -90
  522. data/spec/models/post_index_request_spec.rb +0 -42
  523. data/spec/models/post_result_api_response_spec.rb +0 -48
  524. data/spec/models/post_result_spec.rb +0 -36
  525. data/spec/models/project_api_response_spec.rb +0 -48
  526. data/spec/models/project_list_result_api_response_spec.rb +0 -48
  527. data/spec/models/project_list_result_spec.rb +0 -42
  528. data/spec/models/project_spec.rb +0 -84
  529. data/spec/models/service_group_api_response_spec.rb +0 -48
  530. data/spec/models/service_group_list_api_response_spec.rb +0 -48
  531. data/spec/models/service_group_spec.rb +0 -90
  532. data/spec/models/service_item_api_response_spec.rb +0 -48
  533. data/spec/models/service_item_list_api_response_spec.rb +0 -48
  534. data/spec/models/service_item_spec.rb +0 -126
  535. data/spec/models/service_provider_api_response_spec.rb +0 -48
  536. data/spec/models/service_provider_list_api_response_spec.rb +0 -48
  537. data/spec/models/service_provider_spec.rb +0 -96
  538. data/spec/models/service_setting_group_post_result_api_response_spec.rb +0 -48
  539. data/spec/models/service_setting_group_post_result_spec.rb +0 -36
  540. data/spec/models/service_setting_item_post_result_api_response_spec.rb +0 -48
  541. data/spec/models/service_setting_item_post_result_spec.rb +0 -36
  542. data/spec/models/service_setting_provider_post_result_api_response_spec.rb +0 -48
  543. data/spec/models/service_setting_provider_post_result_spec.rb +0 -36
  544. data/spec/models/service_setting_setting_post_result_api_response_spec.rb +0 -48
  545. data/spec/models/service_setting_setting_post_result_spec.rb +0 -36
  546. data/spec/models/settings_api_response_spec.rb +0 -48
  547. data/spec/models/settings_list_api_response_spec.rb +0 -48
  548. data/spec/models/settings_spec.rb +0 -102
  549. data/spec/models/string_list_api_response_spec.rb +0 -48
  550. data/spec/models/system_directory_item_spec.rb +0 -54
  551. data/spec/models/system_file_item_spec.rb +0 -54
  552. data/spec/models/system_file_list_result_api_response_spec.rb +0 -48
  553. data/spec/models/system_file_list_result_spec.rb +0 -48
  554. data/spec/models/team_spec.rb +0 -90
  555. data/spec/models/user_api_response_spec.rb +0 -48
  556. data/spec/models/user_list_result_api_response_spec.rb +0 -48
  557. data/spec/models/user_list_result_spec.rb +0 -42
  558. data/spec/models/user_setting_api_response_spec.rb +0 -48
  559. data/spec/models/user_setting_list_api_response_spec.rb +0 -48
  560. data/spec/models/user_setting_post_result_api_response_spec.rb +0 -48
  561. data/spec/models/user_setting_post_result_spec.rb +0 -36
  562. data/spec/models/user_setting_spec.rb +0 -96
data/docs/StorageApi.md CHANGED
@@ -1,26 +1,15 @@
1
1
  # ZSGFClient::StorageApi
2
2
 
3
- All URIs are relative to *https://api.zashigaofa.cn*
3
+ All URIs are relative to *https://api-dev.zashigaofa.cn*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
7
  | [**storage_aggregate**](StorageApi.md#storage_aggregate) | **GET** /Storage/{appKey}/{table}/Aggregate | 聚合查询 |
8
- | [**storage_batch_update**](StorageApi.md#storage_batch_update) | **PUT** /Storage/{appKey}/{table}/batch-update | 批量更新指定条件的数据 |
9
- | [**storage_clear**](StorageApi.md#storage_clear) | **DELETE** /Storage/{appKey}/{table}/Clear | 清空表数据 |
10
8
  | [**storage_delete**](StorageApi.md#storage_delete) | **DELETE** /Storage/{appKey}/{table}/{id} | 删除数据 |
11
- | [**storage_delete_index**](StorageApi.md#storage_delete_index) | **DELETE** /Storage/{appKey}/{table}/indexes | 删除索引 |
12
9
  | [**storage_detail**](StorageApi.md#storage_detail) | **GET** /Storage/{appKey}/{table}/{id} | 数据详情 |
13
- | [**storage_execute_function**](StorageApi.md#storage_execute_function) | **GET** /Storage/{appKey}/ExecuteFunction | 执行函数 |
14
- | [**storage_export**](StorageApi.md#storage_export) | **GET** /Storage/{appKey}/{table}/Export | 导出数据 |
15
- | [**storage_import**](StorageApi.md#storage_import) | **POST** /Storage/{appKey}/{table}/Import | 导入数据 |
16
- | [**storage_indexes**](StorageApi.md#storage_indexes) | **GET** /Storage/{appKey}/{table}/Indexes | 获取索引 |
17
10
  | [**storage_list**](StorageApi.md#storage_list) | **GET** /Storage/{appKey}/{table} | 查询数据 |
18
11
  | [**storage_post**](StorageApi.md#storage_post) | **POST** /Storage/{appKey}/{table} | 添加数据 |
19
- | [**storage_post_index**](StorageApi.md#storage_post_index) | **POST** /Storage/{appKey}/{table}/indexes | 添加索引 |
20
12
  | [**storage_put**](StorageApi.md#storage_put) | **PUT** /Storage/{appKey}/{table}/{id} | 更新数据 |
21
- | [**storage_remove**](StorageApi.md#storage_remove) | **DELETE** /Storage/{appKey}/{table}/Remove | 删除表 |
22
- | [**storage_stats**](StorageApi.md#storage_stats) | **GET** /Storage/{appKey}/{table}/Stats | 数据表统计 |
23
- | [**storage_tables**](StorageApi.md#storage_tables) | **GET** /Storage/{appKey}/Tables | 获取数据表 |
24
13
 
25
14
 
26
15
  ## storage_aggregate
@@ -98,160 +87,6 @@ end
98
87
  - **Accept**: application/json
99
88
 
100
89
 
101
- ## storage_batch_update
102
-
103
- > <BooleanApiResponse> storage_batch_update(table, filter, app_key, request_body, opts)
104
-
105
- 批量更新指定条件的数据
106
-
107
- 批量更新指定表中符合条件的文档,可以动态指定查询条件和更新字段
108
-
109
- ### Examples
110
-
111
- ```ruby
112
- require 'time'
113
- require 'zsgf_client'
114
- # setup authorization
115
- ZSGFClient.configure do |config|
116
- # Configure Bearer authorization: Bearer
117
- config.access_token = 'YOUR_BEARER_TOKEN'
118
- end
119
-
120
- api_instance = ZSGFClient::StorageApi.new
121
- table = 'table_example' # String | 表名称
122
- filter = 'filter_example' # String | 查询条件
123
- app_key = 'app_key_example' # String |
124
- request_body = [3.56] # Array<Object> | 更新的字段
125
- opts = {
126
- replace: true # Boolean | 是否为全量替换,默认为 false
127
- }
128
-
129
- begin
130
- # 批量更新指定条件的数据
131
- result = api_instance.storage_batch_update(table, filter, app_key, request_body, opts)
132
- p result
133
- rescue ZSGFClient::ApiError => e
134
- puts "Error when calling StorageApi->storage_batch_update: #{e}"
135
- end
136
- ```
137
-
138
- #### Using the storage_batch_update_with_http_info variant
139
-
140
- This returns an Array which contains the response data, status code and headers.
141
-
142
- > <Array(<BooleanApiResponse>, Integer, Hash)> storage_batch_update_with_http_info(table, filter, app_key, request_body, opts)
143
-
144
- ```ruby
145
- begin
146
- # 批量更新指定条件的数据
147
- data, status_code, headers = api_instance.storage_batch_update_with_http_info(table, filter, app_key, request_body, opts)
148
- p status_code # => 2xx
149
- p headers # => { ... }
150
- p data # => <BooleanApiResponse>
151
- rescue ZSGFClient::ApiError => e
152
- puts "Error when calling StorageApi->storage_batch_update_with_http_info: #{e}"
153
- end
154
- ```
155
-
156
- ### Parameters
157
-
158
- | Name | Type | Description | Notes |
159
- | ---- | ---- | ----------- | ----- |
160
- | **table** | **String** | 表名称 | |
161
- | **filter** | **String** | 查询条件 | |
162
- | **app_key** | **String** | | |
163
- | **request_body** | [**Array&lt;Object&gt;**](Object.md) | 更新的字段 | |
164
- | **replace** | **Boolean** | 是否为全量替换,默认为 false | [optional][default to false] |
165
-
166
- ### Return type
167
-
168
- [**BooleanApiResponse**](BooleanApiResponse.md)
169
-
170
- ### Authorization
171
-
172
- [Bearer](../README.md#Bearer)
173
-
174
- ### HTTP request headers
175
-
176
- - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
177
- - **Accept**: application/json
178
-
179
-
180
- ## storage_clear
181
-
182
- > <Int64ApiResponse> storage_clear(table, app_key, opts)
183
-
184
- 清空表数据
185
-
186
- 根据筛选条件清空指定表中的数据
187
-
188
- ### Examples
189
-
190
- ```ruby
191
- require 'time'
192
- require 'zsgf_client'
193
- # setup authorization
194
- ZSGFClient.configure do |config|
195
- # Configure Bearer authorization: Bearer
196
- config.access_token = 'YOUR_BEARER_TOKEN'
197
- end
198
-
199
- api_instance = ZSGFClient::StorageApi.new
200
- table = 'table_example' # String | 表名称
201
- app_key = 'app_key_example' # String |
202
- opts = {
203
- filter: 'filter_example' # String | 筛选条件,json格式
204
- }
205
-
206
- begin
207
- # 清空表数据
208
- result = api_instance.storage_clear(table, app_key, opts)
209
- p result
210
- rescue ZSGFClient::ApiError => e
211
- puts "Error when calling StorageApi->storage_clear: #{e}"
212
- end
213
- ```
214
-
215
- #### Using the storage_clear_with_http_info variant
216
-
217
- This returns an Array which contains the response data, status code and headers.
218
-
219
- > <Array(<Int64ApiResponse>, Integer, Hash)> storage_clear_with_http_info(table, app_key, opts)
220
-
221
- ```ruby
222
- begin
223
- # 清空表数据
224
- data, status_code, headers = api_instance.storage_clear_with_http_info(table, app_key, opts)
225
- p status_code # => 2xx
226
- p headers # => { ... }
227
- p data # => <Int64ApiResponse>
228
- rescue ZSGFClient::ApiError => e
229
- puts "Error when calling StorageApi->storage_clear_with_http_info: #{e}"
230
- end
231
- ```
232
-
233
- ### Parameters
234
-
235
- | Name | Type | Description | Notes |
236
- | ---- | ---- | ----------- | ----- |
237
- | **table** | **String** | 表名称 | |
238
- | **app_key** | **String** | | |
239
- | **filter** | **String** | 筛选条件,json格式 | [optional] |
240
-
241
- ### Return type
242
-
243
- [**Int64ApiResponse**](Int64ApiResponse.md)
244
-
245
- ### Authorization
246
-
247
- [Bearer](../README.md#Bearer)
248
-
249
- ### HTTP request headers
250
-
251
- - **Content-Type**: Not defined
252
- - **Accept**: application/json
253
-
254
-
255
90
  ## storage_delete
256
91
 
257
92
  > <BooleanApiResponse> storage_delete(table, id, app_key)
@@ -325,13 +160,13 @@ end
325
160
  - **Accept**: application/json
326
161
 
327
162
 
328
- ## storage_delete_index
163
+ ## storage_detail
329
164
 
330
- > <BooleanApiResponse> storage_delete_index(table, app_key, opts)
165
+ > <ObjectApiResponse> storage_detail(table, id, app_key, opts)
331
166
 
332
- 删除索引
167
+ 数据详情
333
168
 
334
- 删除指定表的指定索引
169
+ 获取指定表中指定ID的数据详情
335
170
 
336
171
  ### Examples
337
172
 
@@ -346,35 +181,36 @@ end
346
181
 
347
182
  api_instance = ZSGFClient::StorageApi.new
348
183
  table = 'table_example' # String | 表名称
184
+ id = 'id_example' # String | 数据ID
349
185
  app_key = 'app_key_example' # String |
350
186
  opts = {
351
- index_name: 'index_name_example' # String | 索引名称
187
+ project: 'project_example' # String | json格式
352
188
  }
353
189
 
354
190
  begin
355
- # 删除索引
356
- result = api_instance.storage_delete_index(table, app_key, opts)
191
+ # 数据详情
192
+ result = api_instance.storage_detail(table, id, app_key, opts)
357
193
  p result
358
194
  rescue ZSGFClient::ApiError => e
359
- puts "Error when calling StorageApi->storage_delete_index: #{e}"
195
+ puts "Error when calling StorageApi->storage_detail: #{e}"
360
196
  end
361
197
  ```
362
198
 
363
- #### Using the storage_delete_index_with_http_info variant
199
+ #### Using the storage_detail_with_http_info variant
364
200
 
365
201
  This returns an Array which contains the response data, status code and headers.
366
202
 
367
- > <Array(<BooleanApiResponse>, Integer, Hash)> storage_delete_index_with_http_info(table, app_key, opts)
203
+ > <Array(<ObjectApiResponse>, Integer, Hash)> storage_detail_with_http_info(table, id, app_key, opts)
368
204
 
369
205
  ```ruby
370
206
  begin
371
- # 删除索引
372
- data, status_code, headers = api_instance.storage_delete_index_with_http_info(table, app_key, opts)
207
+ # 数据详情
208
+ data, status_code, headers = api_instance.storage_detail_with_http_info(table, id, app_key, opts)
373
209
  p status_code # => 2xx
374
210
  p headers # => { ... }
375
- p data # => <BooleanApiResponse>
211
+ p data # => <ObjectApiResponse>
376
212
  rescue ZSGFClient::ApiError => e
377
- puts "Error when calling StorageApi->storage_delete_index_with_http_info: #{e}"
213
+ puts "Error when calling StorageApi->storage_detail_with_http_info: #{e}"
378
214
  end
379
215
  ```
380
216
 
@@ -383,12 +219,13 @@ end
383
219
  | Name | Type | Description | Notes |
384
220
  | ---- | ---- | ----------- | ----- |
385
221
  | **table** | **String** | 表名称 | |
222
+ | **id** | **String** | 数据ID | |
386
223
  | **app_key** | **String** | | |
387
- | **index_name** | **String** | 索引名称 | [optional] |
224
+ | **project** | **String** | json格式 | [optional] |
388
225
 
389
226
  ### Return type
390
227
 
391
- [**BooleanApiResponse**](BooleanApiResponse.md)
228
+ [**ObjectApiResponse**](ObjectApiResponse.md)
392
229
 
393
230
  ### Authorization
394
231
 
@@ -400,13 +237,13 @@ end
400
237
  - **Accept**: application/json
401
238
 
402
239
 
403
- ## storage_detail
240
+ ## storage_list
404
241
 
405
- > <ObjectApiResponse> storage_detail(table, id, app_key, opts)
242
+ > <StorageListResultApiResponse> storage_list(table, app_key, opts)
406
243
 
407
- 数据详情
244
+ 查询数据
408
245
 
409
- 获取指定表中指定ID的数据详情
246
+ 根据条件查询指定表中的数据
410
247
 
411
248
  ### Examples
412
249
 
@@ -421,36 +258,42 @@ end
421
258
 
422
259
  api_instance = ZSGFClient::StorageApi.new
423
260
  table = 'table_example' # String | 表名称
424
- id = 'id_example' # String | 数据ID
425
261
  app_key = 'app_key_example' # String |
426
262
  opts = {
427
- project: 'project_example' # String | json格式
263
+ filter: 'filter_example', # String | 过滤,json格式
264
+ project: 'project_example', # String | 字段映射,json格式
265
+ sort: 'sort_example', # String | 排序,json格式
266
+ start_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | 开始时间
267
+ end_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | 结束时间
268
+ explain: true, # Boolean | 查看执行计划
269
+ take: 56, # Integer | 默认为10
270
+ skip: 56 # Integer | 默认为0
428
271
  }
429
272
 
430
273
  begin
431
- # 数据详情
432
- result = api_instance.storage_detail(table, id, app_key, opts)
274
+ # 查询数据
275
+ result = api_instance.storage_list(table, app_key, opts)
433
276
  p result
434
277
  rescue ZSGFClient::ApiError => e
435
- puts "Error when calling StorageApi->storage_detail: #{e}"
278
+ puts "Error when calling StorageApi->storage_list: #{e}"
436
279
  end
437
280
  ```
438
281
 
439
- #### Using the storage_detail_with_http_info variant
282
+ #### Using the storage_list_with_http_info variant
440
283
 
441
284
  This returns an Array which contains the response data, status code and headers.
442
285
 
443
- > <Array(<ObjectApiResponse>, Integer, Hash)> storage_detail_with_http_info(table, id, app_key, opts)
286
+ > <Array(<StorageListResultApiResponse>, Integer, Hash)> storage_list_with_http_info(table, app_key, opts)
444
287
 
445
288
  ```ruby
446
289
  begin
447
- # 数据详情
448
- data, status_code, headers = api_instance.storage_detail_with_http_info(table, id, app_key, opts)
290
+ # 查询数据
291
+ data, status_code, headers = api_instance.storage_list_with_http_info(table, app_key, opts)
449
292
  p status_code # => 2xx
450
293
  p headers # => { ... }
451
- p data # => <ObjectApiResponse>
294
+ p data # => <StorageListResultApiResponse>
452
295
  rescue ZSGFClient::ApiError => e
453
- puts "Error when calling StorageApi->storage_detail_with_http_info: #{e}"
296
+ puts "Error when calling StorageApi->storage_list_with_http_info: #{e}"
454
297
  end
455
298
  ```
456
299
 
@@ -459,13 +302,19 @@ end
459
302
  | Name | Type | Description | Notes |
460
303
  | ---- | ---- | ----------- | ----- |
461
304
  | **table** | **String** | 表名称 | |
462
- | **id** | **String** | 数据ID | |
463
305
  | **app_key** | **String** | | |
464
- | **project** | **String** | json格式 | [optional] |
306
+ | **filter** | **String** | 过滤,json格式 | [optional] |
307
+ | **project** | **String** | 字段映射,json格式 | [optional] |
308
+ | **sort** | **String** | 排序,json格式 | [optional] |
309
+ | **start_time** | **Time** | 开始时间 | [optional] |
310
+ | **end_time** | **Time** | 结束时间 | [optional] |
311
+ | **explain** | **Boolean** | 查看执行计划 | [optional][default to false] |
312
+ | **take** | **Integer** | 默认为10 | [optional][default to 10] |
313
+ | **skip** | **Integer** | 默认为0 | [optional][default to 0] |
465
314
 
466
315
  ### Return type
467
316
 
468
- [**ObjectApiResponse**](ObjectApiResponse.md)
317
+ [**StorageListResultApiResponse**](StorageListResultApiResponse.md)
469
318
 
470
319
  ### Authorization
471
320
 
@@ -477,13 +326,13 @@ end
477
326
  - **Accept**: application/json
478
327
 
479
328
 
480
- ## storage_execute_function
329
+ ## storage_post
481
330
 
482
- > <ObjectApiResponse> storage_execute_function(nonce, timestamp, signature, app_key, opts)
331
+ > <StringApiResponse> storage_post(table, app_key, request_body)
483
332
 
484
- 执行函数
333
+ 添加数据
485
334
 
486
- 执行指定的函数
335
+ 向指定表中添加数据,可以是单个json对象或json数组
487
336
 
488
337
  ### Examples
489
338
 
@@ -497,38 +346,34 @@ ZSGFClient.configure do |config|
497
346
  end
498
347
 
499
348
  api_instance = ZSGFClient::StorageApi.new
500
- nonce = 'nonce_example' # String | 随机字符串
501
- timestamp = 789 # Integer | 时间戳
502
- signature = 'signature_example' # String | 签名
349
+ table = 'table_example' # String | 表名称(小写字母加数字,1-50位)
503
350
  app_key = 'app_key_example' # String |
504
- opts = {
505
- execute_function_request: ZSGFClient::ExecuteFunctionRequest.new # ExecuteFunctionRequest | 函数请求参数
506
- }
351
+ request_body = [3.56] # Array<Object> | json对象 / json数组
507
352
 
508
353
  begin
509
- # 执行函数
510
- result = api_instance.storage_execute_function(nonce, timestamp, signature, app_key, opts)
354
+ # 添加数据
355
+ result = api_instance.storage_post(table, app_key, request_body)
511
356
  p result
512
357
  rescue ZSGFClient::ApiError => e
513
- puts "Error when calling StorageApi->storage_execute_function: #{e}"
358
+ puts "Error when calling StorageApi->storage_post: #{e}"
514
359
  end
515
360
  ```
516
361
 
517
- #### Using the storage_execute_function_with_http_info variant
362
+ #### Using the storage_post_with_http_info variant
518
363
 
519
364
  This returns an Array which contains the response data, status code and headers.
520
365
 
521
- > <Array(<ObjectApiResponse>, Integer, Hash)> storage_execute_function_with_http_info(nonce, timestamp, signature, app_key, opts)
366
+ > <Array(<StringApiResponse>, Integer, Hash)> storage_post_with_http_info(table, app_key, request_body)
522
367
 
523
368
  ```ruby
524
369
  begin
525
- # 执行函数
526
- data, status_code, headers = api_instance.storage_execute_function_with_http_info(nonce, timestamp, signature, app_key, opts)
370
+ # 添加数据
371
+ data, status_code, headers = api_instance.storage_post_with_http_info(table, app_key, request_body)
527
372
  p status_code # => 2xx
528
373
  p headers # => { ... }
529
- p data # => <ObjectApiResponse>
374
+ p data # => <StringApiResponse>
530
375
  rescue ZSGFClient::ApiError => e
531
- puts "Error when calling StorageApi->storage_execute_function_with_http_info: #{e}"
376
+ puts "Error when calling StorageApi->storage_post_with_http_info: #{e}"
532
377
  end
533
378
  ```
534
379
 
@@ -536,15 +381,13 @@ end
536
381
 
537
382
  | Name | Type | Description | Notes |
538
383
  | ---- | ---- | ----------- | ----- |
539
- | **nonce** | **String** | 随机字符串 | |
540
- | **timestamp** | **Integer** | 时间戳 | |
541
- | **signature** | **String** | 签名 | |
384
+ | **table** | **String** | 表名称(小写字母加数字,1-50位) | |
542
385
  | **app_key** | **String** | | |
543
- | **execute_function_request** | [**ExecuteFunctionRequest**](ExecuteFunctionRequest.md) | 函数请求参数 | [optional] |
386
+ | **request_body** | [**Array&lt;Object&gt;**](Object.md) | json对象 / json数组 | |
544
387
 
545
388
  ### Return type
546
389
 
547
- [**ObjectApiResponse**](ObjectApiResponse.md)
390
+ [**StringApiResponse**](StringApiResponse.md)
548
391
 
549
392
  ### Authorization
550
393
 
@@ -556,13 +399,13 @@ end
556
399
  - **Accept**: application/json
557
400
 
558
401
 
559
- ## storage_export
402
+ ## storage_put
560
403
 
561
- > File storage_export(table, app_key, opts)
404
+ > <BooleanApiResponse> storage_put(table, id, app_key, request_body, opts)
562
405
 
563
- 导出数据
406
+ 更新数据
564
407
 
565
- 根据筛选条件导出指定表中的数据
408
+ 更新指定表中指定ID的数据,可以选择全量更新或部分更新
566
409
 
567
410
  ### Examples
568
411
 
@@ -577,37 +420,37 @@ end
577
420
 
578
421
  api_instance = ZSGFClient::StorageApi.new
579
422
  table = 'table_example' # String | 表名称
423
+ id = 'id_example' # String | 数据ID
580
424
  app_key = 'app_key_example' # String |
425
+ request_body = [3.56] # Array<Object> | json格式
581
426
  opts = {
582
- filter: 'filter_example', # String | 筛选条件,json格式
583
- start_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | 开始时间
584
- end_time: Time.parse('2013-10-20T19:20:30+01:00') # Time | 结束时间
427
+ replace: true # Boolean | 是否为全量更新,默认为false
585
428
  }
586
429
 
587
430
  begin
588
- # 导出数据
589
- result = api_instance.storage_export(table, app_key, opts)
431
+ # 更新数据
432
+ result = api_instance.storage_put(table, id, app_key, request_body, opts)
590
433
  p result
591
434
  rescue ZSGFClient::ApiError => e
592
- puts "Error when calling StorageApi->storage_export: #{e}"
435
+ puts "Error when calling StorageApi->storage_put: #{e}"
593
436
  end
594
437
  ```
595
438
 
596
- #### Using the storage_export_with_http_info variant
439
+ #### Using the storage_put_with_http_info variant
597
440
 
598
441
  This returns an Array which contains the response data, status code and headers.
599
442
 
600
- > <Array(File, Integer, Hash)> storage_export_with_http_info(table, app_key, opts)
443
+ > <Array(<BooleanApiResponse>, Integer, Hash)> storage_put_with_http_info(table, id, app_key, request_body, opts)
601
444
 
602
445
  ```ruby
603
446
  begin
604
- # 导出数据
605
- data, status_code, headers = api_instance.storage_export_with_http_info(table, app_key, opts)
447
+ # 更新数据
448
+ data, status_code, headers = api_instance.storage_put_with_http_info(table, id, app_key, request_body, opts)
606
449
  p status_code # => 2xx
607
450
  p headers # => { ... }
608
- p data # => File
451
+ p data # => <BooleanApiResponse>
609
452
  rescue ZSGFClient::ApiError => e
610
- puts "Error when calling StorageApi->storage_export_with_http_info: #{e}"
453
+ puts "Error when calling StorageApi->storage_put_with_http_info: #{e}"
611
454
  end
612
455
  ```
613
456
 
@@ -616,476 +459,14 @@ end
616
459
  | Name | Type | Description | Notes |
617
460
  | ---- | ---- | ----------- | ----- |
618
461
  | **table** | **String** | 表名称 | |
462
+ | **id** | **String** | 数据ID | |
619
463
  | **app_key** | **String** | | |
620
- | **filter** | **String** | 筛选条件,json格式 | [optional] |
621
- | **start_time** | **Time** | 开始时间 | [optional] |
622
- | **end_time** | **Time** | 结束时间 | [optional] |
464
+ | **request_body** | [**Array&lt;Object&gt;**](Object.md) | json格式 | |
465
+ | **replace** | **Boolean** | 是否为全量更新,默认为false | [optional][default to false] |
623
466
 
624
467
  ### Return type
625
468
 
626
- **File**
627
-
628
- ### Authorization
629
-
630
- [Bearer](../README.md#Bearer)
631
-
632
- ### HTTP request headers
633
-
634
- - **Content-Type**: Not defined
635
- - **Accept**: application/json
636
-
637
-
638
- ## storage_import
639
-
640
- > <BooleanApiResponse> storage_import(table, app_key, opts)
641
-
642
- 导入数据
643
-
644
- 从文件导入数据到指定表中
645
-
646
- ### Examples
647
-
648
- ```ruby
649
- require 'time'
650
- require 'zsgf_client'
651
- # setup authorization
652
- ZSGFClient.configure do |config|
653
- # Configure Bearer authorization: Bearer
654
- config.access_token = 'YOUR_BEARER_TOKEN'
655
- end
656
-
657
- api_instance = ZSGFClient::StorageApi.new
658
- table = 'table_example' # String | 表名称
659
- app_key = 'app_key_example' # String |
660
- opts = {
661
- file: File.new('/path/to/some/file') # File | 导入的文件
662
- }
663
-
664
- begin
665
- # 导入数据
666
- result = api_instance.storage_import(table, app_key, opts)
667
- p result
668
- rescue ZSGFClient::ApiError => e
669
- puts "Error when calling StorageApi->storage_import: #{e}"
670
- end
671
- ```
672
-
673
- #### Using the storage_import_with_http_info variant
674
-
675
- This returns an Array which contains the response data, status code and headers.
676
-
677
- > <Array(<BooleanApiResponse>, Integer, Hash)> storage_import_with_http_info(table, app_key, opts)
678
-
679
- ```ruby
680
- begin
681
- # 导入数据
682
- data, status_code, headers = api_instance.storage_import_with_http_info(table, app_key, opts)
683
- p status_code # => 2xx
684
- p headers # => { ... }
685
- p data # => <BooleanApiResponse>
686
- rescue ZSGFClient::ApiError => e
687
- puts "Error when calling StorageApi->storage_import_with_http_info: #{e}"
688
- end
689
- ```
690
-
691
- ### Parameters
692
-
693
- | Name | Type | Description | Notes |
694
- | ---- | ---- | ----------- | ----- |
695
- | **table** | **String** | 表名称 | |
696
- | **app_key** | **String** | | |
697
- | **file** | **File** | 导入的文件 | [optional] |
698
-
699
- ### Return type
700
-
701
- [**BooleanApiResponse**](BooleanApiResponse.md)
702
-
703
- ### Authorization
704
-
705
- [Bearer](../README.md#Bearer)
706
-
707
- ### HTTP request headers
708
-
709
- - **Content-Type**: multipart/form-data
710
- - **Accept**: application/json
711
-
712
-
713
- ## storage_indexes
714
-
715
- > <ObjectListApiResponse> storage_indexes(table, app_key)
716
-
717
- 获取索引
718
-
719
- 获取指定表的索引列表
720
-
721
- ### Examples
722
-
723
- ```ruby
724
- require 'time'
725
- require 'zsgf_client'
726
- # setup authorization
727
- ZSGFClient.configure do |config|
728
- # Configure Bearer authorization: Bearer
729
- config.access_token = 'YOUR_BEARER_TOKEN'
730
- end
731
-
732
- api_instance = ZSGFClient::StorageApi.new
733
- table = 'table_example' # String | 表名称
734
- app_key = 'app_key_example' # String |
735
-
736
- begin
737
- # 获取索引
738
- result = api_instance.storage_indexes(table, app_key)
739
- p result
740
- rescue ZSGFClient::ApiError => e
741
- puts "Error when calling StorageApi->storage_indexes: #{e}"
742
- end
743
- ```
744
-
745
- #### Using the storage_indexes_with_http_info variant
746
-
747
- This returns an Array which contains the response data, status code and headers.
748
-
749
- > <Array(<ObjectListApiResponse>, Integer, Hash)> storage_indexes_with_http_info(table, app_key)
750
-
751
- ```ruby
752
- begin
753
- # 获取索引
754
- data, status_code, headers = api_instance.storage_indexes_with_http_info(table, app_key)
755
- p status_code # => 2xx
756
- p headers # => { ... }
757
- p data # => <ObjectListApiResponse>
758
- rescue ZSGFClient::ApiError => e
759
- puts "Error when calling StorageApi->storage_indexes_with_http_info: #{e}"
760
- end
761
- ```
762
-
763
- ### Parameters
764
-
765
- | Name | Type | Description | Notes |
766
- | ---- | ---- | ----------- | ----- |
767
- | **table** | **String** | 表名称 | |
768
- | **app_key** | **String** | | |
769
-
770
- ### Return type
771
-
772
- [**ObjectListApiResponse**](ObjectListApiResponse.md)
773
-
774
- ### Authorization
775
-
776
- [Bearer](../README.md#Bearer)
777
-
778
- ### HTTP request headers
779
-
780
- - **Content-Type**: Not defined
781
- - **Accept**: application/json
782
-
783
-
784
- ## storage_list
785
-
786
- > <StorageListResultApiResponse> storage_list(table, app_key, opts)
787
-
788
- 查询数据
789
-
790
- 根据条件查询指定表中的数据
791
-
792
- ### Examples
793
-
794
- ```ruby
795
- require 'time'
796
- require 'zsgf_client'
797
- # setup authorization
798
- ZSGFClient.configure do |config|
799
- # Configure Bearer authorization: Bearer
800
- config.access_token = 'YOUR_BEARER_TOKEN'
801
- end
802
-
803
- api_instance = ZSGFClient::StorageApi.new
804
- table = 'table_example' # String | 表名称
805
- app_key = 'app_key_example' # String |
806
- opts = {
807
- filter: 'filter_example', # String | 过滤,json格式
808
- project: 'project_example', # String | 字段映射,json格式
809
- sort: 'sort_example', # String | 排序,json格式
810
- start_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | 开始时间
811
- end_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | 结束时间
812
- explain: true, # Boolean | 查看执行计划
813
- take: 56, # Integer | 默认为10
814
- skip: 56 # Integer | 默认为0
815
- }
816
-
817
- begin
818
- # 查询数据
819
- result = api_instance.storage_list(table, app_key, opts)
820
- p result
821
- rescue ZSGFClient::ApiError => e
822
- puts "Error when calling StorageApi->storage_list: #{e}"
823
- end
824
- ```
825
-
826
- #### Using the storage_list_with_http_info variant
827
-
828
- This returns an Array which contains the response data, status code and headers.
829
-
830
- > <Array(<StorageListResultApiResponse>, Integer, Hash)> storage_list_with_http_info(table, app_key, opts)
831
-
832
- ```ruby
833
- begin
834
- # 查询数据
835
- data, status_code, headers = api_instance.storage_list_with_http_info(table, app_key, opts)
836
- p status_code # => 2xx
837
- p headers # => { ... }
838
- p data # => <StorageListResultApiResponse>
839
- rescue ZSGFClient::ApiError => e
840
- puts "Error when calling StorageApi->storage_list_with_http_info: #{e}"
841
- end
842
- ```
843
-
844
- ### Parameters
845
-
846
- | Name | Type | Description | Notes |
847
- | ---- | ---- | ----------- | ----- |
848
- | **table** | **String** | 表名称 | |
849
- | **app_key** | **String** | | |
850
- | **filter** | **String** | 过滤,json格式 | [optional] |
851
- | **project** | **String** | 字段映射,json格式 | [optional] |
852
- | **sort** | **String** | 排序,json格式 | [optional] |
853
- | **start_time** | **Time** | 开始时间 | [optional] |
854
- | **end_time** | **Time** | 结束时间 | [optional] |
855
- | **explain** | **Boolean** | 查看执行计划 | [optional][default to false] |
856
- | **take** | **Integer** | 默认为10 | [optional][default to 10] |
857
- | **skip** | **Integer** | 默认为0 | [optional][default to 0] |
858
-
859
- ### Return type
860
-
861
- [**StorageListResultApiResponse**](StorageListResultApiResponse.md)
862
-
863
- ### Authorization
864
-
865
- [Bearer](../README.md#Bearer)
866
-
867
- ### HTTP request headers
868
-
869
- - **Content-Type**: Not defined
870
- - **Accept**: application/json
871
-
872
-
873
- ## storage_post
874
-
875
- > <StringApiResponse> storage_post(table, app_key, request_body)
876
-
877
- 添加数据
878
-
879
- 向指定表中添加数据,可以是单个json对象或json数组
880
-
881
- ### Examples
882
-
883
- ```ruby
884
- require 'time'
885
- require 'zsgf_client'
886
- # setup authorization
887
- ZSGFClient.configure do |config|
888
- # Configure Bearer authorization: Bearer
889
- config.access_token = 'YOUR_BEARER_TOKEN'
890
- end
891
-
892
- api_instance = ZSGFClient::StorageApi.new
893
- table = 'table_example' # String | 表名称(小写字母加数字,1-50位)
894
- app_key = 'app_key_example' # String |
895
- request_body = [3.56] # Array<Object> | json对象 / json数组
896
-
897
- begin
898
- # 添加数据
899
- result = api_instance.storage_post(table, app_key, request_body)
900
- p result
901
- rescue ZSGFClient::ApiError => e
902
- puts "Error when calling StorageApi->storage_post: #{e}"
903
- end
904
- ```
905
-
906
- #### Using the storage_post_with_http_info variant
907
-
908
- This returns an Array which contains the response data, status code and headers.
909
-
910
- > <Array(<StringApiResponse>, Integer, Hash)> storage_post_with_http_info(table, app_key, request_body)
911
-
912
- ```ruby
913
- begin
914
- # 添加数据
915
- data, status_code, headers = api_instance.storage_post_with_http_info(table, app_key, request_body)
916
- p status_code # => 2xx
917
- p headers # => { ... }
918
- p data # => <StringApiResponse>
919
- rescue ZSGFClient::ApiError => e
920
- puts "Error when calling StorageApi->storage_post_with_http_info: #{e}"
921
- end
922
- ```
923
-
924
- ### Parameters
925
-
926
- | Name | Type | Description | Notes |
927
- | ---- | ---- | ----------- | ----- |
928
- | **table** | **String** | 表名称(小写字母加数字,1-50位) | |
929
- | **app_key** | **String** | | |
930
- | **request_body** | [**Array&lt;Object&gt;**](Object.md) | json对象 / json数组 | |
931
-
932
- ### Return type
933
-
934
- [**StringApiResponse**](StringApiResponse.md)
935
-
936
- ### Authorization
937
-
938
- [Bearer](../README.md#Bearer)
939
-
940
- ### HTTP request headers
941
-
942
- - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
943
- - **Accept**: application/json
944
-
945
-
946
- ## storage_post_index
947
-
948
- > <StringApiResponse> storage_post_index(table, app_key, opts)
949
-
950
- 添加索引
951
-
952
- 为指定表添加索引
953
-
954
- ### Examples
955
-
956
- ```ruby
957
- require 'time'
958
- require 'zsgf_client'
959
- # setup authorization
960
- ZSGFClient.configure do |config|
961
- # Configure Bearer authorization: Bearer
962
- config.access_token = 'YOUR_BEARER_TOKEN'
963
- end
964
-
965
- api_instance = ZSGFClient::StorageApi.new
966
- table = 'table_example' # String | 表名称(小写字母加数字,1-50位)
967
- app_key = 'app_key_example' # String |
968
- opts = {
969
- post_index_request: ZSGFClient::PostIndexRequest.new({model: { key: [3.56]}}) # PostIndexRequest | json对象 / json数组
970
- }
971
-
972
- begin
973
- # 添加索引
974
- result = api_instance.storage_post_index(table, app_key, opts)
975
- p result
976
- rescue ZSGFClient::ApiError => e
977
- puts "Error when calling StorageApi->storage_post_index: #{e}"
978
- end
979
- ```
980
-
981
- #### Using the storage_post_index_with_http_info variant
982
-
983
- This returns an Array which contains the response data, status code and headers.
984
-
985
- > <Array(<StringApiResponse>, Integer, Hash)> storage_post_index_with_http_info(table, app_key, opts)
986
-
987
- ```ruby
988
- begin
989
- # 添加索引
990
- data, status_code, headers = api_instance.storage_post_index_with_http_info(table, app_key, opts)
991
- p status_code # => 2xx
992
- p headers # => { ... }
993
- p data # => <StringApiResponse>
994
- rescue ZSGFClient::ApiError => e
995
- puts "Error when calling StorageApi->storage_post_index_with_http_info: #{e}"
996
- end
997
- ```
998
-
999
- ### Parameters
1000
-
1001
- | Name | Type | Description | Notes |
1002
- | ---- | ---- | ----------- | ----- |
1003
- | **table** | **String** | 表名称(小写字母加数字,1-50位) | |
1004
- | **app_key** | **String** | | |
1005
- | **post_index_request** | [**PostIndexRequest**](PostIndexRequest.md) | json对象 / json数组 | [optional] |
1006
-
1007
- ### Return type
1008
-
1009
- [**StringApiResponse**](StringApiResponse.md)
1010
-
1011
- ### Authorization
1012
-
1013
- [Bearer](../README.md#Bearer)
1014
-
1015
- ### HTTP request headers
1016
-
1017
- - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
1018
- - **Accept**: application/json
1019
-
1020
-
1021
- ## storage_put
1022
-
1023
- > <BooleanApiResponse> storage_put(table, id, app_key, request_body, opts)
1024
-
1025
- 更新数据
1026
-
1027
- 更新指定表中指定ID的数据,可以选择全量更新或部分更新
1028
-
1029
- ### Examples
1030
-
1031
- ```ruby
1032
- require 'time'
1033
- require 'zsgf_client'
1034
- # setup authorization
1035
- ZSGFClient.configure do |config|
1036
- # Configure Bearer authorization: Bearer
1037
- config.access_token = 'YOUR_BEARER_TOKEN'
1038
- end
1039
-
1040
- api_instance = ZSGFClient::StorageApi.new
1041
- table = 'table_example' # String | 表名称
1042
- id = 'id_example' # String | 数据ID
1043
- app_key = 'app_key_example' # String |
1044
- request_body = [3.56] # Array<Object> | json格式
1045
- opts = {
1046
- replace: true # Boolean | 是否为全量更新,默认为false
1047
- }
1048
-
1049
- begin
1050
- # 更新数据
1051
- result = api_instance.storage_put(table, id, app_key, request_body, opts)
1052
- p result
1053
- rescue ZSGFClient::ApiError => e
1054
- puts "Error when calling StorageApi->storage_put: #{e}"
1055
- end
1056
- ```
1057
-
1058
- #### Using the storage_put_with_http_info variant
1059
-
1060
- This returns an Array which contains the response data, status code and headers.
1061
-
1062
- > <Array(<BooleanApiResponse>, Integer, Hash)> storage_put_with_http_info(table, id, app_key, request_body, opts)
1063
-
1064
- ```ruby
1065
- begin
1066
- # 更新数据
1067
- data, status_code, headers = api_instance.storage_put_with_http_info(table, id, app_key, request_body, opts)
1068
- p status_code # => 2xx
1069
- p headers # => { ... }
1070
- p data # => <BooleanApiResponse>
1071
- rescue ZSGFClient::ApiError => e
1072
- puts "Error when calling StorageApi->storage_put_with_http_info: #{e}"
1073
- end
1074
- ```
1075
-
1076
- ### Parameters
1077
-
1078
- | Name | Type | Description | Notes |
1079
- | ---- | ---- | ----------- | ----- |
1080
- | **table** | **String** | 表名称 | |
1081
- | **id** | **String** | 数据ID | |
1082
- | **app_key** | **String** | | |
1083
- | **request_body** | [**Array&lt;Object&gt;**](Object.md) | json格式 | |
1084
- | **replace** | **Boolean** | 是否为全量更新,默认为false | [optional][default to false] |
1085
-
1086
- ### Return type
1087
-
1088
- [**BooleanApiResponse**](BooleanApiResponse.md)
469
+ [**BooleanApiResponse**](BooleanApiResponse.md)
1089
470
 
1090
471
  ### Authorization
1091
472
 
@@ -1096,214 +477,3 @@ end
1096
477
  - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
1097
478
  - **Accept**: application/json
1098
479
 
1099
-
1100
- ## storage_remove
1101
-
1102
- > <BooleanApiResponse> storage_remove(table, app_key)
1103
-
1104
- 删除表
1105
-
1106
- 删除指定表
1107
-
1108
- ### Examples
1109
-
1110
- ```ruby
1111
- require 'time'
1112
- require 'zsgf_client'
1113
- # setup authorization
1114
- ZSGFClient.configure do |config|
1115
- # Configure Bearer authorization: Bearer
1116
- config.access_token = 'YOUR_BEARER_TOKEN'
1117
- end
1118
-
1119
- api_instance = ZSGFClient::StorageApi.new
1120
- table = 'table_example' # String | 表名称
1121
- app_key = 'app_key_example' # String |
1122
-
1123
- begin
1124
- # 删除表
1125
- result = api_instance.storage_remove(table, app_key)
1126
- p result
1127
- rescue ZSGFClient::ApiError => e
1128
- puts "Error when calling StorageApi->storage_remove: #{e}"
1129
- end
1130
- ```
1131
-
1132
- #### Using the storage_remove_with_http_info variant
1133
-
1134
- This returns an Array which contains the response data, status code and headers.
1135
-
1136
- > <Array(<BooleanApiResponse>, Integer, Hash)> storage_remove_with_http_info(table, app_key)
1137
-
1138
- ```ruby
1139
- begin
1140
- # 删除表
1141
- data, status_code, headers = api_instance.storage_remove_with_http_info(table, app_key)
1142
- p status_code # => 2xx
1143
- p headers # => { ... }
1144
- p data # => <BooleanApiResponse>
1145
- rescue ZSGFClient::ApiError => e
1146
- puts "Error when calling StorageApi->storage_remove_with_http_info: #{e}"
1147
- end
1148
- ```
1149
-
1150
- ### Parameters
1151
-
1152
- | Name | Type | Description | Notes |
1153
- | ---- | ---- | ----------- | ----- |
1154
- | **table** | **String** | 表名称 | |
1155
- | **app_key** | **String** | | |
1156
-
1157
- ### Return type
1158
-
1159
- [**BooleanApiResponse**](BooleanApiResponse.md)
1160
-
1161
- ### Authorization
1162
-
1163
- [Bearer](../README.md#Bearer)
1164
-
1165
- ### HTTP request headers
1166
-
1167
- - **Content-Type**: Not defined
1168
- - **Accept**: application/json
1169
-
1170
-
1171
- ## storage_stats
1172
-
1173
- > <ObjectApiResponse> storage_stats(table, app_key)
1174
-
1175
- 数据表统计
1176
-
1177
- 获取指定表的数据统计信息
1178
-
1179
- ### Examples
1180
-
1181
- ```ruby
1182
- require 'time'
1183
- require 'zsgf_client'
1184
- # setup authorization
1185
- ZSGFClient.configure do |config|
1186
- # Configure Bearer authorization: Bearer
1187
- config.access_token = 'YOUR_BEARER_TOKEN'
1188
- end
1189
-
1190
- api_instance = ZSGFClient::StorageApi.new
1191
- table = 'table_example' # String | 表名称
1192
- app_key = 'app_key_example' # String |
1193
-
1194
- begin
1195
- # 数据表统计
1196
- result = api_instance.storage_stats(table, app_key)
1197
- p result
1198
- rescue ZSGFClient::ApiError => e
1199
- puts "Error when calling StorageApi->storage_stats: #{e}"
1200
- end
1201
- ```
1202
-
1203
- #### Using the storage_stats_with_http_info variant
1204
-
1205
- This returns an Array which contains the response data, status code and headers.
1206
-
1207
- > <Array(<ObjectApiResponse>, Integer, Hash)> storage_stats_with_http_info(table, app_key)
1208
-
1209
- ```ruby
1210
- begin
1211
- # 数据表统计
1212
- data, status_code, headers = api_instance.storage_stats_with_http_info(table, app_key)
1213
- p status_code # => 2xx
1214
- p headers # => { ... }
1215
- p data # => <ObjectApiResponse>
1216
- rescue ZSGFClient::ApiError => e
1217
- puts "Error when calling StorageApi->storage_stats_with_http_info: #{e}"
1218
- end
1219
- ```
1220
-
1221
- ### Parameters
1222
-
1223
- | Name | Type | Description | Notes |
1224
- | ---- | ---- | ----------- | ----- |
1225
- | **table** | **String** | 表名称 | |
1226
- | **app_key** | **String** | | |
1227
-
1228
- ### Return type
1229
-
1230
- [**ObjectApiResponse**](ObjectApiResponse.md)
1231
-
1232
- ### Authorization
1233
-
1234
- [Bearer](../README.md#Bearer)
1235
-
1236
- ### HTTP request headers
1237
-
1238
- - **Content-Type**: Not defined
1239
- - **Accept**: application/json
1240
-
1241
-
1242
- ## storage_tables
1243
-
1244
- > <StringListApiResponse> storage_tables(app_key)
1245
-
1246
- 获取数据表
1247
-
1248
- 获取当前应用的所有数据表名称
1249
-
1250
- ### Examples
1251
-
1252
- ```ruby
1253
- require 'time'
1254
- require 'zsgf_client'
1255
- # setup authorization
1256
- ZSGFClient.configure do |config|
1257
- # Configure Bearer authorization: Bearer
1258
- config.access_token = 'YOUR_BEARER_TOKEN'
1259
- end
1260
-
1261
- api_instance = ZSGFClient::StorageApi.new
1262
- app_key = 'app_key_example' # String |
1263
-
1264
- begin
1265
- # 获取数据表
1266
- result = api_instance.storage_tables(app_key)
1267
- p result
1268
- rescue ZSGFClient::ApiError => e
1269
- puts "Error when calling StorageApi->storage_tables: #{e}"
1270
- end
1271
- ```
1272
-
1273
- #### Using the storage_tables_with_http_info variant
1274
-
1275
- This returns an Array which contains the response data, status code and headers.
1276
-
1277
- > <Array(<StringListApiResponse>, Integer, Hash)> storage_tables_with_http_info(app_key)
1278
-
1279
- ```ruby
1280
- begin
1281
- # 获取数据表
1282
- data, status_code, headers = api_instance.storage_tables_with_http_info(app_key)
1283
- p status_code # => 2xx
1284
- p headers # => { ... }
1285
- p data # => <StringListApiResponse>
1286
- rescue ZSGFClient::ApiError => e
1287
- puts "Error when calling StorageApi->storage_tables_with_http_info: #{e}"
1288
- end
1289
- ```
1290
-
1291
- ### Parameters
1292
-
1293
- | Name | Type | Description | Notes |
1294
- | ---- | ---- | ----------- | ----- |
1295
- | **app_key** | **String** | | |
1296
-
1297
- ### Return type
1298
-
1299
- [**StringListApiResponse**](StringListApiResponse.md)
1300
-
1301
- ### Authorization
1302
-
1303
- [Bearer](../README.md#Bearer)
1304
-
1305
- ### HTTP request headers
1306
-
1307
- - **Content-Type**: Not defined
1308
- - **Accept**: application/json
1309
-