vrchatapi-async 1.20.8.dev1__py3-none-any.whl
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.
- vrchatapi/__init__.py +742 -0
- vrchatapi/api/__init__.py +23 -0
- vrchatapi/api/authentication_api.py +6253 -0
- vrchatapi/api/avatars_api.py +4234 -0
- vrchatapi/api/calendar_api.py +4090 -0
- vrchatapi/api/economy_api.py +11547 -0
- vrchatapi/api/favorites_api.py +2368 -0
- vrchatapi/api/files_api.py +6109 -0
- vrchatapi/api/friends_api.py +1708 -0
- vrchatapi/api/groups_api.py +15085 -0
- vrchatapi/api/instances_api.py +1754 -0
- vrchatapi/api/inventory_api.py +4333 -0
- vrchatapi/api/invite_api.py +3337 -0
- vrchatapi/api/jams_api.py +1446 -0
- vrchatapi/api/miscellaneous_api.py +2384 -0
- vrchatapi/api/notifications_api.py +3624 -0
- vrchatapi/api/playermoderation_api.py +1127 -0
- vrchatapi/api/prints_api.py +1478 -0
- vrchatapi/api/props_api.py +2269 -0
- vrchatapi/api/users_api.py +7894 -0
- vrchatapi/api/worlds_api.py +6153 -0
- vrchatapi/api_client.py +865 -0
- vrchatapi/api_response.py +21 -0
- vrchatapi/configuration.py +686 -0
- vrchatapi/exceptions.py +218 -0
- vrchatapi/models/__init__.py +345 -0
- vrchatapi/models/account_deletion_log.py +253 -0
- vrchatapi/models/add_favorite_request.py +246 -0
- vrchatapi/models/add_group_gallery_image_request.py +234 -0
- vrchatapi/models/admin_asset_bundle.py +337 -0
- vrchatapi/models/admin_unity_package.py +261 -0
- vrchatapi/models/age_verification_status.py +38 -0
- vrchatapi/models/agreement.py +280 -0
- vrchatapi/models/agreement_code.py +36 -0
- vrchatapi/models/agreement_request.py +256 -0
- vrchatapi/models/agreement_status.py +261 -0
- vrchatapi/models/api_config.py +1299 -0
- vrchatapi/models/api_config_access_logs_urls.py +258 -0
- vrchatapi/models/api_config_announcement.py +217 -0
- vrchatapi/models/api_config_audio_config.py +311 -0
- vrchatapi/models/api_config_avatar_perf_limiter.py +293 -0
- vrchatapi/models/api_config_constants.py +262 -0
- vrchatapi/models/api_config_constants_groups.py +306 -0
- vrchatapi/models/api_config_constants_instance.py +238 -0
- vrchatapi/models/api_config_constants_instancepopulationbrackets.py +262 -0
- vrchatapi/models/api_config_constants_instancepopulationbracketscrowded.py +216 -0
- vrchatapi/models/api_config_constants_instancepopulationbracketsfew.py +216 -0
- vrchatapi/models/api_config_constants_instancepopulationbracketsmany.py +216 -0
- vrchatapi/models/api_config_constants_language.py +234 -0
- vrchatapi/models/api_config_download_url_list.py +258 -0
- vrchatapi/models/api_config_events.py +314 -0
- vrchatapi/models/api_config_ios_version.py +216 -0
- vrchatapi/models/api_config_min_supported_client_build_number.py +348 -0
- vrchatapi/models/api_config_offline_analysis.py +216 -0
- vrchatapi/models/api_health.py +248 -0
- vrchatapi/models/avatar.py +463 -0
- vrchatapi/models/avatar_moderation.py +249 -0
- vrchatapi/models/avatar_moderation_created.py +248 -0
- vrchatapi/models/avatar_moderation_type.py +36 -0
- vrchatapi/models/avatar_performance.py +265 -0
- vrchatapi/models/avatar_published_listings_inner.py +271 -0
- vrchatapi/models/avatar_style.py +239 -0
- vrchatapi/models/avatar_styles.py +231 -0
- vrchatapi/models/avatar_unity_package_url_object.py +234 -0
- vrchatapi/models/badge.py +308 -0
- vrchatapi/models/balance.py +247 -0
- vrchatapi/models/ban_group_member_request.py +234 -0
- vrchatapi/models/boop_request.py +250 -0
- vrchatapi/models/calendar_day_of_week.py +42 -0
- vrchatapi/models/calendar_event.py +475 -0
- vrchatapi/models/calendar_event_access.py +37 -0
- vrchatapi/models/calendar_event_category.py +48 -0
- vrchatapi/models/calendar_event_discovery.py +247 -0
- vrchatapi/models/calendar_event_discovery_inclusion.py +38 -0
- vrchatapi/models/calendar_event_discovery_scope.py +38 -0
- vrchatapi/models/calendar_event_frequency.py +39 -0
- vrchatapi/models/calendar_event_occurrence_kind.py +38 -0
- vrchatapi/models/calendar_event_platform.py +38 -0
- vrchatapi/models/calendar_event_recurrence.py +261 -0
- vrchatapi/models/calendar_event_recurrence_end.py +246 -0
- vrchatapi/models/calendar_event_recurrence_end_type.py +37 -0
- vrchatapi/models/calendar_event_user_interest.py +251 -0
- vrchatapi/models/change_user_tags_request.py +212 -0
- vrchatapi/models/change_world_tags_request.py +212 -0
- vrchatapi/models/content_filter.py +40 -0
- vrchatapi/models/create_avatar_moderation_request.py +243 -0
- vrchatapi/models/create_avatar_request.py +324 -0
- vrchatapi/models/create_calendar_event_request.py +385 -0
- vrchatapi/models/create_file_request.py +251 -0
- vrchatapi/models/create_file_version_request.py +259 -0
- vrchatapi/models/create_group_announcement_request.py +253 -0
- vrchatapi/models/create_group_gallery_request.py +297 -0
- vrchatapi/models/create_group_invite_request.py +242 -0
- vrchatapi/models/create_group_post_request.py +267 -0
- vrchatapi/models/create_group_request.py +295 -0
- vrchatapi/models/create_group_role_request.py +255 -0
- vrchatapi/models/create_instance_request.py +384 -0
- vrchatapi/models/create_jam_submission_request.py +239 -0
- vrchatapi/models/create_listing_request.py +285 -0
- vrchatapi/models/create_product_request.py +270 -0
- vrchatapi/models/create_prop_request.py +308 -0
- vrchatapi/models/create_world_request.py +322 -0
- vrchatapi/models/current_user.py +909 -0
- vrchatapi/models/current_user_platform_history_inner.py +245 -0
- vrchatapi/models/current_user_presence.py +379 -0
- vrchatapi/models/decline_group_invite_request.py +211 -0
- vrchatapi/models/developer_type.py +39 -0
- vrchatapi/models/disable2_fa_result.py +211 -0
- vrchatapi/models/discord_details.py +216 -0
- vrchatapi/models/dynamic_content_row.py +276 -0
- vrchatapi/models/earnings_metrics.py +248 -0
- vrchatapi/models/earnings_metrics_totals.py +267 -0
- vrchatapi/models/economy_account.py +360 -0
- vrchatapi/models/economy_balances.py +221 -0
- vrchatapi/models/economy_payout.py +385 -0
- vrchatapi/models/economy_payout_eligibility.py +263 -0
- vrchatapi/models/economy_payout_list.py +219 -0
- vrchatapi/models/economy_payout_status.py +295 -0
- vrchatapi/models/equip_inventory_item_request.py +235 -0
- vrchatapi/models/error.py +215 -0
- vrchatapi/models/favorite.py +251 -0
- vrchatapi/models/favorite_group.py +278 -0
- vrchatapi/models/favorite_group_limits.py +249 -0
- vrchatapi/models/favorite_group_visibility.py +38 -0
- vrchatapi/models/favorite_limits.py +265 -0
- vrchatapi/models/favorite_type.py +39 -0
- vrchatapi/models/favorited_world.py +441 -0
- vrchatapi/models/feedback.py +331 -0
- vrchatapi/models/file.py +325 -0
- vrchatapi/models/file_analysis.py +281 -0
- vrchatapi/models/file_analysis_avatar_stats.py +575 -0
- vrchatapi/models/file_data.py +279 -0
- vrchatapi/models/file_status.py +39 -0
- vrchatapi/models/file_upload_url.py +212 -0
- vrchatapi/models/file_version.py +254 -0
- vrchatapi/models/file_version_upload_status.py +269 -0
- vrchatapi/models/finish_file_data_upload_request.py +248 -0
- vrchatapi/models/follow_calendar_event_request.py +234 -0
- vrchatapi/models/friend_status.py +250 -0
- vrchatapi/models/get_group_posts200_response.py +219 -0
- vrchatapi/models/get_user_group_instances200_response.py +248 -0
- vrchatapi/models/group.py +514 -0
- vrchatapi/models/group_access_type.py +38 -0
- vrchatapi/models/group_announcement.py +315 -0
- vrchatapi/models/group_audit_log_entry.py +287 -0
- vrchatapi/models/group_gallery.py +319 -0
- vrchatapi/models/group_gallery_file_order.py +211 -0
- vrchatapi/models/group_gallery_file_order_request.py +239 -0
- vrchatapi/models/group_gallery_image.py +301 -0
- vrchatapi/models/group_instance.py +257 -0
- vrchatapi/models/group_join_request_action.py +37 -0
- vrchatapi/models/group_join_state.py +39 -0
- vrchatapi/models/group_member.py +415 -0
- vrchatapi/models/group_member_limited_user.py +290 -0
- vrchatapi/models/group_member_status.py +41 -0
- vrchatapi/models/group_my_member.py +399 -0
- vrchatapi/models/group_permission.py +260 -0
- vrchatapi/models/group_permissions.py +63 -0
- vrchatapi/models/group_post.py +317 -0
- vrchatapi/models/group_post_visibility.py +37 -0
- vrchatapi/models/group_privacy.py +37 -0
- vrchatapi/models/group_role.py +309 -0
- vrchatapi/models/group_role_template.py +39 -0
- vrchatapi/models/group_role_template_values.py +254 -0
- vrchatapi/models/group_role_template_values_roles.py +253 -0
- vrchatapi/models/group_search_sort.py +37 -0
- vrchatapi/models/group_transferable.py +215 -0
- vrchatapi/models/group_transferable_requirements.py +266 -0
- vrchatapi/models/group_user_visibility.py +38 -0
- vrchatapi/models/image_animation_style.py +62 -0
- vrchatapi/models/image_loop_style.py +37 -0
- vrchatapi/models/image_mask.py +41 -0
- vrchatapi/models/image_purpose.py +46 -0
- vrchatapi/models/info_push.py +306 -0
- vrchatapi/models/info_push_data.py +288 -0
- vrchatapi/models/info_push_data_article.py +215 -0
- vrchatapi/models/info_push_data_article_content.py +251 -0
- vrchatapi/models/info_push_data_clickable.py +224 -0
- vrchatapi/models/instance.py +597 -0
- vrchatapi/models/instance_content_settings.py +236 -0
- vrchatapi/models/instance_platforms.py +222 -0
- vrchatapi/models/instance_region.py +40 -0
- vrchatapi/models/instance_short_name_response.py +248 -0
- vrchatapi/models/instance_type.py +40 -0
- vrchatapi/models/inventory.py +247 -0
- vrchatapi/models/inventory_consumption_results.py +255 -0
- vrchatapi/models/inventory_default_attributes_value.py +243 -0
- vrchatapi/models/inventory_default_attributes_value_validator.py +211 -0
- vrchatapi/models/inventory_drop.py +331 -0
- vrchatapi/models/inventory_equip_slot.py +39 -0
- vrchatapi/models/inventory_flag.py +43 -0
- vrchatapi/models/inventory_item.py +420 -0
- vrchatapi/models/inventory_item_type.py +42 -0
- vrchatapi/models/inventory_metadata.py +287 -0
- vrchatapi/models/inventory_notification_details.py +244 -0
- vrchatapi/models/inventory_spawn.py +216 -0
- vrchatapi/models/inventory_template.py +351 -0
- vrchatapi/models/inventory_user_attributes.py +250 -0
- vrchatapi/models/invite_message.py +276 -0
- vrchatapi/models/invite_message_type.py +39 -0
- vrchatapi/models/invite_request.py +243 -0
- vrchatapi/models/invite_response.py +235 -0
- vrchatapi/models/jam.py +302 -0
- vrchatapi/models/jam_state_change_dates.py +276 -0
- vrchatapi/models/jam_submission.py +275 -0
- vrchatapi/models/join_group_request.py +234 -0
- vrchatapi/models/license.py +261 -0
- vrchatapi/models/license_action.py +37 -0
- vrchatapi/models/license_group.py +235 -0
- vrchatapi/models/license_type.py +39 -0
- vrchatapi/models/limited_group.py +377 -0
- vrchatapi/models/limited_unity_package.py +251 -0
- vrchatapi/models/limited_user_friend.py +399 -0
- vrchatapi/models/limited_user_groups.py +386 -0
- vrchatapi/models/limited_user_instance.py +430 -0
- vrchatapi/models/limited_user_search.py +395 -0
- vrchatapi/models/limited_world.py +410 -0
- vrchatapi/models/mime_type.py +50 -0
- vrchatapi/models/model_print.py +299 -0
- vrchatapi/models/moderate_user_request.py +217 -0
- vrchatapi/models/moderation_report.py +296 -0
- vrchatapi/models/mutual_friend.py +302 -0
- vrchatapi/models/mutuals.py +217 -0
- vrchatapi/models/notification.py +283 -0
- vrchatapi/models/notification_detail_invite.py +250 -0
- vrchatapi/models/notification_detail_invite_response.py +242 -0
- vrchatapi/models/notification_detail_request_invite.py +239 -0
- vrchatapi/models/notification_detail_request_invite_response.py +242 -0
- vrchatapi/models/notification_detail_vote_to_kick.py +242 -0
- vrchatapi/models/notification_type.py +43 -0
- vrchatapi/models/notification_v2.py +466 -0
- vrchatapi/models/notification_v2_details_boop.py +255 -0
- vrchatapi/models/notification_v2_response.py +259 -0
- vrchatapi/models/notification_v2_type.py +58 -0
- vrchatapi/models/ok_status.py +211 -0
- vrchatapi/models/ok_status2.py +234 -0
- vrchatapi/models/order_option.py +37 -0
- vrchatapi/models/order_option_short.py +37 -0
- vrchatapi/models/paginated_calendar_event_list.py +255 -0
- vrchatapi/models/paginated_group_audit_log_entry_list.py +255 -0
- vrchatapi/models/paginated_moderation_report_list.py +255 -0
- vrchatapi/models/past_display_name.py +241 -0
- vrchatapi/models/pending2_fa_result.py +239 -0
- vrchatapi/models/performance_limiter_info.py +234 -0
- vrchatapi/models/performance_ratings.py +41 -0
- vrchatapi/models/permission.py +280 -0
- vrchatapi/models/permission_data.py +258 -0
- vrchatapi/models/platform_build_info.py +242 -0
- vrchatapi/models/player_moderation.py +276 -0
- vrchatapi/models/player_moderation_type.py +44 -0
- vrchatapi/models/print_files.py +239 -0
- vrchatapi/models/private_profile.py +267 -0
- vrchatapi/models/private_profile_activity.py +292 -0
- vrchatapi/models/product.py +389 -0
- vrchatapi/models/product_listing.py +538 -0
- vrchatapi/models/product_listing_type.py +39 -0
- vrchatapi/models/product_listing_variant.py +272 -0
- vrchatapi/models/product_purchase.py +571 -0
- vrchatapi/models/product_purchase_history.py +256 -0
- vrchatapi/models/product_purchase_location_type.py +46 -0
- vrchatapi/models/product_purchase_product.py +269 -0
- vrchatapi/models/product_purchase_purchase_context.py +250 -0
- vrchatapi/models/product_purchase_record.py +312 -0
- vrchatapi/models/product_type.py +39 -0
- vrchatapi/models/profile_represented_group.py +262 -0
- vrchatapi/models/prop.py +358 -0
- vrchatapi/models/prop_publish_status.py +234 -0
- vrchatapi/models/prop_unity_package.py +269 -0
- vrchatapi/models/public_profile.py +398 -0
- vrchatapi/models/purchase_context_data.py +251 -0
- vrchatapi/models/purchase_product_listing_request.py +281 -0
- vrchatapi/models/region.py +42 -0
- vrchatapi/models/register_user_account_request.py +278 -0
- vrchatapi/models/release_status.py +39 -0
- vrchatapi/models/report_category.py +226 -0
- vrchatapi/models/report_reason.py +216 -0
- vrchatapi/models/represented_group.py +348 -0
- vrchatapi/models/request_invite_request.py +235 -0
- vrchatapi/models/respond_group_join_request.py +217 -0
- vrchatapi/models/respond_notification_v2_request.py +242 -0
- vrchatapi/models/response.py +217 -0
- vrchatapi/models/reward_badge.py +308 -0
- vrchatapi/models/reward_redemption.py +220 -0
- vrchatapi/models/reward_redemption_data.py +224 -0
- vrchatapi/models/reward_redemption_request.py +211 -0
- vrchatapi/models/reward_redemption_result.py +250 -0
- vrchatapi/models/search_group_members200_response.py +224 -0
- vrchatapi/models/seller_eligibility.py +211 -0
- vrchatapi/models/sent_notification.py +278 -0
- vrchatapi/models/service_queue_stats.py +234 -0
- vrchatapi/models/service_status.py +281 -0
- vrchatapi/models/share_inventory_item_direct_request.py +239 -0
- vrchatapi/models/sort_option.py +53 -0
- vrchatapi/models/sort_option_product_purchase.py +36 -0
- vrchatapi/models/store.py +372 -0
- vrchatapi/models/store_context.py +249 -0
- vrchatapi/models/store_shelf.py +304 -0
- vrchatapi/models/store_type.py +38 -0
- vrchatapi/models/store_view.py +40 -0
- vrchatapi/models/submit_moderation_report_request.py +263 -0
- vrchatapi/models/submit_moderation_report_request_details.py +283 -0
- vrchatapi/models/subscription.py +301 -0
- vrchatapi/models/subscription_period.py +40 -0
- vrchatapi/models/success.py +215 -0
- vrchatapi/models/success_flag.py +211 -0
- vrchatapi/models/tilia_kyc.py +246 -0
- vrchatapi/models/tilia_status.py +259 -0
- vrchatapi/models/tilia_tos.py +211 -0
- vrchatapi/models/token_bundle.py +286 -0
- vrchatapi/models/transaction.py +322 -0
- vrchatapi/models/transaction_agreement.py +353 -0
- vrchatapi/models/transaction_status.py +39 -0
- vrchatapi/models/transaction_steam_info.py +271 -0
- vrchatapi/models/transaction_steam_wallet_info.py +227 -0
- vrchatapi/models/transfer_group_request.py +234 -0
- vrchatapi/models/tutorial_status.py +255 -0
- vrchatapi/models/two_factor_auth_code.py +211 -0
- vrchatapi/models/two_factor_email_code.py +211 -0
- vrchatapi/models/two_factor_recovery_codes.py +247 -0
- vrchatapi/models/two_factor_recovery_codes_otp_inner.py +216 -0
- vrchatapi/models/unity_package.py +360 -0
- vrchatapi/models/update_asset_review_notes_request.py +234 -0
- vrchatapi/models/update_avatar_request.py +293 -0
- vrchatapi/models/update_calendar_event_request.py +365 -0
- vrchatapi/models/update_favorite_group_request.py +246 -0
- vrchatapi/models/update_group_gallery_request.py +297 -0
- vrchatapi/models/update_group_member_request.py +256 -0
- vrchatapi/models/update_group_representation_request.py +234 -0
- vrchatapi/models/update_group_request.py +300 -0
- vrchatapi/models/update_group_role_request.py +255 -0
- vrchatapi/models/update_inventory_item_request.py +254 -0
- vrchatapi/models/update_invite_message_request.py +211 -0
- vrchatapi/models/update_listing_request.py +211 -0
- vrchatapi/models/update_product_request.py +261 -0
- vrchatapi/models/update_prop_request.py +303 -0
- vrchatapi/models/update_tilia_tos_request.py +211 -0
- vrchatapi/models/update_user_badge_request.py +216 -0
- vrchatapi/models/update_user_note_request.py +239 -0
- vrchatapi/models/update_user_request.py +358 -0
- vrchatapi/models/update_world_request.py +317 -0
- vrchatapi/models/user.py +549 -0
- vrchatapi/models/user_credits_eligible.py +216 -0
- vrchatapi/models/user_exists.py +242 -0
- vrchatapi/models/user_note.py +273 -0
- vrchatapi/models/user_note_target_user.py +277 -0
- vrchatapi/models/user_state.py +38 -0
- vrchatapi/models/user_status.py +40 -0
- vrchatapi/models/user_subscription.py +330 -0
- vrchatapi/models/user_subscription_eligible.py +274 -0
- vrchatapi/models/verify2_fa_email_code_result.py +211 -0
- vrchatapi/models/verify2_fa_result.py +216 -0
- vrchatapi/models/verify_auth_token_result.py +217 -0
- vrchatapi/models/world.py +459 -0
- vrchatapi/models/world_metadata.py +216 -0
- vrchatapi/models/world_publish_status.py +234 -0
- vrchatapi/py.typed +0 -0
- vrchatapi/rest.py +303 -0
- vrchatapi_async-1.20.8.dev1.dist-info/METADATA +137 -0
- vrchatapi_async-1.20.8.dev1.dist-info/RECORD +362 -0
- vrchatapi_async-1.20.8.dev1.dist-info/WHEEL +5 -0
- vrchatapi_async-1.20.8.dev1.dist-info/licenses/LICENSE +21 -0
- vrchatapi_async-1.20.8.dev1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,4333 @@
|
|
|
1
|
+
"""
|
|
2
|
+
VRChat API Documentation
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
The version of the OpenAPI document: 1.20.8
|
|
6
|
+
Contact: vrchatapi.lpv0t@aries.fyi
|
|
7
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
8
|
+
|
|
9
|
+
Do not edit the class manually.
|
|
10
|
+
""" # noqa: E501
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
import warnings
|
|
14
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
15
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
16
|
+
from typing_extensions import Annotated
|
|
17
|
+
|
|
18
|
+
from pydantic import Field, StrictBool, StrictStr, field_validator
|
|
19
|
+
from typing import List, Optional
|
|
20
|
+
from typing_extensions import Annotated
|
|
21
|
+
from vrchatapi.models.equip_inventory_item_request import EquipInventoryItemRequest
|
|
22
|
+
from vrchatapi.models.inventory import Inventory
|
|
23
|
+
from vrchatapi.models.inventory_consumption_results import InventoryConsumptionResults
|
|
24
|
+
from vrchatapi.models.inventory_drop import InventoryDrop
|
|
25
|
+
from vrchatapi.models.inventory_equip_slot import InventoryEquipSlot
|
|
26
|
+
from vrchatapi.models.inventory_flag import InventoryFlag
|
|
27
|
+
from vrchatapi.models.inventory_item import InventoryItem
|
|
28
|
+
from vrchatapi.models.inventory_item_type import InventoryItemType
|
|
29
|
+
from vrchatapi.models.inventory_spawn import InventorySpawn
|
|
30
|
+
from vrchatapi.models.inventory_template import InventoryTemplate
|
|
31
|
+
from vrchatapi.models.ok_status import OkStatus
|
|
32
|
+
from vrchatapi.models.reward_redemption_request import RewardRedemptionRequest
|
|
33
|
+
from vrchatapi.models.reward_redemption_result import RewardRedemptionResult
|
|
34
|
+
from vrchatapi.models.share_inventory_item_direct_request import ShareInventoryItemDirectRequest
|
|
35
|
+
from vrchatapi.models.success_flag import SuccessFlag
|
|
36
|
+
from vrchatapi.models.update_inventory_item_request import UpdateInventoryItemRequest
|
|
37
|
+
|
|
38
|
+
from vrchatapi.api_client import ApiClient, RequestSerialized
|
|
39
|
+
from vrchatapi.api_response import ApiResponse
|
|
40
|
+
from vrchatapi.rest import RESTResponseType
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class InventoryApi:
|
|
44
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
45
|
+
Ref: https://openapi-generator.tech
|
|
46
|
+
|
|
47
|
+
Do not edit the class manually.
|
|
48
|
+
"""
|
|
49
|
+
|
|
50
|
+
def __init__(self, api_client=None) -> None:
|
|
51
|
+
if api_client is None:
|
|
52
|
+
api_client = ApiClient.get_default()
|
|
53
|
+
self.api_client = api_client
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
@validate_call
|
|
57
|
+
async def consume_own_inventory_item(
|
|
58
|
+
self,
|
|
59
|
+
inventory_item_id: Annotated[StrictStr, Field(description="Must be a valid inventory item ID.")],
|
|
60
|
+
_request_timeout: Union[
|
|
61
|
+
None,
|
|
62
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
63
|
+
Tuple[
|
|
64
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
65
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
66
|
+
]
|
|
67
|
+
] = None,
|
|
68
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
69
|
+
_content_type: Optional[StrictStr] = None,
|
|
70
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
71
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
72
|
+
) -> InventoryConsumptionResults:
|
|
73
|
+
"""Consume Own Inventory Item
|
|
74
|
+
|
|
75
|
+
Returns the modified InventoryItem object as held by the currently logged in user.
|
|
76
|
+
|
|
77
|
+
:param inventory_item_id: Must be a valid inventory item ID. (required)
|
|
78
|
+
:type inventory_item_id: str
|
|
79
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
80
|
+
number provided, it will be total request
|
|
81
|
+
timeout. It can also be a pair (tuple) of
|
|
82
|
+
(connection, read) timeouts.
|
|
83
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
84
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
85
|
+
request; this effectively ignores the
|
|
86
|
+
authentication in the spec for a single request.
|
|
87
|
+
:type _request_auth: dict, optional
|
|
88
|
+
:param _content_type: force content-type for the request.
|
|
89
|
+
:type _content_type: str, Optional
|
|
90
|
+
:param _headers: set to override the headers for a single
|
|
91
|
+
request; this effectively ignores the headers
|
|
92
|
+
in the spec for a single request.
|
|
93
|
+
:type _headers: dict, optional
|
|
94
|
+
:param _host_index: set to override the host_index for a single
|
|
95
|
+
request; this effectively ignores the host_index
|
|
96
|
+
in the spec for a single request.
|
|
97
|
+
:type _host_index: int, optional
|
|
98
|
+
:return: Returns the result object.
|
|
99
|
+
""" # noqa: E501
|
|
100
|
+
|
|
101
|
+
_param = self._consume_own_inventory_item_serialize(
|
|
102
|
+
inventory_item_id=inventory_item_id,
|
|
103
|
+
_request_auth=_request_auth,
|
|
104
|
+
_content_type=_content_type,
|
|
105
|
+
_headers=_headers,
|
|
106
|
+
_host_index=_host_index
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
110
|
+
'200': "InventoryConsumptionResults",
|
|
111
|
+
'400': "Error",
|
|
112
|
+
'401': "Error",
|
|
113
|
+
}
|
|
114
|
+
response_data = await self.api_client.call_api(
|
|
115
|
+
*_param,
|
|
116
|
+
_request_timeout=_request_timeout
|
|
117
|
+
)
|
|
118
|
+
await response_data.read()
|
|
119
|
+
return self.api_client.response_deserialize(
|
|
120
|
+
response_data=response_data,
|
|
121
|
+
response_types_map=_response_types_map,
|
|
122
|
+
).data
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
@validate_call
|
|
126
|
+
async def consume_own_inventory_item_with_http_info(
|
|
127
|
+
self,
|
|
128
|
+
inventory_item_id: Annotated[StrictStr, Field(description="Must be a valid inventory item ID.")],
|
|
129
|
+
_request_timeout: Union[
|
|
130
|
+
None,
|
|
131
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
132
|
+
Tuple[
|
|
133
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
134
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
135
|
+
]
|
|
136
|
+
] = None,
|
|
137
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
138
|
+
_content_type: Optional[StrictStr] = None,
|
|
139
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
140
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
141
|
+
) -> ApiResponse[InventoryConsumptionResults]:
|
|
142
|
+
"""Consume Own Inventory Item
|
|
143
|
+
|
|
144
|
+
Returns the modified InventoryItem object as held by the currently logged in user.
|
|
145
|
+
|
|
146
|
+
:param inventory_item_id: Must be a valid inventory item ID. (required)
|
|
147
|
+
:type inventory_item_id: str
|
|
148
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
149
|
+
number provided, it will be total request
|
|
150
|
+
timeout. It can also be a pair (tuple) of
|
|
151
|
+
(connection, read) timeouts.
|
|
152
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
153
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
154
|
+
request; this effectively ignores the
|
|
155
|
+
authentication in the spec for a single request.
|
|
156
|
+
:type _request_auth: dict, optional
|
|
157
|
+
:param _content_type: force content-type for the request.
|
|
158
|
+
:type _content_type: str, Optional
|
|
159
|
+
:param _headers: set to override the headers for a single
|
|
160
|
+
request; this effectively ignores the headers
|
|
161
|
+
in the spec for a single request.
|
|
162
|
+
:type _headers: dict, optional
|
|
163
|
+
:param _host_index: set to override the host_index for a single
|
|
164
|
+
request; this effectively ignores the host_index
|
|
165
|
+
in the spec for a single request.
|
|
166
|
+
:type _host_index: int, optional
|
|
167
|
+
:return: Returns the result object.
|
|
168
|
+
""" # noqa: E501
|
|
169
|
+
|
|
170
|
+
_param = self._consume_own_inventory_item_serialize(
|
|
171
|
+
inventory_item_id=inventory_item_id,
|
|
172
|
+
_request_auth=_request_auth,
|
|
173
|
+
_content_type=_content_type,
|
|
174
|
+
_headers=_headers,
|
|
175
|
+
_host_index=_host_index
|
|
176
|
+
)
|
|
177
|
+
|
|
178
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
179
|
+
'200': "InventoryConsumptionResults",
|
|
180
|
+
'400': "Error",
|
|
181
|
+
'401': "Error",
|
|
182
|
+
}
|
|
183
|
+
response_data = await self.api_client.call_api(
|
|
184
|
+
*_param,
|
|
185
|
+
_request_timeout=_request_timeout
|
|
186
|
+
)
|
|
187
|
+
await response_data.read()
|
|
188
|
+
return self.api_client.response_deserialize(
|
|
189
|
+
response_data=response_data,
|
|
190
|
+
response_types_map=_response_types_map,
|
|
191
|
+
)
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
@validate_call
|
|
195
|
+
async def consume_own_inventory_item_without_preload_content(
|
|
196
|
+
self,
|
|
197
|
+
inventory_item_id: Annotated[StrictStr, Field(description="Must be a valid inventory item ID.")],
|
|
198
|
+
_request_timeout: Union[
|
|
199
|
+
None,
|
|
200
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
201
|
+
Tuple[
|
|
202
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
203
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
204
|
+
]
|
|
205
|
+
] = None,
|
|
206
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
207
|
+
_content_type: Optional[StrictStr] = None,
|
|
208
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
209
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
210
|
+
) -> RESTResponseType:
|
|
211
|
+
"""Consume Own Inventory Item
|
|
212
|
+
|
|
213
|
+
Returns the modified InventoryItem object as held by the currently logged in user.
|
|
214
|
+
|
|
215
|
+
:param inventory_item_id: Must be a valid inventory item ID. (required)
|
|
216
|
+
:type inventory_item_id: str
|
|
217
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
218
|
+
number provided, it will be total request
|
|
219
|
+
timeout. It can also be a pair (tuple) of
|
|
220
|
+
(connection, read) timeouts.
|
|
221
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
222
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
223
|
+
request; this effectively ignores the
|
|
224
|
+
authentication in the spec for a single request.
|
|
225
|
+
:type _request_auth: dict, optional
|
|
226
|
+
:param _content_type: force content-type for the request.
|
|
227
|
+
:type _content_type: str, Optional
|
|
228
|
+
:param _headers: set to override the headers for a single
|
|
229
|
+
request; this effectively ignores the headers
|
|
230
|
+
in the spec for a single request.
|
|
231
|
+
:type _headers: dict, optional
|
|
232
|
+
:param _host_index: set to override the host_index for a single
|
|
233
|
+
request; this effectively ignores the host_index
|
|
234
|
+
in the spec for a single request.
|
|
235
|
+
:type _host_index: int, optional
|
|
236
|
+
:return: Returns the result object.
|
|
237
|
+
""" # noqa: E501
|
|
238
|
+
|
|
239
|
+
_param = self._consume_own_inventory_item_serialize(
|
|
240
|
+
inventory_item_id=inventory_item_id,
|
|
241
|
+
_request_auth=_request_auth,
|
|
242
|
+
_content_type=_content_type,
|
|
243
|
+
_headers=_headers,
|
|
244
|
+
_host_index=_host_index
|
|
245
|
+
)
|
|
246
|
+
|
|
247
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
248
|
+
'200': "InventoryConsumptionResults",
|
|
249
|
+
'400': "Error",
|
|
250
|
+
'401': "Error",
|
|
251
|
+
}
|
|
252
|
+
response_data = await self.api_client.call_api(
|
|
253
|
+
*_param,
|
|
254
|
+
_request_timeout=_request_timeout
|
|
255
|
+
)
|
|
256
|
+
return response_data.response
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
def _consume_own_inventory_item_serialize(
|
|
260
|
+
self,
|
|
261
|
+
inventory_item_id,
|
|
262
|
+
_request_auth,
|
|
263
|
+
_content_type,
|
|
264
|
+
_headers,
|
|
265
|
+
_host_index,
|
|
266
|
+
) -> RequestSerialized:
|
|
267
|
+
|
|
268
|
+
_host = None
|
|
269
|
+
|
|
270
|
+
_collection_formats: Dict[str, str] = {
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
_path_params: Dict[str, str] = {}
|
|
274
|
+
_query_params: List[Tuple[str, str]] = []
|
|
275
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
276
|
+
_form_params: List[Tuple[str, str]] = []
|
|
277
|
+
_files: Dict[
|
|
278
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
279
|
+
] = {}
|
|
280
|
+
_body_params: Optional[bytes] = None
|
|
281
|
+
|
|
282
|
+
# process the path parameters
|
|
283
|
+
if inventory_item_id is not None:
|
|
284
|
+
_path_params['inventoryItemId'] = inventory_item_id
|
|
285
|
+
# process the query parameters
|
|
286
|
+
# process the header parameters
|
|
287
|
+
# process the form parameters
|
|
288
|
+
# process the body parameter
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
# set the HTTP header `Accept`
|
|
292
|
+
if 'Accept' not in _header_params:
|
|
293
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
294
|
+
[
|
|
295
|
+
'application/json'
|
|
296
|
+
]
|
|
297
|
+
)
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
# authentication setting
|
|
301
|
+
_auth_settings: List[str] = [
|
|
302
|
+
'authCookie'
|
|
303
|
+
]
|
|
304
|
+
|
|
305
|
+
return self.api_client.param_serialize(
|
|
306
|
+
method='PUT',
|
|
307
|
+
resource_path='/inventory/{inventoryItemId}/consume',
|
|
308
|
+
path_params=_path_params,
|
|
309
|
+
query_params=_query_params,
|
|
310
|
+
header_params=_header_params,
|
|
311
|
+
body=_body_params,
|
|
312
|
+
post_params=_form_params,
|
|
313
|
+
files=_files,
|
|
314
|
+
auth_settings=_auth_settings,
|
|
315
|
+
collection_formats=_collection_formats,
|
|
316
|
+
_host=_host,
|
|
317
|
+
_request_auth=_request_auth
|
|
318
|
+
)
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
@validate_call
|
|
324
|
+
async def delete_own_inventory_item(
|
|
325
|
+
self,
|
|
326
|
+
inventory_item_id: Annotated[StrictStr, Field(description="Must be a valid inventory item ID.")],
|
|
327
|
+
_request_timeout: Union[
|
|
328
|
+
None,
|
|
329
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
330
|
+
Tuple[
|
|
331
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
332
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
333
|
+
]
|
|
334
|
+
] = None,
|
|
335
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
336
|
+
_content_type: Optional[StrictStr] = None,
|
|
337
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
338
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
339
|
+
) -> SuccessFlag:
|
|
340
|
+
"""Delete Own Inventory Item
|
|
341
|
+
|
|
342
|
+
Deletes an InventoryItem from the inventory of the currently logged in user.
|
|
343
|
+
|
|
344
|
+
:param inventory_item_id: Must be a valid inventory item ID. (required)
|
|
345
|
+
:type inventory_item_id: str
|
|
346
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
347
|
+
number provided, it will be total request
|
|
348
|
+
timeout. It can also be a pair (tuple) of
|
|
349
|
+
(connection, read) timeouts.
|
|
350
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
351
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
352
|
+
request; this effectively ignores the
|
|
353
|
+
authentication in the spec for a single request.
|
|
354
|
+
:type _request_auth: dict, optional
|
|
355
|
+
:param _content_type: force content-type for the request.
|
|
356
|
+
:type _content_type: str, Optional
|
|
357
|
+
:param _headers: set to override the headers for a single
|
|
358
|
+
request; this effectively ignores the headers
|
|
359
|
+
in the spec for a single request.
|
|
360
|
+
:type _headers: dict, optional
|
|
361
|
+
:param _host_index: set to override the host_index for a single
|
|
362
|
+
request; this effectively ignores the host_index
|
|
363
|
+
in the spec for a single request.
|
|
364
|
+
:type _host_index: int, optional
|
|
365
|
+
:return: Returns the result object.
|
|
366
|
+
""" # noqa: E501
|
|
367
|
+
|
|
368
|
+
_param = self._delete_own_inventory_item_serialize(
|
|
369
|
+
inventory_item_id=inventory_item_id,
|
|
370
|
+
_request_auth=_request_auth,
|
|
371
|
+
_content_type=_content_type,
|
|
372
|
+
_headers=_headers,
|
|
373
|
+
_host_index=_host_index
|
|
374
|
+
)
|
|
375
|
+
|
|
376
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
377
|
+
'200': "SuccessFlag",
|
|
378
|
+
'401': "Error",
|
|
379
|
+
}
|
|
380
|
+
response_data = await self.api_client.call_api(
|
|
381
|
+
*_param,
|
|
382
|
+
_request_timeout=_request_timeout
|
|
383
|
+
)
|
|
384
|
+
await response_data.read()
|
|
385
|
+
return self.api_client.response_deserialize(
|
|
386
|
+
response_data=response_data,
|
|
387
|
+
response_types_map=_response_types_map,
|
|
388
|
+
).data
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
@validate_call
|
|
392
|
+
async def delete_own_inventory_item_with_http_info(
|
|
393
|
+
self,
|
|
394
|
+
inventory_item_id: Annotated[StrictStr, Field(description="Must be a valid inventory item ID.")],
|
|
395
|
+
_request_timeout: Union[
|
|
396
|
+
None,
|
|
397
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
398
|
+
Tuple[
|
|
399
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
400
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
401
|
+
]
|
|
402
|
+
] = None,
|
|
403
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
404
|
+
_content_type: Optional[StrictStr] = None,
|
|
405
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
406
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
407
|
+
) -> ApiResponse[SuccessFlag]:
|
|
408
|
+
"""Delete Own Inventory Item
|
|
409
|
+
|
|
410
|
+
Deletes an InventoryItem from the inventory of the currently logged in user.
|
|
411
|
+
|
|
412
|
+
:param inventory_item_id: Must be a valid inventory item ID. (required)
|
|
413
|
+
:type inventory_item_id: str
|
|
414
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
415
|
+
number provided, it will be total request
|
|
416
|
+
timeout. It can also be a pair (tuple) of
|
|
417
|
+
(connection, read) timeouts.
|
|
418
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
419
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
420
|
+
request; this effectively ignores the
|
|
421
|
+
authentication in the spec for a single request.
|
|
422
|
+
:type _request_auth: dict, optional
|
|
423
|
+
:param _content_type: force content-type for the request.
|
|
424
|
+
:type _content_type: str, Optional
|
|
425
|
+
:param _headers: set to override the headers for a single
|
|
426
|
+
request; this effectively ignores the headers
|
|
427
|
+
in the spec for a single request.
|
|
428
|
+
:type _headers: dict, optional
|
|
429
|
+
:param _host_index: set to override the host_index for a single
|
|
430
|
+
request; this effectively ignores the host_index
|
|
431
|
+
in the spec for a single request.
|
|
432
|
+
:type _host_index: int, optional
|
|
433
|
+
:return: Returns the result object.
|
|
434
|
+
""" # noqa: E501
|
|
435
|
+
|
|
436
|
+
_param = self._delete_own_inventory_item_serialize(
|
|
437
|
+
inventory_item_id=inventory_item_id,
|
|
438
|
+
_request_auth=_request_auth,
|
|
439
|
+
_content_type=_content_type,
|
|
440
|
+
_headers=_headers,
|
|
441
|
+
_host_index=_host_index
|
|
442
|
+
)
|
|
443
|
+
|
|
444
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
445
|
+
'200': "SuccessFlag",
|
|
446
|
+
'401': "Error",
|
|
447
|
+
}
|
|
448
|
+
response_data = await self.api_client.call_api(
|
|
449
|
+
*_param,
|
|
450
|
+
_request_timeout=_request_timeout
|
|
451
|
+
)
|
|
452
|
+
await response_data.read()
|
|
453
|
+
return self.api_client.response_deserialize(
|
|
454
|
+
response_data=response_data,
|
|
455
|
+
response_types_map=_response_types_map,
|
|
456
|
+
)
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
@validate_call
|
|
460
|
+
async def delete_own_inventory_item_without_preload_content(
|
|
461
|
+
self,
|
|
462
|
+
inventory_item_id: Annotated[StrictStr, Field(description="Must be a valid inventory item ID.")],
|
|
463
|
+
_request_timeout: Union[
|
|
464
|
+
None,
|
|
465
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
466
|
+
Tuple[
|
|
467
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
468
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
469
|
+
]
|
|
470
|
+
] = None,
|
|
471
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
472
|
+
_content_type: Optional[StrictStr] = None,
|
|
473
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
474
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
475
|
+
) -> RESTResponseType:
|
|
476
|
+
"""Delete Own Inventory Item
|
|
477
|
+
|
|
478
|
+
Deletes an InventoryItem from the inventory of the currently logged in user.
|
|
479
|
+
|
|
480
|
+
:param inventory_item_id: Must be a valid inventory item ID. (required)
|
|
481
|
+
:type inventory_item_id: str
|
|
482
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
483
|
+
number provided, it will be total request
|
|
484
|
+
timeout. It can also be a pair (tuple) of
|
|
485
|
+
(connection, read) timeouts.
|
|
486
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
487
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
488
|
+
request; this effectively ignores the
|
|
489
|
+
authentication in the spec for a single request.
|
|
490
|
+
:type _request_auth: dict, optional
|
|
491
|
+
:param _content_type: force content-type for the request.
|
|
492
|
+
:type _content_type: str, Optional
|
|
493
|
+
:param _headers: set to override the headers for a single
|
|
494
|
+
request; this effectively ignores the headers
|
|
495
|
+
in the spec for a single request.
|
|
496
|
+
:type _headers: dict, optional
|
|
497
|
+
:param _host_index: set to override the host_index for a single
|
|
498
|
+
request; this effectively ignores the host_index
|
|
499
|
+
in the spec for a single request.
|
|
500
|
+
:type _host_index: int, optional
|
|
501
|
+
:return: Returns the result object.
|
|
502
|
+
""" # noqa: E501
|
|
503
|
+
|
|
504
|
+
_param = self._delete_own_inventory_item_serialize(
|
|
505
|
+
inventory_item_id=inventory_item_id,
|
|
506
|
+
_request_auth=_request_auth,
|
|
507
|
+
_content_type=_content_type,
|
|
508
|
+
_headers=_headers,
|
|
509
|
+
_host_index=_host_index
|
|
510
|
+
)
|
|
511
|
+
|
|
512
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
513
|
+
'200': "SuccessFlag",
|
|
514
|
+
'401': "Error",
|
|
515
|
+
}
|
|
516
|
+
response_data = await self.api_client.call_api(
|
|
517
|
+
*_param,
|
|
518
|
+
_request_timeout=_request_timeout
|
|
519
|
+
)
|
|
520
|
+
return response_data.response
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
def _delete_own_inventory_item_serialize(
|
|
524
|
+
self,
|
|
525
|
+
inventory_item_id,
|
|
526
|
+
_request_auth,
|
|
527
|
+
_content_type,
|
|
528
|
+
_headers,
|
|
529
|
+
_host_index,
|
|
530
|
+
) -> RequestSerialized:
|
|
531
|
+
|
|
532
|
+
_host = None
|
|
533
|
+
|
|
534
|
+
_collection_formats: Dict[str, str] = {
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
_path_params: Dict[str, str] = {}
|
|
538
|
+
_query_params: List[Tuple[str, str]] = []
|
|
539
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
540
|
+
_form_params: List[Tuple[str, str]] = []
|
|
541
|
+
_files: Dict[
|
|
542
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
543
|
+
] = {}
|
|
544
|
+
_body_params: Optional[bytes] = None
|
|
545
|
+
|
|
546
|
+
# process the path parameters
|
|
547
|
+
if inventory_item_id is not None:
|
|
548
|
+
_path_params['inventoryItemId'] = inventory_item_id
|
|
549
|
+
# process the query parameters
|
|
550
|
+
# process the header parameters
|
|
551
|
+
# process the form parameters
|
|
552
|
+
# process the body parameter
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
# set the HTTP header `Accept`
|
|
556
|
+
if 'Accept' not in _header_params:
|
|
557
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
558
|
+
[
|
|
559
|
+
'application/json'
|
|
560
|
+
]
|
|
561
|
+
)
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
# authentication setting
|
|
565
|
+
_auth_settings: List[str] = [
|
|
566
|
+
'authCookie'
|
|
567
|
+
]
|
|
568
|
+
|
|
569
|
+
return self.api_client.param_serialize(
|
|
570
|
+
method='DELETE',
|
|
571
|
+
resource_path='/inventory/{inventoryItemId}',
|
|
572
|
+
path_params=_path_params,
|
|
573
|
+
query_params=_query_params,
|
|
574
|
+
header_params=_header_params,
|
|
575
|
+
body=_body_params,
|
|
576
|
+
post_params=_form_params,
|
|
577
|
+
files=_files,
|
|
578
|
+
auth_settings=_auth_settings,
|
|
579
|
+
collection_formats=_collection_formats,
|
|
580
|
+
_host=_host,
|
|
581
|
+
_request_auth=_request_auth
|
|
582
|
+
)
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
@validate_call
|
|
588
|
+
async def equip_own_inventory_item(
|
|
589
|
+
self,
|
|
590
|
+
inventory_item_id: Annotated[StrictStr, Field(description="Must be a valid inventory item ID.")],
|
|
591
|
+
equip_inventory_item_request: Optional[EquipInventoryItemRequest] = None,
|
|
592
|
+
_request_timeout: Union[
|
|
593
|
+
None,
|
|
594
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
595
|
+
Tuple[
|
|
596
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
597
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
598
|
+
]
|
|
599
|
+
] = None,
|
|
600
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
601
|
+
_content_type: Optional[StrictStr] = None,
|
|
602
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
603
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
604
|
+
) -> InventoryItem:
|
|
605
|
+
"""Equip Own Inventory Item
|
|
606
|
+
|
|
607
|
+
Returns the modified InventoryItem object as held by the currently logged in user.
|
|
608
|
+
|
|
609
|
+
:param inventory_item_id: Must be a valid inventory item ID. (required)
|
|
610
|
+
:type inventory_item_id: str
|
|
611
|
+
:param equip_inventory_item_request:
|
|
612
|
+
:type equip_inventory_item_request: EquipInventoryItemRequest
|
|
613
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
614
|
+
number provided, it will be total request
|
|
615
|
+
timeout. It can also be a pair (tuple) of
|
|
616
|
+
(connection, read) timeouts.
|
|
617
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
618
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
619
|
+
request; this effectively ignores the
|
|
620
|
+
authentication in the spec for a single request.
|
|
621
|
+
:type _request_auth: dict, optional
|
|
622
|
+
:param _content_type: force content-type for the request.
|
|
623
|
+
:type _content_type: str, Optional
|
|
624
|
+
:param _headers: set to override the headers for a single
|
|
625
|
+
request; this effectively ignores the headers
|
|
626
|
+
in the spec for a single request.
|
|
627
|
+
:type _headers: dict, optional
|
|
628
|
+
:param _host_index: set to override the host_index for a single
|
|
629
|
+
request; this effectively ignores the host_index
|
|
630
|
+
in the spec for a single request.
|
|
631
|
+
:type _host_index: int, optional
|
|
632
|
+
:return: Returns the result object.
|
|
633
|
+
""" # noqa: E501
|
|
634
|
+
|
|
635
|
+
_param = self._equip_own_inventory_item_serialize(
|
|
636
|
+
inventory_item_id=inventory_item_id,
|
|
637
|
+
equip_inventory_item_request=equip_inventory_item_request,
|
|
638
|
+
_request_auth=_request_auth,
|
|
639
|
+
_content_type=_content_type,
|
|
640
|
+
_headers=_headers,
|
|
641
|
+
_host_index=_host_index
|
|
642
|
+
)
|
|
643
|
+
|
|
644
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
645
|
+
'200': "InventoryItem",
|
|
646
|
+
'400': "Error",
|
|
647
|
+
'401': "Error",
|
|
648
|
+
}
|
|
649
|
+
response_data = await self.api_client.call_api(
|
|
650
|
+
*_param,
|
|
651
|
+
_request_timeout=_request_timeout
|
|
652
|
+
)
|
|
653
|
+
await response_data.read()
|
|
654
|
+
return self.api_client.response_deserialize(
|
|
655
|
+
response_data=response_data,
|
|
656
|
+
response_types_map=_response_types_map,
|
|
657
|
+
).data
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
@validate_call
|
|
661
|
+
async def equip_own_inventory_item_with_http_info(
|
|
662
|
+
self,
|
|
663
|
+
inventory_item_id: Annotated[StrictStr, Field(description="Must be a valid inventory item ID.")],
|
|
664
|
+
equip_inventory_item_request: Optional[EquipInventoryItemRequest] = None,
|
|
665
|
+
_request_timeout: Union[
|
|
666
|
+
None,
|
|
667
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
668
|
+
Tuple[
|
|
669
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
670
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
671
|
+
]
|
|
672
|
+
] = None,
|
|
673
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
674
|
+
_content_type: Optional[StrictStr] = None,
|
|
675
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
676
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
677
|
+
) -> ApiResponse[InventoryItem]:
|
|
678
|
+
"""Equip Own Inventory Item
|
|
679
|
+
|
|
680
|
+
Returns the modified InventoryItem object as held by the currently logged in user.
|
|
681
|
+
|
|
682
|
+
:param inventory_item_id: Must be a valid inventory item ID. (required)
|
|
683
|
+
:type inventory_item_id: str
|
|
684
|
+
:param equip_inventory_item_request:
|
|
685
|
+
:type equip_inventory_item_request: EquipInventoryItemRequest
|
|
686
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
687
|
+
number provided, it will be total request
|
|
688
|
+
timeout. It can also be a pair (tuple) of
|
|
689
|
+
(connection, read) timeouts.
|
|
690
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
691
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
692
|
+
request; this effectively ignores the
|
|
693
|
+
authentication in the spec for a single request.
|
|
694
|
+
:type _request_auth: dict, optional
|
|
695
|
+
:param _content_type: force content-type for the request.
|
|
696
|
+
:type _content_type: str, Optional
|
|
697
|
+
:param _headers: set to override the headers for a single
|
|
698
|
+
request; this effectively ignores the headers
|
|
699
|
+
in the spec for a single request.
|
|
700
|
+
:type _headers: dict, optional
|
|
701
|
+
:param _host_index: set to override the host_index for a single
|
|
702
|
+
request; this effectively ignores the host_index
|
|
703
|
+
in the spec for a single request.
|
|
704
|
+
:type _host_index: int, optional
|
|
705
|
+
:return: Returns the result object.
|
|
706
|
+
""" # noqa: E501
|
|
707
|
+
|
|
708
|
+
_param = self._equip_own_inventory_item_serialize(
|
|
709
|
+
inventory_item_id=inventory_item_id,
|
|
710
|
+
equip_inventory_item_request=equip_inventory_item_request,
|
|
711
|
+
_request_auth=_request_auth,
|
|
712
|
+
_content_type=_content_type,
|
|
713
|
+
_headers=_headers,
|
|
714
|
+
_host_index=_host_index
|
|
715
|
+
)
|
|
716
|
+
|
|
717
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
718
|
+
'200': "InventoryItem",
|
|
719
|
+
'400': "Error",
|
|
720
|
+
'401': "Error",
|
|
721
|
+
}
|
|
722
|
+
response_data = await self.api_client.call_api(
|
|
723
|
+
*_param,
|
|
724
|
+
_request_timeout=_request_timeout
|
|
725
|
+
)
|
|
726
|
+
await response_data.read()
|
|
727
|
+
return self.api_client.response_deserialize(
|
|
728
|
+
response_data=response_data,
|
|
729
|
+
response_types_map=_response_types_map,
|
|
730
|
+
)
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
@validate_call
|
|
734
|
+
async def equip_own_inventory_item_without_preload_content(
|
|
735
|
+
self,
|
|
736
|
+
inventory_item_id: Annotated[StrictStr, Field(description="Must be a valid inventory item ID.")],
|
|
737
|
+
equip_inventory_item_request: Optional[EquipInventoryItemRequest] = None,
|
|
738
|
+
_request_timeout: Union[
|
|
739
|
+
None,
|
|
740
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
741
|
+
Tuple[
|
|
742
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
743
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
744
|
+
]
|
|
745
|
+
] = None,
|
|
746
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
747
|
+
_content_type: Optional[StrictStr] = None,
|
|
748
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
749
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
750
|
+
) -> RESTResponseType:
|
|
751
|
+
"""Equip Own Inventory Item
|
|
752
|
+
|
|
753
|
+
Returns the modified InventoryItem object as held by the currently logged in user.
|
|
754
|
+
|
|
755
|
+
:param inventory_item_id: Must be a valid inventory item ID. (required)
|
|
756
|
+
:type inventory_item_id: str
|
|
757
|
+
:param equip_inventory_item_request:
|
|
758
|
+
:type equip_inventory_item_request: EquipInventoryItemRequest
|
|
759
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
760
|
+
number provided, it will be total request
|
|
761
|
+
timeout. It can also be a pair (tuple) of
|
|
762
|
+
(connection, read) timeouts.
|
|
763
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
764
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
765
|
+
request; this effectively ignores the
|
|
766
|
+
authentication in the spec for a single request.
|
|
767
|
+
:type _request_auth: dict, optional
|
|
768
|
+
:param _content_type: force content-type for the request.
|
|
769
|
+
:type _content_type: str, Optional
|
|
770
|
+
:param _headers: set to override the headers for a single
|
|
771
|
+
request; this effectively ignores the headers
|
|
772
|
+
in the spec for a single request.
|
|
773
|
+
:type _headers: dict, optional
|
|
774
|
+
:param _host_index: set to override the host_index for a single
|
|
775
|
+
request; this effectively ignores the host_index
|
|
776
|
+
in the spec for a single request.
|
|
777
|
+
:type _host_index: int, optional
|
|
778
|
+
:return: Returns the result object.
|
|
779
|
+
""" # noqa: E501
|
|
780
|
+
|
|
781
|
+
_param = self._equip_own_inventory_item_serialize(
|
|
782
|
+
inventory_item_id=inventory_item_id,
|
|
783
|
+
equip_inventory_item_request=equip_inventory_item_request,
|
|
784
|
+
_request_auth=_request_auth,
|
|
785
|
+
_content_type=_content_type,
|
|
786
|
+
_headers=_headers,
|
|
787
|
+
_host_index=_host_index
|
|
788
|
+
)
|
|
789
|
+
|
|
790
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
791
|
+
'200': "InventoryItem",
|
|
792
|
+
'400': "Error",
|
|
793
|
+
'401': "Error",
|
|
794
|
+
}
|
|
795
|
+
response_data = await self.api_client.call_api(
|
|
796
|
+
*_param,
|
|
797
|
+
_request_timeout=_request_timeout
|
|
798
|
+
)
|
|
799
|
+
return response_data.response
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
def _equip_own_inventory_item_serialize(
|
|
803
|
+
self,
|
|
804
|
+
inventory_item_id,
|
|
805
|
+
equip_inventory_item_request,
|
|
806
|
+
_request_auth,
|
|
807
|
+
_content_type,
|
|
808
|
+
_headers,
|
|
809
|
+
_host_index,
|
|
810
|
+
) -> RequestSerialized:
|
|
811
|
+
|
|
812
|
+
_host = None
|
|
813
|
+
|
|
814
|
+
_collection_formats: Dict[str, str] = {
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
_path_params: Dict[str, str] = {}
|
|
818
|
+
_query_params: List[Tuple[str, str]] = []
|
|
819
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
820
|
+
_form_params: List[Tuple[str, str]] = []
|
|
821
|
+
_files: Dict[
|
|
822
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
823
|
+
] = {}
|
|
824
|
+
_body_params: Optional[bytes] = None
|
|
825
|
+
|
|
826
|
+
# process the path parameters
|
|
827
|
+
if inventory_item_id is not None:
|
|
828
|
+
_path_params['inventoryItemId'] = inventory_item_id
|
|
829
|
+
# process the query parameters
|
|
830
|
+
# process the header parameters
|
|
831
|
+
# process the form parameters
|
|
832
|
+
# process the body parameter
|
|
833
|
+
if equip_inventory_item_request is not None:
|
|
834
|
+
_body_params = equip_inventory_item_request
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
# set the HTTP header `Accept`
|
|
838
|
+
if 'Accept' not in _header_params:
|
|
839
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
840
|
+
[
|
|
841
|
+
'application/json'
|
|
842
|
+
]
|
|
843
|
+
)
|
|
844
|
+
|
|
845
|
+
# set the HTTP header `Content-Type`
|
|
846
|
+
if _content_type:
|
|
847
|
+
_header_params['Content-Type'] = _content_type
|
|
848
|
+
else:
|
|
849
|
+
_default_content_type = (
|
|
850
|
+
self.api_client.select_header_content_type(
|
|
851
|
+
[
|
|
852
|
+
'application/json'
|
|
853
|
+
]
|
|
854
|
+
)
|
|
855
|
+
)
|
|
856
|
+
if _default_content_type is not None:
|
|
857
|
+
_header_params['Content-Type'] = _default_content_type
|
|
858
|
+
|
|
859
|
+
# authentication setting
|
|
860
|
+
_auth_settings: List[str] = [
|
|
861
|
+
'authCookie'
|
|
862
|
+
]
|
|
863
|
+
|
|
864
|
+
return self.api_client.param_serialize(
|
|
865
|
+
method='PUT',
|
|
866
|
+
resource_path='/inventory/{inventoryItemId}/equip',
|
|
867
|
+
path_params=_path_params,
|
|
868
|
+
query_params=_query_params,
|
|
869
|
+
header_params=_header_params,
|
|
870
|
+
body=_body_params,
|
|
871
|
+
post_params=_form_params,
|
|
872
|
+
files=_files,
|
|
873
|
+
auth_settings=_auth_settings,
|
|
874
|
+
collection_formats=_collection_formats,
|
|
875
|
+
_host=_host,
|
|
876
|
+
_request_auth=_request_auth
|
|
877
|
+
)
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
@validate_call
|
|
883
|
+
async def get_inventory(
|
|
884
|
+
self,
|
|
885
|
+
n: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The number of objects to return.")] = None,
|
|
886
|
+
offset: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="A zero-based offset from the default object sorting from where search results start.")] = None,
|
|
887
|
+
holder_id: Annotated[Optional[StrictStr], Field(description="The UserID of the owner of the inventory; defaults to the currently authenticated user.")] = None,
|
|
888
|
+
equip_slot: Annotated[Optional[InventoryEquipSlot], Field(description="Filter for inventory retrieval.")] = None,
|
|
889
|
+
order: Annotated[Optional[StrictStr], Field(description="Sort order for inventory retrieval.")] = None,
|
|
890
|
+
tags: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="Filter tags for inventory retrieval (comma-separated).")] = None,
|
|
891
|
+
types: Annotated[Optional[InventoryItemType], Field(description="Filter for inventory retrieval.")] = None,
|
|
892
|
+
flags: Annotated[Optional[InventoryFlag], Field(description="Filter flags for inventory retrieval (comma-separated).")] = None,
|
|
893
|
+
not_types: Annotated[Optional[InventoryItemType], Field(description="Filter out types for inventory retrieval (comma-separated).")] = None,
|
|
894
|
+
not_flags: Annotated[Optional[InventoryFlag], Field(description="Filter out flags for inventory retrieval (comma-separated).")] = None,
|
|
895
|
+
archived: Annotated[Optional[StrictBool], Field(description="Filter archived status for inventory retrieval.")] = None,
|
|
896
|
+
_request_timeout: Union[
|
|
897
|
+
None,
|
|
898
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
899
|
+
Tuple[
|
|
900
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
901
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
902
|
+
]
|
|
903
|
+
] = None,
|
|
904
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
905
|
+
_content_type: Optional[StrictStr] = None,
|
|
906
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
907
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
908
|
+
) -> Inventory:
|
|
909
|
+
"""Get Inventory
|
|
910
|
+
|
|
911
|
+
Returns an Inventory object.
|
|
912
|
+
|
|
913
|
+
:param n: The number of objects to return.
|
|
914
|
+
:type n: int
|
|
915
|
+
:param offset: A zero-based offset from the default object sorting from where search results start.
|
|
916
|
+
:type offset: int
|
|
917
|
+
:param holder_id: The UserID of the owner of the inventory; defaults to the currently authenticated user.
|
|
918
|
+
:type holder_id: str
|
|
919
|
+
:param equip_slot: Filter for inventory retrieval.
|
|
920
|
+
:type equip_slot: InventoryEquipSlot
|
|
921
|
+
:param order: Sort order for inventory retrieval.
|
|
922
|
+
:type order: str
|
|
923
|
+
:param tags: Filter tags for inventory retrieval (comma-separated).
|
|
924
|
+
:type tags: str
|
|
925
|
+
:param types: Filter for inventory retrieval.
|
|
926
|
+
:type types: InventoryItemType
|
|
927
|
+
:param flags: Filter flags for inventory retrieval (comma-separated).
|
|
928
|
+
:type flags: InventoryFlag
|
|
929
|
+
:param not_types: Filter out types for inventory retrieval (comma-separated).
|
|
930
|
+
:type not_types: InventoryItemType
|
|
931
|
+
:param not_flags: Filter out flags for inventory retrieval (comma-separated).
|
|
932
|
+
:type not_flags: InventoryFlag
|
|
933
|
+
:param archived: Filter archived status for inventory retrieval.
|
|
934
|
+
:type archived: bool
|
|
935
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
936
|
+
number provided, it will be total request
|
|
937
|
+
timeout. It can also be a pair (tuple) of
|
|
938
|
+
(connection, read) timeouts.
|
|
939
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
940
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
941
|
+
request; this effectively ignores the
|
|
942
|
+
authentication in the spec for a single request.
|
|
943
|
+
:type _request_auth: dict, optional
|
|
944
|
+
:param _content_type: force content-type for the request.
|
|
945
|
+
:type _content_type: str, Optional
|
|
946
|
+
:param _headers: set to override the headers for a single
|
|
947
|
+
request; this effectively ignores the headers
|
|
948
|
+
in the spec for a single request.
|
|
949
|
+
:type _headers: dict, optional
|
|
950
|
+
:param _host_index: set to override the host_index for a single
|
|
951
|
+
request; this effectively ignores the host_index
|
|
952
|
+
in the spec for a single request.
|
|
953
|
+
:type _host_index: int, optional
|
|
954
|
+
:return: Returns the result object.
|
|
955
|
+
""" # noqa: E501
|
|
956
|
+
|
|
957
|
+
_param = self._get_inventory_serialize(
|
|
958
|
+
n=n,
|
|
959
|
+
offset=offset,
|
|
960
|
+
holder_id=holder_id,
|
|
961
|
+
equip_slot=equip_slot,
|
|
962
|
+
order=order,
|
|
963
|
+
tags=tags,
|
|
964
|
+
types=types,
|
|
965
|
+
flags=flags,
|
|
966
|
+
not_types=not_types,
|
|
967
|
+
not_flags=not_flags,
|
|
968
|
+
archived=archived,
|
|
969
|
+
_request_auth=_request_auth,
|
|
970
|
+
_content_type=_content_type,
|
|
971
|
+
_headers=_headers,
|
|
972
|
+
_host_index=_host_index
|
|
973
|
+
)
|
|
974
|
+
|
|
975
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
976
|
+
'200': "Inventory",
|
|
977
|
+
'401': "Error",
|
|
978
|
+
'403': "Error",
|
|
979
|
+
}
|
|
980
|
+
response_data = await self.api_client.call_api(
|
|
981
|
+
*_param,
|
|
982
|
+
_request_timeout=_request_timeout
|
|
983
|
+
)
|
|
984
|
+
await response_data.read()
|
|
985
|
+
return self.api_client.response_deserialize(
|
|
986
|
+
response_data=response_data,
|
|
987
|
+
response_types_map=_response_types_map,
|
|
988
|
+
).data
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
@validate_call
|
|
992
|
+
async def get_inventory_with_http_info(
|
|
993
|
+
self,
|
|
994
|
+
n: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The number of objects to return.")] = None,
|
|
995
|
+
offset: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="A zero-based offset from the default object sorting from where search results start.")] = None,
|
|
996
|
+
holder_id: Annotated[Optional[StrictStr], Field(description="The UserID of the owner of the inventory; defaults to the currently authenticated user.")] = None,
|
|
997
|
+
equip_slot: Annotated[Optional[InventoryEquipSlot], Field(description="Filter for inventory retrieval.")] = None,
|
|
998
|
+
order: Annotated[Optional[StrictStr], Field(description="Sort order for inventory retrieval.")] = None,
|
|
999
|
+
tags: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="Filter tags for inventory retrieval (comma-separated).")] = None,
|
|
1000
|
+
types: Annotated[Optional[InventoryItemType], Field(description="Filter for inventory retrieval.")] = None,
|
|
1001
|
+
flags: Annotated[Optional[InventoryFlag], Field(description="Filter flags for inventory retrieval (comma-separated).")] = None,
|
|
1002
|
+
not_types: Annotated[Optional[InventoryItemType], Field(description="Filter out types for inventory retrieval (comma-separated).")] = None,
|
|
1003
|
+
not_flags: Annotated[Optional[InventoryFlag], Field(description="Filter out flags for inventory retrieval (comma-separated).")] = None,
|
|
1004
|
+
archived: Annotated[Optional[StrictBool], Field(description="Filter archived status for inventory retrieval.")] = None,
|
|
1005
|
+
_request_timeout: Union[
|
|
1006
|
+
None,
|
|
1007
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1008
|
+
Tuple[
|
|
1009
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1010
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1011
|
+
]
|
|
1012
|
+
] = None,
|
|
1013
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1014
|
+
_content_type: Optional[StrictStr] = None,
|
|
1015
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1016
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1017
|
+
) -> ApiResponse[Inventory]:
|
|
1018
|
+
"""Get Inventory
|
|
1019
|
+
|
|
1020
|
+
Returns an Inventory object.
|
|
1021
|
+
|
|
1022
|
+
:param n: The number of objects to return.
|
|
1023
|
+
:type n: int
|
|
1024
|
+
:param offset: A zero-based offset from the default object sorting from where search results start.
|
|
1025
|
+
:type offset: int
|
|
1026
|
+
:param holder_id: The UserID of the owner of the inventory; defaults to the currently authenticated user.
|
|
1027
|
+
:type holder_id: str
|
|
1028
|
+
:param equip_slot: Filter for inventory retrieval.
|
|
1029
|
+
:type equip_slot: InventoryEquipSlot
|
|
1030
|
+
:param order: Sort order for inventory retrieval.
|
|
1031
|
+
:type order: str
|
|
1032
|
+
:param tags: Filter tags for inventory retrieval (comma-separated).
|
|
1033
|
+
:type tags: str
|
|
1034
|
+
:param types: Filter for inventory retrieval.
|
|
1035
|
+
:type types: InventoryItemType
|
|
1036
|
+
:param flags: Filter flags for inventory retrieval (comma-separated).
|
|
1037
|
+
:type flags: InventoryFlag
|
|
1038
|
+
:param not_types: Filter out types for inventory retrieval (comma-separated).
|
|
1039
|
+
:type not_types: InventoryItemType
|
|
1040
|
+
:param not_flags: Filter out flags for inventory retrieval (comma-separated).
|
|
1041
|
+
:type not_flags: InventoryFlag
|
|
1042
|
+
:param archived: Filter archived status for inventory retrieval.
|
|
1043
|
+
:type archived: bool
|
|
1044
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1045
|
+
number provided, it will be total request
|
|
1046
|
+
timeout. It can also be a pair (tuple) of
|
|
1047
|
+
(connection, read) timeouts.
|
|
1048
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1049
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1050
|
+
request; this effectively ignores the
|
|
1051
|
+
authentication in the spec for a single request.
|
|
1052
|
+
:type _request_auth: dict, optional
|
|
1053
|
+
:param _content_type: force content-type for the request.
|
|
1054
|
+
:type _content_type: str, Optional
|
|
1055
|
+
:param _headers: set to override the headers for a single
|
|
1056
|
+
request; this effectively ignores the headers
|
|
1057
|
+
in the spec for a single request.
|
|
1058
|
+
:type _headers: dict, optional
|
|
1059
|
+
:param _host_index: set to override the host_index for a single
|
|
1060
|
+
request; this effectively ignores the host_index
|
|
1061
|
+
in the spec for a single request.
|
|
1062
|
+
:type _host_index: int, optional
|
|
1063
|
+
:return: Returns the result object.
|
|
1064
|
+
""" # noqa: E501
|
|
1065
|
+
|
|
1066
|
+
_param = self._get_inventory_serialize(
|
|
1067
|
+
n=n,
|
|
1068
|
+
offset=offset,
|
|
1069
|
+
holder_id=holder_id,
|
|
1070
|
+
equip_slot=equip_slot,
|
|
1071
|
+
order=order,
|
|
1072
|
+
tags=tags,
|
|
1073
|
+
types=types,
|
|
1074
|
+
flags=flags,
|
|
1075
|
+
not_types=not_types,
|
|
1076
|
+
not_flags=not_flags,
|
|
1077
|
+
archived=archived,
|
|
1078
|
+
_request_auth=_request_auth,
|
|
1079
|
+
_content_type=_content_type,
|
|
1080
|
+
_headers=_headers,
|
|
1081
|
+
_host_index=_host_index
|
|
1082
|
+
)
|
|
1083
|
+
|
|
1084
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1085
|
+
'200': "Inventory",
|
|
1086
|
+
'401': "Error",
|
|
1087
|
+
'403': "Error",
|
|
1088
|
+
}
|
|
1089
|
+
response_data = await self.api_client.call_api(
|
|
1090
|
+
*_param,
|
|
1091
|
+
_request_timeout=_request_timeout
|
|
1092
|
+
)
|
|
1093
|
+
await response_data.read()
|
|
1094
|
+
return self.api_client.response_deserialize(
|
|
1095
|
+
response_data=response_data,
|
|
1096
|
+
response_types_map=_response_types_map,
|
|
1097
|
+
)
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
@validate_call
|
|
1101
|
+
async def get_inventory_without_preload_content(
|
|
1102
|
+
self,
|
|
1103
|
+
n: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The number of objects to return.")] = None,
|
|
1104
|
+
offset: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="A zero-based offset from the default object sorting from where search results start.")] = None,
|
|
1105
|
+
holder_id: Annotated[Optional[StrictStr], Field(description="The UserID of the owner of the inventory; defaults to the currently authenticated user.")] = None,
|
|
1106
|
+
equip_slot: Annotated[Optional[InventoryEquipSlot], Field(description="Filter for inventory retrieval.")] = None,
|
|
1107
|
+
order: Annotated[Optional[StrictStr], Field(description="Sort order for inventory retrieval.")] = None,
|
|
1108
|
+
tags: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="Filter tags for inventory retrieval (comma-separated).")] = None,
|
|
1109
|
+
types: Annotated[Optional[InventoryItemType], Field(description="Filter for inventory retrieval.")] = None,
|
|
1110
|
+
flags: Annotated[Optional[InventoryFlag], Field(description="Filter flags for inventory retrieval (comma-separated).")] = None,
|
|
1111
|
+
not_types: Annotated[Optional[InventoryItemType], Field(description="Filter out types for inventory retrieval (comma-separated).")] = None,
|
|
1112
|
+
not_flags: Annotated[Optional[InventoryFlag], Field(description="Filter out flags for inventory retrieval (comma-separated).")] = None,
|
|
1113
|
+
archived: Annotated[Optional[StrictBool], Field(description="Filter archived status for inventory retrieval.")] = None,
|
|
1114
|
+
_request_timeout: Union[
|
|
1115
|
+
None,
|
|
1116
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1117
|
+
Tuple[
|
|
1118
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1119
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1120
|
+
]
|
|
1121
|
+
] = None,
|
|
1122
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1123
|
+
_content_type: Optional[StrictStr] = None,
|
|
1124
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1125
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1126
|
+
) -> RESTResponseType:
|
|
1127
|
+
"""Get Inventory
|
|
1128
|
+
|
|
1129
|
+
Returns an Inventory object.
|
|
1130
|
+
|
|
1131
|
+
:param n: The number of objects to return.
|
|
1132
|
+
:type n: int
|
|
1133
|
+
:param offset: A zero-based offset from the default object sorting from where search results start.
|
|
1134
|
+
:type offset: int
|
|
1135
|
+
:param holder_id: The UserID of the owner of the inventory; defaults to the currently authenticated user.
|
|
1136
|
+
:type holder_id: str
|
|
1137
|
+
:param equip_slot: Filter for inventory retrieval.
|
|
1138
|
+
:type equip_slot: InventoryEquipSlot
|
|
1139
|
+
:param order: Sort order for inventory retrieval.
|
|
1140
|
+
:type order: str
|
|
1141
|
+
:param tags: Filter tags for inventory retrieval (comma-separated).
|
|
1142
|
+
:type tags: str
|
|
1143
|
+
:param types: Filter for inventory retrieval.
|
|
1144
|
+
:type types: InventoryItemType
|
|
1145
|
+
:param flags: Filter flags for inventory retrieval (comma-separated).
|
|
1146
|
+
:type flags: InventoryFlag
|
|
1147
|
+
:param not_types: Filter out types for inventory retrieval (comma-separated).
|
|
1148
|
+
:type not_types: InventoryItemType
|
|
1149
|
+
:param not_flags: Filter out flags for inventory retrieval (comma-separated).
|
|
1150
|
+
:type not_flags: InventoryFlag
|
|
1151
|
+
:param archived: Filter archived status for inventory retrieval.
|
|
1152
|
+
:type archived: bool
|
|
1153
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1154
|
+
number provided, it will be total request
|
|
1155
|
+
timeout. It can also be a pair (tuple) of
|
|
1156
|
+
(connection, read) timeouts.
|
|
1157
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1158
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1159
|
+
request; this effectively ignores the
|
|
1160
|
+
authentication in the spec for a single request.
|
|
1161
|
+
:type _request_auth: dict, optional
|
|
1162
|
+
:param _content_type: force content-type for the request.
|
|
1163
|
+
:type _content_type: str, Optional
|
|
1164
|
+
:param _headers: set to override the headers for a single
|
|
1165
|
+
request; this effectively ignores the headers
|
|
1166
|
+
in the spec for a single request.
|
|
1167
|
+
:type _headers: dict, optional
|
|
1168
|
+
:param _host_index: set to override the host_index for a single
|
|
1169
|
+
request; this effectively ignores the host_index
|
|
1170
|
+
in the spec for a single request.
|
|
1171
|
+
:type _host_index: int, optional
|
|
1172
|
+
:return: Returns the result object.
|
|
1173
|
+
""" # noqa: E501
|
|
1174
|
+
|
|
1175
|
+
_param = self._get_inventory_serialize(
|
|
1176
|
+
n=n,
|
|
1177
|
+
offset=offset,
|
|
1178
|
+
holder_id=holder_id,
|
|
1179
|
+
equip_slot=equip_slot,
|
|
1180
|
+
order=order,
|
|
1181
|
+
tags=tags,
|
|
1182
|
+
types=types,
|
|
1183
|
+
flags=flags,
|
|
1184
|
+
not_types=not_types,
|
|
1185
|
+
not_flags=not_flags,
|
|
1186
|
+
archived=archived,
|
|
1187
|
+
_request_auth=_request_auth,
|
|
1188
|
+
_content_type=_content_type,
|
|
1189
|
+
_headers=_headers,
|
|
1190
|
+
_host_index=_host_index
|
|
1191
|
+
)
|
|
1192
|
+
|
|
1193
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1194
|
+
'200': "Inventory",
|
|
1195
|
+
'401': "Error",
|
|
1196
|
+
'403': "Error",
|
|
1197
|
+
}
|
|
1198
|
+
response_data = await self.api_client.call_api(
|
|
1199
|
+
*_param,
|
|
1200
|
+
_request_timeout=_request_timeout
|
|
1201
|
+
)
|
|
1202
|
+
return response_data.response
|
|
1203
|
+
|
|
1204
|
+
|
|
1205
|
+
def _get_inventory_serialize(
|
|
1206
|
+
self,
|
|
1207
|
+
n,
|
|
1208
|
+
offset,
|
|
1209
|
+
holder_id,
|
|
1210
|
+
equip_slot,
|
|
1211
|
+
order,
|
|
1212
|
+
tags,
|
|
1213
|
+
types,
|
|
1214
|
+
flags,
|
|
1215
|
+
not_types,
|
|
1216
|
+
not_flags,
|
|
1217
|
+
archived,
|
|
1218
|
+
_request_auth,
|
|
1219
|
+
_content_type,
|
|
1220
|
+
_headers,
|
|
1221
|
+
_host_index,
|
|
1222
|
+
) -> RequestSerialized:
|
|
1223
|
+
|
|
1224
|
+
_host = None
|
|
1225
|
+
|
|
1226
|
+
_collection_formats: Dict[str, str] = {
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
_path_params: Dict[str, str] = {}
|
|
1230
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1231
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1232
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1233
|
+
_files: Dict[
|
|
1234
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1235
|
+
] = {}
|
|
1236
|
+
_body_params: Optional[bytes] = None
|
|
1237
|
+
|
|
1238
|
+
# process the path parameters
|
|
1239
|
+
# process the query parameters
|
|
1240
|
+
if n is not None:
|
|
1241
|
+
|
|
1242
|
+
_query_params.append(('n', n))
|
|
1243
|
+
|
|
1244
|
+
if offset is not None:
|
|
1245
|
+
|
|
1246
|
+
_query_params.append(('offset', offset))
|
|
1247
|
+
|
|
1248
|
+
if holder_id is not None:
|
|
1249
|
+
|
|
1250
|
+
_query_params.append(('holderId', holder_id))
|
|
1251
|
+
|
|
1252
|
+
if equip_slot is not None:
|
|
1253
|
+
|
|
1254
|
+
_query_params.append(('equipSlot', equip_slot.value))
|
|
1255
|
+
|
|
1256
|
+
if order is not None:
|
|
1257
|
+
|
|
1258
|
+
_query_params.append(('order', order))
|
|
1259
|
+
|
|
1260
|
+
if tags is not None:
|
|
1261
|
+
|
|
1262
|
+
_query_params.append(('tags', tags))
|
|
1263
|
+
|
|
1264
|
+
if types is not None:
|
|
1265
|
+
|
|
1266
|
+
_query_params.append(('types', types.value))
|
|
1267
|
+
|
|
1268
|
+
if flags is not None:
|
|
1269
|
+
|
|
1270
|
+
_query_params.append(('flags', flags.value))
|
|
1271
|
+
|
|
1272
|
+
if not_types is not None:
|
|
1273
|
+
|
|
1274
|
+
_query_params.append(('notTypes', not_types.value))
|
|
1275
|
+
|
|
1276
|
+
if not_flags is not None:
|
|
1277
|
+
|
|
1278
|
+
_query_params.append(('notFlags', not_flags.value))
|
|
1279
|
+
|
|
1280
|
+
if archived is not None:
|
|
1281
|
+
|
|
1282
|
+
_query_params.append(('archived', archived))
|
|
1283
|
+
|
|
1284
|
+
# process the header parameters
|
|
1285
|
+
# process the form parameters
|
|
1286
|
+
# process the body parameter
|
|
1287
|
+
|
|
1288
|
+
|
|
1289
|
+
# set the HTTP header `Accept`
|
|
1290
|
+
if 'Accept' not in _header_params:
|
|
1291
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1292
|
+
[
|
|
1293
|
+
'application/json'
|
|
1294
|
+
]
|
|
1295
|
+
)
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+
# authentication setting
|
|
1299
|
+
_auth_settings: List[str] = [
|
|
1300
|
+
'authCookie'
|
|
1301
|
+
]
|
|
1302
|
+
|
|
1303
|
+
return self.api_client.param_serialize(
|
|
1304
|
+
method='GET',
|
|
1305
|
+
resource_path='/inventory',
|
|
1306
|
+
path_params=_path_params,
|
|
1307
|
+
query_params=_query_params,
|
|
1308
|
+
header_params=_header_params,
|
|
1309
|
+
body=_body_params,
|
|
1310
|
+
post_params=_form_params,
|
|
1311
|
+
files=_files,
|
|
1312
|
+
auth_settings=_auth_settings,
|
|
1313
|
+
collection_formats=_collection_formats,
|
|
1314
|
+
_host=_host,
|
|
1315
|
+
_request_auth=_request_auth
|
|
1316
|
+
)
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
@validate_call
|
|
1322
|
+
async def get_inventory_collections(
|
|
1323
|
+
self,
|
|
1324
|
+
_request_timeout: Union[
|
|
1325
|
+
None,
|
|
1326
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1327
|
+
Tuple[
|
|
1328
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1329
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1330
|
+
]
|
|
1331
|
+
] = None,
|
|
1332
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1333
|
+
_content_type: Optional[StrictStr] = None,
|
|
1334
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1335
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1336
|
+
) -> List[str]:
|
|
1337
|
+
"""List Inventory Collections
|
|
1338
|
+
|
|
1339
|
+
Returns a list of collection names.
|
|
1340
|
+
|
|
1341
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1342
|
+
number provided, it will be total request
|
|
1343
|
+
timeout. It can also be a pair (tuple) of
|
|
1344
|
+
(connection, read) timeouts.
|
|
1345
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1346
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1347
|
+
request; this effectively ignores the
|
|
1348
|
+
authentication in the spec for a single request.
|
|
1349
|
+
:type _request_auth: dict, optional
|
|
1350
|
+
:param _content_type: force content-type for the request.
|
|
1351
|
+
:type _content_type: str, Optional
|
|
1352
|
+
:param _headers: set to override the headers for a single
|
|
1353
|
+
request; this effectively ignores the headers
|
|
1354
|
+
in the spec for a single request.
|
|
1355
|
+
:type _headers: dict, optional
|
|
1356
|
+
:param _host_index: set to override the host_index for a single
|
|
1357
|
+
request; this effectively ignores the host_index
|
|
1358
|
+
in the spec for a single request.
|
|
1359
|
+
:type _host_index: int, optional
|
|
1360
|
+
:return: Returns the result object.
|
|
1361
|
+
""" # noqa: E501
|
|
1362
|
+
|
|
1363
|
+
_param = self._get_inventory_collections_serialize(
|
|
1364
|
+
_request_auth=_request_auth,
|
|
1365
|
+
_content_type=_content_type,
|
|
1366
|
+
_headers=_headers,
|
|
1367
|
+
_host_index=_host_index
|
|
1368
|
+
)
|
|
1369
|
+
|
|
1370
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1371
|
+
'200': "List[str]",
|
|
1372
|
+
'401': "Error",
|
|
1373
|
+
}
|
|
1374
|
+
response_data = await self.api_client.call_api(
|
|
1375
|
+
*_param,
|
|
1376
|
+
_request_timeout=_request_timeout
|
|
1377
|
+
)
|
|
1378
|
+
await response_data.read()
|
|
1379
|
+
return self.api_client.response_deserialize(
|
|
1380
|
+
response_data=response_data,
|
|
1381
|
+
response_types_map=_response_types_map,
|
|
1382
|
+
).data
|
|
1383
|
+
|
|
1384
|
+
|
|
1385
|
+
@validate_call
|
|
1386
|
+
async def get_inventory_collections_with_http_info(
|
|
1387
|
+
self,
|
|
1388
|
+
_request_timeout: Union[
|
|
1389
|
+
None,
|
|
1390
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1391
|
+
Tuple[
|
|
1392
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1393
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1394
|
+
]
|
|
1395
|
+
] = None,
|
|
1396
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1397
|
+
_content_type: Optional[StrictStr] = None,
|
|
1398
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1399
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1400
|
+
) -> ApiResponse[List[str]]:
|
|
1401
|
+
"""List Inventory Collections
|
|
1402
|
+
|
|
1403
|
+
Returns a list of collection names.
|
|
1404
|
+
|
|
1405
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1406
|
+
number provided, it will be total request
|
|
1407
|
+
timeout. It can also be a pair (tuple) of
|
|
1408
|
+
(connection, read) timeouts.
|
|
1409
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1410
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1411
|
+
request; this effectively ignores the
|
|
1412
|
+
authentication in the spec for a single request.
|
|
1413
|
+
:type _request_auth: dict, optional
|
|
1414
|
+
:param _content_type: force content-type for the request.
|
|
1415
|
+
:type _content_type: str, Optional
|
|
1416
|
+
:param _headers: set to override the headers for a single
|
|
1417
|
+
request; this effectively ignores the headers
|
|
1418
|
+
in the spec for a single request.
|
|
1419
|
+
:type _headers: dict, optional
|
|
1420
|
+
:param _host_index: set to override the host_index for a single
|
|
1421
|
+
request; this effectively ignores the host_index
|
|
1422
|
+
in the spec for a single request.
|
|
1423
|
+
:type _host_index: int, optional
|
|
1424
|
+
:return: Returns the result object.
|
|
1425
|
+
""" # noqa: E501
|
|
1426
|
+
|
|
1427
|
+
_param = self._get_inventory_collections_serialize(
|
|
1428
|
+
_request_auth=_request_auth,
|
|
1429
|
+
_content_type=_content_type,
|
|
1430
|
+
_headers=_headers,
|
|
1431
|
+
_host_index=_host_index
|
|
1432
|
+
)
|
|
1433
|
+
|
|
1434
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1435
|
+
'200': "List[str]",
|
|
1436
|
+
'401': "Error",
|
|
1437
|
+
}
|
|
1438
|
+
response_data = await self.api_client.call_api(
|
|
1439
|
+
*_param,
|
|
1440
|
+
_request_timeout=_request_timeout
|
|
1441
|
+
)
|
|
1442
|
+
await response_data.read()
|
|
1443
|
+
return self.api_client.response_deserialize(
|
|
1444
|
+
response_data=response_data,
|
|
1445
|
+
response_types_map=_response_types_map,
|
|
1446
|
+
)
|
|
1447
|
+
|
|
1448
|
+
|
|
1449
|
+
@validate_call
|
|
1450
|
+
async def get_inventory_collections_without_preload_content(
|
|
1451
|
+
self,
|
|
1452
|
+
_request_timeout: Union[
|
|
1453
|
+
None,
|
|
1454
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1455
|
+
Tuple[
|
|
1456
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1457
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1458
|
+
]
|
|
1459
|
+
] = None,
|
|
1460
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1461
|
+
_content_type: Optional[StrictStr] = None,
|
|
1462
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1463
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1464
|
+
) -> RESTResponseType:
|
|
1465
|
+
"""List Inventory Collections
|
|
1466
|
+
|
|
1467
|
+
Returns a list of collection names.
|
|
1468
|
+
|
|
1469
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1470
|
+
number provided, it will be total request
|
|
1471
|
+
timeout. It can also be a pair (tuple) of
|
|
1472
|
+
(connection, read) timeouts.
|
|
1473
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1474
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1475
|
+
request; this effectively ignores the
|
|
1476
|
+
authentication in the spec for a single request.
|
|
1477
|
+
:type _request_auth: dict, optional
|
|
1478
|
+
:param _content_type: force content-type for the request.
|
|
1479
|
+
:type _content_type: str, Optional
|
|
1480
|
+
:param _headers: set to override the headers for a single
|
|
1481
|
+
request; this effectively ignores the headers
|
|
1482
|
+
in the spec for a single request.
|
|
1483
|
+
:type _headers: dict, optional
|
|
1484
|
+
:param _host_index: set to override the host_index for a single
|
|
1485
|
+
request; this effectively ignores the host_index
|
|
1486
|
+
in the spec for a single request.
|
|
1487
|
+
:type _host_index: int, optional
|
|
1488
|
+
:return: Returns the result object.
|
|
1489
|
+
""" # noqa: E501
|
|
1490
|
+
|
|
1491
|
+
_param = self._get_inventory_collections_serialize(
|
|
1492
|
+
_request_auth=_request_auth,
|
|
1493
|
+
_content_type=_content_type,
|
|
1494
|
+
_headers=_headers,
|
|
1495
|
+
_host_index=_host_index
|
|
1496
|
+
)
|
|
1497
|
+
|
|
1498
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1499
|
+
'200': "List[str]",
|
|
1500
|
+
'401': "Error",
|
|
1501
|
+
}
|
|
1502
|
+
response_data = await self.api_client.call_api(
|
|
1503
|
+
*_param,
|
|
1504
|
+
_request_timeout=_request_timeout
|
|
1505
|
+
)
|
|
1506
|
+
return response_data.response
|
|
1507
|
+
|
|
1508
|
+
|
|
1509
|
+
def _get_inventory_collections_serialize(
|
|
1510
|
+
self,
|
|
1511
|
+
_request_auth,
|
|
1512
|
+
_content_type,
|
|
1513
|
+
_headers,
|
|
1514
|
+
_host_index,
|
|
1515
|
+
) -> RequestSerialized:
|
|
1516
|
+
|
|
1517
|
+
_host = None
|
|
1518
|
+
|
|
1519
|
+
_collection_formats: Dict[str, str] = {
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
_path_params: Dict[str, str] = {}
|
|
1523
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1524
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1525
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1526
|
+
_files: Dict[
|
|
1527
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1528
|
+
] = {}
|
|
1529
|
+
_body_params: Optional[bytes] = None
|
|
1530
|
+
|
|
1531
|
+
# process the path parameters
|
|
1532
|
+
# process the query parameters
|
|
1533
|
+
# process the header parameters
|
|
1534
|
+
# process the form parameters
|
|
1535
|
+
# process the body parameter
|
|
1536
|
+
|
|
1537
|
+
|
|
1538
|
+
# set the HTTP header `Accept`
|
|
1539
|
+
if 'Accept' not in _header_params:
|
|
1540
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1541
|
+
[
|
|
1542
|
+
'application/json'
|
|
1543
|
+
]
|
|
1544
|
+
)
|
|
1545
|
+
|
|
1546
|
+
|
|
1547
|
+
# authentication setting
|
|
1548
|
+
_auth_settings: List[str] = [
|
|
1549
|
+
'authCookie'
|
|
1550
|
+
]
|
|
1551
|
+
|
|
1552
|
+
return self.api_client.param_serialize(
|
|
1553
|
+
method='GET',
|
|
1554
|
+
resource_path='/inventory/collections',
|
|
1555
|
+
path_params=_path_params,
|
|
1556
|
+
query_params=_query_params,
|
|
1557
|
+
header_params=_header_params,
|
|
1558
|
+
body=_body_params,
|
|
1559
|
+
post_params=_form_params,
|
|
1560
|
+
files=_files,
|
|
1561
|
+
auth_settings=_auth_settings,
|
|
1562
|
+
collection_formats=_collection_formats,
|
|
1563
|
+
_host=_host,
|
|
1564
|
+
_request_auth=_request_auth
|
|
1565
|
+
)
|
|
1566
|
+
|
|
1567
|
+
|
|
1568
|
+
|
|
1569
|
+
|
|
1570
|
+
@validate_call
|
|
1571
|
+
async def get_inventory_drops(
|
|
1572
|
+
self,
|
|
1573
|
+
active: Annotated[Optional[StrictBool], Field(description="Filter for users' listings and inventory bundles.")] = None,
|
|
1574
|
+
_request_timeout: Union[
|
|
1575
|
+
None,
|
|
1576
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1577
|
+
Tuple[
|
|
1578
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1579
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1580
|
+
]
|
|
1581
|
+
] = None,
|
|
1582
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1583
|
+
_content_type: Optional[StrictStr] = None,
|
|
1584
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1585
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1586
|
+
) -> List[InventoryDrop]:
|
|
1587
|
+
"""List Inventory Drops
|
|
1588
|
+
|
|
1589
|
+
Returns a list of InventoryDrop objects.
|
|
1590
|
+
|
|
1591
|
+
:param active: Filter for users' listings and inventory bundles.
|
|
1592
|
+
:type active: bool
|
|
1593
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1594
|
+
number provided, it will be total request
|
|
1595
|
+
timeout. It can also be a pair (tuple) of
|
|
1596
|
+
(connection, read) timeouts.
|
|
1597
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1598
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1599
|
+
request; this effectively ignores the
|
|
1600
|
+
authentication in the spec for a single request.
|
|
1601
|
+
:type _request_auth: dict, optional
|
|
1602
|
+
:param _content_type: force content-type for the request.
|
|
1603
|
+
:type _content_type: str, Optional
|
|
1604
|
+
:param _headers: set to override the headers for a single
|
|
1605
|
+
request; this effectively ignores the headers
|
|
1606
|
+
in the spec for a single request.
|
|
1607
|
+
:type _headers: dict, optional
|
|
1608
|
+
:param _host_index: set to override the host_index for a single
|
|
1609
|
+
request; this effectively ignores the host_index
|
|
1610
|
+
in the spec for a single request.
|
|
1611
|
+
:type _host_index: int, optional
|
|
1612
|
+
:return: Returns the result object.
|
|
1613
|
+
""" # noqa: E501
|
|
1614
|
+
|
|
1615
|
+
_param = self._get_inventory_drops_serialize(
|
|
1616
|
+
active=active,
|
|
1617
|
+
_request_auth=_request_auth,
|
|
1618
|
+
_content_type=_content_type,
|
|
1619
|
+
_headers=_headers,
|
|
1620
|
+
_host_index=_host_index
|
|
1621
|
+
)
|
|
1622
|
+
|
|
1623
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1624
|
+
'200': "List[InventoryDrop]",
|
|
1625
|
+
'401': "Error",
|
|
1626
|
+
}
|
|
1627
|
+
response_data = await self.api_client.call_api(
|
|
1628
|
+
*_param,
|
|
1629
|
+
_request_timeout=_request_timeout
|
|
1630
|
+
)
|
|
1631
|
+
await response_data.read()
|
|
1632
|
+
return self.api_client.response_deserialize(
|
|
1633
|
+
response_data=response_data,
|
|
1634
|
+
response_types_map=_response_types_map,
|
|
1635
|
+
).data
|
|
1636
|
+
|
|
1637
|
+
|
|
1638
|
+
@validate_call
|
|
1639
|
+
async def get_inventory_drops_with_http_info(
|
|
1640
|
+
self,
|
|
1641
|
+
active: Annotated[Optional[StrictBool], Field(description="Filter for users' listings and inventory bundles.")] = None,
|
|
1642
|
+
_request_timeout: Union[
|
|
1643
|
+
None,
|
|
1644
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1645
|
+
Tuple[
|
|
1646
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1647
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1648
|
+
]
|
|
1649
|
+
] = None,
|
|
1650
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1651
|
+
_content_type: Optional[StrictStr] = None,
|
|
1652
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1653
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1654
|
+
) -> ApiResponse[List[InventoryDrop]]:
|
|
1655
|
+
"""List Inventory Drops
|
|
1656
|
+
|
|
1657
|
+
Returns a list of InventoryDrop objects.
|
|
1658
|
+
|
|
1659
|
+
:param active: Filter for users' listings and inventory bundles.
|
|
1660
|
+
:type active: bool
|
|
1661
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1662
|
+
number provided, it will be total request
|
|
1663
|
+
timeout. It can also be a pair (tuple) of
|
|
1664
|
+
(connection, read) timeouts.
|
|
1665
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1666
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1667
|
+
request; this effectively ignores the
|
|
1668
|
+
authentication in the spec for a single request.
|
|
1669
|
+
:type _request_auth: dict, optional
|
|
1670
|
+
:param _content_type: force content-type for the request.
|
|
1671
|
+
:type _content_type: str, Optional
|
|
1672
|
+
:param _headers: set to override the headers for a single
|
|
1673
|
+
request; this effectively ignores the headers
|
|
1674
|
+
in the spec for a single request.
|
|
1675
|
+
:type _headers: dict, optional
|
|
1676
|
+
:param _host_index: set to override the host_index for a single
|
|
1677
|
+
request; this effectively ignores the host_index
|
|
1678
|
+
in the spec for a single request.
|
|
1679
|
+
:type _host_index: int, optional
|
|
1680
|
+
:return: Returns the result object.
|
|
1681
|
+
""" # noqa: E501
|
|
1682
|
+
|
|
1683
|
+
_param = self._get_inventory_drops_serialize(
|
|
1684
|
+
active=active,
|
|
1685
|
+
_request_auth=_request_auth,
|
|
1686
|
+
_content_type=_content_type,
|
|
1687
|
+
_headers=_headers,
|
|
1688
|
+
_host_index=_host_index
|
|
1689
|
+
)
|
|
1690
|
+
|
|
1691
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1692
|
+
'200': "List[InventoryDrop]",
|
|
1693
|
+
'401': "Error",
|
|
1694
|
+
}
|
|
1695
|
+
response_data = await self.api_client.call_api(
|
|
1696
|
+
*_param,
|
|
1697
|
+
_request_timeout=_request_timeout
|
|
1698
|
+
)
|
|
1699
|
+
await response_data.read()
|
|
1700
|
+
return self.api_client.response_deserialize(
|
|
1701
|
+
response_data=response_data,
|
|
1702
|
+
response_types_map=_response_types_map,
|
|
1703
|
+
)
|
|
1704
|
+
|
|
1705
|
+
|
|
1706
|
+
@validate_call
|
|
1707
|
+
async def get_inventory_drops_without_preload_content(
|
|
1708
|
+
self,
|
|
1709
|
+
active: Annotated[Optional[StrictBool], Field(description="Filter for users' listings and inventory bundles.")] = None,
|
|
1710
|
+
_request_timeout: Union[
|
|
1711
|
+
None,
|
|
1712
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1713
|
+
Tuple[
|
|
1714
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1715
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1716
|
+
]
|
|
1717
|
+
] = None,
|
|
1718
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1719
|
+
_content_type: Optional[StrictStr] = None,
|
|
1720
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1721
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1722
|
+
) -> RESTResponseType:
|
|
1723
|
+
"""List Inventory Drops
|
|
1724
|
+
|
|
1725
|
+
Returns a list of InventoryDrop objects.
|
|
1726
|
+
|
|
1727
|
+
:param active: Filter for users' listings and inventory bundles.
|
|
1728
|
+
:type active: bool
|
|
1729
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1730
|
+
number provided, it will be total request
|
|
1731
|
+
timeout. It can also be a pair (tuple) of
|
|
1732
|
+
(connection, read) timeouts.
|
|
1733
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1734
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1735
|
+
request; this effectively ignores the
|
|
1736
|
+
authentication in the spec for a single request.
|
|
1737
|
+
:type _request_auth: dict, optional
|
|
1738
|
+
:param _content_type: force content-type for the request.
|
|
1739
|
+
:type _content_type: str, Optional
|
|
1740
|
+
:param _headers: set to override the headers for a single
|
|
1741
|
+
request; this effectively ignores the headers
|
|
1742
|
+
in the spec for a single request.
|
|
1743
|
+
:type _headers: dict, optional
|
|
1744
|
+
:param _host_index: set to override the host_index for a single
|
|
1745
|
+
request; this effectively ignores the host_index
|
|
1746
|
+
in the spec for a single request.
|
|
1747
|
+
:type _host_index: int, optional
|
|
1748
|
+
:return: Returns the result object.
|
|
1749
|
+
""" # noqa: E501
|
|
1750
|
+
|
|
1751
|
+
_param = self._get_inventory_drops_serialize(
|
|
1752
|
+
active=active,
|
|
1753
|
+
_request_auth=_request_auth,
|
|
1754
|
+
_content_type=_content_type,
|
|
1755
|
+
_headers=_headers,
|
|
1756
|
+
_host_index=_host_index
|
|
1757
|
+
)
|
|
1758
|
+
|
|
1759
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1760
|
+
'200': "List[InventoryDrop]",
|
|
1761
|
+
'401': "Error",
|
|
1762
|
+
}
|
|
1763
|
+
response_data = await self.api_client.call_api(
|
|
1764
|
+
*_param,
|
|
1765
|
+
_request_timeout=_request_timeout
|
|
1766
|
+
)
|
|
1767
|
+
return response_data.response
|
|
1768
|
+
|
|
1769
|
+
|
|
1770
|
+
def _get_inventory_drops_serialize(
|
|
1771
|
+
self,
|
|
1772
|
+
active,
|
|
1773
|
+
_request_auth,
|
|
1774
|
+
_content_type,
|
|
1775
|
+
_headers,
|
|
1776
|
+
_host_index,
|
|
1777
|
+
) -> RequestSerialized:
|
|
1778
|
+
|
|
1779
|
+
_host = None
|
|
1780
|
+
|
|
1781
|
+
_collection_formats: Dict[str, str] = {
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
_path_params: Dict[str, str] = {}
|
|
1785
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1786
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1787
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1788
|
+
_files: Dict[
|
|
1789
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1790
|
+
] = {}
|
|
1791
|
+
_body_params: Optional[bytes] = None
|
|
1792
|
+
|
|
1793
|
+
# process the path parameters
|
|
1794
|
+
# process the query parameters
|
|
1795
|
+
if active is not None:
|
|
1796
|
+
|
|
1797
|
+
_query_params.append(('active', active))
|
|
1798
|
+
|
|
1799
|
+
# process the header parameters
|
|
1800
|
+
# process the form parameters
|
|
1801
|
+
# process the body parameter
|
|
1802
|
+
|
|
1803
|
+
|
|
1804
|
+
# set the HTTP header `Accept`
|
|
1805
|
+
if 'Accept' not in _header_params:
|
|
1806
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1807
|
+
[
|
|
1808
|
+
'application/json'
|
|
1809
|
+
]
|
|
1810
|
+
)
|
|
1811
|
+
|
|
1812
|
+
|
|
1813
|
+
# authentication setting
|
|
1814
|
+
_auth_settings: List[str] = [
|
|
1815
|
+
'authCookie'
|
|
1816
|
+
]
|
|
1817
|
+
|
|
1818
|
+
return self.api_client.param_serialize(
|
|
1819
|
+
method='GET',
|
|
1820
|
+
resource_path='/inventory/drops',
|
|
1821
|
+
path_params=_path_params,
|
|
1822
|
+
query_params=_query_params,
|
|
1823
|
+
header_params=_header_params,
|
|
1824
|
+
body=_body_params,
|
|
1825
|
+
post_params=_form_params,
|
|
1826
|
+
files=_files,
|
|
1827
|
+
auth_settings=_auth_settings,
|
|
1828
|
+
collection_formats=_collection_formats,
|
|
1829
|
+
_host=_host,
|
|
1830
|
+
_request_auth=_request_auth
|
|
1831
|
+
)
|
|
1832
|
+
|
|
1833
|
+
|
|
1834
|
+
|
|
1835
|
+
|
|
1836
|
+
@validate_call
|
|
1837
|
+
async def get_inventory_template(
|
|
1838
|
+
self,
|
|
1839
|
+
inventory_template_id: Annotated[StrictStr, Field(description="Must be a valid inventory template ID.")],
|
|
1840
|
+
_request_timeout: Union[
|
|
1841
|
+
None,
|
|
1842
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1843
|
+
Tuple[
|
|
1844
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1845
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1846
|
+
]
|
|
1847
|
+
] = None,
|
|
1848
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1849
|
+
_content_type: Optional[StrictStr] = None,
|
|
1850
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1851
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1852
|
+
) -> InventoryTemplate:
|
|
1853
|
+
"""Get Inventory Template
|
|
1854
|
+
|
|
1855
|
+
Returns an InventoryTemplate object.
|
|
1856
|
+
|
|
1857
|
+
:param inventory_template_id: Must be a valid inventory template ID. (required)
|
|
1858
|
+
:type inventory_template_id: str
|
|
1859
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1860
|
+
number provided, it will be total request
|
|
1861
|
+
timeout. It can also be a pair (tuple) of
|
|
1862
|
+
(connection, read) timeouts.
|
|
1863
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1864
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1865
|
+
request; this effectively ignores the
|
|
1866
|
+
authentication in the spec for a single request.
|
|
1867
|
+
:type _request_auth: dict, optional
|
|
1868
|
+
:param _content_type: force content-type for the request.
|
|
1869
|
+
:type _content_type: str, Optional
|
|
1870
|
+
:param _headers: set to override the headers for a single
|
|
1871
|
+
request; this effectively ignores the headers
|
|
1872
|
+
in the spec for a single request.
|
|
1873
|
+
:type _headers: dict, optional
|
|
1874
|
+
:param _host_index: set to override the host_index for a single
|
|
1875
|
+
request; this effectively ignores the host_index
|
|
1876
|
+
in the spec for a single request.
|
|
1877
|
+
:type _host_index: int, optional
|
|
1878
|
+
:return: Returns the result object.
|
|
1879
|
+
""" # noqa: E501
|
|
1880
|
+
|
|
1881
|
+
_param = self._get_inventory_template_serialize(
|
|
1882
|
+
inventory_template_id=inventory_template_id,
|
|
1883
|
+
_request_auth=_request_auth,
|
|
1884
|
+
_content_type=_content_type,
|
|
1885
|
+
_headers=_headers,
|
|
1886
|
+
_host_index=_host_index
|
|
1887
|
+
)
|
|
1888
|
+
|
|
1889
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1890
|
+
'200': "InventoryTemplate",
|
|
1891
|
+
'401': "Error",
|
|
1892
|
+
}
|
|
1893
|
+
response_data = await self.api_client.call_api(
|
|
1894
|
+
*_param,
|
|
1895
|
+
_request_timeout=_request_timeout
|
|
1896
|
+
)
|
|
1897
|
+
await response_data.read()
|
|
1898
|
+
return self.api_client.response_deserialize(
|
|
1899
|
+
response_data=response_data,
|
|
1900
|
+
response_types_map=_response_types_map,
|
|
1901
|
+
).data
|
|
1902
|
+
|
|
1903
|
+
|
|
1904
|
+
@validate_call
|
|
1905
|
+
async def get_inventory_template_with_http_info(
|
|
1906
|
+
self,
|
|
1907
|
+
inventory_template_id: Annotated[StrictStr, Field(description="Must be a valid inventory template ID.")],
|
|
1908
|
+
_request_timeout: Union[
|
|
1909
|
+
None,
|
|
1910
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1911
|
+
Tuple[
|
|
1912
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1913
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1914
|
+
]
|
|
1915
|
+
] = None,
|
|
1916
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1917
|
+
_content_type: Optional[StrictStr] = None,
|
|
1918
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1919
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1920
|
+
) -> ApiResponse[InventoryTemplate]:
|
|
1921
|
+
"""Get Inventory Template
|
|
1922
|
+
|
|
1923
|
+
Returns an InventoryTemplate object.
|
|
1924
|
+
|
|
1925
|
+
:param inventory_template_id: Must be a valid inventory template ID. (required)
|
|
1926
|
+
:type inventory_template_id: str
|
|
1927
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1928
|
+
number provided, it will be total request
|
|
1929
|
+
timeout. It can also be a pair (tuple) of
|
|
1930
|
+
(connection, read) timeouts.
|
|
1931
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1932
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1933
|
+
request; this effectively ignores the
|
|
1934
|
+
authentication in the spec for a single request.
|
|
1935
|
+
:type _request_auth: dict, optional
|
|
1936
|
+
:param _content_type: force content-type for the request.
|
|
1937
|
+
:type _content_type: str, Optional
|
|
1938
|
+
:param _headers: set to override the headers for a single
|
|
1939
|
+
request; this effectively ignores the headers
|
|
1940
|
+
in the spec for a single request.
|
|
1941
|
+
:type _headers: dict, optional
|
|
1942
|
+
:param _host_index: set to override the host_index for a single
|
|
1943
|
+
request; this effectively ignores the host_index
|
|
1944
|
+
in the spec for a single request.
|
|
1945
|
+
:type _host_index: int, optional
|
|
1946
|
+
:return: Returns the result object.
|
|
1947
|
+
""" # noqa: E501
|
|
1948
|
+
|
|
1949
|
+
_param = self._get_inventory_template_serialize(
|
|
1950
|
+
inventory_template_id=inventory_template_id,
|
|
1951
|
+
_request_auth=_request_auth,
|
|
1952
|
+
_content_type=_content_type,
|
|
1953
|
+
_headers=_headers,
|
|
1954
|
+
_host_index=_host_index
|
|
1955
|
+
)
|
|
1956
|
+
|
|
1957
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1958
|
+
'200': "InventoryTemplate",
|
|
1959
|
+
'401': "Error",
|
|
1960
|
+
}
|
|
1961
|
+
response_data = await self.api_client.call_api(
|
|
1962
|
+
*_param,
|
|
1963
|
+
_request_timeout=_request_timeout
|
|
1964
|
+
)
|
|
1965
|
+
await response_data.read()
|
|
1966
|
+
return self.api_client.response_deserialize(
|
|
1967
|
+
response_data=response_data,
|
|
1968
|
+
response_types_map=_response_types_map,
|
|
1969
|
+
)
|
|
1970
|
+
|
|
1971
|
+
|
|
1972
|
+
@validate_call
|
|
1973
|
+
async def get_inventory_template_without_preload_content(
|
|
1974
|
+
self,
|
|
1975
|
+
inventory_template_id: Annotated[StrictStr, Field(description="Must be a valid inventory template ID.")],
|
|
1976
|
+
_request_timeout: Union[
|
|
1977
|
+
None,
|
|
1978
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1979
|
+
Tuple[
|
|
1980
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1981
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1982
|
+
]
|
|
1983
|
+
] = None,
|
|
1984
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1985
|
+
_content_type: Optional[StrictStr] = None,
|
|
1986
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1987
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1988
|
+
) -> RESTResponseType:
|
|
1989
|
+
"""Get Inventory Template
|
|
1990
|
+
|
|
1991
|
+
Returns an InventoryTemplate object.
|
|
1992
|
+
|
|
1993
|
+
:param inventory_template_id: Must be a valid inventory template ID. (required)
|
|
1994
|
+
:type inventory_template_id: str
|
|
1995
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1996
|
+
number provided, it will be total request
|
|
1997
|
+
timeout. It can also be a pair (tuple) of
|
|
1998
|
+
(connection, read) timeouts.
|
|
1999
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2000
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2001
|
+
request; this effectively ignores the
|
|
2002
|
+
authentication in the spec for a single request.
|
|
2003
|
+
:type _request_auth: dict, optional
|
|
2004
|
+
:param _content_type: force content-type for the request.
|
|
2005
|
+
:type _content_type: str, Optional
|
|
2006
|
+
:param _headers: set to override the headers for a single
|
|
2007
|
+
request; this effectively ignores the headers
|
|
2008
|
+
in the spec for a single request.
|
|
2009
|
+
:type _headers: dict, optional
|
|
2010
|
+
:param _host_index: set to override the host_index for a single
|
|
2011
|
+
request; this effectively ignores the host_index
|
|
2012
|
+
in the spec for a single request.
|
|
2013
|
+
:type _host_index: int, optional
|
|
2014
|
+
:return: Returns the result object.
|
|
2015
|
+
""" # noqa: E501
|
|
2016
|
+
|
|
2017
|
+
_param = self._get_inventory_template_serialize(
|
|
2018
|
+
inventory_template_id=inventory_template_id,
|
|
2019
|
+
_request_auth=_request_auth,
|
|
2020
|
+
_content_type=_content_type,
|
|
2021
|
+
_headers=_headers,
|
|
2022
|
+
_host_index=_host_index
|
|
2023
|
+
)
|
|
2024
|
+
|
|
2025
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2026
|
+
'200': "InventoryTemplate",
|
|
2027
|
+
'401': "Error",
|
|
2028
|
+
}
|
|
2029
|
+
response_data = await self.api_client.call_api(
|
|
2030
|
+
*_param,
|
|
2031
|
+
_request_timeout=_request_timeout
|
|
2032
|
+
)
|
|
2033
|
+
return response_data.response
|
|
2034
|
+
|
|
2035
|
+
|
|
2036
|
+
def _get_inventory_template_serialize(
|
|
2037
|
+
self,
|
|
2038
|
+
inventory_template_id,
|
|
2039
|
+
_request_auth,
|
|
2040
|
+
_content_type,
|
|
2041
|
+
_headers,
|
|
2042
|
+
_host_index,
|
|
2043
|
+
) -> RequestSerialized:
|
|
2044
|
+
|
|
2045
|
+
_host = None
|
|
2046
|
+
|
|
2047
|
+
_collection_formats: Dict[str, str] = {
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
_path_params: Dict[str, str] = {}
|
|
2051
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2052
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2053
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2054
|
+
_files: Dict[
|
|
2055
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2056
|
+
] = {}
|
|
2057
|
+
_body_params: Optional[bytes] = None
|
|
2058
|
+
|
|
2059
|
+
# process the path parameters
|
|
2060
|
+
if inventory_template_id is not None:
|
|
2061
|
+
_path_params['inventoryTemplateId'] = inventory_template_id
|
|
2062
|
+
# process the query parameters
|
|
2063
|
+
# process the header parameters
|
|
2064
|
+
# process the form parameters
|
|
2065
|
+
# process the body parameter
|
|
2066
|
+
|
|
2067
|
+
|
|
2068
|
+
# set the HTTP header `Accept`
|
|
2069
|
+
if 'Accept' not in _header_params:
|
|
2070
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2071
|
+
[
|
|
2072
|
+
'application/json'
|
|
2073
|
+
]
|
|
2074
|
+
)
|
|
2075
|
+
|
|
2076
|
+
|
|
2077
|
+
# authentication setting
|
|
2078
|
+
_auth_settings: List[str] = [
|
|
2079
|
+
'authCookie'
|
|
2080
|
+
]
|
|
2081
|
+
|
|
2082
|
+
return self.api_client.param_serialize(
|
|
2083
|
+
method='GET',
|
|
2084
|
+
resource_path='/inventory/template/{inventoryTemplateId}',
|
|
2085
|
+
path_params=_path_params,
|
|
2086
|
+
query_params=_query_params,
|
|
2087
|
+
header_params=_header_params,
|
|
2088
|
+
body=_body_params,
|
|
2089
|
+
post_params=_form_params,
|
|
2090
|
+
files=_files,
|
|
2091
|
+
auth_settings=_auth_settings,
|
|
2092
|
+
collection_formats=_collection_formats,
|
|
2093
|
+
_host=_host,
|
|
2094
|
+
_request_auth=_request_auth
|
|
2095
|
+
)
|
|
2096
|
+
|
|
2097
|
+
|
|
2098
|
+
|
|
2099
|
+
|
|
2100
|
+
@validate_call
|
|
2101
|
+
async def get_own_inventory_item(
|
|
2102
|
+
self,
|
|
2103
|
+
inventory_item_id: Annotated[StrictStr, Field(description="Must be a valid inventory item ID.")],
|
|
2104
|
+
_request_timeout: Union[
|
|
2105
|
+
None,
|
|
2106
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2107
|
+
Tuple[
|
|
2108
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2109
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2110
|
+
]
|
|
2111
|
+
] = None,
|
|
2112
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2113
|
+
_content_type: Optional[StrictStr] = None,
|
|
2114
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2115
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2116
|
+
) -> InventoryItem:
|
|
2117
|
+
"""Get Own Inventory Item
|
|
2118
|
+
|
|
2119
|
+
Returns an InventoryItem object held by the currently logged in user.
|
|
2120
|
+
|
|
2121
|
+
:param inventory_item_id: Must be a valid inventory item ID. (required)
|
|
2122
|
+
:type inventory_item_id: str
|
|
2123
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2124
|
+
number provided, it will be total request
|
|
2125
|
+
timeout. It can also be a pair (tuple) of
|
|
2126
|
+
(connection, read) timeouts.
|
|
2127
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2128
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2129
|
+
request; this effectively ignores the
|
|
2130
|
+
authentication in the spec for a single request.
|
|
2131
|
+
:type _request_auth: dict, optional
|
|
2132
|
+
:param _content_type: force content-type for the request.
|
|
2133
|
+
:type _content_type: str, Optional
|
|
2134
|
+
:param _headers: set to override the headers for a single
|
|
2135
|
+
request; this effectively ignores the headers
|
|
2136
|
+
in the spec for a single request.
|
|
2137
|
+
:type _headers: dict, optional
|
|
2138
|
+
:param _host_index: set to override the host_index for a single
|
|
2139
|
+
request; this effectively ignores the host_index
|
|
2140
|
+
in the spec for a single request.
|
|
2141
|
+
:type _host_index: int, optional
|
|
2142
|
+
:return: Returns the result object.
|
|
2143
|
+
""" # noqa: E501
|
|
2144
|
+
|
|
2145
|
+
_param = self._get_own_inventory_item_serialize(
|
|
2146
|
+
inventory_item_id=inventory_item_id,
|
|
2147
|
+
_request_auth=_request_auth,
|
|
2148
|
+
_content_type=_content_type,
|
|
2149
|
+
_headers=_headers,
|
|
2150
|
+
_host_index=_host_index
|
|
2151
|
+
)
|
|
2152
|
+
|
|
2153
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2154
|
+
'200': "InventoryItem",
|
|
2155
|
+
'401': "Error",
|
|
2156
|
+
}
|
|
2157
|
+
response_data = await self.api_client.call_api(
|
|
2158
|
+
*_param,
|
|
2159
|
+
_request_timeout=_request_timeout
|
|
2160
|
+
)
|
|
2161
|
+
await response_data.read()
|
|
2162
|
+
return self.api_client.response_deserialize(
|
|
2163
|
+
response_data=response_data,
|
|
2164
|
+
response_types_map=_response_types_map,
|
|
2165
|
+
).data
|
|
2166
|
+
|
|
2167
|
+
|
|
2168
|
+
@validate_call
|
|
2169
|
+
async def get_own_inventory_item_with_http_info(
|
|
2170
|
+
self,
|
|
2171
|
+
inventory_item_id: Annotated[StrictStr, Field(description="Must be a valid inventory item ID.")],
|
|
2172
|
+
_request_timeout: Union[
|
|
2173
|
+
None,
|
|
2174
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2175
|
+
Tuple[
|
|
2176
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2177
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2178
|
+
]
|
|
2179
|
+
] = None,
|
|
2180
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2181
|
+
_content_type: Optional[StrictStr] = None,
|
|
2182
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2183
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2184
|
+
) -> ApiResponse[InventoryItem]:
|
|
2185
|
+
"""Get Own Inventory Item
|
|
2186
|
+
|
|
2187
|
+
Returns an InventoryItem object held by the currently logged in user.
|
|
2188
|
+
|
|
2189
|
+
:param inventory_item_id: Must be a valid inventory item ID. (required)
|
|
2190
|
+
:type inventory_item_id: str
|
|
2191
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2192
|
+
number provided, it will be total request
|
|
2193
|
+
timeout. It can also be a pair (tuple) of
|
|
2194
|
+
(connection, read) timeouts.
|
|
2195
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2196
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2197
|
+
request; this effectively ignores the
|
|
2198
|
+
authentication in the spec for a single request.
|
|
2199
|
+
:type _request_auth: dict, optional
|
|
2200
|
+
:param _content_type: force content-type for the request.
|
|
2201
|
+
:type _content_type: str, Optional
|
|
2202
|
+
:param _headers: set to override the headers for a single
|
|
2203
|
+
request; this effectively ignores the headers
|
|
2204
|
+
in the spec for a single request.
|
|
2205
|
+
:type _headers: dict, optional
|
|
2206
|
+
:param _host_index: set to override the host_index for a single
|
|
2207
|
+
request; this effectively ignores the host_index
|
|
2208
|
+
in the spec for a single request.
|
|
2209
|
+
:type _host_index: int, optional
|
|
2210
|
+
:return: Returns the result object.
|
|
2211
|
+
""" # noqa: E501
|
|
2212
|
+
|
|
2213
|
+
_param = self._get_own_inventory_item_serialize(
|
|
2214
|
+
inventory_item_id=inventory_item_id,
|
|
2215
|
+
_request_auth=_request_auth,
|
|
2216
|
+
_content_type=_content_type,
|
|
2217
|
+
_headers=_headers,
|
|
2218
|
+
_host_index=_host_index
|
|
2219
|
+
)
|
|
2220
|
+
|
|
2221
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2222
|
+
'200': "InventoryItem",
|
|
2223
|
+
'401': "Error",
|
|
2224
|
+
}
|
|
2225
|
+
response_data = await self.api_client.call_api(
|
|
2226
|
+
*_param,
|
|
2227
|
+
_request_timeout=_request_timeout
|
|
2228
|
+
)
|
|
2229
|
+
await response_data.read()
|
|
2230
|
+
return self.api_client.response_deserialize(
|
|
2231
|
+
response_data=response_data,
|
|
2232
|
+
response_types_map=_response_types_map,
|
|
2233
|
+
)
|
|
2234
|
+
|
|
2235
|
+
|
|
2236
|
+
@validate_call
|
|
2237
|
+
async def get_own_inventory_item_without_preload_content(
|
|
2238
|
+
self,
|
|
2239
|
+
inventory_item_id: Annotated[StrictStr, Field(description="Must be a valid inventory item ID.")],
|
|
2240
|
+
_request_timeout: Union[
|
|
2241
|
+
None,
|
|
2242
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2243
|
+
Tuple[
|
|
2244
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2245
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2246
|
+
]
|
|
2247
|
+
] = None,
|
|
2248
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2249
|
+
_content_type: Optional[StrictStr] = None,
|
|
2250
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2251
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2252
|
+
) -> RESTResponseType:
|
|
2253
|
+
"""Get Own Inventory Item
|
|
2254
|
+
|
|
2255
|
+
Returns an InventoryItem object held by the currently logged in user.
|
|
2256
|
+
|
|
2257
|
+
:param inventory_item_id: Must be a valid inventory item ID. (required)
|
|
2258
|
+
:type inventory_item_id: str
|
|
2259
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2260
|
+
number provided, it will be total request
|
|
2261
|
+
timeout. It can also be a pair (tuple) of
|
|
2262
|
+
(connection, read) timeouts.
|
|
2263
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2264
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2265
|
+
request; this effectively ignores the
|
|
2266
|
+
authentication in the spec for a single request.
|
|
2267
|
+
:type _request_auth: dict, optional
|
|
2268
|
+
:param _content_type: force content-type for the request.
|
|
2269
|
+
:type _content_type: str, Optional
|
|
2270
|
+
:param _headers: set to override the headers for a single
|
|
2271
|
+
request; this effectively ignores the headers
|
|
2272
|
+
in the spec for a single request.
|
|
2273
|
+
:type _headers: dict, optional
|
|
2274
|
+
:param _host_index: set to override the host_index for a single
|
|
2275
|
+
request; this effectively ignores the host_index
|
|
2276
|
+
in the spec for a single request.
|
|
2277
|
+
:type _host_index: int, optional
|
|
2278
|
+
:return: Returns the result object.
|
|
2279
|
+
""" # noqa: E501
|
|
2280
|
+
|
|
2281
|
+
_param = self._get_own_inventory_item_serialize(
|
|
2282
|
+
inventory_item_id=inventory_item_id,
|
|
2283
|
+
_request_auth=_request_auth,
|
|
2284
|
+
_content_type=_content_type,
|
|
2285
|
+
_headers=_headers,
|
|
2286
|
+
_host_index=_host_index
|
|
2287
|
+
)
|
|
2288
|
+
|
|
2289
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2290
|
+
'200': "InventoryItem",
|
|
2291
|
+
'401': "Error",
|
|
2292
|
+
}
|
|
2293
|
+
response_data = await self.api_client.call_api(
|
|
2294
|
+
*_param,
|
|
2295
|
+
_request_timeout=_request_timeout
|
|
2296
|
+
)
|
|
2297
|
+
return response_data.response
|
|
2298
|
+
|
|
2299
|
+
|
|
2300
|
+
def _get_own_inventory_item_serialize(
|
|
2301
|
+
self,
|
|
2302
|
+
inventory_item_id,
|
|
2303
|
+
_request_auth,
|
|
2304
|
+
_content_type,
|
|
2305
|
+
_headers,
|
|
2306
|
+
_host_index,
|
|
2307
|
+
) -> RequestSerialized:
|
|
2308
|
+
|
|
2309
|
+
_host = None
|
|
2310
|
+
|
|
2311
|
+
_collection_formats: Dict[str, str] = {
|
|
2312
|
+
}
|
|
2313
|
+
|
|
2314
|
+
_path_params: Dict[str, str] = {}
|
|
2315
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2316
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2317
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2318
|
+
_files: Dict[
|
|
2319
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2320
|
+
] = {}
|
|
2321
|
+
_body_params: Optional[bytes] = None
|
|
2322
|
+
|
|
2323
|
+
# process the path parameters
|
|
2324
|
+
if inventory_item_id is not None:
|
|
2325
|
+
_path_params['inventoryItemId'] = inventory_item_id
|
|
2326
|
+
# process the query parameters
|
|
2327
|
+
# process the header parameters
|
|
2328
|
+
# process the form parameters
|
|
2329
|
+
# process the body parameter
|
|
2330
|
+
|
|
2331
|
+
|
|
2332
|
+
# set the HTTP header `Accept`
|
|
2333
|
+
if 'Accept' not in _header_params:
|
|
2334
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2335
|
+
[
|
|
2336
|
+
'application/json'
|
|
2337
|
+
]
|
|
2338
|
+
)
|
|
2339
|
+
|
|
2340
|
+
|
|
2341
|
+
# authentication setting
|
|
2342
|
+
_auth_settings: List[str] = [
|
|
2343
|
+
'authCookie'
|
|
2344
|
+
]
|
|
2345
|
+
|
|
2346
|
+
return self.api_client.param_serialize(
|
|
2347
|
+
method='GET',
|
|
2348
|
+
resource_path='/inventory/{inventoryItemId}',
|
|
2349
|
+
path_params=_path_params,
|
|
2350
|
+
query_params=_query_params,
|
|
2351
|
+
header_params=_header_params,
|
|
2352
|
+
body=_body_params,
|
|
2353
|
+
post_params=_form_params,
|
|
2354
|
+
files=_files,
|
|
2355
|
+
auth_settings=_auth_settings,
|
|
2356
|
+
collection_formats=_collection_formats,
|
|
2357
|
+
_host=_host,
|
|
2358
|
+
_request_auth=_request_auth
|
|
2359
|
+
)
|
|
2360
|
+
|
|
2361
|
+
|
|
2362
|
+
|
|
2363
|
+
|
|
2364
|
+
@validate_call
|
|
2365
|
+
async def get_user_inventory_item(
|
|
2366
|
+
self,
|
|
2367
|
+
user_id: Annotated[StrictStr, Field(description="Must be a valid user ID.")],
|
|
2368
|
+
inventory_item_id: Annotated[StrictStr, Field(description="Must be a valid inventory item ID.")],
|
|
2369
|
+
_request_timeout: Union[
|
|
2370
|
+
None,
|
|
2371
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2372
|
+
Tuple[
|
|
2373
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2374
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2375
|
+
]
|
|
2376
|
+
] = None,
|
|
2377
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2378
|
+
_content_type: Optional[StrictStr] = None,
|
|
2379
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2380
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2381
|
+
) -> InventoryItem:
|
|
2382
|
+
"""Get User Inventory Item
|
|
2383
|
+
|
|
2384
|
+
Returns an InventoryItem object held by the given user.
|
|
2385
|
+
|
|
2386
|
+
:param user_id: Must be a valid user ID. (required)
|
|
2387
|
+
:type user_id: str
|
|
2388
|
+
:param inventory_item_id: Must be a valid inventory item ID. (required)
|
|
2389
|
+
:type inventory_item_id: str
|
|
2390
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2391
|
+
number provided, it will be total request
|
|
2392
|
+
timeout. It can also be a pair (tuple) of
|
|
2393
|
+
(connection, read) timeouts.
|
|
2394
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2395
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2396
|
+
request; this effectively ignores the
|
|
2397
|
+
authentication in the spec for a single request.
|
|
2398
|
+
:type _request_auth: dict, optional
|
|
2399
|
+
:param _content_type: force content-type for the request.
|
|
2400
|
+
:type _content_type: str, Optional
|
|
2401
|
+
:param _headers: set to override the headers for a single
|
|
2402
|
+
request; this effectively ignores the headers
|
|
2403
|
+
in the spec for a single request.
|
|
2404
|
+
:type _headers: dict, optional
|
|
2405
|
+
:param _host_index: set to override the host_index for a single
|
|
2406
|
+
request; this effectively ignores the host_index
|
|
2407
|
+
in the spec for a single request.
|
|
2408
|
+
:type _host_index: int, optional
|
|
2409
|
+
:return: Returns the result object.
|
|
2410
|
+
""" # noqa: E501
|
|
2411
|
+
|
|
2412
|
+
_param = self._get_user_inventory_item_serialize(
|
|
2413
|
+
user_id=user_id,
|
|
2414
|
+
inventory_item_id=inventory_item_id,
|
|
2415
|
+
_request_auth=_request_auth,
|
|
2416
|
+
_content_type=_content_type,
|
|
2417
|
+
_headers=_headers,
|
|
2418
|
+
_host_index=_host_index
|
|
2419
|
+
)
|
|
2420
|
+
|
|
2421
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2422
|
+
'200': "InventoryItem",
|
|
2423
|
+
'401': "Error",
|
|
2424
|
+
}
|
|
2425
|
+
response_data = await self.api_client.call_api(
|
|
2426
|
+
*_param,
|
|
2427
|
+
_request_timeout=_request_timeout
|
|
2428
|
+
)
|
|
2429
|
+
await response_data.read()
|
|
2430
|
+
return self.api_client.response_deserialize(
|
|
2431
|
+
response_data=response_data,
|
|
2432
|
+
response_types_map=_response_types_map,
|
|
2433
|
+
).data
|
|
2434
|
+
|
|
2435
|
+
|
|
2436
|
+
@validate_call
|
|
2437
|
+
async def get_user_inventory_item_with_http_info(
|
|
2438
|
+
self,
|
|
2439
|
+
user_id: Annotated[StrictStr, Field(description="Must be a valid user ID.")],
|
|
2440
|
+
inventory_item_id: Annotated[StrictStr, Field(description="Must be a valid inventory item ID.")],
|
|
2441
|
+
_request_timeout: Union[
|
|
2442
|
+
None,
|
|
2443
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2444
|
+
Tuple[
|
|
2445
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2446
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2447
|
+
]
|
|
2448
|
+
] = None,
|
|
2449
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2450
|
+
_content_type: Optional[StrictStr] = None,
|
|
2451
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2452
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2453
|
+
) -> ApiResponse[InventoryItem]:
|
|
2454
|
+
"""Get User Inventory Item
|
|
2455
|
+
|
|
2456
|
+
Returns an InventoryItem object held by the given user.
|
|
2457
|
+
|
|
2458
|
+
:param user_id: Must be a valid user ID. (required)
|
|
2459
|
+
:type user_id: str
|
|
2460
|
+
:param inventory_item_id: Must be a valid inventory item ID. (required)
|
|
2461
|
+
:type inventory_item_id: str
|
|
2462
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2463
|
+
number provided, it will be total request
|
|
2464
|
+
timeout. It can also be a pair (tuple) of
|
|
2465
|
+
(connection, read) timeouts.
|
|
2466
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2467
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2468
|
+
request; this effectively ignores the
|
|
2469
|
+
authentication in the spec for a single request.
|
|
2470
|
+
:type _request_auth: dict, optional
|
|
2471
|
+
:param _content_type: force content-type for the request.
|
|
2472
|
+
:type _content_type: str, Optional
|
|
2473
|
+
:param _headers: set to override the headers for a single
|
|
2474
|
+
request; this effectively ignores the headers
|
|
2475
|
+
in the spec for a single request.
|
|
2476
|
+
:type _headers: dict, optional
|
|
2477
|
+
:param _host_index: set to override the host_index for a single
|
|
2478
|
+
request; this effectively ignores the host_index
|
|
2479
|
+
in the spec for a single request.
|
|
2480
|
+
:type _host_index: int, optional
|
|
2481
|
+
:return: Returns the result object.
|
|
2482
|
+
""" # noqa: E501
|
|
2483
|
+
|
|
2484
|
+
_param = self._get_user_inventory_item_serialize(
|
|
2485
|
+
user_id=user_id,
|
|
2486
|
+
inventory_item_id=inventory_item_id,
|
|
2487
|
+
_request_auth=_request_auth,
|
|
2488
|
+
_content_type=_content_type,
|
|
2489
|
+
_headers=_headers,
|
|
2490
|
+
_host_index=_host_index
|
|
2491
|
+
)
|
|
2492
|
+
|
|
2493
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2494
|
+
'200': "InventoryItem",
|
|
2495
|
+
'401': "Error",
|
|
2496
|
+
}
|
|
2497
|
+
response_data = await self.api_client.call_api(
|
|
2498
|
+
*_param,
|
|
2499
|
+
_request_timeout=_request_timeout
|
|
2500
|
+
)
|
|
2501
|
+
await response_data.read()
|
|
2502
|
+
return self.api_client.response_deserialize(
|
|
2503
|
+
response_data=response_data,
|
|
2504
|
+
response_types_map=_response_types_map,
|
|
2505
|
+
)
|
|
2506
|
+
|
|
2507
|
+
|
|
2508
|
+
@validate_call
|
|
2509
|
+
async def get_user_inventory_item_without_preload_content(
|
|
2510
|
+
self,
|
|
2511
|
+
user_id: Annotated[StrictStr, Field(description="Must be a valid user ID.")],
|
|
2512
|
+
inventory_item_id: Annotated[StrictStr, Field(description="Must be a valid inventory item ID.")],
|
|
2513
|
+
_request_timeout: Union[
|
|
2514
|
+
None,
|
|
2515
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2516
|
+
Tuple[
|
|
2517
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2518
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2519
|
+
]
|
|
2520
|
+
] = None,
|
|
2521
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2522
|
+
_content_type: Optional[StrictStr] = None,
|
|
2523
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2524
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2525
|
+
) -> RESTResponseType:
|
|
2526
|
+
"""Get User Inventory Item
|
|
2527
|
+
|
|
2528
|
+
Returns an InventoryItem object held by the given user.
|
|
2529
|
+
|
|
2530
|
+
:param user_id: Must be a valid user ID. (required)
|
|
2531
|
+
:type user_id: str
|
|
2532
|
+
:param inventory_item_id: Must be a valid inventory item ID. (required)
|
|
2533
|
+
:type inventory_item_id: str
|
|
2534
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2535
|
+
number provided, it will be total request
|
|
2536
|
+
timeout. It can also be a pair (tuple) of
|
|
2537
|
+
(connection, read) timeouts.
|
|
2538
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2539
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2540
|
+
request; this effectively ignores the
|
|
2541
|
+
authentication in the spec for a single request.
|
|
2542
|
+
:type _request_auth: dict, optional
|
|
2543
|
+
:param _content_type: force content-type for the request.
|
|
2544
|
+
:type _content_type: str, Optional
|
|
2545
|
+
:param _headers: set to override the headers for a single
|
|
2546
|
+
request; this effectively ignores the headers
|
|
2547
|
+
in the spec for a single request.
|
|
2548
|
+
:type _headers: dict, optional
|
|
2549
|
+
:param _host_index: set to override the host_index for a single
|
|
2550
|
+
request; this effectively ignores the host_index
|
|
2551
|
+
in the spec for a single request.
|
|
2552
|
+
:type _host_index: int, optional
|
|
2553
|
+
:return: Returns the result object.
|
|
2554
|
+
""" # noqa: E501
|
|
2555
|
+
|
|
2556
|
+
_param = self._get_user_inventory_item_serialize(
|
|
2557
|
+
user_id=user_id,
|
|
2558
|
+
inventory_item_id=inventory_item_id,
|
|
2559
|
+
_request_auth=_request_auth,
|
|
2560
|
+
_content_type=_content_type,
|
|
2561
|
+
_headers=_headers,
|
|
2562
|
+
_host_index=_host_index
|
|
2563
|
+
)
|
|
2564
|
+
|
|
2565
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2566
|
+
'200': "InventoryItem",
|
|
2567
|
+
'401': "Error",
|
|
2568
|
+
}
|
|
2569
|
+
response_data = await self.api_client.call_api(
|
|
2570
|
+
*_param,
|
|
2571
|
+
_request_timeout=_request_timeout
|
|
2572
|
+
)
|
|
2573
|
+
return response_data.response
|
|
2574
|
+
|
|
2575
|
+
|
|
2576
|
+
def _get_user_inventory_item_serialize(
|
|
2577
|
+
self,
|
|
2578
|
+
user_id,
|
|
2579
|
+
inventory_item_id,
|
|
2580
|
+
_request_auth,
|
|
2581
|
+
_content_type,
|
|
2582
|
+
_headers,
|
|
2583
|
+
_host_index,
|
|
2584
|
+
) -> RequestSerialized:
|
|
2585
|
+
|
|
2586
|
+
_host = None
|
|
2587
|
+
|
|
2588
|
+
_collection_formats: Dict[str, str] = {
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
_path_params: Dict[str, str] = {}
|
|
2592
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2593
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2594
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2595
|
+
_files: Dict[
|
|
2596
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2597
|
+
] = {}
|
|
2598
|
+
_body_params: Optional[bytes] = None
|
|
2599
|
+
|
|
2600
|
+
# process the path parameters
|
|
2601
|
+
if user_id is not None:
|
|
2602
|
+
_path_params['userId'] = user_id
|
|
2603
|
+
if inventory_item_id is not None:
|
|
2604
|
+
_path_params['inventoryItemId'] = inventory_item_id
|
|
2605
|
+
# process the query parameters
|
|
2606
|
+
# process the header parameters
|
|
2607
|
+
# process the form parameters
|
|
2608
|
+
# process the body parameter
|
|
2609
|
+
|
|
2610
|
+
|
|
2611
|
+
# set the HTTP header `Accept`
|
|
2612
|
+
if 'Accept' not in _header_params:
|
|
2613
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2614
|
+
[
|
|
2615
|
+
'application/json'
|
|
2616
|
+
]
|
|
2617
|
+
)
|
|
2618
|
+
|
|
2619
|
+
|
|
2620
|
+
# authentication setting
|
|
2621
|
+
_auth_settings: List[str] = [
|
|
2622
|
+
'authCookie'
|
|
2623
|
+
]
|
|
2624
|
+
|
|
2625
|
+
return self.api_client.param_serialize(
|
|
2626
|
+
method='GET',
|
|
2627
|
+
resource_path='/user/{userId}/inventory/{inventoryItemId}',
|
|
2628
|
+
path_params=_path_params,
|
|
2629
|
+
query_params=_query_params,
|
|
2630
|
+
header_params=_header_params,
|
|
2631
|
+
body=_body_params,
|
|
2632
|
+
post_params=_form_params,
|
|
2633
|
+
files=_files,
|
|
2634
|
+
auth_settings=_auth_settings,
|
|
2635
|
+
collection_formats=_collection_formats,
|
|
2636
|
+
_host=_host,
|
|
2637
|
+
_request_auth=_request_auth
|
|
2638
|
+
)
|
|
2639
|
+
|
|
2640
|
+
|
|
2641
|
+
|
|
2642
|
+
|
|
2643
|
+
@validate_call
|
|
2644
|
+
async def redeem_reward(
|
|
2645
|
+
self,
|
|
2646
|
+
reward_redemption_request: RewardRedemptionRequest,
|
|
2647
|
+
_request_timeout: Union[
|
|
2648
|
+
None,
|
|
2649
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2650
|
+
Tuple[
|
|
2651
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2652
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2653
|
+
]
|
|
2654
|
+
] = None,
|
|
2655
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2656
|
+
_content_type: Optional[StrictStr] = None,
|
|
2657
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2658
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2659
|
+
) -> List[RewardRedemptionResult]:
|
|
2660
|
+
"""Redeem Reward
|
|
2661
|
+
|
|
2662
|
+
Redeem a reward for the currently logged in user.
|
|
2663
|
+
|
|
2664
|
+
:param reward_redemption_request: (required)
|
|
2665
|
+
:type reward_redemption_request: RewardRedemptionRequest
|
|
2666
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2667
|
+
number provided, it will be total request
|
|
2668
|
+
timeout. It can also be a pair (tuple) of
|
|
2669
|
+
(connection, read) timeouts.
|
|
2670
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2671
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2672
|
+
request; this effectively ignores the
|
|
2673
|
+
authentication in the spec for a single request.
|
|
2674
|
+
:type _request_auth: dict, optional
|
|
2675
|
+
:param _content_type: force content-type for the request.
|
|
2676
|
+
:type _content_type: str, Optional
|
|
2677
|
+
:param _headers: set to override the headers for a single
|
|
2678
|
+
request; this effectively ignores the headers
|
|
2679
|
+
in the spec for a single request.
|
|
2680
|
+
:type _headers: dict, optional
|
|
2681
|
+
:param _host_index: set to override the host_index for a single
|
|
2682
|
+
request; this effectively ignores the host_index
|
|
2683
|
+
in the spec for a single request.
|
|
2684
|
+
:type _host_index: int, optional
|
|
2685
|
+
:return: Returns the result object.
|
|
2686
|
+
""" # noqa: E501
|
|
2687
|
+
|
|
2688
|
+
_param = self._redeem_reward_serialize(
|
|
2689
|
+
reward_redemption_request=reward_redemption_request,
|
|
2690
|
+
_request_auth=_request_auth,
|
|
2691
|
+
_content_type=_content_type,
|
|
2692
|
+
_headers=_headers,
|
|
2693
|
+
_host_index=_host_index
|
|
2694
|
+
)
|
|
2695
|
+
|
|
2696
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2697
|
+
'200': "List[RewardRedemptionResult]",
|
|
2698
|
+
'401': "Error",
|
|
2699
|
+
}
|
|
2700
|
+
response_data = await self.api_client.call_api(
|
|
2701
|
+
*_param,
|
|
2702
|
+
_request_timeout=_request_timeout
|
|
2703
|
+
)
|
|
2704
|
+
await response_data.read()
|
|
2705
|
+
return self.api_client.response_deserialize(
|
|
2706
|
+
response_data=response_data,
|
|
2707
|
+
response_types_map=_response_types_map,
|
|
2708
|
+
).data
|
|
2709
|
+
|
|
2710
|
+
|
|
2711
|
+
@validate_call
|
|
2712
|
+
async def redeem_reward_with_http_info(
|
|
2713
|
+
self,
|
|
2714
|
+
reward_redemption_request: RewardRedemptionRequest,
|
|
2715
|
+
_request_timeout: Union[
|
|
2716
|
+
None,
|
|
2717
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2718
|
+
Tuple[
|
|
2719
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2720
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2721
|
+
]
|
|
2722
|
+
] = None,
|
|
2723
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2724
|
+
_content_type: Optional[StrictStr] = None,
|
|
2725
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2726
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2727
|
+
) -> ApiResponse[List[RewardRedemptionResult]]:
|
|
2728
|
+
"""Redeem Reward
|
|
2729
|
+
|
|
2730
|
+
Redeem a reward for the currently logged in user.
|
|
2731
|
+
|
|
2732
|
+
:param reward_redemption_request: (required)
|
|
2733
|
+
:type reward_redemption_request: RewardRedemptionRequest
|
|
2734
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2735
|
+
number provided, it will be total request
|
|
2736
|
+
timeout. It can also be a pair (tuple) of
|
|
2737
|
+
(connection, read) timeouts.
|
|
2738
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2739
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2740
|
+
request; this effectively ignores the
|
|
2741
|
+
authentication in the spec for a single request.
|
|
2742
|
+
:type _request_auth: dict, optional
|
|
2743
|
+
:param _content_type: force content-type for the request.
|
|
2744
|
+
:type _content_type: str, Optional
|
|
2745
|
+
:param _headers: set to override the headers for a single
|
|
2746
|
+
request; this effectively ignores the headers
|
|
2747
|
+
in the spec for a single request.
|
|
2748
|
+
:type _headers: dict, optional
|
|
2749
|
+
:param _host_index: set to override the host_index for a single
|
|
2750
|
+
request; this effectively ignores the host_index
|
|
2751
|
+
in the spec for a single request.
|
|
2752
|
+
:type _host_index: int, optional
|
|
2753
|
+
:return: Returns the result object.
|
|
2754
|
+
""" # noqa: E501
|
|
2755
|
+
|
|
2756
|
+
_param = self._redeem_reward_serialize(
|
|
2757
|
+
reward_redemption_request=reward_redemption_request,
|
|
2758
|
+
_request_auth=_request_auth,
|
|
2759
|
+
_content_type=_content_type,
|
|
2760
|
+
_headers=_headers,
|
|
2761
|
+
_host_index=_host_index
|
|
2762
|
+
)
|
|
2763
|
+
|
|
2764
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2765
|
+
'200': "List[RewardRedemptionResult]",
|
|
2766
|
+
'401': "Error",
|
|
2767
|
+
}
|
|
2768
|
+
response_data = await self.api_client.call_api(
|
|
2769
|
+
*_param,
|
|
2770
|
+
_request_timeout=_request_timeout
|
|
2771
|
+
)
|
|
2772
|
+
await response_data.read()
|
|
2773
|
+
return self.api_client.response_deserialize(
|
|
2774
|
+
response_data=response_data,
|
|
2775
|
+
response_types_map=_response_types_map,
|
|
2776
|
+
)
|
|
2777
|
+
|
|
2778
|
+
|
|
2779
|
+
@validate_call
|
|
2780
|
+
async def redeem_reward_without_preload_content(
|
|
2781
|
+
self,
|
|
2782
|
+
reward_redemption_request: RewardRedemptionRequest,
|
|
2783
|
+
_request_timeout: Union[
|
|
2784
|
+
None,
|
|
2785
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2786
|
+
Tuple[
|
|
2787
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2788
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2789
|
+
]
|
|
2790
|
+
] = None,
|
|
2791
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2792
|
+
_content_type: Optional[StrictStr] = None,
|
|
2793
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2794
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2795
|
+
) -> RESTResponseType:
|
|
2796
|
+
"""Redeem Reward
|
|
2797
|
+
|
|
2798
|
+
Redeem a reward for the currently logged in user.
|
|
2799
|
+
|
|
2800
|
+
:param reward_redemption_request: (required)
|
|
2801
|
+
:type reward_redemption_request: RewardRedemptionRequest
|
|
2802
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2803
|
+
number provided, it will be total request
|
|
2804
|
+
timeout. It can also be a pair (tuple) of
|
|
2805
|
+
(connection, read) timeouts.
|
|
2806
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2807
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2808
|
+
request; this effectively ignores the
|
|
2809
|
+
authentication in the spec for a single request.
|
|
2810
|
+
:type _request_auth: dict, optional
|
|
2811
|
+
:param _content_type: force content-type for the request.
|
|
2812
|
+
:type _content_type: str, Optional
|
|
2813
|
+
:param _headers: set to override the headers for a single
|
|
2814
|
+
request; this effectively ignores the headers
|
|
2815
|
+
in the spec for a single request.
|
|
2816
|
+
:type _headers: dict, optional
|
|
2817
|
+
:param _host_index: set to override the host_index for a single
|
|
2818
|
+
request; this effectively ignores the host_index
|
|
2819
|
+
in the spec for a single request.
|
|
2820
|
+
:type _host_index: int, optional
|
|
2821
|
+
:return: Returns the result object.
|
|
2822
|
+
""" # noqa: E501
|
|
2823
|
+
|
|
2824
|
+
_param = self._redeem_reward_serialize(
|
|
2825
|
+
reward_redemption_request=reward_redemption_request,
|
|
2826
|
+
_request_auth=_request_auth,
|
|
2827
|
+
_content_type=_content_type,
|
|
2828
|
+
_headers=_headers,
|
|
2829
|
+
_host_index=_host_index
|
|
2830
|
+
)
|
|
2831
|
+
|
|
2832
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2833
|
+
'200': "List[RewardRedemptionResult]",
|
|
2834
|
+
'401': "Error",
|
|
2835
|
+
}
|
|
2836
|
+
response_data = await self.api_client.call_api(
|
|
2837
|
+
*_param,
|
|
2838
|
+
_request_timeout=_request_timeout
|
|
2839
|
+
)
|
|
2840
|
+
return response_data.response
|
|
2841
|
+
|
|
2842
|
+
|
|
2843
|
+
def _redeem_reward_serialize(
|
|
2844
|
+
self,
|
|
2845
|
+
reward_redemption_request,
|
|
2846
|
+
_request_auth,
|
|
2847
|
+
_content_type,
|
|
2848
|
+
_headers,
|
|
2849
|
+
_host_index,
|
|
2850
|
+
) -> RequestSerialized:
|
|
2851
|
+
|
|
2852
|
+
_host = None
|
|
2853
|
+
|
|
2854
|
+
_collection_formats: Dict[str, str] = {
|
|
2855
|
+
}
|
|
2856
|
+
|
|
2857
|
+
_path_params: Dict[str, str] = {}
|
|
2858
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2859
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2860
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2861
|
+
_files: Dict[
|
|
2862
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2863
|
+
] = {}
|
|
2864
|
+
_body_params: Optional[bytes] = None
|
|
2865
|
+
|
|
2866
|
+
# process the path parameters
|
|
2867
|
+
# process the query parameters
|
|
2868
|
+
# process the header parameters
|
|
2869
|
+
# process the form parameters
|
|
2870
|
+
# process the body parameter
|
|
2871
|
+
if reward_redemption_request is not None:
|
|
2872
|
+
_body_params = reward_redemption_request
|
|
2873
|
+
|
|
2874
|
+
|
|
2875
|
+
# set the HTTP header `Accept`
|
|
2876
|
+
if 'Accept' not in _header_params:
|
|
2877
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2878
|
+
[
|
|
2879
|
+
'application/json'
|
|
2880
|
+
]
|
|
2881
|
+
)
|
|
2882
|
+
|
|
2883
|
+
# set the HTTP header `Content-Type`
|
|
2884
|
+
if _content_type:
|
|
2885
|
+
_header_params['Content-Type'] = _content_type
|
|
2886
|
+
else:
|
|
2887
|
+
_default_content_type = (
|
|
2888
|
+
self.api_client.select_header_content_type(
|
|
2889
|
+
[
|
|
2890
|
+
'application/json'
|
|
2891
|
+
]
|
|
2892
|
+
)
|
|
2893
|
+
)
|
|
2894
|
+
if _default_content_type is not None:
|
|
2895
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2896
|
+
|
|
2897
|
+
# authentication setting
|
|
2898
|
+
_auth_settings: List[str] = [
|
|
2899
|
+
'authCookie'
|
|
2900
|
+
]
|
|
2901
|
+
|
|
2902
|
+
return self.api_client.param_serialize(
|
|
2903
|
+
method='POST',
|
|
2904
|
+
resource_path='/reward/redeem',
|
|
2905
|
+
path_params=_path_params,
|
|
2906
|
+
query_params=_query_params,
|
|
2907
|
+
header_params=_header_params,
|
|
2908
|
+
body=_body_params,
|
|
2909
|
+
post_params=_form_params,
|
|
2910
|
+
files=_files,
|
|
2911
|
+
auth_settings=_auth_settings,
|
|
2912
|
+
collection_formats=_collection_formats,
|
|
2913
|
+
_host=_host,
|
|
2914
|
+
_request_auth=_request_auth
|
|
2915
|
+
)
|
|
2916
|
+
|
|
2917
|
+
|
|
2918
|
+
|
|
2919
|
+
|
|
2920
|
+
@validate_call
|
|
2921
|
+
async def share_inventory_item_direct(
|
|
2922
|
+
self,
|
|
2923
|
+
item_id: Annotated[StrictStr, Field(description="Id for inventory item sharing.")],
|
|
2924
|
+
duration: Annotated[int, Field(le=86400, strict=True, ge=30, description="The duration before the sharing pedestal despawns.")],
|
|
2925
|
+
share_inventory_item_direct_request: ShareInventoryItemDirectRequest,
|
|
2926
|
+
_request_timeout: Union[
|
|
2927
|
+
None,
|
|
2928
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2929
|
+
Tuple[
|
|
2930
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2931
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2932
|
+
]
|
|
2933
|
+
] = None,
|
|
2934
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2935
|
+
_content_type: Optional[StrictStr] = None,
|
|
2936
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2937
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2938
|
+
) -> OkStatus:
|
|
2939
|
+
"""Share Inventory Item Direct
|
|
2940
|
+
|
|
2941
|
+
Share content directly with other users.
|
|
2942
|
+
|
|
2943
|
+
:param item_id: Id for inventory item sharing. (required)
|
|
2944
|
+
:type item_id: str
|
|
2945
|
+
:param duration: The duration before the sharing pedestal despawns. (required)
|
|
2946
|
+
:type duration: int
|
|
2947
|
+
:param share_inventory_item_direct_request: (required)
|
|
2948
|
+
:type share_inventory_item_direct_request: ShareInventoryItemDirectRequest
|
|
2949
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2950
|
+
number provided, it will be total request
|
|
2951
|
+
timeout. It can also be a pair (tuple) of
|
|
2952
|
+
(connection, read) timeouts.
|
|
2953
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2954
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2955
|
+
request; this effectively ignores the
|
|
2956
|
+
authentication in the spec for a single request.
|
|
2957
|
+
:type _request_auth: dict, optional
|
|
2958
|
+
:param _content_type: force content-type for the request.
|
|
2959
|
+
:type _content_type: str, Optional
|
|
2960
|
+
:param _headers: set to override the headers for a single
|
|
2961
|
+
request; this effectively ignores the headers
|
|
2962
|
+
in the spec for a single request.
|
|
2963
|
+
:type _headers: dict, optional
|
|
2964
|
+
:param _host_index: set to override the host_index for a single
|
|
2965
|
+
request; this effectively ignores the host_index
|
|
2966
|
+
in the spec for a single request.
|
|
2967
|
+
:type _host_index: int, optional
|
|
2968
|
+
:return: Returns the result object.
|
|
2969
|
+
""" # noqa: E501
|
|
2970
|
+
|
|
2971
|
+
_param = self._share_inventory_item_direct_serialize(
|
|
2972
|
+
item_id=item_id,
|
|
2973
|
+
duration=duration,
|
|
2974
|
+
share_inventory_item_direct_request=share_inventory_item_direct_request,
|
|
2975
|
+
_request_auth=_request_auth,
|
|
2976
|
+
_content_type=_content_type,
|
|
2977
|
+
_headers=_headers,
|
|
2978
|
+
_host_index=_host_index
|
|
2979
|
+
)
|
|
2980
|
+
|
|
2981
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2982
|
+
'200': "OkStatus",
|
|
2983
|
+
'401': "Error",
|
|
2984
|
+
}
|
|
2985
|
+
response_data = await self.api_client.call_api(
|
|
2986
|
+
*_param,
|
|
2987
|
+
_request_timeout=_request_timeout
|
|
2988
|
+
)
|
|
2989
|
+
await response_data.read()
|
|
2990
|
+
return self.api_client.response_deserialize(
|
|
2991
|
+
response_data=response_data,
|
|
2992
|
+
response_types_map=_response_types_map,
|
|
2993
|
+
).data
|
|
2994
|
+
|
|
2995
|
+
|
|
2996
|
+
@validate_call
|
|
2997
|
+
async def share_inventory_item_direct_with_http_info(
|
|
2998
|
+
self,
|
|
2999
|
+
item_id: Annotated[StrictStr, Field(description="Id for inventory item sharing.")],
|
|
3000
|
+
duration: Annotated[int, Field(le=86400, strict=True, ge=30, description="The duration before the sharing pedestal despawns.")],
|
|
3001
|
+
share_inventory_item_direct_request: ShareInventoryItemDirectRequest,
|
|
3002
|
+
_request_timeout: Union[
|
|
3003
|
+
None,
|
|
3004
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3005
|
+
Tuple[
|
|
3006
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3007
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3008
|
+
]
|
|
3009
|
+
] = None,
|
|
3010
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3011
|
+
_content_type: Optional[StrictStr] = None,
|
|
3012
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3013
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3014
|
+
) -> ApiResponse[OkStatus]:
|
|
3015
|
+
"""Share Inventory Item Direct
|
|
3016
|
+
|
|
3017
|
+
Share content directly with other users.
|
|
3018
|
+
|
|
3019
|
+
:param item_id: Id for inventory item sharing. (required)
|
|
3020
|
+
:type item_id: str
|
|
3021
|
+
:param duration: The duration before the sharing pedestal despawns. (required)
|
|
3022
|
+
:type duration: int
|
|
3023
|
+
:param share_inventory_item_direct_request: (required)
|
|
3024
|
+
:type share_inventory_item_direct_request: ShareInventoryItemDirectRequest
|
|
3025
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3026
|
+
number provided, it will be total request
|
|
3027
|
+
timeout. It can also be a pair (tuple) of
|
|
3028
|
+
(connection, read) timeouts.
|
|
3029
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3030
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3031
|
+
request; this effectively ignores the
|
|
3032
|
+
authentication in the spec for a single request.
|
|
3033
|
+
:type _request_auth: dict, optional
|
|
3034
|
+
:param _content_type: force content-type for the request.
|
|
3035
|
+
:type _content_type: str, Optional
|
|
3036
|
+
:param _headers: set to override the headers for a single
|
|
3037
|
+
request; this effectively ignores the headers
|
|
3038
|
+
in the spec for a single request.
|
|
3039
|
+
:type _headers: dict, optional
|
|
3040
|
+
:param _host_index: set to override the host_index for a single
|
|
3041
|
+
request; this effectively ignores the host_index
|
|
3042
|
+
in the spec for a single request.
|
|
3043
|
+
:type _host_index: int, optional
|
|
3044
|
+
:return: Returns the result object.
|
|
3045
|
+
""" # noqa: E501
|
|
3046
|
+
|
|
3047
|
+
_param = self._share_inventory_item_direct_serialize(
|
|
3048
|
+
item_id=item_id,
|
|
3049
|
+
duration=duration,
|
|
3050
|
+
share_inventory_item_direct_request=share_inventory_item_direct_request,
|
|
3051
|
+
_request_auth=_request_auth,
|
|
3052
|
+
_content_type=_content_type,
|
|
3053
|
+
_headers=_headers,
|
|
3054
|
+
_host_index=_host_index
|
|
3055
|
+
)
|
|
3056
|
+
|
|
3057
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3058
|
+
'200': "OkStatus",
|
|
3059
|
+
'401': "Error",
|
|
3060
|
+
}
|
|
3061
|
+
response_data = await self.api_client.call_api(
|
|
3062
|
+
*_param,
|
|
3063
|
+
_request_timeout=_request_timeout
|
|
3064
|
+
)
|
|
3065
|
+
await response_data.read()
|
|
3066
|
+
return self.api_client.response_deserialize(
|
|
3067
|
+
response_data=response_data,
|
|
3068
|
+
response_types_map=_response_types_map,
|
|
3069
|
+
)
|
|
3070
|
+
|
|
3071
|
+
|
|
3072
|
+
@validate_call
|
|
3073
|
+
async def share_inventory_item_direct_without_preload_content(
|
|
3074
|
+
self,
|
|
3075
|
+
item_id: Annotated[StrictStr, Field(description="Id for inventory item sharing.")],
|
|
3076
|
+
duration: Annotated[int, Field(le=86400, strict=True, ge=30, description="The duration before the sharing pedestal despawns.")],
|
|
3077
|
+
share_inventory_item_direct_request: ShareInventoryItemDirectRequest,
|
|
3078
|
+
_request_timeout: Union[
|
|
3079
|
+
None,
|
|
3080
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3081
|
+
Tuple[
|
|
3082
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3083
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3084
|
+
]
|
|
3085
|
+
] = None,
|
|
3086
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3087
|
+
_content_type: Optional[StrictStr] = None,
|
|
3088
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3089
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3090
|
+
) -> RESTResponseType:
|
|
3091
|
+
"""Share Inventory Item Direct
|
|
3092
|
+
|
|
3093
|
+
Share content directly with other users.
|
|
3094
|
+
|
|
3095
|
+
:param item_id: Id for inventory item sharing. (required)
|
|
3096
|
+
:type item_id: str
|
|
3097
|
+
:param duration: The duration before the sharing pedestal despawns. (required)
|
|
3098
|
+
:type duration: int
|
|
3099
|
+
:param share_inventory_item_direct_request: (required)
|
|
3100
|
+
:type share_inventory_item_direct_request: ShareInventoryItemDirectRequest
|
|
3101
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3102
|
+
number provided, it will be total request
|
|
3103
|
+
timeout. It can also be a pair (tuple) of
|
|
3104
|
+
(connection, read) timeouts.
|
|
3105
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3106
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3107
|
+
request; this effectively ignores the
|
|
3108
|
+
authentication in the spec for a single request.
|
|
3109
|
+
:type _request_auth: dict, optional
|
|
3110
|
+
:param _content_type: force content-type for the request.
|
|
3111
|
+
:type _content_type: str, Optional
|
|
3112
|
+
:param _headers: set to override the headers for a single
|
|
3113
|
+
request; this effectively ignores the headers
|
|
3114
|
+
in the spec for a single request.
|
|
3115
|
+
:type _headers: dict, optional
|
|
3116
|
+
:param _host_index: set to override the host_index for a single
|
|
3117
|
+
request; this effectively ignores the host_index
|
|
3118
|
+
in the spec for a single request.
|
|
3119
|
+
:type _host_index: int, optional
|
|
3120
|
+
:return: Returns the result object.
|
|
3121
|
+
""" # noqa: E501
|
|
3122
|
+
|
|
3123
|
+
_param = self._share_inventory_item_direct_serialize(
|
|
3124
|
+
item_id=item_id,
|
|
3125
|
+
duration=duration,
|
|
3126
|
+
share_inventory_item_direct_request=share_inventory_item_direct_request,
|
|
3127
|
+
_request_auth=_request_auth,
|
|
3128
|
+
_content_type=_content_type,
|
|
3129
|
+
_headers=_headers,
|
|
3130
|
+
_host_index=_host_index
|
|
3131
|
+
)
|
|
3132
|
+
|
|
3133
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3134
|
+
'200': "OkStatus",
|
|
3135
|
+
'401': "Error",
|
|
3136
|
+
}
|
|
3137
|
+
response_data = await self.api_client.call_api(
|
|
3138
|
+
*_param,
|
|
3139
|
+
_request_timeout=_request_timeout
|
|
3140
|
+
)
|
|
3141
|
+
return response_data.response
|
|
3142
|
+
|
|
3143
|
+
|
|
3144
|
+
def _share_inventory_item_direct_serialize(
|
|
3145
|
+
self,
|
|
3146
|
+
item_id,
|
|
3147
|
+
duration,
|
|
3148
|
+
share_inventory_item_direct_request,
|
|
3149
|
+
_request_auth,
|
|
3150
|
+
_content_type,
|
|
3151
|
+
_headers,
|
|
3152
|
+
_host_index,
|
|
3153
|
+
) -> RequestSerialized:
|
|
3154
|
+
|
|
3155
|
+
_host = None
|
|
3156
|
+
|
|
3157
|
+
_collection_formats: Dict[str, str] = {
|
|
3158
|
+
}
|
|
3159
|
+
|
|
3160
|
+
_path_params: Dict[str, str] = {}
|
|
3161
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3162
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3163
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3164
|
+
_files: Dict[
|
|
3165
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3166
|
+
] = {}
|
|
3167
|
+
_body_params: Optional[bytes] = None
|
|
3168
|
+
|
|
3169
|
+
# process the path parameters
|
|
3170
|
+
# process the query parameters
|
|
3171
|
+
if item_id is not None:
|
|
3172
|
+
|
|
3173
|
+
_query_params.append(('itemId', item_id))
|
|
3174
|
+
|
|
3175
|
+
if duration is not None:
|
|
3176
|
+
|
|
3177
|
+
_query_params.append(('duration', duration))
|
|
3178
|
+
|
|
3179
|
+
# process the header parameters
|
|
3180
|
+
# process the form parameters
|
|
3181
|
+
# process the body parameter
|
|
3182
|
+
if share_inventory_item_direct_request is not None:
|
|
3183
|
+
_body_params = share_inventory_item_direct_request
|
|
3184
|
+
|
|
3185
|
+
|
|
3186
|
+
# set the HTTP header `Accept`
|
|
3187
|
+
if 'Accept' not in _header_params:
|
|
3188
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3189
|
+
[
|
|
3190
|
+
'application/json'
|
|
3191
|
+
]
|
|
3192
|
+
)
|
|
3193
|
+
|
|
3194
|
+
# set the HTTP header `Content-Type`
|
|
3195
|
+
if _content_type:
|
|
3196
|
+
_header_params['Content-Type'] = _content_type
|
|
3197
|
+
else:
|
|
3198
|
+
_default_content_type = (
|
|
3199
|
+
self.api_client.select_header_content_type(
|
|
3200
|
+
[
|
|
3201
|
+
'application/json'
|
|
3202
|
+
]
|
|
3203
|
+
)
|
|
3204
|
+
)
|
|
3205
|
+
if _default_content_type is not None:
|
|
3206
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3207
|
+
|
|
3208
|
+
# authentication setting
|
|
3209
|
+
_auth_settings: List[str] = [
|
|
3210
|
+
'authCookie'
|
|
3211
|
+
]
|
|
3212
|
+
|
|
3213
|
+
return self.api_client.param_serialize(
|
|
3214
|
+
method='POST',
|
|
3215
|
+
resource_path='/inventory/cloning/direct',
|
|
3216
|
+
path_params=_path_params,
|
|
3217
|
+
query_params=_query_params,
|
|
3218
|
+
header_params=_header_params,
|
|
3219
|
+
body=_body_params,
|
|
3220
|
+
post_params=_form_params,
|
|
3221
|
+
files=_files,
|
|
3222
|
+
auth_settings=_auth_settings,
|
|
3223
|
+
collection_formats=_collection_formats,
|
|
3224
|
+
_host=_host,
|
|
3225
|
+
_request_auth=_request_auth
|
|
3226
|
+
)
|
|
3227
|
+
|
|
3228
|
+
|
|
3229
|
+
|
|
3230
|
+
|
|
3231
|
+
@validate_call
|
|
3232
|
+
async def share_inventory_item_pedestal(
|
|
3233
|
+
self,
|
|
3234
|
+
item_id: Annotated[StrictStr, Field(description="Id for inventory item sharing.")],
|
|
3235
|
+
duration: Annotated[int, Field(le=86400, strict=True, ge=30, description="The duration before the sharing pedestal despawns.")],
|
|
3236
|
+
_request_timeout: Union[
|
|
3237
|
+
None,
|
|
3238
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3239
|
+
Tuple[
|
|
3240
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3241
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3242
|
+
]
|
|
3243
|
+
] = None,
|
|
3244
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3245
|
+
_content_type: Optional[StrictStr] = None,
|
|
3246
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3247
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3248
|
+
) -> InventorySpawn:
|
|
3249
|
+
"""Share Inventory Item by Pedestal
|
|
3250
|
+
|
|
3251
|
+
Returns an InventorySpawn object.
|
|
3252
|
+
|
|
3253
|
+
:param item_id: Id for inventory item sharing. (required)
|
|
3254
|
+
:type item_id: str
|
|
3255
|
+
:param duration: The duration before the sharing pedestal despawns. (required)
|
|
3256
|
+
:type duration: int
|
|
3257
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3258
|
+
number provided, it will be total request
|
|
3259
|
+
timeout. It can also be a pair (tuple) of
|
|
3260
|
+
(connection, read) timeouts.
|
|
3261
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3262
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3263
|
+
request; this effectively ignores the
|
|
3264
|
+
authentication in the spec for a single request.
|
|
3265
|
+
:type _request_auth: dict, optional
|
|
3266
|
+
:param _content_type: force content-type for the request.
|
|
3267
|
+
:type _content_type: str, Optional
|
|
3268
|
+
:param _headers: set to override the headers for a single
|
|
3269
|
+
request; this effectively ignores the headers
|
|
3270
|
+
in the spec for a single request.
|
|
3271
|
+
:type _headers: dict, optional
|
|
3272
|
+
:param _host_index: set to override the host_index for a single
|
|
3273
|
+
request; this effectively ignores the host_index
|
|
3274
|
+
in the spec for a single request.
|
|
3275
|
+
:type _host_index: int, optional
|
|
3276
|
+
:return: Returns the result object.
|
|
3277
|
+
""" # noqa: E501
|
|
3278
|
+
|
|
3279
|
+
_param = self._share_inventory_item_pedestal_serialize(
|
|
3280
|
+
item_id=item_id,
|
|
3281
|
+
duration=duration,
|
|
3282
|
+
_request_auth=_request_auth,
|
|
3283
|
+
_content_type=_content_type,
|
|
3284
|
+
_headers=_headers,
|
|
3285
|
+
_host_index=_host_index
|
|
3286
|
+
)
|
|
3287
|
+
|
|
3288
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3289
|
+
'200': "InventorySpawn",
|
|
3290
|
+
'401': "Error",
|
|
3291
|
+
}
|
|
3292
|
+
response_data = await self.api_client.call_api(
|
|
3293
|
+
*_param,
|
|
3294
|
+
_request_timeout=_request_timeout
|
|
3295
|
+
)
|
|
3296
|
+
await response_data.read()
|
|
3297
|
+
return self.api_client.response_deserialize(
|
|
3298
|
+
response_data=response_data,
|
|
3299
|
+
response_types_map=_response_types_map,
|
|
3300
|
+
).data
|
|
3301
|
+
|
|
3302
|
+
|
|
3303
|
+
@validate_call
|
|
3304
|
+
async def share_inventory_item_pedestal_with_http_info(
|
|
3305
|
+
self,
|
|
3306
|
+
item_id: Annotated[StrictStr, Field(description="Id for inventory item sharing.")],
|
|
3307
|
+
duration: Annotated[int, Field(le=86400, strict=True, ge=30, description="The duration before the sharing pedestal despawns.")],
|
|
3308
|
+
_request_timeout: Union[
|
|
3309
|
+
None,
|
|
3310
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3311
|
+
Tuple[
|
|
3312
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3313
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3314
|
+
]
|
|
3315
|
+
] = None,
|
|
3316
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3317
|
+
_content_type: Optional[StrictStr] = None,
|
|
3318
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3319
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3320
|
+
) -> ApiResponse[InventorySpawn]:
|
|
3321
|
+
"""Share Inventory Item by Pedestal
|
|
3322
|
+
|
|
3323
|
+
Returns an InventorySpawn object.
|
|
3324
|
+
|
|
3325
|
+
:param item_id: Id for inventory item sharing. (required)
|
|
3326
|
+
:type item_id: str
|
|
3327
|
+
:param duration: The duration before the sharing pedestal despawns. (required)
|
|
3328
|
+
:type duration: int
|
|
3329
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3330
|
+
number provided, it will be total request
|
|
3331
|
+
timeout. It can also be a pair (tuple) of
|
|
3332
|
+
(connection, read) timeouts.
|
|
3333
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3334
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3335
|
+
request; this effectively ignores the
|
|
3336
|
+
authentication in the spec for a single request.
|
|
3337
|
+
:type _request_auth: dict, optional
|
|
3338
|
+
:param _content_type: force content-type for the request.
|
|
3339
|
+
:type _content_type: str, Optional
|
|
3340
|
+
:param _headers: set to override the headers for a single
|
|
3341
|
+
request; this effectively ignores the headers
|
|
3342
|
+
in the spec for a single request.
|
|
3343
|
+
:type _headers: dict, optional
|
|
3344
|
+
:param _host_index: set to override the host_index for a single
|
|
3345
|
+
request; this effectively ignores the host_index
|
|
3346
|
+
in the spec for a single request.
|
|
3347
|
+
:type _host_index: int, optional
|
|
3348
|
+
:return: Returns the result object.
|
|
3349
|
+
""" # noqa: E501
|
|
3350
|
+
|
|
3351
|
+
_param = self._share_inventory_item_pedestal_serialize(
|
|
3352
|
+
item_id=item_id,
|
|
3353
|
+
duration=duration,
|
|
3354
|
+
_request_auth=_request_auth,
|
|
3355
|
+
_content_type=_content_type,
|
|
3356
|
+
_headers=_headers,
|
|
3357
|
+
_host_index=_host_index
|
|
3358
|
+
)
|
|
3359
|
+
|
|
3360
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3361
|
+
'200': "InventorySpawn",
|
|
3362
|
+
'401': "Error",
|
|
3363
|
+
}
|
|
3364
|
+
response_data = await self.api_client.call_api(
|
|
3365
|
+
*_param,
|
|
3366
|
+
_request_timeout=_request_timeout
|
|
3367
|
+
)
|
|
3368
|
+
await response_data.read()
|
|
3369
|
+
return self.api_client.response_deserialize(
|
|
3370
|
+
response_data=response_data,
|
|
3371
|
+
response_types_map=_response_types_map,
|
|
3372
|
+
)
|
|
3373
|
+
|
|
3374
|
+
|
|
3375
|
+
@validate_call
|
|
3376
|
+
async def share_inventory_item_pedestal_without_preload_content(
|
|
3377
|
+
self,
|
|
3378
|
+
item_id: Annotated[StrictStr, Field(description="Id for inventory item sharing.")],
|
|
3379
|
+
duration: Annotated[int, Field(le=86400, strict=True, ge=30, description="The duration before the sharing pedestal despawns.")],
|
|
3380
|
+
_request_timeout: Union[
|
|
3381
|
+
None,
|
|
3382
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3383
|
+
Tuple[
|
|
3384
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3385
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3386
|
+
]
|
|
3387
|
+
] = None,
|
|
3388
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3389
|
+
_content_type: Optional[StrictStr] = None,
|
|
3390
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3391
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3392
|
+
) -> RESTResponseType:
|
|
3393
|
+
"""Share Inventory Item by Pedestal
|
|
3394
|
+
|
|
3395
|
+
Returns an InventorySpawn object.
|
|
3396
|
+
|
|
3397
|
+
:param item_id: Id for inventory item sharing. (required)
|
|
3398
|
+
:type item_id: str
|
|
3399
|
+
:param duration: The duration before the sharing pedestal despawns. (required)
|
|
3400
|
+
:type duration: int
|
|
3401
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3402
|
+
number provided, it will be total request
|
|
3403
|
+
timeout. It can also be a pair (tuple) of
|
|
3404
|
+
(connection, read) timeouts.
|
|
3405
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3406
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3407
|
+
request; this effectively ignores the
|
|
3408
|
+
authentication in the spec for a single request.
|
|
3409
|
+
:type _request_auth: dict, optional
|
|
3410
|
+
:param _content_type: force content-type for the request.
|
|
3411
|
+
:type _content_type: str, Optional
|
|
3412
|
+
:param _headers: set to override the headers for a single
|
|
3413
|
+
request; this effectively ignores the headers
|
|
3414
|
+
in the spec for a single request.
|
|
3415
|
+
:type _headers: dict, optional
|
|
3416
|
+
:param _host_index: set to override the host_index for a single
|
|
3417
|
+
request; this effectively ignores the host_index
|
|
3418
|
+
in the spec for a single request.
|
|
3419
|
+
:type _host_index: int, optional
|
|
3420
|
+
:return: Returns the result object.
|
|
3421
|
+
""" # noqa: E501
|
|
3422
|
+
|
|
3423
|
+
_param = self._share_inventory_item_pedestal_serialize(
|
|
3424
|
+
item_id=item_id,
|
|
3425
|
+
duration=duration,
|
|
3426
|
+
_request_auth=_request_auth,
|
|
3427
|
+
_content_type=_content_type,
|
|
3428
|
+
_headers=_headers,
|
|
3429
|
+
_host_index=_host_index
|
|
3430
|
+
)
|
|
3431
|
+
|
|
3432
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3433
|
+
'200': "InventorySpawn",
|
|
3434
|
+
'401': "Error",
|
|
3435
|
+
}
|
|
3436
|
+
response_data = await self.api_client.call_api(
|
|
3437
|
+
*_param,
|
|
3438
|
+
_request_timeout=_request_timeout
|
|
3439
|
+
)
|
|
3440
|
+
return response_data.response
|
|
3441
|
+
|
|
3442
|
+
|
|
3443
|
+
def _share_inventory_item_pedestal_serialize(
|
|
3444
|
+
self,
|
|
3445
|
+
item_id,
|
|
3446
|
+
duration,
|
|
3447
|
+
_request_auth,
|
|
3448
|
+
_content_type,
|
|
3449
|
+
_headers,
|
|
3450
|
+
_host_index,
|
|
3451
|
+
) -> RequestSerialized:
|
|
3452
|
+
|
|
3453
|
+
_host = None
|
|
3454
|
+
|
|
3455
|
+
_collection_formats: Dict[str, str] = {
|
|
3456
|
+
}
|
|
3457
|
+
|
|
3458
|
+
_path_params: Dict[str, str] = {}
|
|
3459
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3460
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3461
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3462
|
+
_files: Dict[
|
|
3463
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3464
|
+
] = {}
|
|
3465
|
+
_body_params: Optional[bytes] = None
|
|
3466
|
+
|
|
3467
|
+
# process the path parameters
|
|
3468
|
+
# process the query parameters
|
|
3469
|
+
if item_id is not None:
|
|
3470
|
+
|
|
3471
|
+
_query_params.append(('itemId', item_id))
|
|
3472
|
+
|
|
3473
|
+
if duration is not None:
|
|
3474
|
+
|
|
3475
|
+
_query_params.append(('duration', duration))
|
|
3476
|
+
|
|
3477
|
+
# process the header parameters
|
|
3478
|
+
# process the form parameters
|
|
3479
|
+
# process the body parameter
|
|
3480
|
+
|
|
3481
|
+
|
|
3482
|
+
# set the HTTP header `Accept`
|
|
3483
|
+
if 'Accept' not in _header_params:
|
|
3484
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3485
|
+
[
|
|
3486
|
+
'application/json'
|
|
3487
|
+
]
|
|
3488
|
+
)
|
|
3489
|
+
|
|
3490
|
+
|
|
3491
|
+
# authentication setting
|
|
3492
|
+
_auth_settings: List[str] = [
|
|
3493
|
+
'authCookie'
|
|
3494
|
+
]
|
|
3495
|
+
|
|
3496
|
+
return self.api_client.param_serialize(
|
|
3497
|
+
method='GET',
|
|
3498
|
+
resource_path='/inventory/cloning/pedestal',
|
|
3499
|
+
path_params=_path_params,
|
|
3500
|
+
query_params=_query_params,
|
|
3501
|
+
header_params=_header_params,
|
|
3502
|
+
body=_body_params,
|
|
3503
|
+
post_params=_form_params,
|
|
3504
|
+
files=_files,
|
|
3505
|
+
auth_settings=_auth_settings,
|
|
3506
|
+
collection_formats=_collection_formats,
|
|
3507
|
+
_host=_host,
|
|
3508
|
+
_request_auth=_request_auth
|
|
3509
|
+
)
|
|
3510
|
+
|
|
3511
|
+
|
|
3512
|
+
|
|
3513
|
+
|
|
3514
|
+
@validate_call
|
|
3515
|
+
async def spawn_inventory_item(
|
|
3516
|
+
self,
|
|
3517
|
+
id: Annotated[StrictStr, Field(description="Id for inventory item spawning.")],
|
|
3518
|
+
_request_timeout: Union[
|
|
3519
|
+
None,
|
|
3520
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3521
|
+
Tuple[
|
|
3522
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3523
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3524
|
+
]
|
|
3525
|
+
] = None,
|
|
3526
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3527
|
+
_content_type: Optional[StrictStr] = None,
|
|
3528
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3529
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3530
|
+
) -> InventorySpawn:
|
|
3531
|
+
"""Spawn Inventory Item
|
|
3532
|
+
|
|
3533
|
+
Returns an InventorySpawn object.
|
|
3534
|
+
|
|
3535
|
+
:param id: Id for inventory item spawning. (required)
|
|
3536
|
+
:type id: str
|
|
3537
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3538
|
+
number provided, it will be total request
|
|
3539
|
+
timeout. It can also be a pair (tuple) of
|
|
3540
|
+
(connection, read) timeouts.
|
|
3541
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3542
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3543
|
+
request; this effectively ignores the
|
|
3544
|
+
authentication in the spec for a single request.
|
|
3545
|
+
:type _request_auth: dict, optional
|
|
3546
|
+
:param _content_type: force content-type for the request.
|
|
3547
|
+
:type _content_type: str, Optional
|
|
3548
|
+
:param _headers: set to override the headers for a single
|
|
3549
|
+
request; this effectively ignores the headers
|
|
3550
|
+
in the spec for a single request.
|
|
3551
|
+
:type _headers: dict, optional
|
|
3552
|
+
:param _host_index: set to override the host_index for a single
|
|
3553
|
+
request; this effectively ignores the host_index
|
|
3554
|
+
in the spec for a single request.
|
|
3555
|
+
:type _host_index: int, optional
|
|
3556
|
+
:return: Returns the result object.
|
|
3557
|
+
""" # noqa: E501
|
|
3558
|
+
|
|
3559
|
+
_param = self._spawn_inventory_item_serialize(
|
|
3560
|
+
id=id,
|
|
3561
|
+
_request_auth=_request_auth,
|
|
3562
|
+
_content_type=_content_type,
|
|
3563
|
+
_headers=_headers,
|
|
3564
|
+
_host_index=_host_index
|
|
3565
|
+
)
|
|
3566
|
+
|
|
3567
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3568
|
+
'200': "InventorySpawn",
|
|
3569
|
+
'401': "Error",
|
|
3570
|
+
}
|
|
3571
|
+
response_data = await self.api_client.call_api(
|
|
3572
|
+
*_param,
|
|
3573
|
+
_request_timeout=_request_timeout
|
|
3574
|
+
)
|
|
3575
|
+
await response_data.read()
|
|
3576
|
+
return self.api_client.response_deserialize(
|
|
3577
|
+
response_data=response_data,
|
|
3578
|
+
response_types_map=_response_types_map,
|
|
3579
|
+
).data
|
|
3580
|
+
|
|
3581
|
+
|
|
3582
|
+
@validate_call
|
|
3583
|
+
async def spawn_inventory_item_with_http_info(
|
|
3584
|
+
self,
|
|
3585
|
+
id: Annotated[StrictStr, Field(description="Id for inventory item spawning.")],
|
|
3586
|
+
_request_timeout: Union[
|
|
3587
|
+
None,
|
|
3588
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3589
|
+
Tuple[
|
|
3590
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3591
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3592
|
+
]
|
|
3593
|
+
] = None,
|
|
3594
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3595
|
+
_content_type: Optional[StrictStr] = None,
|
|
3596
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3597
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3598
|
+
) -> ApiResponse[InventorySpawn]:
|
|
3599
|
+
"""Spawn Inventory Item
|
|
3600
|
+
|
|
3601
|
+
Returns an InventorySpawn object.
|
|
3602
|
+
|
|
3603
|
+
:param id: Id for inventory item spawning. (required)
|
|
3604
|
+
:type id: str
|
|
3605
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3606
|
+
number provided, it will be total request
|
|
3607
|
+
timeout. It can also be a pair (tuple) of
|
|
3608
|
+
(connection, read) timeouts.
|
|
3609
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3610
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3611
|
+
request; this effectively ignores the
|
|
3612
|
+
authentication in the spec for a single request.
|
|
3613
|
+
:type _request_auth: dict, optional
|
|
3614
|
+
:param _content_type: force content-type for the request.
|
|
3615
|
+
:type _content_type: str, Optional
|
|
3616
|
+
:param _headers: set to override the headers for a single
|
|
3617
|
+
request; this effectively ignores the headers
|
|
3618
|
+
in the spec for a single request.
|
|
3619
|
+
:type _headers: dict, optional
|
|
3620
|
+
:param _host_index: set to override the host_index for a single
|
|
3621
|
+
request; this effectively ignores the host_index
|
|
3622
|
+
in the spec for a single request.
|
|
3623
|
+
:type _host_index: int, optional
|
|
3624
|
+
:return: Returns the result object.
|
|
3625
|
+
""" # noqa: E501
|
|
3626
|
+
|
|
3627
|
+
_param = self._spawn_inventory_item_serialize(
|
|
3628
|
+
id=id,
|
|
3629
|
+
_request_auth=_request_auth,
|
|
3630
|
+
_content_type=_content_type,
|
|
3631
|
+
_headers=_headers,
|
|
3632
|
+
_host_index=_host_index
|
|
3633
|
+
)
|
|
3634
|
+
|
|
3635
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3636
|
+
'200': "InventorySpawn",
|
|
3637
|
+
'401': "Error",
|
|
3638
|
+
}
|
|
3639
|
+
response_data = await self.api_client.call_api(
|
|
3640
|
+
*_param,
|
|
3641
|
+
_request_timeout=_request_timeout
|
|
3642
|
+
)
|
|
3643
|
+
await response_data.read()
|
|
3644
|
+
return self.api_client.response_deserialize(
|
|
3645
|
+
response_data=response_data,
|
|
3646
|
+
response_types_map=_response_types_map,
|
|
3647
|
+
)
|
|
3648
|
+
|
|
3649
|
+
|
|
3650
|
+
@validate_call
|
|
3651
|
+
async def spawn_inventory_item_without_preload_content(
|
|
3652
|
+
self,
|
|
3653
|
+
id: Annotated[StrictStr, Field(description="Id for inventory item spawning.")],
|
|
3654
|
+
_request_timeout: Union[
|
|
3655
|
+
None,
|
|
3656
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3657
|
+
Tuple[
|
|
3658
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3659
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3660
|
+
]
|
|
3661
|
+
] = None,
|
|
3662
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3663
|
+
_content_type: Optional[StrictStr] = None,
|
|
3664
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3665
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3666
|
+
) -> RESTResponseType:
|
|
3667
|
+
"""Spawn Inventory Item
|
|
3668
|
+
|
|
3669
|
+
Returns an InventorySpawn object.
|
|
3670
|
+
|
|
3671
|
+
:param id: Id for inventory item spawning. (required)
|
|
3672
|
+
:type id: str
|
|
3673
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3674
|
+
number provided, it will be total request
|
|
3675
|
+
timeout. It can also be a pair (tuple) of
|
|
3676
|
+
(connection, read) timeouts.
|
|
3677
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3678
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3679
|
+
request; this effectively ignores the
|
|
3680
|
+
authentication in the spec for a single request.
|
|
3681
|
+
:type _request_auth: dict, optional
|
|
3682
|
+
:param _content_type: force content-type for the request.
|
|
3683
|
+
:type _content_type: str, Optional
|
|
3684
|
+
:param _headers: set to override the headers for a single
|
|
3685
|
+
request; this effectively ignores the headers
|
|
3686
|
+
in the spec for a single request.
|
|
3687
|
+
:type _headers: dict, optional
|
|
3688
|
+
:param _host_index: set to override the host_index for a single
|
|
3689
|
+
request; this effectively ignores the host_index
|
|
3690
|
+
in the spec for a single request.
|
|
3691
|
+
:type _host_index: int, optional
|
|
3692
|
+
:return: Returns the result object.
|
|
3693
|
+
""" # noqa: E501
|
|
3694
|
+
|
|
3695
|
+
_param = self._spawn_inventory_item_serialize(
|
|
3696
|
+
id=id,
|
|
3697
|
+
_request_auth=_request_auth,
|
|
3698
|
+
_content_type=_content_type,
|
|
3699
|
+
_headers=_headers,
|
|
3700
|
+
_host_index=_host_index
|
|
3701
|
+
)
|
|
3702
|
+
|
|
3703
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3704
|
+
'200': "InventorySpawn",
|
|
3705
|
+
'401': "Error",
|
|
3706
|
+
}
|
|
3707
|
+
response_data = await self.api_client.call_api(
|
|
3708
|
+
*_param,
|
|
3709
|
+
_request_timeout=_request_timeout
|
|
3710
|
+
)
|
|
3711
|
+
return response_data.response
|
|
3712
|
+
|
|
3713
|
+
|
|
3714
|
+
def _spawn_inventory_item_serialize(
|
|
3715
|
+
self,
|
|
3716
|
+
id,
|
|
3717
|
+
_request_auth,
|
|
3718
|
+
_content_type,
|
|
3719
|
+
_headers,
|
|
3720
|
+
_host_index,
|
|
3721
|
+
) -> RequestSerialized:
|
|
3722
|
+
|
|
3723
|
+
_host = None
|
|
3724
|
+
|
|
3725
|
+
_collection_formats: Dict[str, str] = {
|
|
3726
|
+
}
|
|
3727
|
+
|
|
3728
|
+
_path_params: Dict[str, str] = {}
|
|
3729
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3730
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3731
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3732
|
+
_files: Dict[
|
|
3733
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3734
|
+
] = {}
|
|
3735
|
+
_body_params: Optional[bytes] = None
|
|
3736
|
+
|
|
3737
|
+
# process the path parameters
|
|
3738
|
+
# process the query parameters
|
|
3739
|
+
if id is not None:
|
|
3740
|
+
|
|
3741
|
+
_query_params.append(('id', id))
|
|
3742
|
+
|
|
3743
|
+
# process the header parameters
|
|
3744
|
+
# process the form parameters
|
|
3745
|
+
# process the body parameter
|
|
3746
|
+
|
|
3747
|
+
|
|
3748
|
+
# set the HTTP header `Accept`
|
|
3749
|
+
if 'Accept' not in _header_params:
|
|
3750
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3751
|
+
[
|
|
3752
|
+
'application/json'
|
|
3753
|
+
]
|
|
3754
|
+
)
|
|
3755
|
+
|
|
3756
|
+
|
|
3757
|
+
# authentication setting
|
|
3758
|
+
_auth_settings: List[str] = [
|
|
3759
|
+
'authCookie'
|
|
3760
|
+
]
|
|
3761
|
+
|
|
3762
|
+
return self.api_client.param_serialize(
|
|
3763
|
+
method='GET',
|
|
3764
|
+
resource_path='/inventory/spawn',
|
|
3765
|
+
path_params=_path_params,
|
|
3766
|
+
query_params=_query_params,
|
|
3767
|
+
header_params=_header_params,
|
|
3768
|
+
body=_body_params,
|
|
3769
|
+
post_params=_form_params,
|
|
3770
|
+
files=_files,
|
|
3771
|
+
auth_settings=_auth_settings,
|
|
3772
|
+
collection_formats=_collection_formats,
|
|
3773
|
+
_host=_host,
|
|
3774
|
+
_request_auth=_request_auth
|
|
3775
|
+
)
|
|
3776
|
+
|
|
3777
|
+
|
|
3778
|
+
|
|
3779
|
+
|
|
3780
|
+
@validate_call
|
|
3781
|
+
async def unequip_own_inventory_slot(
|
|
3782
|
+
self,
|
|
3783
|
+
inventory_item_id: Annotated[InventoryEquipSlot, Field(description="Selector for inventory slot management.")],
|
|
3784
|
+
_request_timeout: Union[
|
|
3785
|
+
None,
|
|
3786
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3787
|
+
Tuple[
|
|
3788
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3789
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3790
|
+
]
|
|
3791
|
+
] = None,
|
|
3792
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3793
|
+
_content_type: Optional[StrictStr] = None,
|
|
3794
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3795
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3796
|
+
) -> str:
|
|
3797
|
+
"""Unequip Own Inventory Slot
|
|
3798
|
+
|
|
3799
|
+
Unequips the InventoryItem in the given slot of the inventory of the currently logged in user.
|
|
3800
|
+
|
|
3801
|
+
:param inventory_item_id: Selector for inventory slot management. (required)
|
|
3802
|
+
:type inventory_item_id: InventoryEquipSlot
|
|
3803
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3804
|
+
number provided, it will be total request
|
|
3805
|
+
timeout. It can also be a pair (tuple) of
|
|
3806
|
+
(connection, read) timeouts.
|
|
3807
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3808
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3809
|
+
request; this effectively ignores the
|
|
3810
|
+
authentication in the spec for a single request.
|
|
3811
|
+
:type _request_auth: dict, optional
|
|
3812
|
+
:param _content_type: force content-type for the request.
|
|
3813
|
+
:type _content_type: str, Optional
|
|
3814
|
+
:param _headers: set to override the headers for a single
|
|
3815
|
+
request; this effectively ignores the headers
|
|
3816
|
+
in the spec for a single request.
|
|
3817
|
+
:type _headers: dict, optional
|
|
3818
|
+
:param _host_index: set to override the host_index for a single
|
|
3819
|
+
request; this effectively ignores the host_index
|
|
3820
|
+
in the spec for a single request.
|
|
3821
|
+
:type _host_index: int, optional
|
|
3822
|
+
:return: Returns the result object.
|
|
3823
|
+
""" # noqa: E501
|
|
3824
|
+
|
|
3825
|
+
_param = self._unequip_own_inventory_slot_serialize(
|
|
3826
|
+
inventory_item_id=inventory_item_id,
|
|
3827
|
+
_request_auth=_request_auth,
|
|
3828
|
+
_content_type=_content_type,
|
|
3829
|
+
_headers=_headers,
|
|
3830
|
+
_host_index=_host_index
|
|
3831
|
+
)
|
|
3832
|
+
|
|
3833
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3834
|
+
'200': "str",
|
|
3835
|
+
'401': "Error",
|
|
3836
|
+
}
|
|
3837
|
+
response_data = await self.api_client.call_api(
|
|
3838
|
+
*_param,
|
|
3839
|
+
_request_timeout=_request_timeout
|
|
3840
|
+
)
|
|
3841
|
+
await response_data.read()
|
|
3842
|
+
return self.api_client.response_deserialize(
|
|
3843
|
+
response_data=response_data,
|
|
3844
|
+
response_types_map=_response_types_map,
|
|
3845
|
+
).data
|
|
3846
|
+
|
|
3847
|
+
|
|
3848
|
+
@validate_call
|
|
3849
|
+
async def unequip_own_inventory_slot_with_http_info(
|
|
3850
|
+
self,
|
|
3851
|
+
inventory_item_id: Annotated[InventoryEquipSlot, Field(description="Selector for inventory slot management.")],
|
|
3852
|
+
_request_timeout: Union[
|
|
3853
|
+
None,
|
|
3854
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3855
|
+
Tuple[
|
|
3856
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3857
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3858
|
+
]
|
|
3859
|
+
] = None,
|
|
3860
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3861
|
+
_content_type: Optional[StrictStr] = None,
|
|
3862
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3863
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3864
|
+
) -> ApiResponse[str]:
|
|
3865
|
+
"""Unequip Own Inventory Slot
|
|
3866
|
+
|
|
3867
|
+
Unequips the InventoryItem in the given slot of the inventory of the currently logged in user.
|
|
3868
|
+
|
|
3869
|
+
:param inventory_item_id: Selector for inventory slot management. (required)
|
|
3870
|
+
:type inventory_item_id: InventoryEquipSlot
|
|
3871
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3872
|
+
number provided, it will be total request
|
|
3873
|
+
timeout. It can also be a pair (tuple) of
|
|
3874
|
+
(connection, read) timeouts.
|
|
3875
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3876
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3877
|
+
request; this effectively ignores the
|
|
3878
|
+
authentication in the spec for a single request.
|
|
3879
|
+
:type _request_auth: dict, optional
|
|
3880
|
+
:param _content_type: force content-type for the request.
|
|
3881
|
+
:type _content_type: str, Optional
|
|
3882
|
+
:param _headers: set to override the headers for a single
|
|
3883
|
+
request; this effectively ignores the headers
|
|
3884
|
+
in the spec for a single request.
|
|
3885
|
+
:type _headers: dict, optional
|
|
3886
|
+
:param _host_index: set to override the host_index for a single
|
|
3887
|
+
request; this effectively ignores the host_index
|
|
3888
|
+
in the spec for a single request.
|
|
3889
|
+
:type _host_index: int, optional
|
|
3890
|
+
:return: Returns the result object.
|
|
3891
|
+
""" # noqa: E501
|
|
3892
|
+
|
|
3893
|
+
_param = self._unequip_own_inventory_slot_serialize(
|
|
3894
|
+
inventory_item_id=inventory_item_id,
|
|
3895
|
+
_request_auth=_request_auth,
|
|
3896
|
+
_content_type=_content_type,
|
|
3897
|
+
_headers=_headers,
|
|
3898
|
+
_host_index=_host_index
|
|
3899
|
+
)
|
|
3900
|
+
|
|
3901
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3902
|
+
'200': "str",
|
|
3903
|
+
'401': "Error",
|
|
3904
|
+
}
|
|
3905
|
+
response_data = await self.api_client.call_api(
|
|
3906
|
+
*_param,
|
|
3907
|
+
_request_timeout=_request_timeout
|
|
3908
|
+
)
|
|
3909
|
+
await response_data.read()
|
|
3910
|
+
return self.api_client.response_deserialize(
|
|
3911
|
+
response_data=response_data,
|
|
3912
|
+
response_types_map=_response_types_map,
|
|
3913
|
+
)
|
|
3914
|
+
|
|
3915
|
+
|
|
3916
|
+
@validate_call
|
|
3917
|
+
async def unequip_own_inventory_slot_without_preload_content(
|
|
3918
|
+
self,
|
|
3919
|
+
inventory_item_id: Annotated[InventoryEquipSlot, Field(description="Selector for inventory slot management.")],
|
|
3920
|
+
_request_timeout: Union[
|
|
3921
|
+
None,
|
|
3922
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3923
|
+
Tuple[
|
|
3924
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3925
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3926
|
+
]
|
|
3927
|
+
] = None,
|
|
3928
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3929
|
+
_content_type: Optional[StrictStr] = None,
|
|
3930
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3931
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3932
|
+
) -> RESTResponseType:
|
|
3933
|
+
"""Unequip Own Inventory Slot
|
|
3934
|
+
|
|
3935
|
+
Unequips the InventoryItem in the given slot of the inventory of the currently logged in user.
|
|
3936
|
+
|
|
3937
|
+
:param inventory_item_id: Selector for inventory slot management. (required)
|
|
3938
|
+
:type inventory_item_id: InventoryEquipSlot
|
|
3939
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3940
|
+
number provided, it will be total request
|
|
3941
|
+
timeout. It can also be a pair (tuple) of
|
|
3942
|
+
(connection, read) timeouts.
|
|
3943
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3944
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3945
|
+
request; this effectively ignores the
|
|
3946
|
+
authentication in the spec for a single request.
|
|
3947
|
+
:type _request_auth: dict, optional
|
|
3948
|
+
:param _content_type: force content-type for the request.
|
|
3949
|
+
:type _content_type: str, Optional
|
|
3950
|
+
:param _headers: set to override the headers for a single
|
|
3951
|
+
request; this effectively ignores the headers
|
|
3952
|
+
in the spec for a single request.
|
|
3953
|
+
:type _headers: dict, optional
|
|
3954
|
+
:param _host_index: set to override the host_index for a single
|
|
3955
|
+
request; this effectively ignores the host_index
|
|
3956
|
+
in the spec for a single request.
|
|
3957
|
+
:type _host_index: int, optional
|
|
3958
|
+
:return: Returns the result object.
|
|
3959
|
+
""" # noqa: E501
|
|
3960
|
+
|
|
3961
|
+
_param = self._unequip_own_inventory_slot_serialize(
|
|
3962
|
+
inventory_item_id=inventory_item_id,
|
|
3963
|
+
_request_auth=_request_auth,
|
|
3964
|
+
_content_type=_content_type,
|
|
3965
|
+
_headers=_headers,
|
|
3966
|
+
_host_index=_host_index
|
|
3967
|
+
)
|
|
3968
|
+
|
|
3969
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3970
|
+
'200': "str",
|
|
3971
|
+
'401': "Error",
|
|
3972
|
+
}
|
|
3973
|
+
response_data = await self.api_client.call_api(
|
|
3974
|
+
*_param,
|
|
3975
|
+
_request_timeout=_request_timeout
|
|
3976
|
+
)
|
|
3977
|
+
return response_data.response
|
|
3978
|
+
|
|
3979
|
+
|
|
3980
|
+
def _unequip_own_inventory_slot_serialize(
|
|
3981
|
+
self,
|
|
3982
|
+
inventory_item_id,
|
|
3983
|
+
_request_auth,
|
|
3984
|
+
_content_type,
|
|
3985
|
+
_headers,
|
|
3986
|
+
_host_index,
|
|
3987
|
+
) -> RequestSerialized:
|
|
3988
|
+
|
|
3989
|
+
_host = None
|
|
3990
|
+
|
|
3991
|
+
_collection_formats: Dict[str, str] = {
|
|
3992
|
+
}
|
|
3993
|
+
|
|
3994
|
+
_path_params: Dict[str, str] = {}
|
|
3995
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3996
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3997
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3998
|
+
_files: Dict[
|
|
3999
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
4000
|
+
] = {}
|
|
4001
|
+
_body_params: Optional[bytes] = None
|
|
4002
|
+
|
|
4003
|
+
# process the path parameters
|
|
4004
|
+
if inventory_item_id is not None:
|
|
4005
|
+
_path_params['inventoryItemId'] = inventory_item_id.value
|
|
4006
|
+
# process the query parameters
|
|
4007
|
+
# process the header parameters
|
|
4008
|
+
# process the form parameters
|
|
4009
|
+
# process the body parameter
|
|
4010
|
+
|
|
4011
|
+
|
|
4012
|
+
# set the HTTP header `Accept`
|
|
4013
|
+
if 'Accept' not in _header_params:
|
|
4014
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
4015
|
+
[
|
|
4016
|
+
'application/json'
|
|
4017
|
+
]
|
|
4018
|
+
)
|
|
4019
|
+
|
|
4020
|
+
|
|
4021
|
+
# authentication setting
|
|
4022
|
+
_auth_settings: List[str] = [
|
|
4023
|
+
'authCookie'
|
|
4024
|
+
]
|
|
4025
|
+
|
|
4026
|
+
return self.api_client.param_serialize(
|
|
4027
|
+
method='DELETE',
|
|
4028
|
+
resource_path='/inventory/{inventoryItemId}/equip',
|
|
4029
|
+
path_params=_path_params,
|
|
4030
|
+
query_params=_query_params,
|
|
4031
|
+
header_params=_header_params,
|
|
4032
|
+
body=_body_params,
|
|
4033
|
+
post_params=_form_params,
|
|
4034
|
+
files=_files,
|
|
4035
|
+
auth_settings=_auth_settings,
|
|
4036
|
+
collection_formats=_collection_formats,
|
|
4037
|
+
_host=_host,
|
|
4038
|
+
_request_auth=_request_auth
|
|
4039
|
+
)
|
|
4040
|
+
|
|
4041
|
+
|
|
4042
|
+
|
|
4043
|
+
|
|
4044
|
+
@validate_call
|
|
4045
|
+
async def update_own_inventory_item(
|
|
4046
|
+
self,
|
|
4047
|
+
inventory_item_id: Annotated[StrictStr, Field(description="Must be a valid inventory item ID.")],
|
|
4048
|
+
update_inventory_item_request: Optional[UpdateInventoryItemRequest] = None,
|
|
4049
|
+
_request_timeout: Union[
|
|
4050
|
+
None,
|
|
4051
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4052
|
+
Tuple[
|
|
4053
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4054
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4055
|
+
]
|
|
4056
|
+
] = None,
|
|
4057
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4058
|
+
_content_type: Optional[StrictStr] = None,
|
|
4059
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4060
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4061
|
+
) -> InventoryItem:
|
|
4062
|
+
"""Update Own Inventory Item
|
|
4063
|
+
|
|
4064
|
+
Returns the modified InventoryItem object as held by the currently logged in user.
|
|
4065
|
+
|
|
4066
|
+
:param inventory_item_id: Must be a valid inventory item ID. (required)
|
|
4067
|
+
:type inventory_item_id: str
|
|
4068
|
+
:param update_inventory_item_request:
|
|
4069
|
+
:type update_inventory_item_request: UpdateInventoryItemRequest
|
|
4070
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4071
|
+
number provided, it will be total request
|
|
4072
|
+
timeout. It can also be a pair (tuple) of
|
|
4073
|
+
(connection, read) timeouts.
|
|
4074
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4075
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4076
|
+
request; this effectively ignores the
|
|
4077
|
+
authentication in the spec for a single request.
|
|
4078
|
+
:type _request_auth: dict, optional
|
|
4079
|
+
:param _content_type: force content-type for the request.
|
|
4080
|
+
:type _content_type: str, Optional
|
|
4081
|
+
:param _headers: set to override the headers for a single
|
|
4082
|
+
request; this effectively ignores the headers
|
|
4083
|
+
in the spec for a single request.
|
|
4084
|
+
:type _headers: dict, optional
|
|
4085
|
+
:param _host_index: set to override the host_index for a single
|
|
4086
|
+
request; this effectively ignores the host_index
|
|
4087
|
+
in the spec for a single request.
|
|
4088
|
+
:type _host_index: int, optional
|
|
4089
|
+
:return: Returns the result object.
|
|
4090
|
+
""" # noqa: E501
|
|
4091
|
+
|
|
4092
|
+
_param = self._update_own_inventory_item_serialize(
|
|
4093
|
+
inventory_item_id=inventory_item_id,
|
|
4094
|
+
update_inventory_item_request=update_inventory_item_request,
|
|
4095
|
+
_request_auth=_request_auth,
|
|
4096
|
+
_content_type=_content_type,
|
|
4097
|
+
_headers=_headers,
|
|
4098
|
+
_host_index=_host_index
|
|
4099
|
+
)
|
|
4100
|
+
|
|
4101
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4102
|
+
'200': "InventoryItem",
|
|
4103
|
+
'401': "Error",
|
|
4104
|
+
}
|
|
4105
|
+
response_data = await self.api_client.call_api(
|
|
4106
|
+
*_param,
|
|
4107
|
+
_request_timeout=_request_timeout
|
|
4108
|
+
)
|
|
4109
|
+
await response_data.read()
|
|
4110
|
+
return self.api_client.response_deserialize(
|
|
4111
|
+
response_data=response_data,
|
|
4112
|
+
response_types_map=_response_types_map,
|
|
4113
|
+
).data
|
|
4114
|
+
|
|
4115
|
+
|
|
4116
|
+
@validate_call
|
|
4117
|
+
async def update_own_inventory_item_with_http_info(
|
|
4118
|
+
self,
|
|
4119
|
+
inventory_item_id: Annotated[StrictStr, Field(description="Must be a valid inventory item ID.")],
|
|
4120
|
+
update_inventory_item_request: Optional[UpdateInventoryItemRequest] = None,
|
|
4121
|
+
_request_timeout: Union[
|
|
4122
|
+
None,
|
|
4123
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4124
|
+
Tuple[
|
|
4125
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4126
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4127
|
+
]
|
|
4128
|
+
] = None,
|
|
4129
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4130
|
+
_content_type: Optional[StrictStr] = None,
|
|
4131
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4132
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4133
|
+
) -> ApiResponse[InventoryItem]:
|
|
4134
|
+
"""Update Own Inventory Item
|
|
4135
|
+
|
|
4136
|
+
Returns the modified InventoryItem object as held by the currently logged in user.
|
|
4137
|
+
|
|
4138
|
+
:param inventory_item_id: Must be a valid inventory item ID. (required)
|
|
4139
|
+
:type inventory_item_id: str
|
|
4140
|
+
:param update_inventory_item_request:
|
|
4141
|
+
:type update_inventory_item_request: UpdateInventoryItemRequest
|
|
4142
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4143
|
+
number provided, it will be total request
|
|
4144
|
+
timeout. It can also be a pair (tuple) of
|
|
4145
|
+
(connection, read) timeouts.
|
|
4146
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4147
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4148
|
+
request; this effectively ignores the
|
|
4149
|
+
authentication in the spec for a single request.
|
|
4150
|
+
:type _request_auth: dict, optional
|
|
4151
|
+
:param _content_type: force content-type for the request.
|
|
4152
|
+
:type _content_type: str, Optional
|
|
4153
|
+
:param _headers: set to override the headers for a single
|
|
4154
|
+
request; this effectively ignores the headers
|
|
4155
|
+
in the spec for a single request.
|
|
4156
|
+
:type _headers: dict, optional
|
|
4157
|
+
:param _host_index: set to override the host_index for a single
|
|
4158
|
+
request; this effectively ignores the host_index
|
|
4159
|
+
in the spec for a single request.
|
|
4160
|
+
:type _host_index: int, optional
|
|
4161
|
+
:return: Returns the result object.
|
|
4162
|
+
""" # noqa: E501
|
|
4163
|
+
|
|
4164
|
+
_param = self._update_own_inventory_item_serialize(
|
|
4165
|
+
inventory_item_id=inventory_item_id,
|
|
4166
|
+
update_inventory_item_request=update_inventory_item_request,
|
|
4167
|
+
_request_auth=_request_auth,
|
|
4168
|
+
_content_type=_content_type,
|
|
4169
|
+
_headers=_headers,
|
|
4170
|
+
_host_index=_host_index
|
|
4171
|
+
)
|
|
4172
|
+
|
|
4173
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4174
|
+
'200': "InventoryItem",
|
|
4175
|
+
'401': "Error",
|
|
4176
|
+
}
|
|
4177
|
+
response_data = await self.api_client.call_api(
|
|
4178
|
+
*_param,
|
|
4179
|
+
_request_timeout=_request_timeout
|
|
4180
|
+
)
|
|
4181
|
+
await response_data.read()
|
|
4182
|
+
return self.api_client.response_deserialize(
|
|
4183
|
+
response_data=response_data,
|
|
4184
|
+
response_types_map=_response_types_map,
|
|
4185
|
+
)
|
|
4186
|
+
|
|
4187
|
+
|
|
4188
|
+
@validate_call
|
|
4189
|
+
async def update_own_inventory_item_without_preload_content(
|
|
4190
|
+
self,
|
|
4191
|
+
inventory_item_id: Annotated[StrictStr, Field(description="Must be a valid inventory item ID.")],
|
|
4192
|
+
update_inventory_item_request: Optional[UpdateInventoryItemRequest] = None,
|
|
4193
|
+
_request_timeout: Union[
|
|
4194
|
+
None,
|
|
4195
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4196
|
+
Tuple[
|
|
4197
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4198
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4199
|
+
]
|
|
4200
|
+
] = None,
|
|
4201
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4202
|
+
_content_type: Optional[StrictStr] = None,
|
|
4203
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4204
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4205
|
+
) -> RESTResponseType:
|
|
4206
|
+
"""Update Own Inventory Item
|
|
4207
|
+
|
|
4208
|
+
Returns the modified InventoryItem object as held by the currently logged in user.
|
|
4209
|
+
|
|
4210
|
+
:param inventory_item_id: Must be a valid inventory item ID. (required)
|
|
4211
|
+
:type inventory_item_id: str
|
|
4212
|
+
:param update_inventory_item_request:
|
|
4213
|
+
:type update_inventory_item_request: UpdateInventoryItemRequest
|
|
4214
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4215
|
+
number provided, it will be total request
|
|
4216
|
+
timeout. It can also be a pair (tuple) of
|
|
4217
|
+
(connection, read) timeouts.
|
|
4218
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4219
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4220
|
+
request; this effectively ignores the
|
|
4221
|
+
authentication in the spec for a single request.
|
|
4222
|
+
:type _request_auth: dict, optional
|
|
4223
|
+
:param _content_type: force content-type for the request.
|
|
4224
|
+
:type _content_type: str, Optional
|
|
4225
|
+
:param _headers: set to override the headers for a single
|
|
4226
|
+
request; this effectively ignores the headers
|
|
4227
|
+
in the spec for a single request.
|
|
4228
|
+
:type _headers: dict, optional
|
|
4229
|
+
:param _host_index: set to override the host_index for a single
|
|
4230
|
+
request; this effectively ignores the host_index
|
|
4231
|
+
in the spec for a single request.
|
|
4232
|
+
:type _host_index: int, optional
|
|
4233
|
+
:return: Returns the result object.
|
|
4234
|
+
""" # noqa: E501
|
|
4235
|
+
|
|
4236
|
+
_param = self._update_own_inventory_item_serialize(
|
|
4237
|
+
inventory_item_id=inventory_item_id,
|
|
4238
|
+
update_inventory_item_request=update_inventory_item_request,
|
|
4239
|
+
_request_auth=_request_auth,
|
|
4240
|
+
_content_type=_content_type,
|
|
4241
|
+
_headers=_headers,
|
|
4242
|
+
_host_index=_host_index
|
|
4243
|
+
)
|
|
4244
|
+
|
|
4245
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4246
|
+
'200': "InventoryItem",
|
|
4247
|
+
'401': "Error",
|
|
4248
|
+
}
|
|
4249
|
+
response_data = await self.api_client.call_api(
|
|
4250
|
+
*_param,
|
|
4251
|
+
_request_timeout=_request_timeout
|
|
4252
|
+
)
|
|
4253
|
+
return response_data.response
|
|
4254
|
+
|
|
4255
|
+
|
|
4256
|
+
def _update_own_inventory_item_serialize(
|
|
4257
|
+
self,
|
|
4258
|
+
inventory_item_id,
|
|
4259
|
+
update_inventory_item_request,
|
|
4260
|
+
_request_auth,
|
|
4261
|
+
_content_type,
|
|
4262
|
+
_headers,
|
|
4263
|
+
_host_index,
|
|
4264
|
+
) -> RequestSerialized:
|
|
4265
|
+
|
|
4266
|
+
_host = None
|
|
4267
|
+
|
|
4268
|
+
_collection_formats: Dict[str, str] = {
|
|
4269
|
+
}
|
|
4270
|
+
|
|
4271
|
+
_path_params: Dict[str, str] = {}
|
|
4272
|
+
_query_params: List[Tuple[str, str]] = []
|
|
4273
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4274
|
+
_form_params: List[Tuple[str, str]] = []
|
|
4275
|
+
_files: Dict[
|
|
4276
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
4277
|
+
] = {}
|
|
4278
|
+
_body_params: Optional[bytes] = None
|
|
4279
|
+
|
|
4280
|
+
# process the path parameters
|
|
4281
|
+
if inventory_item_id is not None:
|
|
4282
|
+
_path_params['inventoryItemId'] = inventory_item_id
|
|
4283
|
+
# process the query parameters
|
|
4284
|
+
# process the header parameters
|
|
4285
|
+
# process the form parameters
|
|
4286
|
+
# process the body parameter
|
|
4287
|
+
if update_inventory_item_request is not None:
|
|
4288
|
+
_body_params = update_inventory_item_request
|
|
4289
|
+
|
|
4290
|
+
|
|
4291
|
+
# set the HTTP header `Accept`
|
|
4292
|
+
if 'Accept' not in _header_params:
|
|
4293
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
4294
|
+
[
|
|
4295
|
+
'application/json'
|
|
4296
|
+
]
|
|
4297
|
+
)
|
|
4298
|
+
|
|
4299
|
+
# set the HTTP header `Content-Type`
|
|
4300
|
+
if _content_type:
|
|
4301
|
+
_header_params['Content-Type'] = _content_type
|
|
4302
|
+
else:
|
|
4303
|
+
_default_content_type = (
|
|
4304
|
+
self.api_client.select_header_content_type(
|
|
4305
|
+
[
|
|
4306
|
+
'application/json'
|
|
4307
|
+
]
|
|
4308
|
+
)
|
|
4309
|
+
)
|
|
4310
|
+
if _default_content_type is not None:
|
|
4311
|
+
_header_params['Content-Type'] = _default_content_type
|
|
4312
|
+
|
|
4313
|
+
# authentication setting
|
|
4314
|
+
_auth_settings: List[str] = [
|
|
4315
|
+
'authCookie'
|
|
4316
|
+
]
|
|
4317
|
+
|
|
4318
|
+
return self.api_client.param_serialize(
|
|
4319
|
+
method='PUT',
|
|
4320
|
+
resource_path='/inventory/{inventoryItemId}',
|
|
4321
|
+
path_params=_path_params,
|
|
4322
|
+
query_params=_query_params,
|
|
4323
|
+
header_params=_header_params,
|
|
4324
|
+
body=_body_params,
|
|
4325
|
+
post_params=_form_params,
|
|
4326
|
+
files=_files,
|
|
4327
|
+
auth_settings=_auth_settings,
|
|
4328
|
+
collection_formats=_collection_formats,
|
|
4329
|
+
_host=_host,
|
|
4330
|
+
_request_auth=_request_auth
|
|
4331
|
+
)
|
|
4332
|
+
|
|
4333
|
+
|