zsgf_client 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +430 -0
- data/Rakefile +10 -0
- data/docs/AccessTokenApi.md +307 -0
- data/docs/AccessTokenListResult.md +20 -0
- data/docs/AccessTokenListResultApiResponse.md +22 -0
- data/docs/AccessTokenPostRequest.md +28 -0
- data/docs/AccessTokenPutRequest.md +26 -0
- data/docs/AlipayApi.md +453 -0
- data/docs/AlipayCreateOrderPagePayRequest.md +24 -0
- data/docs/AlipayCreateOrderRequest.md +24 -0
- data/docs/AlipayCreateOrderWapPayRequest.md +24 -0
- data/docs/AlipayTradeQueryResponse.md +154 -0
- data/docs/AlipayTradeQueryResponseApiResponse.md +22 -0
- data/docs/AlipayTradeRefundResponse.md +76 -0
- data/docs/AlipayTradeRefundResponseApiResponse.md +22 -0
- data/docs/App.md +50 -0
- data/docs/AppApi.md +735 -0
- data/docs/AppApiResponse.md +22 -0
- data/docs/AppCheckVersionResult.md +20 -0
- data/docs/AppCheckVersionResultApiResponse.md +22 -0
- data/docs/AppInfoItem.md +32 -0
- data/docs/AppInfoResult.md +20 -0
- data/docs/AppInfoResultApiResponse.md +22 -0
- data/docs/AppListResult.md +20 -0
- data/docs/AppListResultApiResponse.md +22 -0
- data/docs/AppPostResult.md +20 -0
- data/docs/AppPostResultApiResponse.md +22 -0
- data/docs/AppProperty.md +22 -0
- data/docs/AppSetting.md +36 -0
- data/docs/AppSettingApi.md +1495 -0
- data/docs/AppSettingApiResponse.md +22 -0
- data/docs/AppSettingGroupPostResult.md +18 -0
- data/docs/AppSettingGroupPostResultApiResponse.md +22 -0
- data/docs/AppSettingItemPostResult.md +18 -0
- data/docs/AppSettingItemPostResultApiResponse.md +22 -0
- data/docs/AppSettingListApiResponse.md +22 -0
- data/docs/AppSettingProviderPostResult.md +18 -0
- data/docs/AppSettingProviderPostResultApiResponse.md +22 -0
- data/docs/AppSettingSettingPostResult.md +18 -0
- data/docs/AppSettingSettingPostResultApiResponse.md +22 -0
- data/docs/AppUserConsentModel.md +30 -0
- data/docs/AppUserConsentModelListApiResponse.md +22 -0
- data/docs/AppUserListResponse.md +40 -0
- data/docs/AppUserResetPwdRequest.md +24 -0
- data/docs/AuthorizePolicy.md +28 -0
- data/docs/AuthorizePolicyApi.md +377 -0
- data/docs/AuthorizePolicyApiResponse.md +22 -0
- data/docs/AuthorizePolicyListApiResponse.md +22 -0
- data/docs/AuthorizeResult.md +26 -0
- data/docs/AuthorizeResultApiResponse.md +22 -0
- data/docs/BkAgentRespInfo.md +26 -0
- data/docs/BooleanApiResponse.md +22 -0
- data/docs/ChargeInfo.md +30 -0
- data/docs/CommonFriendModel.md +22 -0
- data/docs/ContributeDetail.md +20 -0
- data/docs/CreateOrderRequest.md +24 -0
- data/docs/CreateOrderResult.md +20 -0
- data/docs/CreateOrderResultApiResponse.md +22 -0
- data/docs/CreatePostResult.md +18 -0
- data/docs/CreatePostResultApiResponse.md +22 -0
- data/docs/Currency.md +48 -0
- data/docs/CurrencyApi.md +677 -0
- data/docs/CurrencyApiResponse.md +22 -0
- data/docs/CurrencyConsumeRequest.md +26 -0
- data/docs/CurrencyExchangeRate.md +30 -0
- data/docs/CurrencyExchangeRateApiResponse.md +22 -0
- data/docs/CurrencyListApiResponse.md +22 -0
- data/docs/CurrencyTransaction.md +40 -0
- data/docs/CurrencyTransactionListApiResponse.md +22 -0
- data/docs/DingTalkApi.md +81 -0
- data/docs/DirectoryItem.md +24 -0
- data/docs/EmailSignInRequest.md +22 -0
- data/docs/EmailSignUpRequest.md +32 -0
- data/docs/EnterprisePayInfo.md +22 -0
- data/docs/ExchangeCurrencyRequest.md +28 -0
- data/docs/ExchangeRatePutRequest.md +22 -0
- data/docs/ExecuteFunctionRequest.md +18 -0
- data/docs/FileApi.md +385 -0
- data/docs/FileItem.md +24 -0
- data/docs/FileListResult.md +26 -0
- data/docs/FileListResultApiResponse.md +22 -0
- data/docs/FollowerModel.md +40 -0
- data/docs/FollowerPutModel.md +28 -0
- data/docs/FulfillmentDetail.md +22 -0
- data/docs/GeoLocationModel.md +58 -0
- data/docs/GeoLocationModelApiResponse.md +22 -0
- data/docs/GeoLocationResponseModel.md +60 -0
- data/docs/GoodsDetail.md +38 -0
- data/docs/GrantRequest.md +32 -0
- data/docs/GrantResult.md +24 -0
- data/docs/GrantResultApiResponse.md +22 -0
- data/docs/HbFqPayInfo.md +20 -0
- data/docs/Int64ApiResponse.md +22 -0
- data/docs/IntactChargeInfo.md +40 -0
- data/docs/ListResponseItem.md +36 -0
- data/docs/ListResponseItemListApiResponse.md +22 -0
- data/docs/OAuthAccountBindRequest.md +26 -0
- data/docs/OAuthAccountPutBindRequest.md +22 -0
- data/docs/OAuthAccountSignInRequest.md +22 -0
- data/docs/OAuthApi.md +361 -0
- data/docs/ObjectApiResponse.md +22 -0
- data/docs/ObjectListApiResponse.md +22 -0
- data/docs/Order.md +54 -0
- data/docs/OrderApi.md +243 -0
- data/docs/OrderApiResponse.md +22 -0
- data/docs/OrderListResult.md +20 -0
- data/docs/OrderListResultApiResponse.md +22 -0
- data/docs/PaymentInfoWithId.md +20 -0
- data/docs/PhoneSignInRequest.md +22 -0
- data/docs/PhoneSignUpRequest.md +32 -0
- data/docs/PostIndexRequest.md +20 -0
- data/docs/PostResult.md +18 -0
- data/docs/PostResultApiResponse.md +22 -0
- data/docs/PresetPayToolInfo.md +20 -0
- data/docs/ProfileResult.md +44 -0
- data/docs/ProfileResultApiResponse.md +22 -0
- data/docs/Project.md +34 -0
- data/docs/ProjectApi.md +367 -0
- data/docs/ProjectApiResponse.md +22 -0
- data/docs/ProjectListResult.md +20 -0
- data/docs/ProjectListResultApiResponse.md +22 -0
- data/docs/QRCodePreSignInRequest.md +22 -0
- data/docs/QRCodeScanRequest.md +18 -0
- data/docs/QRCodeSignInRequest.md +18 -0
- data/docs/QRCodeSignUpRequest.md +34 -0
- data/docs/RechargePointRequest.md +26 -0
- data/docs/RecommendFriend.md +36 -0
- data/docs/RefundChargeInfo.md +24 -0
- data/docs/RefundSubFee.md +20 -0
- data/docs/ReturnPageNotifyRequest.md +40 -0
- data/docs/SendEmailCodeRequest.md +20 -0
- data/docs/SendSMSCodeRequest.md +20 -0
- data/docs/ServiceGroup.md +36 -0
- data/docs/ServiceGroupApiResponse.md +22 -0
- data/docs/ServiceGroupListApiResponse.md +22 -0
- data/docs/ServiceItem.md +48 -0
- data/docs/ServiceItemApiResponse.md +22 -0
- data/docs/ServiceItemListApiResponse.md +22 -0
- data/docs/ServiceProvider.md +38 -0
- data/docs/ServiceProviderApiResponse.md +22 -0
- data/docs/ServiceProviderListApiResponse.md +22 -0
- data/docs/ServiceSettingApi.md +1459 -0
- data/docs/ServiceSettingGroupPostResult.md +18 -0
- data/docs/ServiceSettingGroupPostResultApiResponse.md +22 -0
- data/docs/ServiceSettingItemPostResult.md +18 -0
- data/docs/ServiceSettingItemPostResultApiResponse.md +22 -0
- data/docs/ServiceSettingProviderPostResult.md +18 -0
- data/docs/ServiceSettingProviderPostResultApiResponse.md +22 -0
- data/docs/ServiceSettingSettingPostResult.md +18 -0
- data/docs/ServiceSettingSettingPostResultApiResponse.md +22 -0
- data/docs/Settings.md +40 -0
- data/docs/SettingsApiResponse.md +22 -0
- data/docs/SettingsListApiResponse.md +22 -0
- data/docs/SetupCode.md +22 -0
- data/docs/SetupCodeApiResponse.md +22 -0
- data/docs/SignInRequest.md +22 -0
- data/docs/SignUpRequest.md +34 -0
- data/docs/StorageApi.md +1229 -0
- data/docs/StorageListResult.md +26 -0
- data/docs/StorageListResultApiResponse.md +22 -0
- data/docs/StringApiResponse.md +22 -0
- data/docs/StringListApiResponse.md +22 -0
- data/docs/SubFee.md +22 -0
- data/docs/SystemDirectoryItem.md +24 -0
- data/docs/SystemFileApi.md +371 -0
- data/docs/SystemFileItem.md +24 -0
- data/docs/SystemFileListResult.md +22 -0
- data/docs/SystemFileListResultApiResponse.md +22 -0
- data/docs/TapPayInfo.md +18 -0
- data/docs/Team.md +36 -0
- data/docs/TeamApi.md +297 -0
- data/docs/TokenModel.md +22 -0
- data/docs/TokenModelApiResponse.md +22 -0
- data/docs/TradeFundBill.md +26 -0
- data/docs/TradeSettleDetail.md +32 -0
- data/docs/TradeSettleInfo.md +20 -0
- data/docs/UnionIDSignInRequest.md +22 -0
- data/docs/UnionIDSignUpRequest.md +38 -0
- data/docs/UpdateProfileRequest.md +50 -0
- data/docs/User.md +90 -0
- data/docs/UserAccessToken.md +38 -0
- data/docs/UserApi.md +3303 -0
- data/docs/UserApiResponse.md +22 -0
- data/docs/UserCommonInterestsResult.md +20 -0
- data/docs/UserCommonInterestsResultApiResponse.md +22 -0
- data/docs/UserCurrency.md +24 -0
- data/docs/UserCurrencyApi.md +403 -0
- data/docs/UserCurrencyCurrencyTransResult.md +20 -0
- data/docs/UserCurrencyCurrencyTransResultApiResponse.md +22 -0
- data/docs/UserCurrencyListApiResponse.md +22 -0
- data/docs/UserFollowersResult.md +20 -0
- data/docs/UserFollowersResultApiResponse.md +22 -0
- data/docs/UserFollowingResult.md +20 -0
- data/docs/UserFollowingResultApiResponse.md +22 -0
- data/docs/UserFriendsNearByResult.md +20 -0
- data/docs/UserFriendsNearByResultApiResponse.md +22 -0
- data/docs/UserListResult.md +20 -0
- data/docs/UserListResultApiResponse.md +22 -0
- data/docs/UserLocationPostResult.md +18 -0
- data/docs/UserLocationPostResultApiResponse.md +22 -0
- data/docs/UserLocationsResult.md +20 -0
- data/docs/UserLocationsResultApiResponse.md +22 -0
- data/docs/UserLogins.md +36 -0
- data/docs/UserLoginsListApiResponse.md +22 -0
- data/docs/UserMutualFollowersResult.md +20 -0
- data/docs/UserMutualFollowersResultApiResponse.md +22 -0
- data/docs/UserMutualFollowingsResult.md +20 -0
- data/docs/UserMutualFollowingsResultApiResponse.md +22 -0
- data/docs/UserProfileResult.md +48 -0
- data/docs/UserProfileResultApiResponse.md +22 -0
- data/docs/UserQRCodeScanResult.md +34 -0
- data/docs/UserQRCodeScanResultApiResponse.md +22 -0
- data/docs/UserSetting.md +38 -0
- data/docs/UserSettingApi.md +379 -0
- data/docs/UserSettingApiResponse.md +22 -0
- data/docs/UserSettingListApiResponse.md +22 -0
- data/docs/UserSettingPostResult.md +18 -0
- data/docs/UserSettingPostResultApiResponse.md +22 -0
- data/docs/VoucherDetail.md +40 -0
- data/docs/WechatApi.md +751 -0
- data/docs/WechatJSConfigResult.md +26 -0
- data/docs/WechatJSConfigResultApiResponse.md +22 -0
- data/lib/zsgf_client/api/access_token_api.rb +309 -0
- data/lib/zsgf_client/api/alipay_api.rb +437 -0
- data/lib/zsgf_client/api/app_api.rb +675 -0
- data/lib/zsgf_client/api/app_setting_api.rb +1446 -0
- data/lib/zsgf_client/api/authorize_policy_api.rb +375 -0
- data/lib/zsgf_client/api/currency_api.rb +667 -0
- data/lib/zsgf_client/api/ding_talk_api.rb +88 -0
- data/lib/zsgf_client/api/file_api.rb +369 -0
- data/lib/zsgf_client/api/o_auth_api.rb +349 -0
- data/lib/zsgf_client/api/order_api.rb +251 -0
- data/lib/zsgf_client/api/project_api.rb +345 -0
- data/lib/zsgf_client/api/service_setting_api.rb +1340 -0
- data/lib/zsgf_client/api/storage_api.rb +1311 -0
- data/lib/zsgf_client/api/system_file_api.rb +333 -0
- data/lib/zsgf_client/api/team_api.rb +282 -0
- data/lib/zsgf_client/api/user_api.rb +3164 -0
- data/lib/zsgf_client/api/user_currency_api.rb +445 -0
- data/lib/zsgf_client/api/user_setting_api.rb +378 -0
- data/lib/zsgf_client/api/wechat_api.rb +712 -0
- data/lib/zsgf_client/api_client.rb +393 -0
- data/lib/zsgf_client/api_error.rb +58 -0
- data/lib/zsgf_client/configuration.rb +312 -0
- data/lib/zsgf_client/models/access_token_list_result.rb +232 -0
- data/lib/zsgf_client/models/access_token_list_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/access_token_post_request.rb +322 -0
- data/lib/zsgf_client/models/access_token_put_request.rb +299 -0
- data/lib/zsgf_client/models/alipay_create_order_page_pay_request.rb +330 -0
- data/lib/zsgf_client/models/alipay_create_order_request.rb +330 -0
- data/lib/zsgf_client/models/alipay_create_order_wap_pay_request.rb +330 -0
- data/lib/zsgf_client/models/alipay_trade_query_response.rb +909 -0
- data/lib/zsgf_client/models/alipay_trade_query_response_api_response.rb +245 -0
- data/lib/zsgf_client/models/alipay_trade_refund_response.rb +515 -0
- data/lib/zsgf_client/models/alipay_trade_refund_response_api_response.rb +245 -0
- data/lib/zsgf_client/models/app.rb +583 -0
- data/lib/zsgf_client/models/app_api_response.rb +245 -0
- data/lib/zsgf_client/models/app_check_version_result.rb +235 -0
- data/lib/zsgf_client/models/app_check_version_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/app_info_item.rb +289 -0
- data/lib/zsgf_client/models/app_info_result.rb +232 -0
- data/lib/zsgf_client/models/app_info_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/app_list_result.rb +232 -0
- data/lib/zsgf_client/models/app_list_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/app_post_result.rb +230 -0
- data/lib/zsgf_client/models/app_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/app_property.rb +241 -0
- data/lib/zsgf_client/models/app_setting.rb +437 -0
- data/lib/zsgf_client/models/app_setting_api_response.rb +245 -0
- data/lib/zsgf_client/models/app_setting_group_post_result.rb +220 -0
- data/lib/zsgf_client/models/app_setting_group_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/app_setting_item_post_result.rb +220 -0
- data/lib/zsgf_client/models/app_setting_item_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/app_setting_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/app_setting_provider_post_result.rb +220 -0
- data/lib/zsgf_client/models/app_setting_provider_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/app_setting_setting_post_result.rb +220 -0
- data/lib/zsgf_client/models/app_setting_setting_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/app_user_consent_model.rb +278 -0
- data/lib/zsgf_client/models/app_user_consent_model_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/app_user_list_response.rb +327 -0
- data/lib/zsgf_client/models/app_user_reset_pwd_request.rb +323 -0
- data/lib/zsgf_client/models/authorize_policy.rb +290 -0
- data/lib/zsgf_client/models/authorize_policy_api_response.rb +245 -0
- data/lib/zsgf_client/models/authorize_policy_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/authorize_result.rb +259 -0
- data/lib/zsgf_client/models/authorize_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/bk_agent_resp_info.rb +261 -0
- data/lib/zsgf_client/models/boolean_api_response.rb +246 -0
- data/lib/zsgf_client/models/charge_info.rb +283 -0
- data/lib/zsgf_client/models/common_friend_model.rb +240 -0
- data/lib/zsgf_client/models/contribute_detail.rb +231 -0
- data/lib/zsgf_client/models/create_order_request.rb +351 -0
- data/lib/zsgf_client/models/create_order_result.rb +230 -0
- data/lib/zsgf_client/models/create_order_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/create_post_result.rb +220 -0
- data/lib/zsgf_client/models/create_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/currency.rb +484 -0
- data/lib/zsgf_client/models/currency_api_response.rb +245 -0
- data/lib/zsgf_client/models/currency_consume_request.rb +307 -0
- data/lib/zsgf_client/models/currency_exchange_rate.rb +330 -0
- data/lib/zsgf_client/models/currency_exchange_rate_api_response.rb +245 -0
- data/lib/zsgf_client/models/currency_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/currency_transaction.rb +413 -0
- data/lib/zsgf_client/models/currency_transaction_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/directory_item.rb +249 -0
- data/lib/zsgf_client/models/email_sign_in_request.rb +303 -0
- data/lib/zsgf_client/models/email_sign_up_request.rb +452 -0
- data/lib/zsgf_client/models/enterprise_pay_info.rb +240 -0
- data/lib/zsgf_client/models/exchange_currency_request.rb +343 -0
- data/lib/zsgf_client/models/exchange_rate_put_request.rb +240 -0
- data/lib/zsgf_client/models/execute_function_request.rb +222 -0
- data/lib/zsgf_client/models/file_item.rb +249 -0
- data/lib/zsgf_client/models/file_list_result.rb +262 -0
- data/lib/zsgf_client/models/file_list_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/follower_model.rb +325 -0
- data/lib/zsgf_client/models/follower_put_model.rb +269 -0
- data/lib/zsgf_client/models/fulfillment_detail.rb +241 -0
- data/lib/zsgf_client/models/geo_location_model.rb +436 -0
- data/lib/zsgf_client/models/geo_location_model_api_response.rb +245 -0
- data/lib/zsgf_client/models/geo_location_response_model.rb +446 -0
- data/lib/zsgf_client/models/goods_detail.rb +320 -0
- data/lib/zsgf_client/models/grant_request.rb +387 -0
- data/lib/zsgf_client/models/grant_result.rb +249 -0
- data/lib/zsgf_client/models/grant_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/hb_fq_pay_info.rb +231 -0
- data/lib/zsgf_client/models/int64_api_response.rb +246 -0
- data/lib/zsgf_client/models/intact_charge_info.rb +330 -0
- data/lib/zsgf_client/models/list_response_item.rb +308 -0
- data/lib/zsgf_client/models/list_response_item_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/o_auth_account_bind_request.rb +336 -0
- data/lib/zsgf_client/models/o_auth_account_put_bind_request.rb +243 -0
- data/lib/zsgf_client/models/o_auth_account_sign_in_request.rb +292 -0
- data/lib/zsgf_client/models/object_api_response.rb +247 -0
- data/lib/zsgf_client/models/object_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/order.rb +547 -0
- data/lib/zsgf_client/models/order_api_response.rb +245 -0
- data/lib/zsgf_client/models/order_list_result.rb +232 -0
- data/lib/zsgf_client/models/order_list_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/payment_info_with_id.rb +233 -0
- data/lib/zsgf_client/models/phone_sign_in_request.rb +292 -0
- data/lib/zsgf_client/models/phone_sign_up_request.rb +471 -0
- data/lib/zsgf_client/models/post_index_request.rb +251 -0
- data/lib/zsgf_client/models/post_result.rb +220 -0
- data/lib/zsgf_client/models/post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/preset_pay_tool_info.rb +233 -0
- data/lib/zsgf_client/models/profile_result.rb +346 -0
- data/lib/zsgf_client/models/profile_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/project.rb +353 -0
- data/lib/zsgf_client/models/project_api_response.rb +245 -0
- data/lib/zsgf_client/models/project_list_result.rb +232 -0
- data/lib/zsgf_client/models/project_list_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/qr_code_pre_sign_in_request.rb +241 -0
- data/lib/zsgf_client/models/qr_code_scan_request.rb +237 -0
- data/lib/zsgf_client/models/qr_code_sign_in_request.rb +237 -0
- data/lib/zsgf_client/models/qr_code_sign_up_request.rb +454 -0
- data/lib/zsgf_client/models/recharge_point_request.rb +307 -0
- data/lib/zsgf_client/models/recommend_friend.rb +306 -0
- data/lib/zsgf_client/models/refund_charge_info.rb +253 -0
- data/lib/zsgf_client/models/refund_sub_fee.rb +231 -0
- data/lib/zsgf_client/models/return_page_notify_request.rb +344 -0
- data/lib/zsgf_client/models/send_email_code_request.rb +282 -0
- data/lib/zsgf_client/models/send_sms_code_request.rb +283 -0
- data/lib/zsgf_client/models/service_group.rb +361 -0
- data/lib/zsgf_client/models/service_group_api_response.rb +245 -0
- data/lib/zsgf_client/models/service_group_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/service_item.rb +502 -0
- data/lib/zsgf_client/models/service_item_api_response.rb +245 -0
- data/lib/zsgf_client/models/service_item_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/service_provider.rb +403 -0
- data/lib/zsgf_client/models/service_provider_api_response.rb +245 -0
- data/lib/zsgf_client/models/service_provider_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/service_setting_group_post_result.rb +220 -0
- data/lib/zsgf_client/models/service_setting_group_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/service_setting_item_post_result.rb +220 -0
- data/lib/zsgf_client/models/service_setting_item_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/service_setting_provider_post_result.rb +220 -0
- data/lib/zsgf_client/models/service_setting_provider_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/service_setting_setting_post_result.rb +220 -0
- data/lib/zsgf_client/models/service_setting_setting_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/settings.rb +445 -0
- data/lib/zsgf_client/models/settings_api_response.rb +245 -0
- data/lib/zsgf_client/models/settings_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/setup_code.rb +241 -0
- data/lib/zsgf_client/models/setup_code_api_response.rb +245 -0
- data/lib/zsgf_client/models/sign_in_request.rb +292 -0
- data/lib/zsgf_client/models/sign_up_request.rb +482 -0
- data/lib/zsgf_client/models/storage_list_result.rb +258 -0
- data/lib/zsgf_client/models/storage_list_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/string_api_response.rb +247 -0
- data/lib/zsgf_client/models/string_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/sub_fee.rb +241 -0
- data/lib/zsgf_client/models/system_directory_item.rb +249 -0
- data/lib/zsgf_client/models/system_file_item.rb +249 -0
- data/lib/zsgf_client/models/system_file_list_result.rb +244 -0
- data/lib/zsgf_client/models/system_file_list_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/tap_pay_info.rb +221 -0
- data/lib/zsgf_client/models/team.rb +376 -0
- data/lib/zsgf_client/models/token_model.rb +240 -0
- data/lib/zsgf_client/models/token_model_api_response.rb +245 -0
- data/lib/zsgf_client/models/trade_fund_bill.rb +261 -0
- data/lib/zsgf_client/models/trade_settle_detail.rb +291 -0
- data/lib/zsgf_client/models/trade_settle_info.rb +233 -0
- data/lib/zsgf_client/models/union_id_sign_in_request.rb +292 -0
- data/lib/zsgf_client/models/union_id_sign_up_request.rb +549 -0
- data/lib/zsgf_client/models/update_profile_request.rb +608 -0
- data/lib/zsgf_client/models/user.rb +906 -0
- data/lib/zsgf_client/models/user_access_token.rb +357 -0
- data/lib/zsgf_client/models/user_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_common_interests_result.rb +232 -0
- data/lib/zsgf_client/models/user_common_interests_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_currency.rb +268 -0
- data/lib/zsgf_client/models/user_currency_currency_trans_result.rb +232 -0
- data/lib/zsgf_client/models/user_currency_currency_trans_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_currency_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/user_followers_result.rb +232 -0
- data/lib/zsgf_client/models/user_followers_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_following_result.rb +232 -0
- data/lib/zsgf_client/models/user_following_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_friends_near_by_result.rb +232 -0
- data/lib/zsgf_client/models/user_friends_near_by_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_list_result.rb +232 -0
- data/lib/zsgf_client/models/user_list_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_location_post_result.rb +220 -0
- data/lib/zsgf_client/models/user_location_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_locations_result.rb +232 -0
- data/lib/zsgf_client/models/user_locations_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_logins.rb +377 -0
- data/lib/zsgf_client/models/user_logins_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/user_mutual_followers_result.rb +232 -0
- data/lib/zsgf_client/models/user_mutual_followers_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_mutual_followings_result.rb +232 -0
- data/lib/zsgf_client/models/user_mutual_followings_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_profile_result.rb +368 -0
- data/lib/zsgf_client/models/user_profile_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_qr_code_scan_result.rb +300 -0
- data/lib/zsgf_client/models/user_qr_code_scan_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_setting.rb +464 -0
- data/lib/zsgf_client/models/user_setting_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_setting_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/user_setting_post_result.rb +220 -0
- data/lib/zsgf_client/models/user_setting_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/voucher_detail.rb +333 -0
- data/lib/zsgf_client/models/wechat_js_config_result.rb +263 -0
- data/lib/zsgf_client/models/wechat_js_config_result_api_response.rb +245 -0
- data/lib/zsgf_client/version.rb +15 -0
- data/lib/zsgf_client.rb +259 -0
- data/spec/api/access_token_api_spec.rb +90 -0
- data/spec/api/alipay_api_spec.rb +114 -0
- data/spec/api/app_api_spec.rb +162 -0
- data/spec/api/app_setting_api_spec.rb +307 -0
- data/spec/api/authorize_policy_api_spec.rb +102 -0
- data/spec/api/currency_api_spec.rb +159 -0
- data/spec/api/ding_talk_api_spec.rb +48 -0
- data/spec/api/file_api_spec.rb +104 -0
- data/spec/api/o_auth_api_spec.rb +95 -0
- data/spec/api/order_api_spec.rb +82 -0
- data/spec/api/project_api_spec.rb +97 -0
- data/spec/api/service_setting_api_spec.rb +289 -0
- data/spec/api/storage_api_spec.rb +268 -0
- data/spec/api/system_file_api_spec.rb +97 -0
- data/spec/api/team_api_spec.rb +85 -0
- data/spec/api/user_api_spec.rb +639 -0
- data/spec/api/user_currency_api_spec.rb +114 -0
- data/spec/api/user_setting_api_spec.rb +103 -0
- data/spec/api/wechat_api_spec.rb +167 -0
- data/spec/models/access_token_list_result_api_response_spec.rb +48 -0
- data/spec/models/access_token_list_result_spec.rb +42 -0
- data/spec/models/access_token_post_request_spec.rb +66 -0
- data/spec/models/access_token_put_request_spec.rb +60 -0
- data/spec/models/alipay_create_order_page_pay_request_spec.rb +54 -0
- data/spec/models/alipay_create_order_request_spec.rb +54 -0
- data/spec/models/alipay_create_order_wap_pay_request_spec.rb +54 -0
- data/spec/models/alipay_trade_query_response_api_response_spec.rb +48 -0
- data/spec/models/alipay_trade_query_response_spec.rb +444 -0
- data/spec/models/alipay_trade_refund_response_api_response_spec.rb +48 -0
- data/spec/models/alipay_trade_refund_response_spec.rb +210 -0
- data/spec/models/app_api_response_spec.rb +48 -0
- data/spec/models/app_check_version_result_api_response_spec.rb +48 -0
- data/spec/models/app_check_version_result_spec.rb +42 -0
- data/spec/models/app_info_item_spec.rb +78 -0
- data/spec/models/app_info_result_api_response_spec.rb +48 -0
- data/spec/models/app_info_result_spec.rb +42 -0
- data/spec/models/app_list_result_api_response_spec.rb +48 -0
- data/spec/models/app_list_result_spec.rb +42 -0
- data/spec/models/app_post_result_api_response_spec.rb +48 -0
- data/spec/models/app_post_result_spec.rb +42 -0
- data/spec/models/app_property_spec.rb +48 -0
- data/spec/models/app_setting_api_response_spec.rb +48 -0
- data/spec/models/app_setting_group_post_result_api_response_spec.rb +48 -0
- data/spec/models/app_setting_group_post_result_spec.rb +36 -0
- data/spec/models/app_setting_item_post_result_api_response_spec.rb +48 -0
- data/spec/models/app_setting_item_post_result_spec.rb +36 -0
- data/spec/models/app_setting_list_api_response_spec.rb +48 -0
- data/spec/models/app_setting_provider_post_result_api_response_spec.rb +48 -0
- data/spec/models/app_setting_provider_post_result_spec.rb +36 -0
- data/spec/models/app_setting_setting_post_result_api_response_spec.rb +48 -0
- data/spec/models/app_setting_setting_post_result_spec.rb +36 -0
- data/spec/models/app_setting_spec.rb +90 -0
- data/spec/models/app_spec.rb +132 -0
- data/spec/models/app_user_consent_model_list_api_response_spec.rb +48 -0
- data/spec/models/app_user_consent_model_spec.rb +72 -0
- data/spec/models/app_user_list_response_spec.rb +102 -0
- data/spec/models/app_user_reset_pwd_request_spec.rb +54 -0
- data/spec/models/authorize_policy_api_response_spec.rb +48 -0
- data/spec/models/authorize_policy_list_api_response_spec.rb +48 -0
- data/spec/models/authorize_policy_spec.rb +66 -0
- data/spec/models/authorize_result_api_response_spec.rb +48 -0
- data/spec/models/authorize_result_spec.rb +60 -0
- data/spec/models/bk_agent_resp_info_spec.rb +60 -0
- data/spec/models/boolean_api_response_spec.rb +48 -0
- data/spec/models/charge_info_spec.rb +72 -0
- data/spec/models/common_friend_model_spec.rb +48 -0
- data/spec/models/contribute_detail_spec.rb +42 -0
- data/spec/models/create_order_request_spec.rb +54 -0
- data/spec/models/create_order_result_api_response_spec.rb +48 -0
- data/spec/models/create_order_result_spec.rb +42 -0
- data/spec/models/create_post_result_api_response_spec.rb +48 -0
- data/spec/models/create_post_result_spec.rb +36 -0
- data/spec/models/currency_api_response_spec.rb +48 -0
- data/spec/models/currency_consume_request_spec.rb +60 -0
- data/spec/models/currency_exchange_rate_api_response_spec.rb +48 -0
- data/spec/models/currency_exchange_rate_spec.rb +72 -0
- data/spec/models/currency_list_api_response_spec.rb +48 -0
- data/spec/models/currency_spec.rb +126 -0
- data/spec/models/currency_transaction_list_api_response_spec.rb +48 -0
- data/spec/models/currency_transaction_spec.rb +102 -0
- data/spec/models/directory_item_spec.rb +54 -0
- data/spec/models/email_sign_in_request_spec.rb +48 -0
- data/spec/models/email_sign_up_request_spec.rb +78 -0
- data/spec/models/enterprise_pay_info_spec.rb +48 -0
- data/spec/models/exchange_currency_request_spec.rb +66 -0
- data/spec/models/exchange_rate_put_request_spec.rb +48 -0
- data/spec/models/execute_function_request_spec.rb +36 -0
- data/spec/models/file_item_spec.rb +54 -0
- data/spec/models/file_list_result_api_response_spec.rb +48 -0
- data/spec/models/file_list_result_spec.rb +60 -0
- data/spec/models/follower_model_spec.rb +102 -0
- data/spec/models/follower_put_model_spec.rb +66 -0
- data/spec/models/fulfillment_detail_spec.rb +48 -0
- data/spec/models/geo_location_model_api_response_spec.rb +48 -0
- data/spec/models/geo_location_model_spec.rb +156 -0
- data/spec/models/geo_location_response_model_spec.rb +162 -0
- data/spec/models/goods_detail_spec.rb +96 -0
- data/spec/models/grant_request_spec.rb +78 -0
- data/spec/models/grant_result_api_response_spec.rb +48 -0
- data/spec/models/grant_result_spec.rb +54 -0
- data/spec/models/hb_fq_pay_info_spec.rb +42 -0
- data/spec/models/int64_api_response_spec.rb +48 -0
- data/spec/models/intact_charge_info_spec.rb +102 -0
- data/spec/models/list_response_item_list_api_response_spec.rb +48 -0
- data/spec/models/list_response_item_spec.rb +90 -0
- data/spec/models/o_auth_account_bind_request_spec.rb +60 -0
- data/spec/models/o_auth_account_put_bind_request_spec.rb +48 -0
- data/spec/models/o_auth_account_sign_in_request_spec.rb +48 -0
- data/spec/models/object_api_response_spec.rb +48 -0
- data/spec/models/object_list_api_response_spec.rb +48 -0
- data/spec/models/order_api_response_spec.rb +48 -0
- data/spec/models/order_list_result_api_response_spec.rb +48 -0
- data/spec/models/order_list_result_spec.rb +42 -0
- data/spec/models/order_spec.rb +144 -0
- data/spec/models/payment_info_with_id_spec.rb +42 -0
- data/spec/models/phone_sign_in_request_spec.rb +48 -0
- data/spec/models/phone_sign_up_request_spec.rb +78 -0
- data/spec/models/post_index_request_spec.rb +42 -0
- data/spec/models/post_result_api_response_spec.rb +48 -0
- data/spec/models/post_result_spec.rb +36 -0
- data/spec/models/preset_pay_tool_info_spec.rb +42 -0
- data/spec/models/profile_result_api_response_spec.rb +48 -0
- data/spec/models/profile_result_spec.rb +114 -0
- data/spec/models/project_api_response_spec.rb +48 -0
- data/spec/models/project_list_result_api_response_spec.rb +48 -0
- data/spec/models/project_list_result_spec.rb +42 -0
- data/spec/models/project_spec.rb +84 -0
- data/spec/models/qr_code_pre_sign_in_request_spec.rb +48 -0
- data/spec/models/qr_code_scan_request_spec.rb +36 -0
- data/spec/models/qr_code_sign_in_request_spec.rb +36 -0
- data/spec/models/qr_code_sign_up_request_spec.rb +84 -0
- data/spec/models/recharge_point_request_spec.rb +60 -0
- data/spec/models/recommend_friend_spec.rb +90 -0
- data/spec/models/refund_charge_info_spec.rb +54 -0
- data/spec/models/refund_sub_fee_spec.rb +42 -0
- data/spec/models/return_page_notify_request_spec.rb +102 -0
- data/spec/models/send_email_code_request_spec.rb +42 -0
- data/spec/models/send_sms_code_request_spec.rb +42 -0
- data/spec/models/service_group_api_response_spec.rb +48 -0
- data/spec/models/service_group_list_api_response_spec.rb +48 -0
- data/spec/models/service_group_spec.rb +90 -0
- data/spec/models/service_item_api_response_spec.rb +48 -0
- data/spec/models/service_item_list_api_response_spec.rb +48 -0
- data/spec/models/service_item_spec.rb +126 -0
- data/spec/models/service_provider_api_response_spec.rb +48 -0
- data/spec/models/service_provider_list_api_response_spec.rb +48 -0
- data/spec/models/service_provider_spec.rb +96 -0
- data/spec/models/service_setting_group_post_result_api_response_spec.rb +48 -0
- data/spec/models/service_setting_group_post_result_spec.rb +36 -0
- data/spec/models/service_setting_item_post_result_api_response_spec.rb +48 -0
- data/spec/models/service_setting_item_post_result_spec.rb +36 -0
- data/spec/models/service_setting_provider_post_result_api_response_spec.rb +48 -0
- data/spec/models/service_setting_provider_post_result_spec.rb +36 -0
- data/spec/models/service_setting_setting_post_result_api_response_spec.rb +48 -0
- data/spec/models/service_setting_setting_post_result_spec.rb +36 -0
- data/spec/models/settings_api_response_spec.rb +48 -0
- data/spec/models/settings_list_api_response_spec.rb +48 -0
- data/spec/models/settings_spec.rb +102 -0
- data/spec/models/setup_code_api_response_spec.rb +48 -0
- data/spec/models/setup_code_spec.rb +48 -0
- data/spec/models/sign_in_request_spec.rb +48 -0
- data/spec/models/sign_up_request_spec.rb +84 -0
- data/spec/models/storage_list_result_api_response_spec.rb +48 -0
- data/spec/models/storage_list_result_spec.rb +60 -0
- data/spec/models/string_api_response_spec.rb +48 -0
- data/spec/models/string_list_api_response_spec.rb +48 -0
- data/spec/models/sub_fee_spec.rb +48 -0
- data/spec/models/system_directory_item_spec.rb +54 -0
- data/spec/models/system_file_item_spec.rb +54 -0
- data/spec/models/system_file_list_result_api_response_spec.rb +48 -0
- data/spec/models/system_file_list_result_spec.rb +48 -0
- data/spec/models/tap_pay_info_spec.rb +36 -0
- data/spec/models/team_spec.rb +90 -0
- data/spec/models/token_model_api_response_spec.rb +48 -0
- data/spec/models/token_model_spec.rb +48 -0
- data/spec/models/trade_fund_bill_spec.rb +60 -0
- data/spec/models/trade_settle_detail_spec.rb +78 -0
- data/spec/models/trade_settle_info_spec.rb +42 -0
- data/spec/models/union_id_sign_in_request_spec.rb +48 -0
- data/spec/models/union_id_sign_up_request_spec.rb +96 -0
- data/spec/models/update_profile_request_spec.rb +132 -0
- data/spec/models/user_access_token_spec.rb +96 -0
- data/spec/models/user_api_response_spec.rb +48 -0
- data/spec/models/user_common_interests_result_api_response_spec.rb +48 -0
- data/spec/models/user_common_interests_result_spec.rb +42 -0
- data/spec/models/user_currency_currency_trans_result_api_response_spec.rb +48 -0
- data/spec/models/user_currency_currency_trans_result_spec.rb +42 -0
- data/spec/models/user_currency_list_api_response_spec.rb +48 -0
- data/spec/models/user_currency_spec.rb +54 -0
- data/spec/models/user_followers_result_api_response_spec.rb +48 -0
- data/spec/models/user_followers_result_spec.rb +42 -0
- data/spec/models/user_following_result_api_response_spec.rb +48 -0
- data/spec/models/user_following_result_spec.rb +42 -0
- data/spec/models/user_friends_near_by_result_api_response_spec.rb +48 -0
- data/spec/models/user_friends_near_by_result_spec.rb +42 -0
- data/spec/models/user_list_result_api_response_spec.rb +48 -0
- data/spec/models/user_list_result_spec.rb +42 -0
- data/spec/models/user_location_post_result_api_response_spec.rb +48 -0
- data/spec/models/user_location_post_result_spec.rb +36 -0
- data/spec/models/user_locations_result_api_response_spec.rb +48 -0
- data/spec/models/user_locations_result_spec.rb +42 -0
- data/spec/models/user_logins_list_api_response_spec.rb +48 -0
- data/spec/models/user_logins_spec.rb +90 -0
- data/spec/models/user_mutual_followers_result_api_response_spec.rb +48 -0
- data/spec/models/user_mutual_followers_result_spec.rb +42 -0
- data/spec/models/user_mutual_followings_result_api_response_spec.rb +48 -0
- data/spec/models/user_mutual_followings_result_spec.rb +42 -0
- data/spec/models/user_profile_result_api_response_spec.rb +48 -0
- data/spec/models/user_profile_result_spec.rb +126 -0
- data/spec/models/user_qr_code_scan_result_api_response_spec.rb +48 -0
- data/spec/models/user_qr_code_scan_result_spec.rb +84 -0
- data/spec/models/user_setting_api_response_spec.rb +48 -0
- data/spec/models/user_setting_list_api_response_spec.rb +48 -0
- data/spec/models/user_setting_post_result_api_response_spec.rb +48 -0
- data/spec/models/user_setting_post_result_spec.rb +36 -0
- data/spec/models/user_setting_spec.rb +96 -0
- data/spec/models/user_spec.rb +252 -0
- data/spec/models/voucher_detail_spec.rb +102 -0
- data/spec/models/wechat_js_config_result_api_response_spec.rb +48 -0
- data/spec/models/wechat_js_config_result_spec.rb +60 -0
- data/spec/spec_helper.rb +111 -0
- data/zsgf_client.gemspec +39 -0
- metadata +974 -0
data/docs/StorageApi.md
ADDED
|
@@ -0,0 +1,1229 @@
|
|
|
1
|
+
# ZSGFClient::StorageApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.zashigaofa.cn*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
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
|
+
| [**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
|
+
| [**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
|
+
| [**storage_list**](StorageApi.md#storage_list) | **GET** /Storage/{appKey}/{table} | 查询数据 |
|
|
17
|
+
| [**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
|
+
| [**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
|
+
|
|
24
|
+
|
|
25
|
+
## storage_aggregate
|
|
26
|
+
|
|
27
|
+
> <ObjectListApiResponse> storage_aggregate(table, app_key, opts)
|
|
28
|
+
|
|
29
|
+
聚合查询
|
|
30
|
+
|
|
31
|
+
根据聚合管道查询指定表中的数据
|
|
32
|
+
|
|
33
|
+
### Examples
|
|
34
|
+
|
|
35
|
+
```ruby
|
|
36
|
+
require 'time'
|
|
37
|
+
require 'zsgf_client'
|
|
38
|
+
# setup authorization
|
|
39
|
+
ZSGFClient.configure do |config|
|
|
40
|
+
# Configure Bearer authorization: Bearer
|
|
41
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
api_instance = ZSGFClient::StorageApi.new
|
|
45
|
+
table = 'table_example' # String | 表名称
|
|
46
|
+
app_key = 'app_key_example' # String |
|
|
47
|
+
opts = {
|
|
48
|
+
pipeline: 'pipeline_example' # String | 构建聚合查询
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
begin
|
|
52
|
+
# 聚合查询
|
|
53
|
+
result = api_instance.storage_aggregate(table, app_key, opts)
|
|
54
|
+
p result
|
|
55
|
+
rescue ZSGFClient::ApiError => e
|
|
56
|
+
puts "Error when calling StorageApi->storage_aggregate: #{e}"
|
|
57
|
+
end
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
#### Using the storage_aggregate_with_http_info variant
|
|
61
|
+
|
|
62
|
+
This returns an Array which contains the response data, status code and headers.
|
|
63
|
+
|
|
64
|
+
> <Array(<ObjectListApiResponse>, Integer, Hash)> storage_aggregate_with_http_info(table, app_key, opts)
|
|
65
|
+
|
|
66
|
+
```ruby
|
|
67
|
+
begin
|
|
68
|
+
# 聚合查询
|
|
69
|
+
data, status_code, headers = api_instance.storage_aggregate_with_http_info(table, app_key, opts)
|
|
70
|
+
p status_code # => 2xx
|
|
71
|
+
p headers # => { ... }
|
|
72
|
+
p data # => <ObjectListApiResponse>
|
|
73
|
+
rescue ZSGFClient::ApiError => e
|
|
74
|
+
puts "Error when calling StorageApi->storage_aggregate_with_http_info: #{e}"
|
|
75
|
+
end
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Parameters
|
|
79
|
+
|
|
80
|
+
| Name | Type | Description | Notes |
|
|
81
|
+
| ---- | ---- | ----------- | ----- |
|
|
82
|
+
| **table** | **String** | 表名称 | |
|
|
83
|
+
| **app_key** | **String** | | |
|
|
84
|
+
| **pipeline** | **String** | 构建聚合查询 | [optional] |
|
|
85
|
+
|
|
86
|
+
### Return type
|
|
87
|
+
|
|
88
|
+
[**ObjectListApiResponse**](ObjectListApiResponse.md)
|
|
89
|
+
|
|
90
|
+
### Authorization
|
|
91
|
+
|
|
92
|
+
[Bearer](../README.md#Bearer)
|
|
93
|
+
|
|
94
|
+
### HTTP request headers
|
|
95
|
+
|
|
96
|
+
- **Content-Type**: Not defined
|
|
97
|
+
- **Accept**: application/json
|
|
98
|
+
|
|
99
|
+
|
|
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
|
+
## storage_delete
|
|
176
|
+
|
|
177
|
+
> <BooleanApiResponse> storage_delete(table, id, app_key)
|
|
178
|
+
|
|
179
|
+
删除数据
|
|
180
|
+
|
|
181
|
+
删除指定表中指定ID的数据
|
|
182
|
+
|
|
183
|
+
### Examples
|
|
184
|
+
|
|
185
|
+
```ruby
|
|
186
|
+
require 'time'
|
|
187
|
+
require 'zsgf_client'
|
|
188
|
+
# setup authorization
|
|
189
|
+
ZSGFClient.configure do |config|
|
|
190
|
+
# Configure Bearer authorization: Bearer
|
|
191
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
api_instance = ZSGFClient::StorageApi.new
|
|
195
|
+
table = 'table_example' # String | 表名称
|
|
196
|
+
id = 'id_example' # String | 数据ID
|
|
197
|
+
app_key = 'app_key_example' # String |
|
|
198
|
+
|
|
199
|
+
begin
|
|
200
|
+
# 删除数据
|
|
201
|
+
result = api_instance.storage_delete(table, id, app_key)
|
|
202
|
+
p result
|
|
203
|
+
rescue ZSGFClient::ApiError => e
|
|
204
|
+
puts "Error when calling StorageApi->storage_delete: #{e}"
|
|
205
|
+
end
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
#### Using the storage_delete_with_http_info variant
|
|
209
|
+
|
|
210
|
+
This returns an Array which contains the response data, status code and headers.
|
|
211
|
+
|
|
212
|
+
> <Array(<BooleanApiResponse>, Integer, Hash)> storage_delete_with_http_info(table, id, app_key)
|
|
213
|
+
|
|
214
|
+
```ruby
|
|
215
|
+
begin
|
|
216
|
+
# 删除数据
|
|
217
|
+
data, status_code, headers = api_instance.storage_delete_with_http_info(table, id, app_key)
|
|
218
|
+
p status_code # => 2xx
|
|
219
|
+
p headers # => { ... }
|
|
220
|
+
p data # => <BooleanApiResponse>
|
|
221
|
+
rescue ZSGFClient::ApiError => e
|
|
222
|
+
puts "Error when calling StorageApi->storage_delete_with_http_info: #{e}"
|
|
223
|
+
end
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### Parameters
|
|
227
|
+
|
|
228
|
+
| Name | Type | Description | Notes |
|
|
229
|
+
| ---- | ---- | ----------- | ----- |
|
|
230
|
+
| **table** | **String** | 表名称 | |
|
|
231
|
+
| **id** | **String** | 数据ID | |
|
|
232
|
+
| **app_key** | **String** | | |
|
|
233
|
+
|
|
234
|
+
### Return type
|
|
235
|
+
|
|
236
|
+
[**BooleanApiResponse**](BooleanApiResponse.md)
|
|
237
|
+
|
|
238
|
+
### Authorization
|
|
239
|
+
|
|
240
|
+
[Bearer](../README.md#Bearer)
|
|
241
|
+
|
|
242
|
+
### HTTP request headers
|
|
243
|
+
|
|
244
|
+
- **Content-Type**: Not defined
|
|
245
|
+
- **Accept**: application/json
|
|
246
|
+
|
|
247
|
+
|
|
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
|
+
## storage_detail
|
|
324
|
+
|
|
325
|
+
> <ObjectApiResponse> storage_detail(table, id, app_key, opts)
|
|
326
|
+
|
|
327
|
+
数据详情
|
|
328
|
+
|
|
329
|
+
获取指定表中指定ID的数据详情
|
|
330
|
+
|
|
331
|
+
### Examples
|
|
332
|
+
|
|
333
|
+
```ruby
|
|
334
|
+
require 'time'
|
|
335
|
+
require 'zsgf_client'
|
|
336
|
+
# setup authorization
|
|
337
|
+
ZSGFClient.configure do |config|
|
|
338
|
+
# Configure Bearer authorization: Bearer
|
|
339
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
api_instance = ZSGFClient::StorageApi.new
|
|
343
|
+
table = 'table_example' # String | 表名称
|
|
344
|
+
id = 'id_example' # String | 数据ID
|
|
345
|
+
app_key = 'app_key_example' # String |
|
|
346
|
+
opts = {
|
|
347
|
+
project: 'project_example' # String | json格式
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
begin
|
|
351
|
+
# 数据详情
|
|
352
|
+
result = api_instance.storage_detail(table, id, app_key, opts)
|
|
353
|
+
p result
|
|
354
|
+
rescue ZSGFClient::ApiError => e
|
|
355
|
+
puts "Error when calling StorageApi->storage_detail: #{e}"
|
|
356
|
+
end
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
#### Using the storage_detail_with_http_info variant
|
|
360
|
+
|
|
361
|
+
This returns an Array which contains the response data, status code and headers.
|
|
362
|
+
|
|
363
|
+
> <Array(<ObjectApiResponse>, Integer, Hash)> storage_detail_with_http_info(table, id, app_key, opts)
|
|
364
|
+
|
|
365
|
+
```ruby
|
|
366
|
+
begin
|
|
367
|
+
# 数据详情
|
|
368
|
+
data, status_code, headers = api_instance.storage_detail_with_http_info(table, id, app_key, opts)
|
|
369
|
+
p status_code # => 2xx
|
|
370
|
+
p headers # => { ... }
|
|
371
|
+
p data # => <ObjectApiResponse>
|
|
372
|
+
rescue ZSGFClient::ApiError => e
|
|
373
|
+
puts "Error when calling StorageApi->storage_detail_with_http_info: #{e}"
|
|
374
|
+
end
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
### Parameters
|
|
378
|
+
|
|
379
|
+
| Name | Type | Description | Notes |
|
|
380
|
+
| ---- | ---- | ----------- | ----- |
|
|
381
|
+
| **table** | **String** | 表名称 | |
|
|
382
|
+
| **id** | **String** | 数据ID | |
|
|
383
|
+
| **app_key** | **String** | | |
|
|
384
|
+
| **project** | **String** | json格式 | [optional] |
|
|
385
|
+
|
|
386
|
+
### Return type
|
|
387
|
+
|
|
388
|
+
[**ObjectApiResponse**](ObjectApiResponse.md)
|
|
389
|
+
|
|
390
|
+
### Authorization
|
|
391
|
+
|
|
392
|
+
[Bearer](../README.md#Bearer)
|
|
393
|
+
|
|
394
|
+
### HTTP request headers
|
|
395
|
+
|
|
396
|
+
- **Content-Type**: Not defined
|
|
397
|
+
- **Accept**: application/json
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
## storage_execute_function
|
|
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
|
|
480
|
+
|
|
481
|
+
> File storage_export(table, app_key, opts)
|
|
482
|
+
|
|
483
|
+
导出数据
|
|
484
|
+
|
|
485
|
+
根据筛选条件导出指定表中的数据
|
|
486
|
+
|
|
487
|
+
### Examples
|
|
488
|
+
|
|
489
|
+
```ruby
|
|
490
|
+
require 'time'
|
|
491
|
+
require 'zsgf_client'
|
|
492
|
+
# setup authorization
|
|
493
|
+
ZSGFClient.configure do |config|
|
|
494
|
+
# Configure Bearer authorization: Bearer
|
|
495
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
api_instance = ZSGFClient::StorageApi.new
|
|
499
|
+
table = 'table_example' # String | 表名称
|
|
500
|
+
app_key = 'app_key_example' # String |
|
|
501
|
+
opts = {
|
|
502
|
+
filter: 'filter_example', # String | 筛选条件,json格式
|
|
503
|
+
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 | 结束时间
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
begin
|
|
508
|
+
# 导出数据
|
|
509
|
+
result = api_instance.storage_export(table, app_key, opts)
|
|
510
|
+
p result
|
|
511
|
+
rescue ZSGFClient::ApiError => e
|
|
512
|
+
puts "Error when calling StorageApi->storage_export: #{e}"
|
|
513
|
+
end
|
|
514
|
+
```
|
|
515
|
+
|
|
516
|
+
#### Using the storage_export_with_http_info variant
|
|
517
|
+
|
|
518
|
+
This returns an Array which contains the response data, status code and headers.
|
|
519
|
+
|
|
520
|
+
> <Array(File, Integer, Hash)> storage_export_with_http_info(table, app_key, opts)
|
|
521
|
+
|
|
522
|
+
```ruby
|
|
523
|
+
begin
|
|
524
|
+
# 导出数据
|
|
525
|
+
data, status_code, headers = api_instance.storage_export_with_http_info(table, app_key, opts)
|
|
526
|
+
p status_code # => 2xx
|
|
527
|
+
p headers # => { ... }
|
|
528
|
+
p data # => File
|
|
529
|
+
rescue ZSGFClient::ApiError => e
|
|
530
|
+
puts "Error when calling StorageApi->storage_export_with_http_info: #{e}"
|
|
531
|
+
end
|
|
532
|
+
```
|
|
533
|
+
|
|
534
|
+
### Parameters
|
|
535
|
+
|
|
536
|
+
| Name | Type | Description | Notes |
|
|
537
|
+
| ---- | ---- | ----------- | ----- |
|
|
538
|
+
| **table** | **String** | 表名称 | |
|
|
539
|
+
| **app_key** | **String** | | |
|
|
540
|
+
| **filter** | **String** | 筛选条件,json格式 | [optional] |
|
|
541
|
+
| **start_time** | **Time** | 开始时间 | [optional] |
|
|
542
|
+
| **end_time** | **Time** | 结束时间 | [optional] |
|
|
543
|
+
|
|
544
|
+
### Return type
|
|
545
|
+
|
|
546
|
+
**File**
|
|
547
|
+
|
|
548
|
+
### Authorization
|
|
549
|
+
|
|
550
|
+
[Bearer](../README.md#Bearer)
|
|
551
|
+
|
|
552
|
+
### HTTP request headers
|
|
553
|
+
|
|
554
|
+
- **Content-Type**: Not defined
|
|
555
|
+
- **Accept**: application/json
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
## storage_import
|
|
559
|
+
|
|
560
|
+
> <BooleanApiResponse> storage_import(table, app_key, opts)
|
|
561
|
+
|
|
562
|
+
导入数据
|
|
563
|
+
|
|
564
|
+
从文件导入数据到指定表中
|
|
565
|
+
|
|
566
|
+
### Examples
|
|
567
|
+
|
|
568
|
+
```ruby
|
|
569
|
+
require 'time'
|
|
570
|
+
require 'zsgf_client'
|
|
571
|
+
# setup authorization
|
|
572
|
+
ZSGFClient.configure do |config|
|
|
573
|
+
# Configure Bearer authorization: Bearer
|
|
574
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
575
|
+
end
|
|
576
|
+
|
|
577
|
+
api_instance = ZSGFClient::StorageApi.new
|
|
578
|
+
table = 'table_example' # String | 表名称
|
|
579
|
+
app_key = 'app_key_example' # String |
|
|
580
|
+
opts = {
|
|
581
|
+
file: File.new('/path/to/some/file') # File | 导入的文件
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
begin
|
|
585
|
+
# 导入数据
|
|
586
|
+
result = api_instance.storage_import(table, app_key, opts)
|
|
587
|
+
p result
|
|
588
|
+
rescue ZSGFClient::ApiError => e
|
|
589
|
+
puts "Error when calling StorageApi->storage_import: #{e}"
|
|
590
|
+
end
|
|
591
|
+
```
|
|
592
|
+
|
|
593
|
+
#### Using the storage_import_with_http_info variant
|
|
594
|
+
|
|
595
|
+
This returns an Array which contains the response data, status code and headers.
|
|
596
|
+
|
|
597
|
+
> <Array(<BooleanApiResponse>, Integer, Hash)> storage_import_with_http_info(table, app_key, opts)
|
|
598
|
+
|
|
599
|
+
```ruby
|
|
600
|
+
begin
|
|
601
|
+
# 导入数据
|
|
602
|
+
data, status_code, headers = api_instance.storage_import_with_http_info(table, app_key, opts)
|
|
603
|
+
p status_code # => 2xx
|
|
604
|
+
p headers # => { ... }
|
|
605
|
+
p data # => <BooleanApiResponse>
|
|
606
|
+
rescue ZSGFClient::ApiError => e
|
|
607
|
+
puts "Error when calling StorageApi->storage_import_with_http_info: #{e}"
|
|
608
|
+
end
|
|
609
|
+
```
|
|
610
|
+
|
|
611
|
+
### Parameters
|
|
612
|
+
|
|
613
|
+
| Name | Type | Description | Notes |
|
|
614
|
+
| ---- | ---- | ----------- | ----- |
|
|
615
|
+
| **table** | **String** | 表名称 | |
|
|
616
|
+
| **app_key** | **String** | | |
|
|
617
|
+
| **file** | **File** | 导入的文件 | [optional] |
|
|
618
|
+
|
|
619
|
+
### Return type
|
|
620
|
+
|
|
621
|
+
[**BooleanApiResponse**](BooleanApiResponse.md)
|
|
622
|
+
|
|
623
|
+
### Authorization
|
|
624
|
+
|
|
625
|
+
[Bearer](../README.md#Bearer)
|
|
626
|
+
|
|
627
|
+
### HTTP request headers
|
|
628
|
+
|
|
629
|
+
- **Content-Type**: multipart/form-data
|
|
630
|
+
- **Accept**: application/json
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
## storage_indexes
|
|
634
|
+
|
|
635
|
+
> <ObjectListApiResponse> storage_indexes(table, app_key)
|
|
636
|
+
|
|
637
|
+
获取索引
|
|
638
|
+
|
|
639
|
+
获取指定表的索引列表
|
|
640
|
+
|
|
641
|
+
### Examples
|
|
642
|
+
|
|
643
|
+
```ruby
|
|
644
|
+
require 'time'
|
|
645
|
+
require 'zsgf_client'
|
|
646
|
+
# setup authorization
|
|
647
|
+
ZSGFClient.configure do |config|
|
|
648
|
+
# Configure Bearer authorization: Bearer
|
|
649
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
650
|
+
end
|
|
651
|
+
|
|
652
|
+
api_instance = ZSGFClient::StorageApi.new
|
|
653
|
+
table = 'table_example' # String | 表名称
|
|
654
|
+
app_key = 'app_key_example' # String |
|
|
655
|
+
|
|
656
|
+
begin
|
|
657
|
+
# 获取索引
|
|
658
|
+
result = api_instance.storage_indexes(table, app_key)
|
|
659
|
+
p result
|
|
660
|
+
rescue ZSGFClient::ApiError => e
|
|
661
|
+
puts "Error when calling StorageApi->storage_indexes: #{e}"
|
|
662
|
+
end
|
|
663
|
+
```
|
|
664
|
+
|
|
665
|
+
#### Using the storage_indexes_with_http_info variant
|
|
666
|
+
|
|
667
|
+
This returns an Array which contains the response data, status code and headers.
|
|
668
|
+
|
|
669
|
+
> <Array(<ObjectListApiResponse>, Integer, Hash)> storage_indexes_with_http_info(table, app_key)
|
|
670
|
+
|
|
671
|
+
```ruby
|
|
672
|
+
begin
|
|
673
|
+
# 获取索引
|
|
674
|
+
data, status_code, headers = api_instance.storage_indexes_with_http_info(table, app_key)
|
|
675
|
+
p status_code # => 2xx
|
|
676
|
+
p headers # => { ... }
|
|
677
|
+
p data # => <ObjectListApiResponse>
|
|
678
|
+
rescue ZSGFClient::ApiError => e
|
|
679
|
+
puts "Error when calling StorageApi->storage_indexes_with_http_info: #{e}"
|
|
680
|
+
end
|
|
681
|
+
```
|
|
682
|
+
|
|
683
|
+
### Parameters
|
|
684
|
+
|
|
685
|
+
| Name | Type | Description | Notes |
|
|
686
|
+
| ---- | ---- | ----------- | ----- |
|
|
687
|
+
| **table** | **String** | 表名称 | |
|
|
688
|
+
| **app_key** | **String** | | |
|
|
689
|
+
|
|
690
|
+
### Return type
|
|
691
|
+
|
|
692
|
+
[**ObjectListApiResponse**](ObjectListApiResponse.md)
|
|
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)
|
|
1009
|
+
|
|
1010
|
+
### Authorization
|
|
1011
|
+
|
|
1012
|
+
[Bearer](../README.md#Bearer)
|
|
1013
|
+
|
|
1014
|
+
### HTTP request headers
|
|
1015
|
+
|
|
1016
|
+
- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
|
|
1017
|
+
- **Accept**: application/json
|
|
1018
|
+
|
|
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
|
+
|