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
|
@@ -0,0 +1,1446 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#全部 API 文档
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v1
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.13.0-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module ZSGFClient
|
|
16
|
+
class AppSettingApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# 获取服务分组详情
|
|
23
|
+
# 根据服务分组ID获取服务分组详情
|
|
24
|
+
# @param id [Integer] 服务分组ID
|
|
25
|
+
# @param app_key [String]
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @return [ServiceGroupApiResponse]
|
|
28
|
+
def app_service_setting_group(id, app_key, opts = {})
|
|
29
|
+
data, _status_code, _headers = app_service_setting_group_with_http_info(id, app_key, opts)
|
|
30
|
+
data
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# 获取服务分组详情
|
|
34
|
+
# 根据服务分组ID获取服务分组详情
|
|
35
|
+
# @param id [Integer] 服务分组ID
|
|
36
|
+
# @param app_key [String]
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @return [Array<(ServiceGroupApiResponse, Integer, Hash)>] ServiceGroupApiResponse data, response status code and response headers
|
|
39
|
+
def app_service_setting_group_with_http_info(id, app_key, opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: AppSettingApi.app_service_setting_group ...'
|
|
42
|
+
end
|
|
43
|
+
# verify the required parameter 'id' is set
|
|
44
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AppSettingApi.app_service_setting_group"
|
|
46
|
+
end
|
|
47
|
+
# verify the required parameter 'app_key' is set
|
|
48
|
+
if @api_client.config.client_side_validation && app_key.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'app_key' when calling AppSettingApi.app_service_setting_group"
|
|
50
|
+
end
|
|
51
|
+
# resource path
|
|
52
|
+
local_var_path = '/AppSetting/{appKey}/Groups/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
|
|
53
|
+
|
|
54
|
+
# query parameters
|
|
55
|
+
query_params = opts[:query_params] || {}
|
|
56
|
+
|
|
57
|
+
# header parameters
|
|
58
|
+
header_params = opts[:header_params] || {}
|
|
59
|
+
# HTTP header 'Accept' (if needed)
|
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
61
|
+
|
|
62
|
+
# form parameters
|
|
63
|
+
form_params = opts[:form_params] || {}
|
|
64
|
+
|
|
65
|
+
# http body (model)
|
|
66
|
+
post_body = opts[:debug_body]
|
|
67
|
+
|
|
68
|
+
# return_type
|
|
69
|
+
return_type = opts[:debug_return_type] || 'ServiceGroupApiResponse'
|
|
70
|
+
|
|
71
|
+
# auth_names
|
|
72
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
73
|
+
|
|
74
|
+
new_options = opts.merge(
|
|
75
|
+
:operation => :"AppSettingApi.app_service_setting_group",
|
|
76
|
+
:header_params => header_params,
|
|
77
|
+
:query_params => query_params,
|
|
78
|
+
:form_params => form_params,
|
|
79
|
+
:body => post_body,
|
|
80
|
+
:auth_names => auth_names,
|
|
81
|
+
:return_type => return_type
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
85
|
+
if @api_client.config.debugging
|
|
86
|
+
@api_client.config.logger.debug "API called: AppSettingApi#app_service_setting_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
87
|
+
end
|
|
88
|
+
return data, status_code, headers
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# 删除服务分组
|
|
92
|
+
# 根据服务分组ID删除服务分组
|
|
93
|
+
# @param id [Integer] 服务分组ID
|
|
94
|
+
# @param app_key [String]
|
|
95
|
+
# @param [Hash] opts the optional parameters
|
|
96
|
+
# @return [BooleanApiResponse]
|
|
97
|
+
def app_service_setting_group_delete(id, app_key, opts = {})
|
|
98
|
+
data, _status_code, _headers = app_service_setting_group_delete_with_http_info(id, app_key, opts)
|
|
99
|
+
data
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# 删除服务分组
|
|
103
|
+
# 根据服务分组ID删除服务分组
|
|
104
|
+
# @param id [Integer] 服务分组ID
|
|
105
|
+
# @param app_key [String]
|
|
106
|
+
# @param [Hash] opts the optional parameters
|
|
107
|
+
# @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
|
|
108
|
+
def app_service_setting_group_delete_with_http_info(id, app_key, opts = {})
|
|
109
|
+
if @api_client.config.debugging
|
|
110
|
+
@api_client.config.logger.debug 'Calling API: AppSettingApi.app_service_setting_group_delete ...'
|
|
111
|
+
end
|
|
112
|
+
# verify the required parameter 'id' is set
|
|
113
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
114
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AppSettingApi.app_service_setting_group_delete"
|
|
115
|
+
end
|
|
116
|
+
# verify the required parameter 'app_key' is set
|
|
117
|
+
if @api_client.config.client_side_validation && app_key.nil?
|
|
118
|
+
fail ArgumentError, "Missing the required parameter 'app_key' when calling AppSettingApi.app_service_setting_group_delete"
|
|
119
|
+
end
|
|
120
|
+
# resource path
|
|
121
|
+
local_var_path = '/AppSetting/{appKey}/Groups/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
|
|
122
|
+
|
|
123
|
+
# query parameters
|
|
124
|
+
query_params = opts[:query_params] || {}
|
|
125
|
+
|
|
126
|
+
# header parameters
|
|
127
|
+
header_params = opts[:header_params] || {}
|
|
128
|
+
# HTTP header 'Accept' (if needed)
|
|
129
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
130
|
+
|
|
131
|
+
# form parameters
|
|
132
|
+
form_params = opts[:form_params] || {}
|
|
133
|
+
|
|
134
|
+
# http body (model)
|
|
135
|
+
post_body = opts[:debug_body]
|
|
136
|
+
|
|
137
|
+
# return_type
|
|
138
|
+
return_type = opts[:debug_return_type] || 'BooleanApiResponse'
|
|
139
|
+
|
|
140
|
+
# auth_names
|
|
141
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
142
|
+
|
|
143
|
+
new_options = opts.merge(
|
|
144
|
+
:operation => :"AppSettingApi.app_service_setting_group_delete",
|
|
145
|
+
:header_params => header_params,
|
|
146
|
+
:query_params => query_params,
|
|
147
|
+
:form_params => form_params,
|
|
148
|
+
:body => post_body,
|
|
149
|
+
:auth_names => auth_names,
|
|
150
|
+
:return_type => return_type
|
|
151
|
+
)
|
|
152
|
+
|
|
153
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
154
|
+
if @api_client.config.debugging
|
|
155
|
+
@api_client.config.logger.debug "API called: AppSettingApi#app_service_setting_group_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
156
|
+
end
|
|
157
|
+
return data, status_code, headers
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# 添加服务分组
|
|
161
|
+
# 添加新的服务分组信息
|
|
162
|
+
# @param app_key [String]
|
|
163
|
+
# @param [Hash] opts the optional parameters
|
|
164
|
+
# @option opts [ServiceGroup] :service_group 服务分组信息
|
|
165
|
+
# @return [AppSettingGroupPostResultApiResponse]
|
|
166
|
+
def app_service_setting_group_post(app_key, opts = {})
|
|
167
|
+
data, _status_code, _headers = app_service_setting_group_post_with_http_info(app_key, opts)
|
|
168
|
+
data
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# 添加服务分组
|
|
172
|
+
# 添加新的服务分组信息
|
|
173
|
+
# @param app_key [String]
|
|
174
|
+
# @param [Hash] opts the optional parameters
|
|
175
|
+
# @option opts [ServiceGroup] :service_group 服务分组信息
|
|
176
|
+
# @return [Array<(AppSettingGroupPostResultApiResponse, Integer, Hash)>] AppSettingGroupPostResultApiResponse data, response status code and response headers
|
|
177
|
+
def app_service_setting_group_post_with_http_info(app_key, opts = {})
|
|
178
|
+
if @api_client.config.debugging
|
|
179
|
+
@api_client.config.logger.debug 'Calling API: AppSettingApi.app_service_setting_group_post ...'
|
|
180
|
+
end
|
|
181
|
+
# verify the required parameter 'app_key' is set
|
|
182
|
+
if @api_client.config.client_side_validation && app_key.nil?
|
|
183
|
+
fail ArgumentError, "Missing the required parameter 'app_key' when calling AppSettingApi.app_service_setting_group_post"
|
|
184
|
+
end
|
|
185
|
+
# resource path
|
|
186
|
+
local_var_path = '/AppSetting/{appKey}/Groups'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
|
|
187
|
+
|
|
188
|
+
# query parameters
|
|
189
|
+
query_params = opts[:query_params] || {}
|
|
190
|
+
|
|
191
|
+
# header parameters
|
|
192
|
+
header_params = opts[:header_params] || {}
|
|
193
|
+
# HTTP header 'Accept' (if needed)
|
|
194
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
195
|
+
# HTTP header 'Content-Type'
|
|
196
|
+
content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
|
197
|
+
if !content_type.nil?
|
|
198
|
+
header_params['Content-Type'] = content_type
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# form parameters
|
|
202
|
+
form_params = opts[:form_params] || {}
|
|
203
|
+
|
|
204
|
+
# http body (model)
|
|
205
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'service_group'])
|
|
206
|
+
|
|
207
|
+
# return_type
|
|
208
|
+
return_type = opts[:debug_return_type] || 'AppSettingGroupPostResultApiResponse'
|
|
209
|
+
|
|
210
|
+
# auth_names
|
|
211
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
212
|
+
|
|
213
|
+
new_options = opts.merge(
|
|
214
|
+
:operation => :"AppSettingApi.app_service_setting_group_post",
|
|
215
|
+
:header_params => header_params,
|
|
216
|
+
:query_params => query_params,
|
|
217
|
+
:form_params => form_params,
|
|
218
|
+
:body => post_body,
|
|
219
|
+
:auth_names => auth_names,
|
|
220
|
+
:return_type => return_type
|
|
221
|
+
)
|
|
222
|
+
|
|
223
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
224
|
+
if @api_client.config.debugging
|
|
225
|
+
@api_client.config.logger.debug "API called: AppSettingApi#app_service_setting_group_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
226
|
+
end
|
|
227
|
+
return data, status_code, headers
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# 更新服务分组
|
|
231
|
+
# 根据服务分组ID更新服务分组信息
|
|
232
|
+
# @param id [Integer] 服务分组ID
|
|
233
|
+
# @param app_key [String]
|
|
234
|
+
# @param [Hash] opts the optional parameters
|
|
235
|
+
# @option opts [ServiceGroup] :service_group 服务分组信息
|
|
236
|
+
# @return [BooleanApiResponse]
|
|
237
|
+
def app_service_setting_group_put(id, app_key, opts = {})
|
|
238
|
+
data, _status_code, _headers = app_service_setting_group_put_with_http_info(id, app_key, opts)
|
|
239
|
+
data
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# 更新服务分组
|
|
243
|
+
# 根据服务分组ID更新服务分组信息
|
|
244
|
+
# @param id [Integer] 服务分组ID
|
|
245
|
+
# @param app_key [String]
|
|
246
|
+
# @param [Hash] opts the optional parameters
|
|
247
|
+
# @option opts [ServiceGroup] :service_group 服务分组信息
|
|
248
|
+
# @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
|
|
249
|
+
def app_service_setting_group_put_with_http_info(id, app_key, opts = {})
|
|
250
|
+
if @api_client.config.debugging
|
|
251
|
+
@api_client.config.logger.debug 'Calling API: AppSettingApi.app_service_setting_group_put ...'
|
|
252
|
+
end
|
|
253
|
+
# verify the required parameter 'id' is set
|
|
254
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
255
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AppSettingApi.app_service_setting_group_put"
|
|
256
|
+
end
|
|
257
|
+
# verify the required parameter 'app_key' is set
|
|
258
|
+
if @api_client.config.client_side_validation && app_key.nil?
|
|
259
|
+
fail ArgumentError, "Missing the required parameter 'app_key' when calling AppSettingApi.app_service_setting_group_put"
|
|
260
|
+
end
|
|
261
|
+
# resource path
|
|
262
|
+
local_var_path = '/AppSetting/{appKey}/Groups/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
|
|
263
|
+
|
|
264
|
+
# query parameters
|
|
265
|
+
query_params = opts[:query_params] || {}
|
|
266
|
+
|
|
267
|
+
# header parameters
|
|
268
|
+
header_params = opts[:header_params] || {}
|
|
269
|
+
# HTTP header 'Accept' (if needed)
|
|
270
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
271
|
+
# HTTP header 'Content-Type'
|
|
272
|
+
content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
|
273
|
+
if !content_type.nil?
|
|
274
|
+
header_params['Content-Type'] = content_type
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
# form parameters
|
|
278
|
+
form_params = opts[:form_params] || {}
|
|
279
|
+
|
|
280
|
+
# http body (model)
|
|
281
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'service_group'])
|
|
282
|
+
|
|
283
|
+
# return_type
|
|
284
|
+
return_type = opts[:debug_return_type] || 'BooleanApiResponse'
|
|
285
|
+
|
|
286
|
+
# auth_names
|
|
287
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
288
|
+
|
|
289
|
+
new_options = opts.merge(
|
|
290
|
+
:operation => :"AppSettingApi.app_service_setting_group_put",
|
|
291
|
+
:header_params => header_params,
|
|
292
|
+
:query_params => query_params,
|
|
293
|
+
:form_params => form_params,
|
|
294
|
+
:body => post_body,
|
|
295
|
+
:auth_names => auth_names,
|
|
296
|
+
:return_type => return_type
|
|
297
|
+
)
|
|
298
|
+
|
|
299
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
300
|
+
if @api_client.config.debugging
|
|
301
|
+
@api_client.config.logger.debug "API called: AppSettingApi#app_service_setting_group_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
302
|
+
end
|
|
303
|
+
return data, status_code, headers
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
# 获取服务分组列表
|
|
307
|
+
# 根据服务商ID和显示标志获取服务分组列表
|
|
308
|
+
# @param app_key [String]
|
|
309
|
+
# @param [Hash] opts the optional parameters
|
|
310
|
+
# @option opts [Integer] :provider_id 服务商ID
|
|
311
|
+
# @option opts [Boolean] :show_flag 是否显示 (default to false)
|
|
312
|
+
# @return [ServiceGroupListApiResponse]
|
|
313
|
+
def app_service_setting_groups(app_key, opts = {})
|
|
314
|
+
data, _status_code, _headers = app_service_setting_groups_with_http_info(app_key, opts)
|
|
315
|
+
data
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# 获取服务分组列表
|
|
319
|
+
# 根据服务商ID和显示标志获取服务分组列表
|
|
320
|
+
# @param app_key [String]
|
|
321
|
+
# @param [Hash] opts the optional parameters
|
|
322
|
+
# @option opts [Integer] :provider_id 服务商ID
|
|
323
|
+
# @option opts [Boolean] :show_flag 是否显示 (default to false)
|
|
324
|
+
# @return [Array<(ServiceGroupListApiResponse, Integer, Hash)>] ServiceGroupListApiResponse data, response status code and response headers
|
|
325
|
+
def app_service_setting_groups_with_http_info(app_key, opts = {})
|
|
326
|
+
if @api_client.config.debugging
|
|
327
|
+
@api_client.config.logger.debug 'Calling API: AppSettingApi.app_service_setting_groups ...'
|
|
328
|
+
end
|
|
329
|
+
# verify the required parameter 'app_key' is set
|
|
330
|
+
if @api_client.config.client_side_validation && app_key.nil?
|
|
331
|
+
fail ArgumentError, "Missing the required parameter 'app_key' when calling AppSettingApi.app_service_setting_groups"
|
|
332
|
+
end
|
|
333
|
+
# resource path
|
|
334
|
+
local_var_path = '/AppSetting/{appKey}/Groups'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
|
|
335
|
+
|
|
336
|
+
# query parameters
|
|
337
|
+
query_params = opts[:query_params] || {}
|
|
338
|
+
query_params[:'providerId'] = opts[:'provider_id'] if !opts[:'provider_id'].nil?
|
|
339
|
+
query_params[:'showFlag'] = opts[:'show_flag'] if !opts[:'show_flag'].nil?
|
|
340
|
+
|
|
341
|
+
# header parameters
|
|
342
|
+
header_params = opts[:header_params] || {}
|
|
343
|
+
# HTTP header 'Accept' (if needed)
|
|
344
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
345
|
+
|
|
346
|
+
# form parameters
|
|
347
|
+
form_params = opts[:form_params] || {}
|
|
348
|
+
|
|
349
|
+
# http body (model)
|
|
350
|
+
post_body = opts[:debug_body]
|
|
351
|
+
|
|
352
|
+
# return_type
|
|
353
|
+
return_type = opts[:debug_return_type] || 'ServiceGroupListApiResponse'
|
|
354
|
+
|
|
355
|
+
# auth_names
|
|
356
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
357
|
+
|
|
358
|
+
new_options = opts.merge(
|
|
359
|
+
:operation => :"AppSettingApi.app_service_setting_groups",
|
|
360
|
+
:header_params => header_params,
|
|
361
|
+
:query_params => query_params,
|
|
362
|
+
:form_params => form_params,
|
|
363
|
+
:body => post_body,
|
|
364
|
+
:auth_names => auth_names,
|
|
365
|
+
:return_type => return_type
|
|
366
|
+
)
|
|
367
|
+
|
|
368
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
369
|
+
if @api_client.config.debugging
|
|
370
|
+
@api_client.config.logger.debug "API called: AppSettingApi#app_service_setting_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
371
|
+
end
|
|
372
|
+
return data, status_code, headers
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
# 服务配置项详情
|
|
376
|
+
# 根据服务配置项ID获取服务配置项详情
|
|
377
|
+
# @param id [Integer] 服务配置项ID
|
|
378
|
+
# @param app_key [String]
|
|
379
|
+
# @param [Hash] opts the optional parameters
|
|
380
|
+
# @return [ServiceItemApiResponse]
|
|
381
|
+
def app_service_setting_item(id, app_key, opts = {})
|
|
382
|
+
data, _status_code, _headers = app_service_setting_item_with_http_info(id, app_key, opts)
|
|
383
|
+
data
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
# 服务配置项详情
|
|
387
|
+
# 根据服务配置项ID获取服务配置项详情
|
|
388
|
+
# @param id [Integer] 服务配置项ID
|
|
389
|
+
# @param app_key [String]
|
|
390
|
+
# @param [Hash] opts the optional parameters
|
|
391
|
+
# @return [Array<(ServiceItemApiResponse, Integer, Hash)>] ServiceItemApiResponse data, response status code and response headers
|
|
392
|
+
def app_service_setting_item_with_http_info(id, app_key, opts = {})
|
|
393
|
+
if @api_client.config.debugging
|
|
394
|
+
@api_client.config.logger.debug 'Calling API: AppSettingApi.app_service_setting_item ...'
|
|
395
|
+
end
|
|
396
|
+
# verify the required parameter 'id' is set
|
|
397
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
398
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AppSettingApi.app_service_setting_item"
|
|
399
|
+
end
|
|
400
|
+
# verify the required parameter 'app_key' is set
|
|
401
|
+
if @api_client.config.client_side_validation && app_key.nil?
|
|
402
|
+
fail ArgumentError, "Missing the required parameter 'app_key' when calling AppSettingApi.app_service_setting_item"
|
|
403
|
+
end
|
|
404
|
+
# resource path
|
|
405
|
+
local_var_path = '/AppSetting/{appKey}/Items/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
|
|
406
|
+
|
|
407
|
+
# query parameters
|
|
408
|
+
query_params = opts[:query_params] || {}
|
|
409
|
+
|
|
410
|
+
# header parameters
|
|
411
|
+
header_params = opts[:header_params] || {}
|
|
412
|
+
# HTTP header 'Accept' (if needed)
|
|
413
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
414
|
+
|
|
415
|
+
# form parameters
|
|
416
|
+
form_params = opts[:form_params] || {}
|
|
417
|
+
|
|
418
|
+
# http body (model)
|
|
419
|
+
post_body = opts[:debug_body]
|
|
420
|
+
|
|
421
|
+
# return_type
|
|
422
|
+
return_type = opts[:debug_return_type] || 'ServiceItemApiResponse'
|
|
423
|
+
|
|
424
|
+
# auth_names
|
|
425
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
426
|
+
|
|
427
|
+
new_options = opts.merge(
|
|
428
|
+
:operation => :"AppSettingApi.app_service_setting_item",
|
|
429
|
+
:header_params => header_params,
|
|
430
|
+
:query_params => query_params,
|
|
431
|
+
:form_params => form_params,
|
|
432
|
+
:body => post_body,
|
|
433
|
+
:auth_names => auth_names,
|
|
434
|
+
:return_type => return_type
|
|
435
|
+
)
|
|
436
|
+
|
|
437
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
438
|
+
if @api_client.config.debugging
|
|
439
|
+
@api_client.config.logger.debug "API called: AppSettingApi#app_service_setting_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
440
|
+
end
|
|
441
|
+
return data, status_code, headers
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
# 删除服务配置项
|
|
445
|
+
# 根据服务配置项ID删除服务配置项
|
|
446
|
+
# @param id [Integer] 服务配置项ID
|
|
447
|
+
# @param app_key [String]
|
|
448
|
+
# @param [Hash] opts the optional parameters
|
|
449
|
+
# @return [BooleanApiResponse]
|
|
450
|
+
def app_service_setting_item_delete(id, app_key, opts = {})
|
|
451
|
+
data, _status_code, _headers = app_service_setting_item_delete_with_http_info(id, app_key, opts)
|
|
452
|
+
data
|
|
453
|
+
end
|
|
454
|
+
|
|
455
|
+
# 删除服务配置项
|
|
456
|
+
# 根据服务配置项ID删除服务配置项
|
|
457
|
+
# @param id [Integer] 服务配置项ID
|
|
458
|
+
# @param app_key [String]
|
|
459
|
+
# @param [Hash] opts the optional parameters
|
|
460
|
+
# @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
|
|
461
|
+
def app_service_setting_item_delete_with_http_info(id, app_key, opts = {})
|
|
462
|
+
if @api_client.config.debugging
|
|
463
|
+
@api_client.config.logger.debug 'Calling API: AppSettingApi.app_service_setting_item_delete ...'
|
|
464
|
+
end
|
|
465
|
+
# verify the required parameter 'id' is set
|
|
466
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
467
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AppSettingApi.app_service_setting_item_delete"
|
|
468
|
+
end
|
|
469
|
+
# verify the required parameter 'app_key' is set
|
|
470
|
+
if @api_client.config.client_side_validation && app_key.nil?
|
|
471
|
+
fail ArgumentError, "Missing the required parameter 'app_key' when calling AppSettingApi.app_service_setting_item_delete"
|
|
472
|
+
end
|
|
473
|
+
# resource path
|
|
474
|
+
local_var_path = '/AppSetting/{appKey}/Items/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
|
|
475
|
+
|
|
476
|
+
# query parameters
|
|
477
|
+
query_params = opts[:query_params] || {}
|
|
478
|
+
|
|
479
|
+
# header parameters
|
|
480
|
+
header_params = opts[:header_params] || {}
|
|
481
|
+
# HTTP header 'Accept' (if needed)
|
|
482
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
483
|
+
|
|
484
|
+
# form parameters
|
|
485
|
+
form_params = opts[:form_params] || {}
|
|
486
|
+
|
|
487
|
+
# http body (model)
|
|
488
|
+
post_body = opts[:debug_body]
|
|
489
|
+
|
|
490
|
+
# return_type
|
|
491
|
+
return_type = opts[:debug_return_type] || 'BooleanApiResponse'
|
|
492
|
+
|
|
493
|
+
# auth_names
|
|
494
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
495
|
+
|
|
496
|
+
new_options = opts.merge(
|
|
497
|
+
:operation => :"AppSettingApi.app_service_setting_item_delete",
|
|
498
|
+
:header_params => header_params,
|
|
499
|
+
:query_params => query_params,
|
|
500
|
+
:form_params => form_params,
|
|
501
|
+
:body => post_body,
|
|
502
|
+
:auth_names => auth_names,
|
|
503
|
+
:return_type => return_type
|
|
504
|
+
)
|
|
505
|
+
|
|
506
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
507
|
+
if @api_client.config.debugging
|
|
508
|
+
@api_client.config.logger.debug "API called: AppSettingApi#app_service_setting_item_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
509
|
+
end
|
|
510
|
+
return data, status_code, headers
|
|
511
|
+
end
|
|
512
|
+
|
|
513
|
+
# 添加服务配置项
|
|
514
|
+
# 添加新的服务配置项信息
|
|
515
|
+
# @param app_key [String]
|
|
516
|
+
# @param [Hash] opts the optional parameters
|
|
517
|
+
# @option opts [ServiceItem] :service_item 服务配置项信息
|
|
518
|
+
# @return [AppSettingItemPostResultApiResponse]
|
|
519
|
+
def app_service_setting_item_post(app_key, opts = {})
|
|
520
|
+
data, _status_code, _headers = app_service_setting_item_post_with_http_info(app_key, opts)
|
|
521
|
+
data
|
|
522
|
+
end
|
|
523
|
+
|
|
524
|
+
# 添加服务配置项
|
|
525
|
+
# 添加新的服务配置项信息
|
|
526
|
+
# @param app_key [String]
|
|
527
|
+
# @param [Hash] opts the optional parameters
|
|
528
|
+
# @option opts [ServiceItem] :service_item 服务配置项信息
|
|
529
|
+
# @return [Array<(AppSettingItemPostResultApiResponse, Integer, Hash)>] AppSettingItemPostResultApiResponse data, response status code and response headers
|
|
530
|
+
def app_service_setting_item_post_with_http_info(app_key, opts = {})
|
|
531
|
+
if @api_client.config.debugging
|
|
532
|
+
@api_client.config.logger.debug 'Calling API: AppSettingApi.app_service_setting_item_post ...'
|
|
533
|
+
end
|
|
534
|
+
# verify the required parameter 'app_key' is set
|
|
535
|
+
if @api_client.config.client_side_validation && app_key.nil?
|
|
536
|
+
fail ArgumentError, "Missing the required parameter 'app_key' when calling AppSettingApi.app_service_setting_item_post"
|
|
537
|
+
end
|
|
538
|
+
# resource path
|
|
539
|
+
local_var_path = '/AppSetting/{appKey}/Items'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
|
|
540
|
+
|
|
541
|
+
# query parameters
|
|
542
|
+
query_params = opts[:query_params] || {}
|
|
543
|
+
|
|
544
|
+
# header parameters
|
|
545
|
+
header_params = opts[:header_params] || {}
|
|
546
|
+
# HTTP header 'Accept' (if needed)
|
|
547
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
548
|
+
# HTTP header 'Content-Type'
|
|
549
|
+
content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
|
550
|
+
if !content_type.nil?
|
|
551
|
+
header_params['Content-Type'] = content_type
|
|
552
|
+
end
|
|
553
|
+
|
|
554
|
+
# form parameters
|
|
555
|
+
form_params = opts[:form_params] || {}
|
|
556
|
+
|
|
557
|
+
# http body (model)
|
|
558
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'service_item'])
|
|
559
|
+
|
|
560
|
+
# return_type
|
|
561
|
+
return_type = opts[:debug_return_type] || 'AppSettingItemPostResultApiResponse'
|
|
562
|
+
|
|
563
|
+
# auth_names
|
|
564
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
565
|
+
|
|
566
|
+
new_options = opts.merge(
|
|
567
|
+
:operation => :"AppSettingApi.app_service_setting_item_post",
|
|
568
|
+
:header_params => header_params,
|
|
569
|
+
:query_params => query_params,
|
|
570
|
+
:form_params => form_params,
|
|
571
|
+
:body => post_body,
|
|
572
|
+
:auth_names => auth_names,
|
|
573
|
+
:return_type => return_type
|
|
574
|
+
)
|
|
575
|
+
|
|
576
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
577
|
+
if @api_client.config.debugging
|
|
578
|
+
@api_client.config.logger.debug "API called: AppSettingApi#app_service_setting_item_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
579
|
+
end
|
|
580
|
+
return data, status_code, headers
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
# 更新服务配置项
|
|
584
|
+
# 根据服务配置项ID更新服务配置项信息
|
|
585
|
+
# @param id [Integer] 服务配置项ID
|
|
586
|
+
# @param app_key [String]
|
|
587
|
+
# @param [Hash] opts the optional parameters
|
|
588
|
+
# @option opts [ServiceItem] :service_item 服务配置项信息
|
|
589
|
+
# @return [BooleanApiResponse]
|
|
590
|
+
def app_service_setting_item_put(id, app_key, opts = {})
|
|
591
|
+
data, _status_code, _headers = app_service_setting_item_put_with_http_info(id, app_key, opts)
|
|
592
|
+
data
|
|
593
|
+
end
|
|
594
|
+
|
|
595
|
+
# 更新服务配置项
|
|
596
|
+
# 根据服务配置项ID更新服务配置项信息
|
|
597
|
+
# @param id [Integer] 服务配置项ID
|
|
598
|
+
# @param app_key [String]
|
|
599
|
+
# @param [Hash] opts the optional parameters
|
|
600
|
+
# @option opts [ServiceItem] :service_item 服务配置项信息
|
|
601
|
+
# @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
|
|
602
|
+
def app_service_setting_item_put_with_http_info(id, app_key, opts = {})
|
|
603
|
+
if @api_client.config.debugging
|
|
604
|
+
@api_client.config.logger.debug 'Calling API: AppSettingApi.app_service_setting_item_put ...'
|
|
605
|
+
end
|
|
606
|
+
# verify the required parameter 'id' is set
|
|
607
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
608
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AppSettingApi.app_service_setting_item_put"
|
|
609
|
+
end
|
|
610
|
+
# verify the required parameter 'app_key' is set
|
|
611
|
+
if @api_client.config.client_side_validation && app_key.nil?
|
|
612
|
+
fail ArgumentError, "Missing the required parameter 'app_key' when calling AppSettingApi.app_service_setting_item_put"
|
|
613
|
+
end
|
|
614
|
+
# resource path
|
|
615
|
+
local_var_path = '/AppSetting/{appKey}/Items/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
|
|
616
|
+
|
|
617
|
+
# query parameters
|
|
618
|
+
query_params = opts[:query_params] || {}
|
|
619
|
+
|
|
620
|
+
# header parameters
|
|
621
|
+
header_params = opts[:header_params] || {}
|
|
622
|
+
# HTTP header 'Accept' (if needed)
|
|
623
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
624
|
+
# HTTP header 'Content-Type'
|
|
625
|
+
content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
|
626
|
+
if !content_type.nil?
|
|
627
|
+
header_params['Content-Type'] = content_type
|
|
628
|
+
end
|
|
629
|
+
|
|
630
|
+
# form parameters
|
|
631
|
+
form_params = opts[:form_params] || {}
|
|
632
|
+
|
|
633
|
+
# http body (model)
|
|
634
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'service_item'])
|
|
635
|
+
|
|
636
|
+
# return_type
|
|
637
|
+
return_type = opts[:debug_return_type] || 'BooleanApiResponse'
|
|
638
|
+
|
|
639
|
+
# auth_names
|
|
640
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
641
|
+
|
|
642
|
+
new_options = opts.merge(
|
|
643
|
+
:operation => :"AppSettingApi.app_service_setting_item_put",
|
|
644
|
+
:header_params => header_params,
|
|
645
|
+
:query_params => query_params,
|
|
646
|
+
:form_params => form_params,
|
|
647
|
+
:body => post_body,
|
|
648
|
+
:auth_names => auth_names,
|
|
649
|
+
:return_type => return_type
|
|
650
|
+
)
|
|
651
|
+
|
|
652
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
653
|
+
if @api_client.config.debugging
|
|
654
|
+
@api_client.config.logger.debug "API called: AppSettingApi#app_service_setting_item_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
655
|
+
end
|
|
656
|
+
return data, status_code, headers
|
|
657
|
+
end
|
|
658
|
+
|
|
659
|
+
# 服务配置项列表
|
|
660
|
+
# 根据业务代码、服务商代码、分组代码和显示标志获取服务配置项列表
|
|
661
|
+
# @param app_key [String]
|
|
662
|
+
# @param [Hash] opts the optional parameters
|
|
663
|
+
# @option opts [String] :biz_code 业务代码
|
|
664
|
+
# @option opts [String] :provider_code 服务商代码
|
|
665
|
+
# @option opts [String] :group_code 分组代码
|
|
666
|
+
# @option opts [Boolean] :show_flag 是否显示 (default to false)
|
|
667
|
+
# @return [ServiceItemListApiResponse]
|
|
668
|
+
def app_service_setting_items(app_key, opts = {})
|
|
669
|
+
data, _status_code, _headers = app_service_setting_items_with_http_info(app_key, opts)
|
|
670
|
+
data
|
|
671
|
+
end
|
|
672
|
+
|
|
673
|
+
# 服务配置项列表
|
|
674
|
+
# 根据业务代码、服务商代码、分组代码和显示标志获取服务配置项列表
|
|
675
|
+
# @param app_key [String]
|
|
676
|
+
# @param [Hash] opts the optional parameters
|
|
677
|
+
# @option opts [String] :biz_code 业务代码
|
|
678
|
+
# @option opts [String] :provider_code 服务商代码
|
|
679
|
+
# @option opts [String] :group_code 分组代码
|
|
680
|
+
# @option opts [Boolean] :show_flag 是否显示 (default to false)
|
|
681
|
+
# @return [Array<(ServiceItemListApiResponse, Integer, Hash)>] ServiceItemListApiResponse data, response status code and response headers
|
|
682
|
+
def app_service_setting_items_with_http_info(app_key, opts = {})
|
|
683
|
+
if @api_client.config.debugging
|
|
684
|
+
@api_client.config.logger.debug 'Calling API: AppSettingApi.app_service_setting_items ...'
|
|
685
|
+
end
|
|
686
|
+
# verify the required parameter 'app_key' is set
|
|
687
|
+
if @api_client.config.client_side_validation && app_key.nil?
|
|
688
|
+
fail ArgumentError, "Missing the required parameter 'app_key' when calling AppSettingApi.app_service_setting_items"
|
|
689
|
+
end
|
|
690
|
+
# resource path
|
|
691
|
+
local_var_path = '/AppSetting/{appKey}/Items'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
|
|
692
|
+
|
|
693
|
+
# query parameters
|
|
694
|
+
query_params = opts[:query_params] || {}
|
|
695
|
+
query_params[:'bizCode'] = opts[:'biz_code'] if !opts[:'biz_code'].nil?
|
|
696
|
+
query_params[:'providerCode'] = opts[:'provider_code'] if !opts[:'provider_code'].nil?
|
|
697
|
+
query_params[:'groupCode'] = opts[:'group_code'] if !opts[:'group_code'].nil?
|
|
698
|
+
query_params[:'showFlag'] = opts[:'show_flag'] if !opts[:'show_flag'].nil?
|
|
699
|
+
|
|
700
|
+
# header parameters
|
|
701
|
+
header_params = opts[:header_params] || {}
|
|
702
|
+
# HTTP header 'Accept' (if needed)
|
|
703
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
704
|
+
|
|
705
|
+
# form parameters
|
|
706
|
+
form_params = opts[:form_params] || {}
|
|
707
|
+
|
|
708
|
+
# http body (model)
|
|
709
|
+
post_body = opts[:debug_body]
|
|
710
|
+
|
|
711
|
+
# return_type
|
|
712
|
+
return_type = opts[:debug_return_type] || 'ServiceItemListApiResponse'
|
|
713
|
+
|
|
714
|
+
# auth_names
|
|
715
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
716
|
+
|
|
717
|
+
new_options = opts.merge(
|
|
718
|
+
:operation => :"AppSettingApi.app_service_setting_items",
|
|
719
|
+
:header_params => header_params,
|
|
720
|
+
:query_params => query_params,
|
|
721
|
+
:form_params => form_params,
|
|
722
|
+
:body => post_body,
|
|
723
|
+
:auth_names => auth_names,
|
|
724
|
+
:return_type => return_type
|
|
725
|
+
)
|
|
726
|
+
|
|
727
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
728
|
+
if @api_client.config.debugging
|
|
729
|
+
@api_client.config.logger.debug "API called: AppSettingApi#app_service_setting_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
730
|
+
end
|
|
731
|
+
return data, status_code, headers
|
|
732
|
+
end
|
|
733
|
+
|
|
734
|
+
# 获取服务商详情
|
|
735
|
+
# 根据服务商ID获取服务商详情
|
|
736
|
+
# @param id [Integer] 服务商ID
|
|
737
|
+
# @param app_key [String]
|
|
738
|
+
# @param [Hash] opts the optional parameters
|
|
739
|
+
# @return [ServiceProviderApiResponse]
|
|
740
|
+
def app_service_setting_provider(id, app_key, opts = {})
|
|
741
|
+
data, _status_code, _headers = app_service_setting_provider_with_http_info(id, app_key, opts)
|
|
742
|
+
data
|
|
743
|
+
end
|
|
744
|
+
|
|
745
|
+
# 获取服务商详情
|
|
746
|
+
# 根据服务商ID获取服务商详情
|
|
747
|
+
# @param id [Integer] 服务商ID
|
|
748
|
+
# @param app_key [String]
|
|
749
|
+
# @param [Hash] opts the optional parameters
|
|
750
|
+
# @return [Array<(ServiceProviderApiResponse, Integer, Hash)>] ServiceProviderApiResponse data, response status code and response headers
|
|
751
|
+
def app_service_setting_provider_with_http_info(id, app_key, opts = {})
|
|
752
|
+
if @api_client.config.debugging
|
|
753
|
+
@api_client.config.logger.debug 'Calling API: AppSettingApi.app_service_setting_provider ...'
|
|
754
|
+
end
|
|
755
|
+
# verify the required parameter 'id' is set
|
|
756
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
757
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AppSettingApi.app_service_setting_provider"
|
|
758
|
+
end
|
|
759
|
+
# verify the required parameter 'app_key' is set
|
|
760
|
+
if @api_client.config.client_side_validation && app_key.nil?
|
|
761
|
+
fail ArgumentError, "Missing the required parameter 'app_key' when calling AppSettingApi.app_service_setting_provider"
|
|
762
|
+
end
|
|
763
|
+
# resource path
|
|
764
|
+
local_var_path = '/AppSetting/{appKey}/Providers/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
|
|
765
|
+
|
|
766
|
+
# query parameters
|
|
767
|
+
query_params = opts[:query_params] || {}
|
|
768
|
+
|
|
769
|
+
# header parameters
|
|
770
|
+
header_params = opts[:header_params] || {}
|
|
771
|
+
# HTTP header 'Accept' (if needed)
|
|
772
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
773
|
+
|
|
774
|
+
# form parameters
|
|
775
|
+
form_params = opts[:form_params] || {}
|
|
776
|
+
|
|
777
|
+
# http body (model)
|
|
778
|
+
post_body = opts[:debug_body]
|
|
779
|
+
|
|
780
|
+
# return_type
|
|
781
|
+
return_type = opts[:debug_return_type] || 'ServiceProviderApiResponse'
|
|
782
|
+
|
|
783
|
+
# auth_names
|
|
784
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
785
|
+
|
|
786
|
+
new_options = opts.merge(
|
|
787
|
+
:operation => :"AppSettingApi.app_service_setting_provider",
|
|
788
|
+
:header_params => header_params,
|
|
789
|
+
:query_params => query_params,
|
|
790
|
+
:form_params => form_params,
|
|
791
|
+
:body => post_body,
|
|
792
|
+
:auth_names => auth_names,
|
|
793
|
+
:return_type => return_type
|
|
794
|
+
)
|
|
795
|
+
|
|
796
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
797
|
+
if @api_client.config.debugging
|
|
798
|
+
@api_client.config.logger.debug "API called: AppSettingApi#app_service_setting_provider\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
799
|
+
end
|
|
800
|
+
return data, status_code, headers
|
|
801
|
+
end
|
|
802
|
+
|
|
803
|
+
# 删除服务商
|
|
804
|
+
# 根据服务商ID删除服务商
|
|
805
|
+
# @param id [Integer] 服务商ID
|
|
806
|
+
# @param app_key [String]
|
|
807
|
+
# @param [Hash] opts the optional parameters
|
|
808
|
+
# @return [BooleanApiResponse]
|
|
809
|
+
def app_service_setting_provider_delete(id, app_key, opts = {})
|
|
810
|
+
data, _status_code, _headers = app_service_setting_provider_delete_with_http_info(id, app_key, opts)
|
|
811
|
+
data
|
|
812
|
+
end
|
|
813
|
+
|
|
814
|
+
# 删除服务商
|
|
815
|
+
# 根据服务商ID删除服务商
|
|
816
|
+
# @param id [Integer] 服务商ID
|
|
817
|
+
# @param app_key [String]
|
|
818
|
+
# @param [Hash] opts the optional parameters
|
|
819
|
+
# @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
|
|
820
|
+
def app_service_setting_provider_delete_with_http_info(id, app_key, opts = {})
|
|
821
|
+
if @api_client.config.debugging
|
|
822
|
+
@api_client.config.logger.debug 'Calling API: AppSettingApi.app_service_setting_provider_delete ...'
|
|
823
|
+
end
|
|
824
|
+
# verify the required parameter 'id' is set
|
|
825
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
826
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AppSettingApi.app_service_setting_provider_delete"
|
|
827
|
+
end
|
|
828
|
+
# verify the required parameter 'app_key' is set
|
|
829
|
+
if @api_client.config.client_side_validation && app_key.nil?
|
|
830
|
+
fail ArgumentError, "Missing the required parameter 'app_key' when calling AppSettingApi.app_service_setting_provider_delete"
|
|
831
|
+
end
|
|
832
|
+
# resource path
|
|
833
|
+
local_var_path = '/AppSetting/{appKey}/Providers/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
|
|
834
|
+
|
|
835
|
+
# query parameters
|
|
836
|
+
query_params = opts[:query_params] || {}
|
|
837
|
+
|
|
838
|
+
# header parameters
|
|
839
|
+
header_params = opts[:header_params] || {}
|
|
840
|
+
# HTTP header 'Accept' (if needed)
|
|
841
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
842
|
+
|
|
843
|
+
# form parameters
|
|
844
|
+
form_params = opts[:form_params] || {}
|
|
845
|
+
|
|
846
|
+
# http body (model)
|
|
847
|
+
post_body = opts[:debug_body]
|
|
848
|
+
|
|
849
|
+
# return_type
|
|
850
|
+
return_type = opts[:debug_return_type] || 'BooleanApiResponse'
|
|
851
|
+
|
|
852
|
+
# auth_names
|
|
853
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
854
|
+
|
|
855
|
+
new_options = opts.merge(
|
|
856
|
+
:operation => :"AppSettingApi.app_service_setting_provider_delete",
|
|
857
|
+
:header_params => header_params,
|
|
858
|
+
:query_params => query_params,
|
|
859
|
+
:form_params => form_params,
|
|
860
|
+
:body => post_body,
|
|
861
|
+
:auth_names => auth_names,
|
|
862
|
+
:return_type => return_type
|
|
863
|
+
)
|
|
864
|
+
|
|
865
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
866
|
+
if @api_client.config.debugging
|
|
867
|
+
@api_client.config.logger.debug "API called: AppSettingApi#app_service_setting_provider_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
868
|
+
end
|
|
869
|
+
return data, status_code, headers
|
|
870
|
+
end
|
|
871
|
+
|
|
872
|
+
# 添加服务商
|
|
873
|
+
# 添加新的服务商信息
|
|
874
|
+
# @param app_key [String]
|
|
875
|
+
# @param [Hash] opts the optional parameters
|
|
876
|
+
# @option opts [ServiceProvider] :service_provider 服务商信息
|
|
877
|
+
# @return [AppSettingProviderPostResultApiResponse]
|
|
878
|
+
def app_service_setting_provider_post(app_key, opts = {})
|
|
879
|
+
data, _status_code, _headers = app_service_setting_provider_post_with_http_info(app_key, opts)
|
|
880
|
+
data
|
|
881
|
+
end
|
|
882
|
+
|
|
883
|
+
# 添加服务商
|
|
884
|
+
# 添加新的服务商信息
|
|
885
|
+
# @param app_key [String]
|
|
886
|
+
# @param [Hash] opts the optional parameters
|
|
887
|
+
# @option opts [ServiceProvider] :service_provider 服务商信息
|
|
888
|
+
# @return [Array<(AppSettingProviderPostResultApiResponse, Integer, Hash)>] AppSettingProviderPostResultApiResponse data, response status code and response headers
|
|
889
|
+
def app_service_setting_provider_post_with_http_info(app_key, opts = {})
|
|
890
|
+
if @api_client.config.debugging
|
|
891
|
+
@api_client.config.logger.debug 'Calling API: AppSettingApi.app_service_setting_provider_post ...'
|
|
892
|
+
end
|
|
893
|
+
# verify the required parameter 'app_key' is set
|
|
894
|
+
if @api_client.config.client_side_validation && app_key.nil?
|
|
895
|
+
fail ArgumentError, "Missing the required parameter 'app_key' when calling AppSettingApi.app_service_setting_provider_post"
|
|
896
|
+
end
|
|
897
|
+
# resource path
|
|
898
|
+
local_var_path = '/AppSetting/{appKey}/Providers'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
|
|
899
|
+
|
|
900
|
+
# query parameters
|
|
901
|
+
query_params = opts[:query_params] || {}
|
|
902
|
+
|
|
903
|
+
# header parameters
|
|
904
|
+
header_params = opts[:header_params] || {}
|
|
905
|
+
# HTTP header 'Accept' (if needed)
|
|
906
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
907
|
+
# HTTP header 'Content-Type'
|
|
908
|
+
content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
|
909
|
+
if !content_type.nil?
|
|
910
|
+
header_params['Content-Type'] = content_type
|
|
911
|
+
end
|
|
912
|
+
|
|
913
|
+
# form parameters
|
|
914
|
+
form_params = opts[:form_params] || {}
|
|
915
|
+
|
|
916
|
+
# http body (model)
|
|
917
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'service_provider'])
|
|
918
|
+
|
|
919
|
+
# return_type
|
|
920
|
+
return_type = opts[:debug_return_type] || 'AppSettingProviderPostResultApiResponse'
|
|
921
|
+
|
|
922
|
+
# auth_names
|
|
923
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
924
|
+
|
|
925
|
+
new_options = opts.merge(
|
|
926
|
+
:operation => :"AppSettingApi.app_service_setting_provider_post",
|
|
927
|
+
:header_params => header_params,
|
|
928
|
+
:query_params => query_params,
|
|
929
|
+
:form_params => form_params,
|
|
930
|
+
:body => post_body,
|
|
931
|
+
:auth_names => auth_names,
|
|
932
|
+
:return_type => return_type
|
|
933
|
+
)
|
|
934
|
+
|
|
935
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
936
|
+
if @api_client.config.debugging
|
|
937
|
+
@api_client.config.logger.debug "API called: AppSettingApi#app_service_setting_provider_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
938
|
+
end
|
|
939
|
+
return data, status_code, headers
|
|
940
|
+
end
|
|
941
|
+
|
|
942
|
+
# 更新服务商
|
|
943
|
+
# 根据服务商ID更新服务商信息
|
|
944
|
+
# @param id [Integer] 服务商ID
|
|
945
|
+
# @param app_key [String]
|
|
946
|
+
# @param [Hash] opts the optional parameters
|
|
947
|
+
# @option opts [ServiceProvider] :service_provider 服务商信息
|
|
948
|
+
# @return [BooleanApiResponse]
|
|
949
|
+
def app_service_setting_provider_put(id, app_key, opts = {})
|
|
950
|
+
data, _status_code, _headers = app_service_setting_provider_put_with_http_info(id, app_key, opts)
|
|
951
|
+
data
|
|
952
|
+
end
|
|
953
|
+
|
|
954
|
+
# 更新服务商
|
|
955
|
+
# 根据服务商ID更新服务商信息
|
|
956
|
+
# @param id [Integer] 服务商ID
|
|
957
|
+
# @param app_key [String]
|
|
958
|
+
# @param [Hash] opts the optional parameters
|
|
959
|
+
# @option opts [ServiceProvider] :service_provider 服务商信息
|
|
960
|
+
# @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
|
|
961
|
+
def app_service_setting_provider_put_with_http_info(id, app_key, opts = {})
|
|
962
|
+
if @api_client.config.debugging
|
|
963
|
+
@api_client.config.logger.debug 'Calling API: AppSettingApi.app_service_setting_provider_put ...'
|
|
964
|
+
end
|
|
965
|
+
# verify the required parameter 'id' is set
|
|
966
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
967
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AppSettingApi.app_service_setting_provider_put"
|
|
968
|
+
end
|
|
969
|
+
# verify the required parameter 'app_key' is set
|
|
970
|
+
if @api_client.config.client_side_validation && app_key.nil?
|
|
971
|
+
fail ArgumentError, "Missing the required parameter 'app_key' when calling AppSettingApi.app_service_setting_provider_put"
|
|
972
|
+
end
|
|
973
|
+
# resource path
|
|
974
|
+
local_var_path = '/AppSetting/{appKey}/Providers/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
|
|
975
|
+
|
|
976
|
+
# query parameters
|
|
977
|
+
query_params = opts[:query_params] || {}
|
|
978
|
+
|
|
979
|
+
# header parameters
|
|
980
|
+
header_params = opts[:header_params] || {}
|
|
981
|
+
# HTTP header 'Accept' (if needed)
|
|
982
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
983
|
+
# HTTP header 'Content-Type'
|
|
984
|
+
content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
|
985
|
+
if !content_type.nil?
|
|
986
|
+
header_params['Content-Type'] = content_type
|
|
987
|
+
end
|
|
988
|
+
|
|
989
|
+
# form parameters
|
|
990
|
+
form_params = opts[:form_params] || {}
|
|
991
|
+
|
|
992
|
+
# http body (model)
|
|
993
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'service_provider'])
|
|
994
|
+
|
|
995
|
+
# return_type
|
|
996
|
+
return_type = opts[:debug_return_type] || 'BooleanApiResponse'
|
|
997
|
+
|
|
998
|
+
# auth_names
|
|
999
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
1000
|
+
|
|
1001
|
+
new_options = opts.merge(
|
|
1002
|
+
:operation => :"AppSettingApi.app_service_setting_provider_put",
|
|
1003
|
+
:header_params => header_params,
|
|
1004
|
+
:query_params => query_params,
|
|
1005
|
+
:form_params => form_params,
|
|
1006
|
+
:body => post_body,
|
|
1007
|
+
:auth_names => auth_names,
|
|
1008
|
+
:return_type => return_type
|
|
1009
|
+
)
|
|
1010
|
+
|
|
1011
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1012
|
+
if @api_client.config.debugging
|
|
1013
|
+
@api_client.config.logger.debug "API called: AppSettingApi#app_service_setting_provider_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1014
|
+
end
|
|
1015
|
+
return data, status_code, headers
|
|
1016
|
+
end
|
|
1017
|
+
|
|
1018
|
+
# 获取服务商列表
|
|
1019
|
+
# 根据业务代码和显示标志获取服务商列表
|
|
1020
|
+
# @param app_key [String]
|
|
1021
|
+
# @param [Hash] opts the optional parameters
|
|
1022
|
+
# @option opts [String] :biz_code 业务代码
|
|
1023
|
+
# @option opts [Boolean] :show_flag 是否显示 (default to false)
|
|
1024
|
+
# @return [ServiceProviderListApiResponse]
|
|
1025
|
+
def app_service_setting_providers(app_key, opts = {})
|
|
1026
|
+
data, _status_code, _headers = app_service_setting_providers_with_http_info(app_key, opts)
|
|
1027
|
+
data
|
|
1028
|
+
end
|
|
1029
|
+
|
|
1030
|
+
# 获取服务商列表
|
|
1031
|
+
# 根据业务代码和显示标志获取服务商列表
|
|
1032
|
+
# @param app_key [String]
|
|
1033
|
+
# @param [Hash] opts the optional parameters
|
|
1034
|
+
# @option opts [String] :biz_code 业务代码
|
|
1035
|
+
# @option opts [Boolean] :show_flag 是否显示 (default to false)
|
|
1036
|
+
# @return [Array<(ServiceProviderListApiResponse, Integer, Hash)>] ServiceProviderListApiResponse data, response status code and response headers
|
|
1037
|
+
def app_service_setting_providers_with_http_info(app_key, opts = {})
|
|
1038
|
+
if @api_client.config.debugging
|
|
1039
|
+
@api_client.config.logger.debug 'Calling API: AppSettingApi.app_service_setting_providers ...'
|
|
1040
|
+
end
|
|
1041
|
+
# verify the required parameter 'app_key' is set
|
|
1042
|
+
if @api_client.config.client_side_validation && app_key.nil?
|
|
1043
|
+
fail ArgumentError, "Missing the required parameter 'app_key' when calling AppSettingApi.app_service_setting_providers"
|
|
1044
|
+
end
|
|
1045
|
+
# resource path
|
|
1046
|
+
local_var_path = '/AppSetting/{appKey}/Providers'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
|
|
1047
|
+
|
|
1048
|
+
# query parameters
|
|
1049
|
+
query_params = opts[:query_params] || {}
|
|
1050
|
+
query_params[:'bizCode'] = opts[:'biz_code'] if !opts[:'biz_code'].nil?
|
|
1051
|
+
query_params[:'showFlag'] = opts[:'show_flag'] if !opts[:'show_flag'].nil?
|
|
1052
|
+
|
|
1053
|
+
# header parameters
|
|
1054
|
+
header_params = opts[:header_params] || {}
|
|
1055
|
+
# HTTP header 'Accept' (if needed)
|
|
1056
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1057
|
+
|
|
1058
|
+
# form parameters
|
|
1059
|
+
form_params = opts[:form_params] || {}
|
|
1060
|
+
|
|
1061
|
+
# http body (model)
|
|
1062
|
+
post_body = opts[:debug_body]
|
|
1063
|
+
|
|
1064
|
+
# return_type
|
|
1065
|
+
return_type = opts[:debug_return_type] || 'ServiceProviderListApiResponse'
|
|
1066
|
+
|
|
1067
|
+
# auth_names
|
|
1068
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
1069
|
+
|
|
1070
|
+
new_options = opts.merge(
|
|
1071
|
+
:operation => :"AppSettingApi.app_service_setting_providers",
|
|
1072
|
+
:header_params => header_params,
|
|
1073
|
+
:query_params => query_params,
|
|
1074
|
+
:form_params => form_params,
|
|
1075
|
+
:body => post_body,
|
|
1076
|
+
:auth_names => auth_names,
|
|
1077
|
+
:return_type => return_type
|
|
1078
|
+
)
|
|
1079
|
+
|
|
1080
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1081
|
+
if @api_client.config.debugging
|
|
1082
|
+
@api_client.config.logger.debug "API called: AppSettingApi#app_service_setting_providers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1083
|
+
end
|
|
1084
|
+
return data, status_code, headers
|
|
1085
|
+
end
|
|
1086
|
+
|
|
1087
|
+
# 配置详情
|
|
1088
|
+
# 根据配置ID获取配置详情
|
|
1089
|
+
# @param id [Integer] 配置ID
|
|
1090
|
+
# @param app_key [String]
|
|
1091
|
+
# @param [Hash] opts the optional parameters
|
|
1092
|
+
# @return [AppSettingApiResponse]
|
|
1093
|
+
def app_setting(id, app_key, opts = {})
|
|
1094
|
+
data, _status_code, _headers = app_setting_with_http_info(id, app_key, opts)
|
|
1095
|
+
data
|
|
1096
|
+
end
|
|
1097
|
+
|
|
1098
|
+
# 配置详情
|
|
1099
|
+
# 根据配置ID获取配置详情
|
|
1100
|
+
# @param id [Integer] 配置ID
|
|
1101
|
+
# @param app_key [String]
|
|
1102
|
+
# @param [Hash] opts the optional parameters
|
|
1103
|
+
# @return [Array<(AppSettingApiResponse, Integer, Hash)>] AppSettingApiResponse data, response status code and response headers
|
|
1104
|
+
def app_setting_with_http_info(id, app_key, opts = {})
|
|
1105
|
+
if @api_client.config.debugging
|
|
1106
|
+
@api_client.config.logger.debug 'Calling API: AppSettingApi.app_setting ...'
|
|
1107
|
+
end
|
|
1108
|
+
# verify the required parameter 'id' is set
|
|
1109
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1110
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AppSettingApi.app_setting"
|
|
1111
|
+
end
|
|
1112
|
+
# verify the required parameter 'app_key' is set
|
|
1113
|
+
if @api_client.config.client_side_validation && app_key.nil?
|
|
1114
|
+
fail ArgumentError, "Missing the required parameter 'app_key' when calling AppSettingApi.app_setting"
|
|
1115
|
+
end
|
|
1116
|
+
# resource path
|
|
1117
|
+
local_var_path = '/AppSetting/{appKey}/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
|
|
1118
|
+
|
|
1119
|
+
# query parameters
|
|
1120
|
+
query_params = opts[:query_params] || {}
|
|
1121
|
+
|
|
1122
|
+
# header parameters
|
|
1123
|
+
header_params = opts[:header_params] || {}
|
|
1124
|
+
# HTTP header 'Accept' (if needed)
|
|
1125
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1126
|
+
|
|
1127
|
+
# form parameters
|
|
1128
|
+
form_params = opts[:form_params] || {}
|
|
1129
|
+
|
|
1130
|
+
# http body (model)
|
|
1131
|
+
post_body = opts[:debug_body]
|
|
1132
|
+
|
|
1133
|
+
# return_type
|
|
1134
|
+
return_type = opts[:debug_return_type] || 'AppSettingApiResponse'
|
|
1135
|
+
|
|
1136
|
+
# auth_names
|
|
1137
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
1138
|
+
|
|
1139
|
+
new_options = opts.merge(
|
|
1140
|
+
:operation => :"AppSettingApi.app_setting",
|
|
1141
|
+
:header_params => header_params,
|
|
1142
|
+
:query_params => query_params,
|
|
1143
|
+
:form_params => form_params,
|
|
1144
|
+
:body => post_body,
|
|
1145
|
+
:auth_names => auth_names,
|
|
1146
|
+
:return_type => return_type
|
|
1147
|
+
)
|
|
1148
|
+
|
|
1149
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1150
|
+
if @api_client.config.debugging
|
|
1151
|
+
@api_client.config.logger.debug "API called: AppSettingApi#app_setting\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1152
|
+
end
|
|
1153
|
+
return data, status_code, headers
|
|
1154
|
+
end
|
|
1155
|
+
|
|
1156
|
+
# 删除配置
|
|
1157
|
+
# 根据配置ID删除配置
|
|
1158
|
+
# @param id [Integer] 配置ID
|
|
1159
|
+
# @param app_key [String]
|
|
1160
|
+
# @param [Hash] opts the optional parameters
|
|
1161
|
+
# @return [BooleanApiResponse]
|
|
1162
|
+
def app_setting_delete(id, app_key, opts = {})
|
|
1163
|
+
data, _status_code, _headers = app_setting_delete_with_http_info(id, app_key, opts)
|
|
1164
|
+
data
|
|
1165
|
+
end
|
|
1166
|
+
|
|
1167
|
+
# 删除配置
|
|
1168
|
+
# 根据配置ID删除配置
|
|
1169
|
+
# @param id [Integer] 配置ID
|
|
1170
|
+
# @param app_key [String]
|
|
1171
|
+
# @param [Hash] opts the optional parameters
|
|
1172
|
+
# @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
|
|
1173
|
+
def app_setting_delete_with_http_info(id, app_key, opts = {})
|
|
1174
|
+
if @api_client.config.debugging
|
|
1175
|
+
@api_client.config.logger.debug 'Calling API: AppSettingApi.app_setting_delete ...'
|
|
1176
|
+
end
|
|
1177
|
+
# verify the required parameter 'id' is set
|
|
1178
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1179
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AppSettingApi.app_setting_delete"
|
|
1180
|
+
end
|
|
1181
|
+
# verify the required parameter 'app_key' is set
|
|
1182
|
+
if @api_client.config.client_side_validation && app_key.nil?
|
|
1183
|
+
fail ArgumentError, "Missing the required parameter 'app_key' when calling AppSettingApi.app_setting_delete"
|
|
1184
|
+
end
|
|
1185
|
+
# resource path
|
|
1186
|
+
local_var_path = '/AppSetting/{appKey}/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
|
|
1187
|
+
|
|
1188
|
+
# query parameters
|
|
1189
|
+
query_params = opts[:query_params] || {}
|
|
1190
|
+
|
|
1191
|
+
# header parameters
|
|
1192
|
+
header_params = opts[:header_params] || {}
|
|
1193
|
+
# HTTP header 'Accept' (if needed)
|
|
1194
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1195
|
+
|
|
1196
|
+
# form parameters
|
|
1197
|
+
form_params = opts[:form_params] || {}
|
|
1198
|
+
|
|
1199
|
+
# http body (model)
|
|
1200
|
+
post_body = opts[:debug_body]
|
|
1201
|
+
|
|
1202
|
+
# return_type
|
|
1203
|
+
return_type = opts[:debug_return_type] || 'BooleanApiResponse'
|
|
1204
|
+
|
|
1205
|
+
# auth_names
|
|
1206
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
1207
|
+
|
|
1208
|
+
new_options = opts.merge(
|
|
1209
|
+
:operation => :"AppSettingApi.app_setting_delete",
|
|
1210
|
+
:header_params => header_params,
|
|
1211
|
+
:query_params => query_params,
|
|
1212
|
+
:form_params => form_params,
|
|
1213
|
+
:body => post_body,
|
|
1214
|
+
:auth_names => auth_names,
|
|
1215
|
+
:return_type => return_type
|
|
1216
|
+
)
|
|
1217
|
+
|
|
1218
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
1219
|
+
if @api_client.config.debugging
|
|
1220
|
+
@api_client.config.logger.debug "API called: AppSettingApi#app_setting_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1221
|
+
end
|
|
1222
|
+
return data, status_code, headers
|
|
1223
|
+
end
|
|
1224
|
+
|
|
1225
|
+
# 增加配置
|
|
1226
|
+
# 添加新的配置内容
|
|
1227
|
+
# @param app_key [String]
|
|
1228
|
+
# @param [Hash] opts the optional parameters
|
|
1229
|
+
# @option opts [AppSetting] :app_setting 配置内容
|
|
1230
|
+
# @return [AppSettingSettingPostResultApiResponse]
|
|
1231
|
+
def app_setting_post(app_key, opts = {})
|
|
1232
|
+
data, _status_code, _headers = app_setting_post_with_http_info(app_key, opts)
|
|
1233
|
+
data
|
|
1234
|
+
end
|
|
1235
|
+
|
|
1236
|
+
# 增加配置
|
|
1237
|
+
# 添加新的配置内容
|
|
1238
|
+
# @param app_key [String]
|
|
1239
|
+
# @param [Hash] opts the optional parameters
|
|
1240
|
+
# @option opts [AppSetting] :app_setting 配置内容
|
|
1241
|
+
# @return [Array<(AppSettingSettingPostResultApiResponse, Integer, Hash)>] AppSettingSettingPostResultApiResponse data, response status code and response headers
|
|
1242
|
+
def app_setting_post_with_http_info(app_key, opts = {})
|
|
1243
|
+
if @api_client.config.debugging
|
|
1244
|
+
@api_client.config.logger.debug 'Calling API: AppSettingApi.app_setting_post ...'
|
|
1245
|
+
end
|
|
1246
|
+
# verify the required parameter 'app_key' is set
|
|
1247
|
+
if @api_client.config.client_side_validation && app_key.nil?
|
|
1248
|
+
fail ArgumentError, "Missing the required parameter 'app_key' when calling AppSettingApi.app_setting_post"
|
|
1249
|
+
end
|
|
1250
|
+
# resource path
|
|
1251
|
+
local_var_path = '/AppSetting/{appKey}'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
|
|
1252
|
+
|
|
1253
|
+
# query parameters
|
|
1254
|
+
query_params = opts[:query_params] || {}
|
|
1255
|
+
|
|
1256
|
+
# header parameters
|
|
1257
|
+
header_params = opts[:header_params] || {}
|
|
1258
|
+
# HTTP header 'Accept' (if needed)
|
|
1259
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1260
|
+
# HTTP header 'Content-Type'
|
|
1261
|
+
content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
|
1262
|
+
if !content_type.nil?
|
|
1263
|
+
header_params['Content-Type'] = content_type
|
|
1264
|
+
end
|
|
1265
|
+
|
|
1266
|
+
# form parameters
|
|
1267
|
+
form_params = opts[:form_params] || {}
|
|
1268
|
+
|
|
1269
|
+
# http body (model)
|
|
1270
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'app_setting'])
|
|
1271
|
+
|
|
1272
|
+
# return_type
|
|
1273
|
+
return_type = opts[:debug_return_type] || 'AppSettingSettingPostResultApiResponse'
|
|
1274
|
+
|
|
1275
|
+
# auth_names
|
|
1276
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
1277
|
+
|
|
1278
|
+
new_options = opts.merge(
|
|
1279
|
+
:operation => :"AppSettingApi.app_setting_post",
|
|
1280
|
+
:header_params => header_params,
|
|
1281
|
+
:query_params => query_params,
|
|
1282
|
+
:form_params => form_params,
|
|
1283
|
+
:body => post_body,
|
|
1284
|
+
:auth_names => auth_names,
|
|
1285
|
+
:return_type => return_type
|
|
1286
|
+
)
|
|
1287
|
+
|
|
1288
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1289
|
+
if @api_client.config.debugging
|
|
1290
|
+
@api_client.config.logger.debug "API called: AppSettingApi#app_setting_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1291
|
+
end
|
|
1292
|
+
return data, status_code, headers
|
|
1293
|
+
end
|
|
1294
|
+
|
|
1295
|
+
# 更新配置
|
|
1296
|
+
# 根据配置ID更新配置内容
|
|
1297
|
+
# @param id [Integer] 配置ID
|
|
1298
|
+
# @param app_key [String]
|
|
1299
|
+
# @param [Hash] opts the optional parameters
|
|
1300
|
+
# @option opts [AppSetting] :app_setting 配置内容
|
|
1301
|
+
# @return [BooleanApiResponse]
|
|
1302
|
+
def app_setting_put(id, app_key, opts = {})
|
|
1303
|
+
data, _status_code, _headers = app_setting_put_with_http_info(id, app_key, opts)
|
|
1304
|
+
data
|
|
1305
|
+
end
|
|
1306
|
+
|
|
1307
|
+
# 更新配置
|
|
1308
|
+
# 根据配置ID更新配置内容
|
|
1309
|
+
# @param id [Integer] 配置ID
|
|
1310
|
+
# @param app_key [String]
|
|
1311
|
+
# @param [Hash] opts the optional parameters
|
|
1312
|
+
# @option opts [AppSetting] :app_setting 配置内容
|
|
1313
|
+
# @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
|
|
1314
|
+
def app_setting_put_with_http_info(id, app_key, opts = {})
|
|
1315
|
+
if @api_client.config.debugging
|
|
1316
|
+
@api_client.config.logger.debug 'Calling API: AppSettingApi.app_setting_put ...'
|
|
1317
|
+
end
|
|
1318
|
+
# verify the required parameter 'id' is set
|
|
1319
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1320
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AppSettingApi.app_setting_put"
|
|
1321
|
+
end
|
|
1322
|
+
# verify the required parameter 'app_key' is set
|
|
1323
|
+
if @api_client.config.client_side_validation && app_key.nil?
|
|
1324
|
+
fail ArgumentError, "Missing the required parameter 'app_key' when calling AppSettingApi.app_setting_put"
|
|
1325
|
+
end
|
|
1326
|
+
# resource path
|
|
1327
|
+
local_var_path = '/AppSetting/{appKey}/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
|
|
1328
|
+
|
|
1329
|
+
# query parameters
|
|
1330
|
+
query_params = opts[:query_params] || {}
|
|
1331
|
+
|
|
1332
|
+
# header parameters
|
|
1333
|
+
header_params = opts[:header_params] || {}
|
|
1334
|
+
# HTTP header 'Accept' (if needed)
|
|
1335
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1336
|
+
# HTTP header 'Content-Type'
|
|
1337
|
+
content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
|
1338
|
+
if !content_type.nil?
|
|
1339
|
+
header_params['Content-Type'] = content_type
|
|
1340
|
+
end
|
|
1341
|
+
|
|
1342
|
+
# form parameters
|
|
1343
|
+
form_params = opts[:form_params] || {}
|
|
1344
|
+
|
|
1345
|
+
# http body (model)
|
|
1346
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'app_setting'])
|
|
1347
|
+
|
|
1348
|
+
# return_type
|
|
1349
|
+
return_type = opts[:debug_return_type] || 'BooleanApiResponse'
|
|
1350
|
+
|
|
1351
|
+
# auth_names
|
|
1352
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
1353
|
+
|
|
1354
|
+
new_options = opts.merge(
|
|
1355
|
+
:operation => :"AppSettingApi.app_setting_put",
|
|
1356
|
+
:header_params => header_params,
|
|
1357
|
+
:query_params => query_params,
|
|
1358
|
+
:form_params => form_params,
|
|
1359
|
+
:body => post_body,
|
|
1360
|
+
:auth_names => auth_names,
|
|
1361
|
+
:return_type => return_type
|
|
1362
|
+
)
|
|
1363
|
+
|
|
1364
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1365
|
+
if @api_client.config.debugging
|
|
1366
|
+
@api_client.config.logger.debug "API called: AppSettingApi#app_setting_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1367
|
+
end
|
|
1368
|
+
return data, status_code, headers
|
|
1369
|
+
end
|
|
1370
|
+
|
|
1371
|
+
# 配置列表
|
|
1372
|
+
# 根据服务商代码、分组代码、标签和配置项代码获取配置列表
|
|
1373
|
+
# @param app_key [String]
|
|
1374
|
+
# @param [Hash] opts the optional parameters
|
|
1375
|
+
# @option opts [String] :provider_code 服务商代码
|
|
1376
|
+
# @option opts [String] :group_code 分组代码
|
|
1377
|
+
# @option opts [String] :tag 标签
|
|
1378
|
+
# @option opts [String] :code 配置项代码
|
|
1379
|
+
# @return [AppSettingListApiResponse]
|
|
1380
|
+
def app_settings(app_key, opts = {})
|
|
1381
|
+
data, _status_code, _headers = app_settings_with_http_info(app_key, opts)
|
|
1382
|
+
data
|
|
1383
|
+
end
|
|
1384
|
+
|
|
1385
|
+
# 配置列表
|
|
1386
|
+
# 根据服务商代码、分组代码、标签和配置项代码获取配置列表
|
|
1387
|
+
# @param app_key [String]
|
|
1388
|
+
# @param [Hash] opts the optional parameters
|
|
1389
|
+
# @option opts [String] :provider_code 服务商代码
|
|
1390
|
+
# @option opts [String] :group_code 分组代码
|
|
1391
|
+
# @option opts [String] :tag 标签
|
|
1392
|
+
# @option opts [String] :code 配置项代码
|
|
1393
|
+
# @return [Array<(AppSettingListApiResponse, Integer, Hash)>] AppSettingListApiResponse data, response status code and response headers
|
|
1394
|
+
def app_settings_with_http_info(app_key, opts = {})
|
|
1395
|
+
if @api_client.config.debugging
|
|
1396
|
+
@api_client.config.logger.debug 'Calling API: AppSettingApi.app_settings ...'
|
|
1397
|
+
end
|
|
1398
|
+
# verify the required parameter 'app_key' is set
|
|
1399
|
+
if @api_client.config.client_side_validation && app_key.nil?
|
|
1400
|
+
fail ArgumentError, "Missing the required parameter 'app_key' when calling AppSettingApi.app_settings"
|
|
1401
|
+
end
|
|
1402
|
+
# resource path
|
|
1403
|
+
local_var_path = '/AppSetting/{appKey}'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
|
|
1404
|
+
|
|
1405
|
+
# query parameters
|
|
1406
|
+
query_params = opts[:query_params] || {}
|
|
1407
|
+
query_params[:'providerCode'] = opts[:'provider_code'] if !opts[:'provider_code'].nil?
|
|
1408
|
+
query_params[:'groupCode'] = opts[:'group_code'] if !opts[:'group_code'].nil?
|
|
1409
|
+
query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
|
|
1410
|
+
query_params[:'code'] = opts[:'code'] if !opts[:'code'].nil?
|
|
1411
|
+
|
|
1412
|
+
# header parameters
|
|
1413
|
+
header_params = opts[:header_params] || {}
|
|
1414
|
+
# HTTP header 'Accept' (if needed)
|
|
1415
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1416
|
+
|
|
1417
|
+
# form parameters
|
|
1418
|
+
form_params = opts[:form_params] || {}
|
|
1419
|
+
|
|
1420
|
+
# http body (model)
|
|
1421
|
+
post_body = opts[:debug_body]
|
|
1422
|
+
|
|
1423
|
+
# return_type
|
|
1424
|
+
return_type = opts[:debug_return_type] || 'AppSettingListApiResponse'
|
|
1425
|
+
|
|
1426
|
+
# auth_names
|
|
1427
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
1428
|
+
|
|
1429
|
+
new_options = opts.merge(
|
|
1430
|
+
:operation => :"AppSettingApi.app_settings",
|
|
1431
|
+
:header_params => header_params,
|
|
1432
|
+
:query_params => query_params,
|
|
1433
|
+
:form_params => form_params,
|
|
1434
|
+
:body => post_body,
|
|
1435
|
+
:auth_names => auth_names,
|
|
1436
|
+
:return_type => return_type
|
|
1437
|
+
)
|
|
1438
|
+
|
|
1439
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1440
|
+
if @api_client.config.debugging
|
|
1441
|
+
@api_client.config.logger.debug "API called: AppSettingApi#app_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1442
|
+
end
|
|
1443
|
+
return data, status_code, headers
|
|
1444
|
+
end
|
|
1445
|
+
end
|
|
1446
|
+
end
|