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