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.
- checksums.yaml +4 -4
- data/docs/AccessTokenApi.md +1 -1
- data/docs/AlipayApi.md +25 -25
- data/docs/AppApi.md +1 -655
- data/docs/DingTalkApi.md +1 -1
- data/docs/ExternalAccountApi.md +373 -0
- data/docs/{OAuthAccountBindRequest.md → ExternalAccountBindRequest.md} +2 -2
- data/docs/{OAuthAccountPutBindRequest.md → ExternalAccountPutRequest.md} +2 -2
- data/docs/{OAuthAccountSignInRequest.md → ExternalAccountSignInRequest.md} +2 -2
- data/docs/FileApi.md +15 -15
- data/docs/OAuthApi.md +17 -17
- data/docs/OrderApi.md +1 -1
- data/docs/StorageApi.md +87 -917
- data/docs/TapPayInfo.md +5 -1
- data/docs/UserApi.md +105 -2459
- data/docs/UserCurrencyApi.md +1 -1
- data/docs/UserFriendsApi.md +795 -0
- data/docs/UserLocationApi.md +387 -0
- data/docs/WechatApi.md +343 -47
- data/lib/zsgf_client/api/access_token_api.rb +1 -1
- 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 +11 -11
- 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 +23 -894
- data/lib/zsgf_client/api/user_api.rb +112 -2374
- 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 +305 -25
- 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 +1 -1
- 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_user_reset_email_request.rb +1 -1
- data/lib/zsgf_client/models/app_user_reset_phone_request.rb +1 -1
- data/lib/zsgf_client/models/app_user_reset_pwd_request.rb +1 -1
- 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 +1 -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 +1 -1
- data/lib/zsgf_client/models/email_sign_up_request.rb +1 -1
- 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} +4 -4
- 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 +1 -1
- data/lib/zsgf_client/models/follower_put_model.rb +1 -1
- data/lib/zsgf_client/models/fulfillment_detail.rb +1 -1
- data/lib/zsgf_client/models/geo_location.rb +1 -1
- data/lib/zsgf_client/models/geo_location_model.rb +1 -1
- data/lib/zsgf_client/models/geo_location_model_api_response.rb +1 -1
- data/lib/zsgf_client/models/geo_location_response_model.rb +1 -1
- data/lib/zsgf_client/models/get_user_profile_result.rb +1 -1
- data/lib/zsgf_client/models/get_user_profile_result_api_response.rb +1 -1
- 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/my_sql_geometry.rb +1 -1
- 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 +1 -1
- data/lib/zsgf_client/models/phone_sign_up_request.rb +1 -1
- 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 +1 -1
- data/lib/zsgf_client/models/qr_code_scan_request.rb +1 -1
- data/lib/zsgf_client/models/qr_code_sign_in_request.rb +1 -1
- data/lib/zsgf_client/models/qr_code_sign_up_request.rb +1 -1
- data/lib/zsgf_client/models/recharge_point_request.rb +1 -1
- data/lib/zsgf_client/models/recommend_friend.rb +1 -1
- 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 +1 -1
- data/lib/zsgf_client/models/send_sms_code_request.rb +1 -1
- 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 +1 -1
- data/lib/zsgf_client/models/sign_up_request.rb +1 -1
- 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 +1 -1
- data/lib/zsgf_client/models/union_id_sign_up_request.rb +1 -1
- data/lib/zsgf_client/models/update_profile_request.rb +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +7 -88
- data/spec/api/access_token_api_spec.rb +1 -1
- 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 +6 -6
- 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 +1 -156
- data/spec/api/user_api_spec.rb +5 -449
- 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 +64 -12
- 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_user_reset_email_request_spec.rb +1 -1
- data/spec/models/app_user_reset_phone_request_spec.rb +1 -1
- data/spec/models/app_user_reset_pwd_request_spec.rb +1 -1
- 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 +1 -1
- data/spec/models/geo_location_response_model_spec.rb +1 -1
- data/spec/models/geo_location_spec.rb +1 -1
- data/spec/models/get_user_profile_result_api_response_spec.rb +1 -1
- data/spec/models/get_user_profile_result_spec.rb +1 -1
- 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/my_sql_geometry_spec.rb +1 -1
- 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 +1 -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 +1 -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 +1 -1
- 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 +1 -1
- 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 +140 -464
- 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/CurrencyExchangeRateApiResponse.md +0 -22
- 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/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/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_list_result_api_response.rb +0 -245
- data/lib/zsgf_client/models/app_post_result.rb +0 -230
- data/lib/zsgf_client/models/app_post_result_api_response.rb +0 -245
- 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 -339
- 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_exchange_rate_api_response.rb +0 -245
- 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.rb +0 -244
- 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_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_post_result_spec.rb +0 -42
- 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_spec.rb +0 -132
- 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/authorize_policy_spec.rb +0 -66
- 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_index_request_spec.rb +0 -42
- 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_directory_item_spec.rb +0 -54
- data/spec/models/system_file_item_spec.rb +0 -54
- data/spec/models/system_file_list_result_api_response_spec.rb +0 -48
- 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_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,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<Object>**](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
|
-
##
|
|
163
|
+
## storage_detail
|
|
329
164
|
|
|
330
|
-
> <
|
|
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
|
-
|
|
187
|
+
project: 'project_example' # String | json格式
|
|
352
188
|
}
|
|
353
189
|
|
|
354
190
|
begin
|
|
355
|
-
#
|
|
356
|
-
result = api_instance.
|
|
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->
|
|
195
|
+
puts "Error when calling StorageApi->storage_detail: #{e}"
|
|
360
196
|
end
|
|
361
197
|
```
|
|
362
198
|
|
|
363
|
-
#### Using the
|
|
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(<
|
|
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.
|
|
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 # => <
|
|
211
|
+
p data # => <ObjectApiResponse>
|
|
376
212
|
rescue ZSGFClient::ApiError => e
|
|
377
|
-
puts "Error when calling StorageApi->
|
|
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
|
-
| **
|
|
224
|
+
| **project** | **String** | json格式 | [optional] |
|
|
388
225
|
|
|
389
226
|
### Return type
|
|
390
227
|
|
|
391
|
-
[**
|
|
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
|
-
##
|
|
240
|
+
## storage_list
|
|
404
241
|
|
|
405
|
-
> <
|
|
242
|
+
> <StorageListResultApiResponse> storage_list(table, app_key, opts)
|
|
406
243
|
|
|
407
|
-
|
|
244
|
+
查询数据
|
|
408
245
|
|
|
409
|
-
|
|
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
|
-
|
|
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.
|
|
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->
|
|
278
|
+
puts "Error when calling StorageApi->storage_list: #{e}"
|
|
436
279
|
end
|
|
437
280
|
```
|
|
438
281
|
|
|
439
|
-
#### Using the
|
|
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(<
|
|
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.
|
|
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 # => <
|
|
294
|
+
p data # => <StorageListResultApiResponse>
|
|
452
295
|
rescue ZSGFClient::ApiError => e
|
|
453
|
-
puts "Error when calling StorageApi->
|
|
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
|
-
| **
|
|
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
|
-
[**
|
|
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
|
-
##
|
|
329
|
+
## storage_post
|
|
481
330
|
|
|
482
|
-
> <
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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->
|
|
358
|
+
puts "Error when calling StorageApi->storage_post: #{e}"
|
|
514
359
|
end
|
|
515
360
|
```
|
|
516
361
|
|
|
517
|
-
#### Using the
|
|
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(<
|
|
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.
|
|
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 # => <
|
|
374
|
+
p data # => <StringApiResponse>
|
|
530
375
|
rescue ZSGFClient::ApiError => e
|
|
531
|
-
puts "Error when calling StorageApi->
|
|
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
|
-
| **
|
|
540
|
-
| **timestamp** | **Integer** | 时间戳 | |
|
|
541
|
-
| **signature** | **String** | 签名 | |
|
|
384
|
+
| **table** | **String** | 表名称(小写字母加数字,1-50位) | |
|
|
542
385
|
| **app_key** | **String** | | |
|
|
543
|
-
| **
|
|
386
|
+
| **request_body** | [**Array<Object>**](Object.md) | json对象 / json数组 | |
|
|
544
387
|
|
|
545
388
|
### Return type
|
|
546
389
|
|
|
547
|
-
[**
|
|
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
|
-
##
|
|
402
|
+
## storage_put
|
|
560
403
|
|
|
561
|
-
>
|
|
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
|
-
|
|
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.
|
|
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->
|
|
435
|
+
puts "Error when calling StorageApi->storage_put: #{e}"
|
|
593
436
|
end
|
|
594
437
|
```
|
|
595
438
|
|
|
596
|
-
#### Using the
|
|
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(
|
|
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.
|
|
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 # =>
|
|
451
|
+
p data # => <BooleanApiResponse>
|
|
609
452
|
rescue ZSGFClient::ApiError => e
|
|
610
|
-
puts "Error when calling StorageApi->
|
|
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
|
-
| **
|
|
621
|
-
| **
|
|
622
|
-
| **end_time** | **Time** | 结束时间 | [optional] |
|
|
464
|
+
| **request_body** | [**Array<Object>**](Object.md) | json格式 | |
|
|
465
|
+
| **replace** | **Boolean** | 是否为全量更新,默认为false | [optional][default to false] |
|
|
623
466
|
|
|
624
467
|
### Return type
|
|
625
468
|
|
|
626
|
-
**
|
|
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<Object>**](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<Object>**](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
|
-
|