solvimon-python-sdk 0.0.4b0__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.
- solvimon_python_sdk/__init__.py +2413 -0
- solvimon_python_sdk/api/__init__.py +74 -0
- solvimon_python_sdk/api/alert_rules_api.py +1700 -0
- solvimon_python_sdk/api/alerts_api.py +1038 -0
- solvimon_python_sdk/api/api_keys_api.py +1973 -0
- solvimon_python_sdk/api/approval_policy_api.py +2573 -0
- solvimon_python_sdk/api/approval_request_api.py +2673 -0
- solvimon_python_sdk/api/attachments_api.py +1329 -0
- solvimon_python_sdk/api/audit_records_api.py +786 -0
- solvimon_python_sdk/api/authentication_api.py +2714 -0
- solvimon_python_sdk/api/authentication_providers_api.py +1638 -0
- solvimon_python_sdk/api/billing_entities_api.py +1698 -0
- solvimon_python_sdk/api/bulk_actions_api.py +2150 -0
- solvimon_python_sdk/api/contacts_api.py +2036 -0
- solvimon_python_sdk/api/coupons_api.py +3059 -0
- solvimon_python_sdk/api/credit_types_api.py +2597 -0
- solvimon_python_sdk/api/custom_fields_api.py +1724 -0
- solvimon_python_sdk/api/customers_api.py +4667 -0
- solvimon_python_sdk/api/documents_api.py +1274 -0
- solvimon_python_sdk/api/features_api.py +2003 -0
- solvimon_python_sdk/api/file_processing_settings_api.py +991 -0
- solvimon_python_sdk/api/files_api.py +1716 -0
- solvimon_python_sdk/api/ingest_api.py +5989 -0
- solvimon_python_sdk/api/integrations_api.py +3297 -0
- solvimon_python_sdk/api/invoices_api.py +9743 -0
- solvimon_python_sdk/api/meter_properties_api.py +1648 -0
- solvimon_python_sdk/api/meter_property_variables_api.py +2473 -0
- solvimon_python_sdk/api/meter_value_calculations_api.py +1688 -0
- solvimon_python_sdk/api/meter_values_api.py +1648 -0
- solvimon_python_sdk/api/meters_api.py +1990 -0
- solvimon_python_sdk/api/payment_acceptors_api.py +1971 -0
- solvimon_python_sdk/api/payment_methods_api.py +2370 -0
- solvimon_python_sdk/api/payment_schedules_api.py +2641 -0
- solvimon_python_sdk/api/payments_api.py +3133 -0
- solvimon_python_sdk/api/platforms_api.py +1584 -0
- solvimon_python_sdk/api/portal_urls_api.py +1703 -0
- solvimon_python_sdk/api/pricing_groups_api.py +1290 -0
- solvimon_python_sdk/api/pricing_plan_groups_api.py +2579 -0
- solvimon_python_sdk/api/pricing_plan_schedules_api.py +3507 -0
- solvimon_python_sdk/api/pricing_plan_subscription_groups_api.py +1736 -0
- solvimon_python_sdk/api/pricing_plan_subscriptions_api.py +4918 -0
- solvimon_python_sdk/api/pricing_plan_versions_api.py +1629 -0
- solvimon_python_sdk/api/pricing_plans_api.py +2475 -0
- solvimon_python_sdk/api/pricings_api.py +1008 -0
- solvimon_python_sdk/api/product_categories_api.py +2339 -0
- solvimon_python_sdk/api/product_items_api.py +3443 -0
- solvimon_python_sdk/api/products_api.py +3478 -0
- solvimon_python_sdk/api/promotion_codes_api.py +2727 -0
- solvimon_python_sdk/api/quote_templates_api.py +1987 -0
- solvimon_python_sdk/api/quote_versions_api.py +3908 -0
- solvimon_python_sdk/api/quotes_api.py +2743 -0
- solvimon_python_sdk/api/report_configurations_api.py +1356 -0
- solvimon_python_sdk/api/report_definitions_api.py +391 -0
- solvimon_python_sdk/api/report_subscriptions_api.py +1996 -0
- solvimon_python_sdk/api/reports_api.py +4754 -0
- solvimon_python_sdk/api/reprocess_api.py +1092 -0
- solvimon_python_sdk/api/roles_api.py +1701 -0
- solvimon_python_sdk/api/seat_assignments_api.py +1732 -0
- solvimon_python_sdk/api/signature_requests_api.py +992 -0
- solvimon_python_sdk/api/tax_id_types_api.py +343 -0
- solvimon_python_sdk/api/teams_api.py +1322 -0
- solvimon_python_sdk/api/usage_limits_api.py +2306 -0
- solvimon_python_sdk/api/users_api.py +3961 -0
- solvimon_python_sdk/api/wallet_grants_api.py +1076 -0
- solvimon_python_sdk/api/wallet_types_api.py +2576 -0
- solvimon_python_sdk/api/wallets_api.py +4168 -0
- solvimon_python_sdk/api/webhook_events_api.py +1042 -0
- solvimon_python_sdk/api/webhooks_api.py +3557 -0
- solvimon_python_sdk/api/workflow_action_executions_api.py +1409 -0
- solvimon_python_sdk/api/workflow_actions_api.py +1630 -0
- solvimon_python_sdk/api/workflow_triggers_api.py +1451 -0
- solvimon_python_sdk/api/workflows_api.py +3259 -0
- solvimon_python_sdk/api_client.py +843 -0
- solvimon_python_sdk/api_response.py +21 -0
- solvimon_python_sdk/configuration.py +688 -0
- solvimon_python_sdk/exceptions.py +219 -0
- solvimon_python_sdk/models/__init__.py +1130 -0
- solvimon_python_sdk/models/account_membership_representation.py +132 -0
- solvimon_python_sdk/models/account_membership_representation_create_request.py +132 -0
- solvimon_python_sdk/models/account_membership_representation_update_request.py +132 -0
- solvimon_python_sdk/models/account_number_and_bic.py +124 -0
- solvimon_python_sdk/models/account_representation.py +101 -0
- solvimon_python_sdk/models/address.py +109 -0
- solvimon_python_sdk/models/address_create_request.py +109 -0
- solvimon_python_sdk/models/address_update_request.py +109 -0
- solvimon_python_sdk/models/adyen_auto_rescue.py +95 -0
- solvimon_python_sdk/models/adyen_direct_payment_context.py +95 -0
- solvimon_python_sdk/models/adyen_integration_details.py +89 -0
- solvimon_python_sdk/models/adyen_issuer.py +91 -0
- solvimon_python_sdk/models/adyen_payment_action.py +91 -0
- solvimon_python_sdk/models/adyen_payment_gateway_integration.py +152 -0
- solvimon_python_sdk/models/adyen_payment_method_option.py +110 -0
- solvimon_python_sdk/models/adyen_required_action.py +97 -0
- solvimon_python_sdk/models/adyen_tokenization_request.py +97 -0
- solvimon_python_sdk/models/adyen_tokenization_request_create_request.py +97 -0
- solvimon_python_sdk/models/adyen_verify_details.py +95 -0
- solvimon_python_sdk/models/adyen_verify_details_create_request.py +95 -0
- solvimon_python_sdk/models/agent_context.py +100 -0
- solvimon_python_sdk/models/agent_context_create_request.py +100 -0
- solvimon_python_sdk/models/agent_context_update_request.py +100 -0
- solvimon_python_sdk/models/alert.py +141 -0
- solvimon_python_sdk/models/alert_create_request.py +138 -0
- solvimon_python_sdk/models/alert_data.py +99 -0
- solvimon_python_sdk/models/alert_data_create_request.py +99 -0
- solvimon_python_sdk/models/alert_data_entitlement.py +105 -0
- solvimon_python_sdk/models/alert_data_invoice.py +95 -0
- solvimon_python_sdk/models/alert_data_invoice_overdue.py +96 -0
- solvimon_python_sdk/models/alert_data_value.py +95 -0
- solvimon_python_sdk/models/alert_response_wrapper.py +108 -0
- solvimon_python_sdk/models/alert_rule.py +193 -0
- solvimon_python_sdk/models/alert_rule_create_request.py +187 -0
- solvimon_python_sdk/models/alert_rule_create_request_event.py +193 -0
- solvimon_python_sdk/models/alert_rule_entitlement.py +115 -0
- solvimon_python_sdk/models/alert_rule_entitlement_create_request.py +115 -0
- solvimon_python_sdk/models/alert_rule_entitlement_update_request.py +115 -0
- solvimon_python_sdk/models/alert_rule_invoice.py +105 -0
- solvimon_python_sdk/models/alert_rule_invoice_create_request.py +105 -0
- solvimon_python_sdk/models/alert_rule_invoice_overdue.py +105 -0
- solvimon_python_sdk/models/alert_rule_invoice_update_request.py +105 -0
- solvimon_python_sdk/models/alert_rule_response_wrapper.py +108 -0
- solvimon_python_sdk/models/alert_rule_update_request.py +193 -0
- solvimon_python_sdk/models/amount.py +112 -0
- solvimon_python_sdk/models/amount_create_request.py +112 -0
- solvimon_python_sdk/models/amount_update_request.py +112 -0
- solvimon_python_sdk/models/api_error.py +123 -0
- solvimon_python_sdk/models/api_key.py +157 -0
- solvimon_python_sdk/models/api_key_create_request.py +157 -0
- solvimon_python_sdk/models/api_key_paginated_response_wrapper.py +108 -0
- solvimon_python_sdk/models/api_key_update_request.py +157 -0
- solvimon_python_sdk/models/applied_coupon.py +109 -0
- solvimon_python_sdk/models/applied_coupon_update_request.py +109 -0
- solvimon_python_sdk/models/approval_group.py +98 -0
- solvimon_python_sdk/models/approval_policy.py +169 -0
- solvimon_python_sdk/models/approval_policy_approver.py +105 -0
- solvimon_python_sdk/models/approval_policy_billing_entity.py +89 -0
- solvimon_python_sdk/models/approval_policy_billing_period.py +89 -0
- solvimon_python_sdk/models/approval_policy_commitment.py +93 -0
- solvimon_python_sdk/models/approval_policy_create_request.py +160 -0
- solvimon_python_sdk/models/approval_policy_custom_field.py +91 -0
- solvimon_python_sdk/models/approval_policy_discount.py +95 -0
- solvimon_python_sdk/models/approval_policy_due_date.py +89 -0
- solvimon_python_sdk/models/approval_policy_payment_acceptor.py +89 -0
- solvimon_python_sdk/models/approval_policy_pricing.py +89 -0
- solvimon_python_sdk/models/approval_policy_rule.py +159 -0
- solvimon_python_sdk/models/approval_policy_rule_group.py +96 -0
- solvimon_python_sdk/models/approval_policy_rule_group_create_request.py +96 -0
- solvimon_python_sdk/models/approval_policy_rule_group_update_request.py +96 -0
- solvimon_python_sdk/models/approval_policy_update_request.py +169 -0
- solvimon_python_sdk/models/approval_policy_user.py +89 -0
- solvimon_python_sdk/models/approval_request.py +183 -0
- solvimon_python_sdk/models/approval_request_action_result.py +121 -0
- solvimon_python_sdk/models/approval_request_response_wrapper.py +108 -0
- solvimon_python_sdk/models/approvers.py +109 -0
- solvimon_python_sdk/models/approvers_create_request.py +109 -0
- solvimon_python_sdk/models/approvers_update_request.py +109 -0
- solvimon_python_sdk/models/ar_local.py +124 -0
- solvimon_python_sdk/models/attachment.py +115 -0
- solvimon_python_sdk/models/attachment_create_request.py +115 -0
- solvimon_python_sdk/models/attachment_response_wrapper.py +96 -0
- solvimon_python_sdk/models/audit_record.py +154 -0
- solvimon_python_sdk/models/audit_record_diff_entry.py +103 -0
- solvimon_python_sdk/models/audit_record_response_wrapper.py +108 -0
- solvimon_python_sdk/models/authentication_provider.py +138 -0
- solvimon_python_sdk/models/authentication_provider_create_request.py +135 -0
- solvimon_python_sdk/models/authentication_provider_request.py +91 -0
- solvimon_python_sdk/models/authentication_provider_request_create_request.py +91 -0
- solvimon_python_sdk/models/authentication_provider_response_wrapper.py +108 -0
- solvimon_python_sdk/models/authentication_provider_update_request.py +138 -0
- solvimon_python_sdk/models/authentication_settings.py +105 -0
- solvimon_python_sdk/models/authentication_settings_api_key.py +91 -0
- solvimon_python_sdk/models/authentication_settings_api_key_create_request.py +91 -0
- solvimon_python_sdk/models/authentication_settings_create_request.py +105 -0
- solvimon_python_sdk/models/authentication_settings_update_request.py +105 -0
- solvimon_python_sdk/models/authorize_payment_request.py +133 -0
- solvimon_python_sdk/models/authorize_payment_request_create_request.py +133 -0
- solvimon_python_sdk/models/auto_topup_config.py +135 -0
- solvimon_python_sdk/models/auto_topup_config_create_request.py +135 -0
- solvimon_python_sdk/models/auto_topup_config_response_wrapper.py +108 -0
- solvimon_python_sdk/models/auto_topup_threshold.py +99 -0
- solvimon_python_sdk/models/ava_tax_calculation_integration.py +89 -0
- solvimon_python_sdk/models/available_custom_field_column.py +95 -0
- solvimon_python_sdk/models/available_custom_field_column_create_request.py +95 -0
- solvimon_python_sdk/models/available_custom_field_column_update_request.py +95 -0
- solvimon_python_sdk/models/balance_platform_details.py +95 -0
- solvimon_python_sdk/models/bank_account.py +228 -0
- solvimon_python_sdk/models/bank_account_create_request.py +228 -0
- solvimon_python_sdk/models/big_query.py +99 -0
- solvimon_python_sdk/models/billing_entity.py +218 -0
- solvimon_python_sdk/models/billing_entity_create_request.py +215 -0
- solvimon_python_sdk/models/billing_entity_create_request_transaction.py +218 -0
- solvimon_python_sdk/models/billing_entity_response_wrapper.py +96 -0
- solvimon_python_sdk/models/billing_entity_update_request.py +218 -0
- solvimon_python_sdk/models/billing_period_option.py +95 -0
- solvimon_python_sdk/models/billing_period_settings.py +96 -0
- solvimon_python_sdk/models/billing_period_settings_create_request.py +96 -0
- solvimon_python_sdk/models/billing_period_settings_update_request.py +96 -0
- solvimon_python_sdk/models/br_local.py +124 -0
- solvimon_python_sdk/models/branding.py +108 -0
- solvimon_python_sdk/models/branding_update_request.py +108 -0
- solvimon_python_sdk/models/bulk_action_check.py +110 -0
- solvimon_python_sdk/models/bulk_action_item.py +109 -0
- solvimon_python_sdk/models/bulk_action_item_generated_resource.py +101 -0
- solvimon_python_sdk/models/bulk_action_item_resource.py +101 -0
- solvimon_python_sdk/models/bulk_action_item_response_wrapper.py +108 -0
- solvimon_python_sdk/models/bulk_action_request.py +111 -0
- solvimon_python_sdk/models/bulk_action_request_create_request.py +108 -0
- solvimon_python_sdk/models/bulk_action_response.py +115 -0
- solvimon_python_sdk/models/bulk_action_response_wrapper.py +108 -0
- solvimon_python_sdk/models/bulk_approval_request_action.py +89 -0
- solvimon_python_sdk/models/bulk_approval_request_action_create_request.py +89 -0
- solvimon_python_sdk/models/bulk_approval_request_action_response_wrapper.py +96 -0
- solvimon_python_sdk/models/captcha_request.py +91 -0
- solvimon_python_sdk/models/captcha_request_create_request.py +91 -0
- solvimon_python_sdk/models/charge.py +96 -0
- solvimon_python_sdk/models/charge_data_period.py +94 -0
- solvimon_python_sdk/models/charge_data_period_create_request.py +94 -0
- solvimon_python_sdk/models/charge_on_demand_payment_context.py +101 -0
- solvimon_python_sdk/models/charge_on_demand_payment_context_pricing_item.py +101 -0
- solvimon_python_sdk/models/charge_on_demand_pricing_item.py +103 -0
- solvimon_python_sdk/models/charge_on_demand_pricing_items.py +107 -0
- solvimon_python_sdk/models/charge_on_demand_pricing_items_create_request.py +107 -0
- solvimon_python_sdk/models/charge_on_demand_pricing_items_pricing_item_config.py +101 -0
- solvimon_python_sdk/models/charge_on_demand_pricing_items_pricing_item_config_create_request.py +101 -0
- solvimon_python_sdk/models/client_credentials.py +91 -0
- solvimon_python_sdk/models/client_credentials_create_request.py +91 -0
- solvimon_python_sdk/models/colors.py +112 -0
- solvimon_python_sdk/models/column_mapping.py +91 -0
- solvimon_python_sdk/models/commitment.py +123 -0
- solvimon_python_sdk/models/commitment_update_request.py +123 -0
- solvimon_python_sdk/models/configured_meter_value.py +104 -0
- solvimon_python_sdk/models/configured_meter_value_included_volume.py +104 -0
- solvimon_python_sdk/models/configured_meter_value_included_volume_update_request.py +104 -0
- solvimon_python_sdk/models/configured_meter_value_update_request.py +104 -0
- solvimon_python_sdk/models/contact.py +155 -0
- solvimon_python_sdk/models/contact_create_request.py +152 -0
- solvimon_python_sdk/models/contact_response_wrapper.py +108 -0
- solvimon_python_sdk/models/contact_update_request.py +155 -0
- solvimon_python_sdk/models/cost_prediction.py +129 -0
- solvimon_python_sdk/models/cost_prediction_create_request.py +129 -0
- solvimon_python_sdk/models/cost_prediction_details.py +128 -0
- solvimon_python_sdk/models/coupon.py +180 -0
- solvimon_python_sdk/models/coupon_create_request.py +174 -0
- solvimon_python_sdk/models/coupon_discount.py +119 -0
- solvimon_python_sdk/models/coupon_discount_create_request.py +119 -0
- solvimon_python_sdk/models/coupon_discount_update_request.py +119 -0
- solvimon_python_sdk/models/coupon_discount_usage.py +97 -0
- solvimon_python_sdk/models/coupon_duration.py +105 -0
- solvimon_python_sdk/models/coupon_duration_create_request.py +105 -0
- solvimon_python_sdk/models/coupon_duration_update_request.py +105 -0
- solvimon_python_sdk/models/coupon_limited_to.py +126 -0
- solvimon_python_sdk/models/coupon_limited_to_create_request.py +126 -0
- solvimon_python_sdk/models/coupon_limited_to_update_request.py +126 -0
- solvimon_python_sdk/models/coupon_redemption.py +127 -0
- solvimon_python_sdk/models/coupon_redemption_response_wrapper.py +108 -0
- solvimon_python_sdk/models/coupon_response_wrapper.py +108 -0
- solvimon_python_sdk/models/coupon_update_request.py +180 -0
- solvimon_python_sdk/models/create_payment_method_payment_context.py +89 -0
- solvimon_python_sdk/models/create_pricing_plan_schedule_payment_context.py +96 -0
- solvimon_python_sdk/models/credit_and_copy_invoice_request.py +103 -0
- solvimon_python_sdk/models/credit_and_copy_invoice_request_create_request.py +103 -0
- solvimon_python_sdk/models/credit_and_copy_invoice_response.py +93 -0
- solvimon_python_sdk/models/credit_invoice_group.py +104 -0
- solvimon_python_sdk/models/credit_invoice_group_create_request.py +104 -0
- solvimon_python_sdk/models/credit_invoice_line.py +95 -0
- solvimon_python_sdk/models/credit_invoice_period.py +104 -0
- solvimon_python_sdk/models/credit_invoice_period_create_request.py +104 -0
- solvimon_python_sdk/models/credit_type.py +158 -0
- solvimon_python_sdk/models/credit_type_create_request.py +158 -0
- solvimon_python_sdk/models/credit_type_response_wrapper.py +108 -0
- solvimon_python_sdk/models/credit_type_update_request.py +158 -0
- solvimon_python_sdk/models/credits.py +110 -0
- solvimon_python_sdk/models/credits_create_request.py +110 -0
- solvimon_python_sdk/models/crm_integrations.py +93 -0
- solvimon_python_sdk/models/crm_integrations_update_request.py +93 -0
- solvimon_python_sdk/models/currency.py +107 -0
- solvimon_python_sdk/models/custom_field.py +154 -0
- solvimon_python_sdk/models/custom_field_create_request.py +148 -0
- solvimon_python_sdk/models/custom_field_response_wrapper.py +108 -0
- solvimon_python_sdk/models/custom_field_update_request.py +154 -0
- solvimon_python_sdk/models/custom_field_value.py +116 -0
- solvimon_python_sdk/models/custom_field_value_create_request.py +116 -0
- solvimon_python_sdk/models/custom_field_value_update_request.py +116 -0
- solvimon_python_sdk/models/custom_tax_code.py +101 -0
- solvimon_python_sdk/models/customer.py +222 -0
- solvimon_python_sdk/models/customer_action_options.py +95 -0
- solvimon_python_sdk/models/customer_create_request.py +219 -0
- solvimon_python_sdk/models/customer_create_request_event.py +222 -0
- solvimon_python_sdk/models/customer_create_request_transaction.py +222 -0
- solvimon_python_sdk/models/customer_portal_url.py +99 -0
- solvimon_python_sdk/models/customer_portal_url_create_request.py +99 -0
- solvimon_python_sdk/models/customer_portal_url_update_request.py +99 -0
- solvimon_python_sdk/models/customer_references.py +93 -0
- solvimon_python_sdk/models/customer_references_create_request.py +93 -0
- solvimon_python_sdk/models/customer_references_update_request.py +93 -0
- solvimon_python_sdk/models/customer_response_wrapper.py +108 -0
- solvimon_python_sdk/models/customer_seller_details.py +89 -0
- solvimon_python_sdk/models/customer_seller_details_create_request.py +89 -0
- solvimon_python_sdk/models/customer_seller_details_update_request.py +89 -0
- solvimon_python_sdk/models/customer_update_request.py +222 -0
- solvimon_python_sdk/models/customer_update_request_transaction.py +222 -0
- solvimon_python_sdk/models/customer_wallet_balance_status.py +118 -0
- solvimon_python_sdk/models/customer_wallet_balances_status.py +102 -0
- solvimon_python_sdk/models/data_export_integration.py +125 -0
- solvimon_python_sdk/models/data_export_integration_create_request.py +125 -0
- solvimon_python_sdk/models/data_export_integration_update_request.py +125 -0
- solvimon_python_sdk/models/default_portal_url_settings.py +93 -0
- solvimon_python_sdk/models/default_portal_url_settings_update_request.py +93 -0
- solvimon_python_sdk/models/default_value.py +91 -0
- solvimon_python_sdk/models/delete_invoice_group.py +98 -0
- solvimon_python_sdk/models/delete_invoice_line.py +89 -0
- solvimon_python_sdk/models/delete_invoice_period.py +98 -0
- solvimon_python_sdk/models/delete_invoice_period_create_request.py +98 -0
- solvimon_python_sdk/models/direct_auto_rescue.py +95 -0
- solvimon_python_sdk/models/direct_payment_context.py +93 -0
- solvimon_python_sdk/models/discount.py +159 -0
- solvimon_python_sdk/models/discount_condition.py +105 -0
- solvimon_python_sdk/models/discount_condition_value.py +93 -0
- solvimon_python_sdk/models/discount_update_request.py +159 -0
- solvimon_python_sdk/models/display_config.py +95 -0
- solvimon_python_sdk/models/document.py +126 -0
- solvimon_python_sdk/models/document_action_settings.py +99 -0
- solvimon_python_sdk/models/document_create_request.py +126 -0
- solvimon_python_sdk/models/document_number_configuration.py +106 -0
- solvimon_python_sdk/models/document_number_configuration_reset_period.py +101 -0
- solvimon_python_sdk/models/download_settings.py +93 -0
- solvimon_python_sdk/models/download_settings_create_request.py +93 -0
- solvimon_python_sdk/models/download_settings_update_request.py +93 -0
- solvimon_python_sdk/models/download_url.py +103 -0
- solvimon_python_sdk/models/due_date.py +105 -0
- solvimon_python_sdk/models/due_date_update_request.py +105 -0
- solvimon_python_sdk/models/duplicate.py +91 -0
- solvimon_python_sdk/models/e_invoice.py +116 -0
- solvimon_python_sdk/models/e_invoice_create_request.py +116 -0
- solvimon_python_sdk/models/e_invoice_file_format.py +95 -0
- solvimon_python_sdk/models/e_invoice_status.py +99 -0
- solvimon_python_sdk/models/e_invoice_update_request.py +116 -0
- solvimon_python_sdk/models/e_invoicing_condition.py +103 -0
- solvimon_python_sdk/models/e_invoicing_condition_group.py +96 -0
- solvimon_python_sdk/models/e_invoicing_integration.py +108 -0
- solvimon_python_sdk/models/e_invoicing_integration_create_request.py +108 -0
- solvimon_python_sdk/models/e_invoicing_integration_update_request.py +108 -0
- solvimon_python_sdk/models/e_invoicing_mandate.py +124 -0
- solvimon_python_sdk/models/e_invoicing_mapping.py +93 -0
- solvimon_python_sdk/models/email_identifier.py +91 -0
- solvimon_python_sdk/models/email_provider_integration.py +111 -0
- solvimon_python_sdk/models/email_provider_integration_create_request.py +111 -0
- solvimon_python_sdk/models/email_provider_integration_update_request.py +111 -0
- solvimon_python_sdk/models/enabled_pricing.py +94 -0
- solvimon_python_sdk/models/enabled_pricing_create_request.py +94 -0
- solvimon_python_sdk/models/enabled_pricing_update_request.py +94 -0
- solvimon_python_sdk/models/entitlement.py +128 -0
- solvimon_python_sdk/models/entitlement_create_request.py +128 -0
- solvimon_python_sdk/models/entitlement_summary.py +98 -0
- solvimon_python_sdk/models/entitlement_summary_item.py +109 -0
- solvimon_python_sdk/models/entitlement_update_request.py +128 -0
- solvimon_python_sdk/models/entitlements.py +105 -0
- solvimon_python_sdk/models/entitlements_create_request.py +105 -0
- solvimon_python_sdk/models/erp_integration.py +99 -0
- solvimon_python_sdk/models/erp_integration_create_request.py +99 -0
- solvimon_python_sdk/models/erp_integration_update_request.py +99 -0
- solvimon_python_sdk/models/event_trace.py +130 -0
- solvimon_python_sdk/models/event_trace_link.py +143 -0
- solvimon_python_sdk/models/expiry_date.py +92 -0
- solvimon_python_sdk/models/export_report_location.py +121 -0
- solvimon_python_sdk/models/export_report_location_big_query_details.py +89 -0
- solvimon_python_sdk/models/export_report_location_create_request.py +121 -0
- solvimon_python_sdk/models/export_report_location_gcs_details.py +103 -0
- solvimon_python_sdk/models/export_report_location_s3_details.py +103 -0
- solvimon_python_sdk/models/export_report_location_update_request.py +121 -0
- solvimon_python_sdk/models/export_to_erp_action.py +101 -0
- solvimon_python_sdk/models/export_to_erp_action_update_request.py +101 -0
- solvimon_python_sdk/models/feature.py +156 -0
- solvimon_python_sdk/models/feature_create_request.py +150 -0
- solvimon_python_sdk/models/feature_resource_reference.py +102 -0
- solvimon_python_sdk/models/feature_response_wrapper.py +96 -0
- solvimon_python_sdk/models/feature_update_request.py +156 -0
- solvimon_python_sdk/models/file.py +214 -0
- solvimon_python_sdk/models/file_create_request.py +202 -0
- solvimon_python_sdk/models/file_download_settings.py +89 -0
- solvimon_python_sdk/models/file_download_settings_create_request.py +89 -0
- solvimon_python_sdk/models/file_download_settings_update_request.py +89 -0
- solvimon_python_sdk/models/file_line.py +107 -0
- solvimon_python_sdk/models/file_line_response_wrapper.py +108 -0
- solvimon_python_sdk/models/file_meter_data.py +92 -0
- solvimon_python_sdk/models/file_meter_data_create_request.py +92 -0
- solvimon_python_sdk/models/file_meter_data_update_request.py +92 -0
- solvimon_python_sdk/models/file_processing_settings.py +151 -0
- solvimon_python_sdk/models/file_processing_settings_create_request.py +145 -0
- solvimon_python_sdk/models/file_processing_settings_update_request.py +151 -0
- solvimon_python_sdk/models/file_response_wrapper.py +108 -0
- solvimon_python_sdk/models/file_update_request.py +214 -0
- solvimon_python_sdk/models/filter_field.py +95 -0
- solvimon_python_sdk/models/filter_field_create_request.py +95 -0
- solvimon_python_sdk/models/finalize_invoices_parameters.py +100 -0
- solvimon_python_sdk/models/finalize_invoices_parameters_create_request.py +100 -0
- solvimon_python_sdk/models/fixed_installment.py +96 -0
- solvimon_python_sdk/models/gcs.py +95 -0
- solvimon_python_sdk/models/get_all_approval_policies_response.py +96 -0
- solvimon_python_sdk/models/get_quotes_list.py +96 -0
- solvimon_python_sdk/models/hubspot_integration.py +89 -0
- solvimon_python_sdk/models/image.py +108 -0
- solvimon_python_sdk/models/inactive_period.py +106 -0
- solvimon_python_sdk/models/inactive_period_update_request.py +106 -0
- solvimon_python_sdk/models/indexing_settings.py +103 -0
- solvimon_python_sdk/models/indexing_settings_create_request.py +103 -0
- solvimon_python_sdk/models/indexing_target.py +95 -0
- solvimon_python_sdk/models/indexing_target_create_request.py +95 -0
- solvimon_python_sdk/models/individual.py +99 -0
- solvimon_python_sdk/models/individual_create_request.py +99 -0
- solvimon_python_sdk/models/individual_update_request.py +99 -0
- solvimon_python_sdk/models/ingest_data_response_wrapper.py +108 -0
- solvimon_python_sdk/models/ingest_data_summary.py +104 -0
- solvimon_python_sdk/models/ingest_reference_mapping.py +95 -0
- solvimon_python_sdk/models/init_pricing_plan_subscription_payment_context.py +119 -0
- solvimon_python_sdk/models/init_pricing_plan_subscription_portal_url.py +91 -0
- solvimon_python_sdk/models/init_pricing_plan_subscription_portal_url_create_request.py +91 -0
- solvimon_python_sdk/models/init_pricing_plan_subscription_portal_url_update_request.py +91 -0
- solvimon_python_sdk/models/integration.py +229 -0
- solvimon_python_sdk/models/integration_create_request.py +223 -0
- solvimon_python_sdk/models/integration_details.py +119 -0
- solvimon_python_sdk/models/integration_details_update_request.py +119 -0
- solvimon_python_sdk/models/integration_link_detail.py +91 -0
- solvimon_python_sdk/models/integration_linked_resource_configuration.py +98 -0
- solvimon_python_sdk/models/integration_linked_resource_configuration_create_request.py +98 -0
- solvimon_python_sdk/models/integration_linked_resource_configuration_update_request.py +98 -0
- solvimon_python_sdk/models/integration_response_wrapper.py +108 -0
- solvimon_python_sdk/models/integration_update_request.py +229 -0
- solvimon_python_sdk/models/interval_installment.py +105 -0
- solvimon_python_sdk/models/invoice.py +566 -0
- solvimon_python_sdk/models/invoice_action_credit.py +124 -0
- solvimon_python_sdk/models/invoice_action_credit_create_request.py +124 -0
- solvimon_python_sdk/models/invoice_action_delete_line.py +96 -0
- solvimon_python_sdk/models/invoice_action_delete_line_create_request.py +96 -0
- solvimon_python_sdk/models/invoice_action_options.py +91 -0
- solvimon_python_sdk/models/invoice_commitment.py +98 -0
- solvimon_python_sdk/models/invoice_coupon.py +95 -0
- solvimon_python_sdk/models/invoice_coupon_create_request.py +95 -0
- solvimon_python_sdk/models/invoice_coupon_update_request.py +95 -0
- solvimon_python_sdk/models/invoice_create_request.py +566 -0
- solvimon_python_sdk/models/invoice_create_request_transaction.py +563 -0
- solvimon_python_sdk/models/invoice_credit_detail.py +111 -0
- solvimon_python_sdk/models/invoice_credit_detail_create_request.py +111 -0
- solvimon_python_sdk/models/invoice_credit_detail_update_request.py +111 -0
- solvimon_python_sdk/models/invoice_dunning_action.py +107 -0
- solvimon_python_sdk/models/invoice_dunning_action_create_request.py +107 -0
- solvimon_python_sdk/models/invoice_dunning_action_update_request.py +107 -0
- solvimon_python_sdk/models/invoice_extra_open_period.py +91 -0
- solvimon_python_sdk/models/invoice_grace_period.py +95 -0
- solvimon_python_sdk/models/invoice_grace_period_configuration.py +91 -0
- solvimon_python_sdk/models/invoice_group.py +187 -0
- solvimon_python_sdk/models/invoice_line.py +207 -0
- solvimon_python_sdk/models/invoice_line_coupon_data.py +91 -0
- solvimon_python_sdk/models/invoice_line_meter_value.py +99 -0
- solvimon_python_sdk/models/invoice_meter_property_variable.py +113 -0
- solvimon_python_sdk/models/invoice_meter_property_variable_create_request.py +113 -0
- solvimon_python_sdk/models/invoice_meter_property_variable_update_request.py +113 -0
- solvimon_python_sdk/models/invoice_overdue.py +96 -0
- solvimon_python_sdk/models/invoice_payment_action.py +117 -0
- solvimon_python_sdk/models/invoice_payment_action_bank_account_details.py +123 -0
- solvimon_python_sdk/models/invoice_payment_action_create_request.py +117 -0
- solvimon_python_sdk/models/invoice_payment_action_custom_redirect_details.py +89 -0
- solvimon_python_sdk/models/invoice_payment_action_payment_gateway_details.py +103 -0
- solvimon_python_sdk/models/invoice_payment_action_update_request.py +117 -0
- solvimon_python_sdk/models/invoice_period.py +128 -0
- solvimon_python_sdk/models/invoice_period_create_request.py +128 -0
- solvimon_python_sdk/models/invoice_period_update_request.py +128 -0
- solvimon_python_sdk/models/invoice_portal_url.py +95 -0
- solvimon_python_sdk/models/invoice_portal_url_create_request.py +95 -0
- solvimon_python_sdk/models/invoice_portal_url_update_request.py +95 -0
- solvimon_python_sdk/models/invoice_preview_action.py +120 -0
- solvimon_python_sdk/models/invoice_preview_action_create_request.py +120 -0
- solvimon_python_sdk/models/invoice_preview_action_response.py +107 -0
- solvimon_python_sdk/models/invoice_preview_invoices_info.py +98 -0
- solvimon_python_sdk/models/invoice_pricing.py +91 -0
- solvimon_python_sdk/models/invoice_promotion_code.py +99 -0
- solvimon_python_sdk/models/invoice_promotion_code_create_request.py +99 -0
- solvimon_python_sdk/models/invoice_promotion_code_update_request.py +99 -0
- solvimon_python_sdk/models/invoice_reprocess.py +95 -0
- solvimon_python_sdk/models/invoice_reprocess_create_request.py +95 -0
- solvimon_python_sdk/models/invoice_reprocess_update_request.py +95 -0
- solvimon_python_sdk/models/invoice_response_wrapper.py +108 -0
- solvimon_python_sdk/models/invoice_settings.py +151 -0
- solvimon_python_sdk/models/invoice_settings_update_request.py +151 -0
- solvimon_python_sdk/models/invoice_sub_line.py +119 -0
- solvimon_python_sdk/models/invoice_sub_line_usage_based_conversion.py +93 -0
- solvimon_python_sdk/models/invoice_tax_amounts.py +111 -0
- solvimon_python_sdk/models/invoice_tax_category_summary.py +126 -0
- solvimon_python_sdk/models/invoice_tax_category_summary_create_request.py +126 -0
- solvimon_python_sdk/models/invoice_tax_category_summary_rate.py +97 -0
- solvimon_python_sdk/models/invoice_tax_category_summary_update_request.py +126 -0
- solvimon_python_sdk/models/invoice_tax_total_summary.py +113 -0
- solvimon_python_sdk/models/invoice_tax_total_summary_create_request.py +113 -0
- solvimon_python_sdk/models/invoice_tax_total_summary_update_request.py +113 -0
- solvimon_python_sdk/models/invoice_trigger.py +103 -0
- solvimon_python_sdk/models/invoice_trigger_create_request.py +103 -0
- solvimon_python_sdk/models/invoice_trigger_event.py +107 -0
- solvimon_python_sdk/models/invoice_trigger_manual.py +109 -0
- solvimon_python_sdk/models/invoice_trigger_overdue.py +93 -0
- solvimon_python_sdk/models/invoice_upcoming_payment.py +96 -0
- solvimon_python_sdk/models/invoice_update_request.py +566 -0
- solvimon_python_sdk/models/invoice_validation_result.py +91 -0
- solvimon_python_sdk/models/invoice_validation_result_create_request.py +91 -0
- solvimon_python_sdk/models/invoice_validation_result_update_request.py +91 -0
- solvimon_python_sdk/models/invoice_workflow.py +111 -0
- solvimon_python_sdk/models/invoice_workflow_create_request.py +111 -0
- solvimon_python_sdk/models/invoice_workflow_update_request.py +111 -0
- solvimon_python_sdk/models/jwt_token.py +116 -0
- solvimon_python_sdk/models/legal_entity_manager_details.py +93 -0
- solvimon_python_sdk/models/link_detail.py +91 -0
- solvimon_python_sdk/models/linked_integration.py +98 -0
- solvimon_python_sdk/models/linked_integration_create_request.py +98 -0
- solvimon_python_sdk/models/linked_integration_update_request.py +98 -0
- solvimon_python_sdk/models/linked_invoice_detail.py +103 -0
- solvimon_python_sdk/models/linked_invoice_detail_create_request.py +103 -0
- solvimon_python_sdk/models/linked_invoice_detail_update_request.py +103 -0
- solvimon_python_sdk/models/mailgun_email_provider.py +114 -0
- solvimon_python_sdk/models/markup.py +96 -0
- solvimon_python_sdk/models/markup_update_request.py +96 -0
- solvimon_python_sdk/models/meter.py +162 -0
- solvimon_python_sdk/models/meter_condition_expression.py +108 -0
- solvimon_python_sdk/models/meter_condition_operand.py +95 -0
- solvimon_python_sdk/models/meter_conditions.py +104 -0
- solvimon_python_sdk/models/meter_create_request.py +159 -0
- solvimon_python_sdk/models/meter_data.py +193 -0
- solvimon_python_sdk/models/meter_data_create_request.py +190 -0
- solvimon_python_sdk/models/meter_data_file_processing_settings.py +104 -0
- solvimon_python_sdk/models/meter_data_file_processing_settings_create_request.py +104 -0
- solvimon_python_sdk/models/meter_data_file_processing_settings_update_request.py +104 -0
- solvimon_python_sdk/models/meter_data_mapping_settings.py +119 -0
- solvimon_python_sdk/models/meter_data_meter_property.py +99 -0
- solvimon_python_sdk/models/meter_data_meter_property_create_request.py +99 -0
- solvimon_python_sdk/models/meter_data_meter_value.py +107 -0
- solvimon_python_sdk/models/meter_data_meter_value_create_request.py +107 -0
- solvimon_python_sdk/models/meter_data_processed_details.py +121 -0
- solvimon_python_sdk/models/meter_data_processed_details_create_request.py +121 -0
- solvimon_python_sdk/models/meter_datas.py +97 -0
- solvimon_python_sdk/models/meter_datas_create_request.py +97 -0
- solvimon_python_sdk/models/meter_meter_property.py +112 -0
- solvimon_python_sdk/models/meter_meter_property_create_request.py +112 -0
- solvimon_python_sdk/models/meter_meter_property_update_request.py +112 -0
- solvimon_python_sdk/models/meter_meter_value.py +112 -0
- solvimon_python_sdk/models/meter_meter_value_create_request.py +112 -0
- solvimon_python_sdk/models/meter_meter_value_update_request.py +112 -0
- solvimon_python_sdk/models/meter_property.py +158 -0
- solvimon_python_sdk/models/meter_property_condition.py +125 -0
- solvimon_python_sdk/models/meter_property_create_request.py +149 -0
- solvimon_python_sdk/models/meter_property_dynamic_validation_settings.py +101 -0
- solvimon_python_sdk/models/meter_property_mapping.py +99 -0
- solvimon_python_sdk/models/meter_property_response_wrapper.py +96 -0
- solvimon_python_sdk/models/meter_property_split_pricing.py +101 -0
- solvimon_python_sdk/models/meter_property_update_request.py +158 -0
- solvimon_python_sdk/models/meter_property_variable.py +174 -0
- solvimon_python_sdk/models/meter_property_variable_create_request.py +168 -0
- solvimon_python_sdk/models/meter_property_variable_response_wrapper.py +108 -0
- solvimon_python_sdk/models/meter_property_variable_update_request.py +174 -0
- solvimon_python_sdk/models/meter_property_variable_value.py +95 -0
- solvimon_python_sdk/models/meter_property_variable_value_response_wrapper.py +108 -0
- solvimon_python_sdk/models/meter_property_variable_values_update.py +91 -0
- solvimon_python_sdk/models/meter_property_variable_values_update_result.py +103 -0
- solvimon_python_sdk/models/meter_property_variable_values_update_update_request.py +91 -0
- solvimon_python_sdk/models/meter_response_wrapper.py +96 -0
- solvimon_python_sdk/models/meter_update_request.py +162 -0
- solvimon_python_sdk/models/meter_value.py +156 -0
- solvimon_python_sdk/models/meter_value_calculation.py +176 -0
- solvimon_python_sdk/models/meter_value_calculation_commitment.py +95 -0
- solvimon_python_sdk/models/meter_value_calculation_create_request.py +170 -0
- solvimon_python_sdk/models/meter_value_calculation_response_wrapper.py +96 -0
- solvimon_python_sdk/models/meter_value_calculation_update_request.py +176 -0
- solvimon_python_sdk/models/meter_value_create_request.py +147 -0
- solvimon_python_sdk/models/meter_value_create_request_transaction.py +156 -0
- solvimon_python_sdk/models/meter_value_dynamic_validation_settings.py +101 -0
- solvimon_python_sdk/models/meter_value_mapping.py +103 -0
- solvimon_python_sdk/models/meter_value_mapping_amount_default_value.py +98 -0
- solvimon_python_sdk/models/meter_value_mapping_column.py +95 -0
- solvimon_python_sdk/models/meter_value_mapping_column_amount.py +91 -0
- solvimon_python_sdk/models/meter_value_mapping_default_value.py +99 -0
- solvimon_python_sdk/models/meter_value_response_wrapper.py +96 -0
- solvimon_python_sdk/models/meter_value_update_request.py +156 -0
- solvimon_python_sdk/models/mx_local.py +124 -0
- solvimon_python_sdk/models/name.py +93 -0
- solvimon_python_sdk/models/name_create_request.py +93 -0
- solvimon_python_sdk/models/name_update_request.py +93 -0
- solvimon_python_sdk/models/next_action.py +95 -0
- solvimon_python_sdk/models/next_action_redirect_to_url.py +91 -0
- solvimon_python_sdk/models/next_invoice.py +96 -0
- solvimon_python_sdk/models/next_invoice_update_request.py +96 -0
- solvimon_python_sdk/models/not_matched.py +91 -0
- solvimon_python_sdk/models/notification_channel.py +101 -0
- solvimon_python_sdk/models/notification_preference.py +108 -0
- solvimon_python_sdk/models/notification_preference_create_request.py +108 -0
- solvimon_python_sdk/models/notification_preference_update_request.py +108 -0
- solvimon_python_sdk/models/o_auth_callback.py +124 -0
- solvimon_python_sdk/models/o_auth_callback_create_request.py +115 -0
- solvimon_python_sdk/models/o_auth_credential_request.py +93 -0
- solvimon_python_sdk/models/o_auth_credential_request_create_request.py +93 -0
- solvimon_python_sdk/models/on_demand_pricing_items_response.py +110 -0
- solvimon_python_sdk/models/one_off_invoice_line.py +149 -0
- solvimon_python_sdk/models/one_off_invoice_line_create_request.py +146 -0
- solvimon_python_sdk/models/organization.py +132 -0
- solvimon_python_sdk/models/organization_create_request.py +132 -0
- solvimon_python_sdk/models/organization_update_request.py +132 -0
- solvimon_python_sdk/models/original_invoice_info.py +91 -0
- solvimon_python_sdk/models/other_custom_field_value.py +103 -0
- solvimon_python_sdk/models/other_custom_field_value_create_request.py +103 -0
- solvimon_python_sdk/models/other_custom_field_value_update_request.py +103 -0
- solvimon_python_sdk/models/pagination_links.py +95 -0
- solvimon_python_sdk/models/paragon_settings.py +89 -0
- solvimon_python_sdk/models/paragon_settings_create_request.py +89 -0
- solvimon_python_sdk/models/paragon_settings_update_request.py +89 -0
- solvimon_python_sdk/models/password_reset_request.py +89 -0
- solvimon_python_sdk/models/password_reset_request_create_request.py +89 -0
- solvimon_python_sdk/models/patch_e_invoice.py +93 -0
- solvimon_python_sdk/models/patch_e_invoice_update_request.py +93 -0
- solvimon_python_sdk/models/pay_invoice_payment_context.py +89 -0
- solvimon_python_sdk/models/payment.py +172 -0
- solvimon_python_sdk/models/payment_acceptor.py +178 -0
- solvimon_python_sdk/models/payment_acceptor_create_request.py +172 -0
- solvimon_python_sdk/models/payment_acceptor_custom_redirect.py +100 -0
- solvimon_python_sdk/models/payment_acceptor_custom_redirect_create_request.py +100 -0
- solvimon_python_sdk/models/payment_acceptor_payment_method_options.py +108 -0
- solvimon_python_sdk/models/payment_acceptor_payment_method_options_request.py +123 -0
- solvimon_python_sdk/models/payment_acceptor_payment_method_options_request_create_request.py +123 -0
- solvimon_python_sdk/models/payment_acceptor_response_wrapper.py +96 -0
- solvimon_python_sdk/models/payment_acceptor_update_request.py +178 -0
- solvimon_python_sdk/models/payment_context.py +152 -0
- solvimon_python_sdk/models/payment_context_create_request.py +152 -0
- solvimon_python_sdk/models/payment_create_request.py +172 -0
- solvimon_python_sdk/models/payment_create_request_transaction.py +169 -0
- solvimon_python_sdk/models/payment_dunning_action_details.py +93 -0
- solvimon_python_sdk/models/payment_dunning_action_details_create_request.py +93 -0
- solvimon_python_sdk/models/payment_gateway_integration.py +111 -0
- solvimon_python_sdk/models/payment_gateway_integration_create_request.py +111 -0
- solvimon_python_sdk/models/payment_gateway_integration_update_request.py +111 -0
- solvimon_python_sdk/models/payment_gateway_payment_acceptor.py +125 -0
- solvimon_python_sdk/models/payment_gateway_payment_acceptor_adyen.py +97 -0
- solvimon_python_sdk/models/payment_gateway_payment_acceptor_create_request.py +125 -0
- solvimon_python_sdk/models/payment_gateway_payment_acceptor_link.py +93 -0
- solvimon_python_sdk/models/payment_method.py +192 -0
- solvimon_python_sdk/models/payment_method_action_refresh.py +95 -0
- solvimon_python_sdk/models/payment_method_action_refresh_create_request.py +95 -0
- solvimon_python_sdk/models/payment_method_buy_now_pay_later.py +89 -0
- solvimon_python_sdk/models/payment_method_buy_now_pay_later_update_request.py +89 -0
- solvimon_python_sdk/models/payment_method_card.py +111 -0
- solvimon_python_sdk/models/payment_method_card_update_request.py +111 -0
- solvimon_python_sdk/models/payment_method_create_request.py +192 -0
- solvimon_python_sdk/models/payment_method_details.py +135 -0
- solvimon_python_sdk/models/payment_method_details_buy_now_pay_later.py +89 -0
- solvimon_python_sdk/models/payment_method_details_card.py +101 -0
- solvimon_python_sdk/models/payment_method_details_create_request.py +135 -0
- solvimon_python_sdk/models/payment_method_details_digital_wallet.py +89 -0
- solvimon_python_sdk/models/payment_method_details_direct_debit.py +107 -0
- solvimon_python_sdk/models/payment_method_details_online_banking.py +107 -0
- solvimon_python_sdk/models/payment_method_details_unknown.py +89 -0
- solvimon_python_sdk/models/payment_method_digital_wallet.py +89 -0
- solvimon_python_sdk/models/payment_method_digital_wallet_update_request.py +89 -0
- solvimon_python_sdk/models/payment_method_direct_debit.py +107 -0
- solvimon_python_sdk/models/payment_method_direct_debit_update_request.py +107 -0
- solvimon_python_sdk/models/payment_method_fallback.py +91 -0
- solvimon_python_sdk/models/payment_method_fallback_create_request.py +91 -0
- solvimon_python_sdk/models/payment_method_fallback_update_request.py +91 -0
- solvimon_python_sdk/models/payment_method_online_banking.py +107 -0
- solvimon_python_sdk/models/payment_method_online_banking_update_request.py +107 -0
- solvimon_python_sdk/models/payment_method_option.py +105 -0
- solvimon_python_sdk/models/payment_method_payment_response.py +117 -0
- solvimon_python_sdk/models/payment_method_response_wrapper.py +108 -0
- solvimon_python_sdk/models/payment_method_tokenization_request.py +137 -0
- solvimon_python_sdk/models/payment_method_tokenization_request_create_request.py +134 -0
- solvimon_python_sdk/models/payment_method_update_request.py +192 -0
- solvimon_python_sdk/models/payment_method_update_request_transaction.py +192 -0
- solvimon_python_sdk/models/payment_modification_response.py +105 -0
- solvimon_python_sdk/models/payment_request.py +145 -0
- solvimon_python_sdk/models/payment_request_create_request.py +145 -0
- solvimon_python_sdk/models/payment_request_payment_context.py +89 -0
- solvimon_python_sdk/models/payment_request_response_wrapper.py +108 -0
- solvimon_python_sdk/models/payment_response_wrapper.py +108 -0
- solvimon_python_sdk/models/payment_result_details.py +95 -0
- solvimon_python_sdk/models/payment_result_details_create_request.py +95 -0
- solvimon_python_sdk/models/payment_schedule.py +204 -0
- solvimon_python_sdk/models/payment_schedule_create_request.py +198 -0
- solvimon_python_sdk/models/payment_schedule_dunning.py +89 -0
- solvimon_python_sdk/models/payment_schedule_dunning_create_request.py +89 -0
- solvimon_python_sdk/models/payment_schedule_dunning_update_request.py +89 -0
- solvimon_python_sdk/models/payment_schedule_init.py +116 -0
- solvimon_python_sdk/models/payment_schedule_init_create_request.py +116 -0
- solvimon_python_sdk/models/payment_schedule_installments.py +120 -0
- solvimon_python_sdk/models/payment_schedule_installments_create_request.py +120 -0
- solvimon_python_sdk/models/payment_schedule_installments_update_request.py +120 -0
- solvimon_python_sdk/models/payment_schedule_one_off.py +93 -0
- solvimon_python_sdk/models/payment_schedule_one_off_create_request.py +93 -0
- solvimon_python_sdk/models/payment_schedule_one_off_update_request.py +93 -0
- solvimon_python_sdk/models/payment_schedule_recurring.py +104 -0
- solvimon_python_sdk/models/payment_schedule_recurring_create_request.py +104 -0
- solvimon_python_sdk/models/payment_schedule_recurring_update_request.py +104 -0
- solvimon_python_sdk/models/payment_schedule_response_wrapper.py +108 -0
- solvimon_python_sdk/models/payment_schedule_update_request.py +204 -0
- solvimon_python_sdk/models/payment_trigger.py +111 -0
- solvimon_python_sdk/models/payment_trigger_create_request.py +111 -0
- solvimon_python_sdk/models/payment_trigger_event.py +99 -0
- solvimon_python_sdk/models/payment_trigger_manual.py +103 -0
- solvimon_python_sdk/models/payment_verify_detail.py +97 -0
- solvimon_python_sdk/models/payment_verify_detail_create_request.py +97 -0
- solvimon_python_sdk/models/payment_verify_detail_response.py +89 -0
- solvimon_python_sdk/models/payment_workflow.py +99 -0
- solvimon_python_sdk/models/payment_workflow_create_request.py +99 -0
- solvimon_python_sdk/models/payment_workflow_update_request.py +99 -0
- solvimon_python_sdk/models/penalty_box_data.py +95 -0
- solvimon_python_sdk/models/penalty_box_data_create_request.py +95 -0
- solvimon_python_sdk/models/penalty_box_data_update_request.py +95 -0
- solvimon_python_sdk/models/period.py +101 -0
- solvimon_python_sdk/models/period_create_request.py +101 -0
- solvimon_python_sdk/models/period_update_request.py +101 -0
- solvimon_python_sdk/models/persist_data.py +157 -0
- solvimon_python_sdk/models/persist_data_create_request.py +157 -0
- solvimon_python_sdk/models/platform.py +227 -0
- solvimon_python_sdk/models/platform_pricing_plan_subscription_settings.py +149 -0
- solvimon_python_sdk/models/platform_pricing_plan_subscription_settings_update_request.py +149 -0
- solvimon_python_sdk/models/platform_up_to_date.py +111 -0
- solvimon_python_sdk/models/platform_up_to_date_reprocess.py +99 -0
- solvimon_python_sdk/models/platform_update_request.py +227 -0
- solvimon_python_sdk/models/portal_url.py +183 -0
- solvimon_python_sdk/models/portal_url_create_request.py +180 -0
- solvimon_python_sdk/models/portal_url_link.py +101 -0
- solvimon_python_sdk/models/portal_url_link_create_request.py +101 -0
- solvimon_python_sdk/models/portal_url_link_update_request.py +101 -0
- solvimon_python_sdk/models/portal_url_response_wrapper.py +108 -0
- solvimon_python_sdk/models/portal_url_settings.py +93 -0
- solvimon_python_sdk/models/portal_url_update_request.py +183 -0
- solvimon_python_sdk/models/portal_url_widgets.py +93 -0
- solvimon_python_sdk/models/portal_url_widgets_create_request.py +93 -0
- solvimon_python_sdk/models/portal_url_widgets_update_request.py +93 -0
- solvimon_python_sdk/models/pricing.py +167 -0
- solvimon_python_sdk/models/pricing_category.py +126 -0
- solvimon_python_sdk/models/pricing_category_create_request.py +126 -0
- solvimon_python_sdk/models/pricing_category_update_request.py +126 -0
- solvimon_python_sdk/models/pricing_commitment.py +100 -0
- solvimon_python_sdk/models/pricing_create_request.py +167 -0
- solvimon_python_sdk/models/pricing_currency_settings.py +91 -0
- solvimon_python_sdk/models/pricing_currency_settings_create_request.py +91 -0
- solvimon_python_sdk/models/pricing_currency_settings_update_request.py +91 -0
- solvimon_python_sdk/models/pricing_discount.py +108 -0
- solvimon_python_sdk/models/pricing_group.py +137 -0
- solvimon_python_sdk/models/pricing_group_create_request.py +137 -0
- solvimon_python_sdk/models/pricing_group_update_request.py +137 -0
- solvimon_python_sdk/models/pricing_item.py +156 -0
- solvimon_python_sdk/models/pricing_item_billing_period_config.py +102 -0
- solvimon_python_sdk/models/pricing_item_commitment.py +100 -0
- solvimon_python_sdk/models/pricing_item_config.py +209 -0
- solvimon_python_sdk/models/pricing_item_config_band.py +131 -0
- solvimon_python_sdk/models/pricing_item_config_band_create_request.py +131 -0
- solvimon_python_sdk/models/pricing_item_config_commitment.py +107 -0
- solvimon_python_sdk/models/pricing_item_config_conditions.py +100 -0
- solvimon_python_sdk/models/pricing_item_config_details.py +119 -0
- solvimon_python_sdk/models/pricing_item_config_discount.py +108 -0
- solvimon_python_sdk/models/pricing_item_config_markup.py +102 -0
- solvimon_python_sdk/models/pricing_item_config_meter_value.py +97 -0
- solvimon_python_sdk/models/pricing_item_config_meter_value_included_volume.py +99 -0
- solvimon_python_sdk/models/pricing_item_config_split_pricing.py +96 -0
- solvimon_python_sdk/models/pricing_item_config_top_up.py +89 -0
- solvimon_python_sdk/models/pricing_item_config_wallet_grant.py +127 -0
- solvimon_python_sdk/models/pricing_item_config_wallet_grant_amount_grant.py +95 -0
- solvimon_python_sdk/models/pricing_item_config_wallet_grant_credits_grant.py +99 -0
- solvimon_python_sdk/models/pricing_item_config_wallet_grant_credits_grant_conversion.py +91 -0
- solvimon_python_sdk/models/pricing_item_config_wallet_grant_expiry_policy.py +93 -0
- solvimon_python_sdk/models/pricing_item_create_request.py +156 -0
- solvimon_python_sdk/models/pricing_item_discount.py +108 -0
- solvimon_python_sdk/models/pricing_item_pricing_currency_config.py +129 -0
- solvimon_python_sdk/models/pricing_item_summary_included_volume_details.py +103 -0
- solvimon_python_sdk/models/pricing_item_summary_meter_value.py +115 -0
- solvimon_python_sdk/models/pricing_item_summary_price_details.py +204 -0
- solvimon_python_sdk/models/pricing_item_summary_price_details_band.py +138 -0
- solvimon_python_sdk/models/pricing_item_summary_price_details_conversion.py +95 -0
- solvimon_python_sdk/models/pricing_item_summary_wallet_balance.py +113 -0
- solvimon_python_sdk/models/pricing_item_summary_wallet_balance_details.py +103 -0
- solvimon_python_sdk/models/pricing_item_update_request.py +156 -0
- solvimon_python_sdk/models/pricing_plan.py +220 -0
- solvimon_python_sdk/models/pricing_plan_create_request.py +217 -0
- solvimon_python_sdk/models/pricing_plan_group.py +175 -0
- solvimon_python_sdk/models/pricing_plan_group_create_request.py +163 -0
- solvimon_python_sdk/models/pricing_plan_group_member.py +91 -0
- solvimon_python_sdk/models/pricing_plan_group_member_create_request.py +91 -0
- solvimon_python_sdk/models/pricing_plan_group_member_update_request.py +91 -0
- solvimon_python_sdk/models/pricing_plan_group_response_wrapper.py +108 -0
- solvimon_python_sdk/models/pricing_plan_group_update_request.py +175 -0
- solvimon_python_sdk/models/pricing_plan_response_wrapper.py +108 -0
- solvimon_python_sdk/models/pricing_plan_schedule.py +290 -0
- solvimon_python_sdk/models/pricing_plan_schedule_copy.py +149 -0
- solvimon_python_sdk/models/pricing_plan_schedule_copy_create_request.py +149 -0
- solvimon_python_sdk/models/pricing_plan_schedule_create_request.py +290 -0
- solvimon_python_sdk/models/pricing_plan_schedule_customization.py +135 -0
- solvimon_python_sdk/models/pricing_plan_schedule_customization_create_request.py +135 -0
- solvimon_python_sdk/models/pricing_plan_schedule_info.py +139 -0
- solvimon_python_sdk/models/pricing_plan_schedule_info_update_request.py +139 -0
- solvimon_python_sdk/models/pricing_plan_schedule_migrate.py +126 -0
- solvimon_python_sdk/models/pricing_plan_schedule_migrate_create_request.py +126 -0
- solvimon_python_sdk/models/pricing_plan_schedule_response_wrapper.py +96 -0
- solvimon_python_sdk/models/pricing_plan_schedule_template.py +89 -0
- solvimon_python_sdk/models/pricing_plan_schedule_template_create_request.py +89 -0
- solvimon_python_sdk/models/pricing_plan_schedule_template_update_request.py +89 -0
- solvimon_python_sdk/models/pricing_plan_schedule_update_request.py +290 -0
- solvimon_python_sdk/models/pricing_plan_subscription.py +396 -0
- solvimon_python_sdk/models/pricing_plan_subscription_cancel.py +117 -0
- solvimon_python_sdk/models/pricing_plan_subscription_cancel_create_request.py +114 -0
- solvimon_python_sdk/models/pricing_plan_subscription_change_plan.py +98 -0
- solvimon_python_sdk/models/pricing_plan_subscription_change_plan_create_request.py +98 -0
- solvimon_python_sdk/models/pricing_plan_subscription_copy.py +100 -0
- solvimon_python_sdk/models/pricing_plan_subscription_copy_create_request.py +100 -0
- solvimon_python_sdk/models/pricing_plan_subscription_create_request.py +396 -0
- solvimon_python_sdk/models/pricing_plan_subscription_group.py +126 -0
- solvimon_python_sdk/models/pricing_plan_subscription_group_create_request.py +123 -0
- solvimon_python_sdk/models/pricing_plan_subscription_group_response_wrapper.py +108 -0
- solvimon_python_sdk/models/pricing_plan_subscription_group_update_request.py +126 -0
- solvimon_python_sdk/models/pricing_plan_subscription_info.py +95 -0
- solvimon_python_sdk/models/pricing_plan_subscription_info_create_request.py +95 -0
- solvimon_python_sdk/models/pricing_plan_subscription_info_update_request.py +95 -0
- solvimon_python_sdk/models/pricing_plan_subscription_init.py +148 -0
- solvimon_python_sdk/models/pricing_plan_subscription_init_create_request.py +148 -0
- solvimon_python_sdk/models/pricing_plan_subscription_payment_method_update.py +91 -0
- solvimon_python_sdk/models/pricing_plan_subscription_payment_method_update_create_request.py +91 -0
- solvimon_python_sdk/models/pricing_plan_subscription_response_wrapper.py +108 -0
- solvimon_python_sdk/models/pricing_plan_subscription_selector.py +126 -0
- solvimon_python_sdk/models/pricing_plan_subscription_selector_create_request.py +126 -0
- solvimon_python_sdk/models/pricing_plan_subscription_selector_data.py +101 -0
- solvimon_python_sdk/models/pricing_plan_subscription_selector_filter.py +113 -0
- solvimon_python_sdk/models/pricing_plan_subscription_selector_rule.py +111 -0
- solvimon_python_sdk/models/pricing_plan_subscription_selector_update_request.py +126 -0
- solvimon_python_sdk/models/pricing_plan_subscription_template.py +112 -0
- solvimon_python_sdk/models/pricing_plan_subscription_template_create_request.py +112 -0
- solvimon_python_sdk/models/pricing_plan_subscription_template_update_request.py +112 -0
- solvimon_python_sdk/models/pricing_plan_subscription_trigger.py +124 -0
- solvimon_python_sdk/models/pricing_plan_subscription_trigger_create_request.py +124 -0
- solvimon_python_sdk/models/pricing_plan_subscription_trigger_event.py +99 -0
- solvimon_python_sdk/models/pricing_plan_subscription_trigger_manual.py +103 -0
- solvimon_python_sdk/models/pricing_plan_subscription_update_request.py +396 -0
- solvimon_python_sdk/models/pricing_plan_subscription_workflow.py +108 -0
- solvimon_python_sdk/models/pricing_plan_subscription_workflow_create_request.py +108 -0
- solvimon_python_sdk/models/pricing_plan_subscription_workflow_update_request.py +108 -0
- solvimon_python_sdk/models/pricing_plan_update_request.py +220 -0
- solvimon_python_sdk/models/pricing_plan_version.py +159 -0
- solvimon_python_sdk/models/pricing_plan_version_create_request.py +159 -0
- solvimon_python_sdk/models/pricing_plan_version_info.py +99 -0
- solvimon_python_sdk/models/pricing_plan_version_info_create_request.py +99 -0
- solvimon_python_sdk/models/pricing_plan_version_info_update_request.py +99 -0
- solvimon_python_sdk/models/pricing_plan_version_selector.py +105 -0
- solvimon_python_sdk/models/pricing_plan_version_selector_create_request.py +105 -0
- solvimon_python_sdk/models/pricing_plan_version_selector_update_request.py +105 -0
- solvimon_python_sdk/models/pricing_plan_version_update_request.py +159 -0
- solvimon_python_sdk/models/pricing_update_request.py +167 -0
- solvimon_python_sdk/models/processing_settings.py +89 -0
- solvimon_python_sdk/models/processing_settings_update_request.py +89 -0
- solvimon_python_sdk/models/product.py +221 -0
- solvimon_python_sdk/models/product_category.py +148 -0
- solvimon_python_sdk/models/product_category_create_request.py +142 -0
- solvimon_python_sdk/models/product_category_discount.py +119 -0
- solvimon_python_sdk/models/product_category_response_wrapper.py +108 -0
- solvimon_python_sdk/models/product_category_update_request.py +148 -0
- solvimon_python_sdk/models/product_create_request.py +221 -0
- solvimon_python_sdk/models/product_discount.py +119 -0
- solvimon_python_sdk/models/product_item.py +243 -0
- solvimon_python_sdk/models/product_item_create_request.py +234 -0
- solvimon_python_sdk/models/product_item_credits.py +97 -0
- solvimon_python_sdk/models/product_item_credits_create_request.py +97 -0
- solvimon_python_sdk/models/product_item_credits_update_request.py +97 -0
- solvimon_python_sdk/models/product_item_discount.py +119 -0
- solvimon_python_sdk/models/product_item_meter_property_condition_discount.py +126 -0
- solvimon_python_sdk/models/product_item_response_wrapper.py +108 -0
- solvimon_python_sdk/models/product_item_update_request.py +243 -0
- solvimon_python_sdk/models/product_item_usage_based.py +114 -0
- solvimon_python_sdk/models/product_item_usage_based_create_request.py +114 -0
- solvimon_python_sdk/models/product_item_usage_based_update_request.py +114 -0
- solvimon_python_sdk/models/product_response_wrapper.py +108 -0
- solvimon_python_sdk/models/product_update_request.py +221 -0
- solvimon_python_sdk/models/promotion_code.py +137 -0
- solvimon_python_sdk/models/promotion_code_create_request.py +137 -0
- solvimon_python_sdk/models/promotion_code_details.py +95 -0
- solvimon_python_sdk/models/promotion_code_limited_to.py +100 -0
- solvimon_python_sdk/models/promotion_code_limited_to_create_request.py +100 -0
- solvimon_python_sdk/models/promotion_code_response_wrapper.py +108 -0
- solvimon_python_sdk/models/quote.py +166 -0
- solvimon_python_sdk/models/quote_create_request.py +166 -0
- solvimon_python_sdk/models/quote_init_action.py +113 -0
- solvimon_python_sdk/models/quote_init_action_create_request.py +113 -0
- solvimon_python_sdk/models/quote_init_action_pricing_plan_subscription.py +138 -0
- solvimon_python_sdk/models/quote_init_action_pricing_plan_subscription_create_request.py +138 -0
- solvimon_python_sdk/models/quote_init_action_quote.py +117 -0
- solvimon_python_sdk/models/quote_init_action_quote_create_request.py +117 -0
- solvimon_python_sdk/models/quote_init_action_quote_pricing_plan_schedule.py +125 -0
- solvimon_python_sdk/models/quote_init_action_quote_pricing_plan_schedule_create_request.py +125 -0
- solvimon_python_sdk/models/quote_init_action_quote_version.py +91 -0
- solvimon_python_sdk/models/quote_init_action_quote_version_create_request.py +91 -0
- solvimon_python_sdk/models/quote_pdf_configuration.py +91 -0
- solvimon_python_sdk/models/quote_settings.py +93 -0
- solvimon_python_sdk/models/quote_settings_update_request.py +93 -0
- solvimon_python_sdk/models/quote_template.py +176 -0
- solvimon_python_sdk/models/quote_template_create_request.py +170 -0
- solvimon_python_sdk/models/quote_template_response_wrapper.py +108 -0
- solvimon_python_sdk/models/quote_template_update_request.py +176 -0
- solvimon_python_sdk/models/quote_update_request.py +166 -0
- solvimon_python_sdk/models/quote_upgrade_action_request.py +105 -0
- solvimon_python_sdk/models/quote_upgrade_action_request_create_request.py +105 -0
- solvimon_python_sdk/models/quote_upgrade_action_request_pricing_plan_schedule.py +94 -0
- solvimon_python_sdk/models/quote_upgrade_action_request_pricing_plan_schedule_create_request.py +94 -0
- solvimon_python_sdk/models/quote_upgrade_action_request_pricing_plan_subscription.py +124 -0
- solvimon_python_sdk/models/quote_upgrade_action_request_pricing_plan_subscription_create_request.py +124 -0
- solvimon_python_sdk/models/quote_upgrade_action_request_quote.py +114 -0
- solvimon_python_sdk/models/quote_upgrade_action_request_quote_create_request.py +114 -0
- solvimon_python_sdk/models/quote_upgrade_action_response.py +111 -0
- solvimon_python_sdk/models/quote_version.py +180 -0
- solvimon_python_sdk/models/quote_version_action.py +147 -0
- solvimon_python_sdk/models/quote_version_action_accept.py +95 -0
- solvimon_python_sdk/models/quote_version_action_accept_create_request.py +95 -0
- solvimon_python_sdk/models/quote_version_action_create_request.py +147 -0
- solvimon_python_sdk/models/quote_version_action_create_subscription.py +91 -0
- solvimon_python_sdk/models/quote_version_action_create_subscription_create_request.py +91 -0
- solvimon_python_sdk/models/quote_version_action_reject.py +97 -0
- solvimon_python_sdk/models/quote_version_action_reject_create_request.py +97 -0
- solvimon_python_sdk/models/quote_version_action_request_signature.py +99 -0
- solvimon_python_sdk/models/quote_version_action_send.py +95 -0
- solvimon_python_sdk/models/quote_version_action_send_create_request.py +95 -0
- solvimon_python_sdk/models/quote_version_action_sign.py +91 -0
- solvimon_python_sdk/models/quote_version_action_update_request.py +147 -0
- solvimon_python_sdk/models/quote_version_content.py +107 -0
- solvimon_python_sdk/models/quote_version_content_create_request.py +107 -0
- solvimon_python_sdk/models/quote_version_content_update_request.py +107 -0
- solvimon_python_sdk/models/quote_version_create_request.py +180 -0
- solvimon_python_sdk/models/quote_version_default_content.py +91 -0
- solvimon_python_sdk/models/quote_version_info.py +103 -0
- solvimon_python_sdk/models/quote_version_info_create_request.py +103 -0
- solvimon_python_sdk/models/quote_version_info_update_request.py +103 -0
- solvimon_python_sdk/models/quote_version_invoices_info.py +95 -0
- solvimon_python_sdk/models/quote_version_invoices_info_create_request.py +95 -0
- solvimon_python_sdk/models/quote_version_invoices_info_update_request.py +95 -0
- solvimon_python_sdk/models/quote_version_portal_url.py +89 -0
- solvimon_python_sdk/models/quote_version_portal_url_create_request.py +89 -0
- solvimon_python_sdk/models/quote_version_portal_url_update_request.py +89 -0
- solvimon_python_sdk/models/quote_version_recipient_data.py +125 -0
- solvimon_python_sdk/models/quote_version_recipient_data_create_request.py +125 -0
- solvimon_python_sdk/models/quote_version_recipient_data_update_request.py +125 -0
- solvimon_python_sdk/models/quote_version_response_wrapper.py +108 -0
- solvimon_python_sdk/models/quote_version_template.py +95 -0
- solvimon_python_sdk/models/quote_version_template_create_request.py +95 -0
- solvimon_python_sdk/models/quote_version_template_update_request.py +95 -0
- solvimon_python_sdk/models/quote_version_update_request.py +180 -0
- solvimon_python_sdk/models/quotes_response_wrapper.py +108 -0
- solvimon_python_sdk/models/rate_card.py +90 -0
- solvimon_python_sdk/models/rate_card_create_request.py +90 -0
- solvimon_python_sdk/models/rate_card_update_request.py +90 -0
- solvimon_python_sdk/models/recipient_contact_data.py +97 -0
- solvimon_python_sdk/models/recipient_details_data.py +95 -0
- solvimon_python_sdk/models/reference_mapping_interface.py +95 -0
- solvimon_python_sdk/models/refresh_invoice.py +112 -0
- solvimon_python_sdk/models/refresh_invoice_create_request.py +112 -0
- solvimon_python_sdk/models/refund_payment_request.py +93 -0
- solvimon_python_sdk/models/refund_payment_request_create_request.py +93 -0
- solvimon_python_sdk/models/report.py +164 -0
- solvimon_python_sdk/models/report_column.py +103 -0
- solvimon_python_sdk/models/report_configuration.py +128 -0
- solvimon_python_sdk/models/report_configuration_create_request.py +125 -0
- solvimon_python_sdk/models/report_configuration_response_wrapper.py +108 -0
- solvimon_python_sdk/models/report_configuration_update_request.py +128 -0
- solvimon_python_sdk/models/report_definition.py +179 -0
- solvimon_python_sdk/models/report_definition_create_request.py +179 -0
- solvimon_python_sdk/models/report_definition_response_wrapper.py +108 -0
- solvimon_python_sdk/models/report_definition_update_request.py +179 -0
- solvimon_python_sdk/models/report_generate_request.py +141 -0
- solvimon_python_sdk/models/report_generate_request_create_request.py +141 -0
- solvimon_python_sdk/models/report_generate_request_response_wrapper.py +108 -0
- solvimon_python_sdk/models/report_ingest_data_summary.py +106 -0
- solvimon_python_sdk/models/report_parameter.py +113 -0
- solvimon_python_sdk/models/report_parameter_value.py +101 -0
- solvimon_python_sdk/models/report_parameter_value_create_request.py +101 -0
- solvimon_python_sdk/models/report_parameter_value_update_request.py +101 -0
- solvimon_python_sdk/models/report_response_wrapper.py +108 -0
- solvimon_python_sdk/models/report_subscription.py +148 -0
- solvimon_python_sdk/models/report_subscription_create_request.py +148 -0
- solvimon_python_sdk/models/report_subscription_response_wrapper.py +108 -0
- solvimon_python_sdk/models/report_subscription_schedule.py +104 -0
- solvimon_python_sdk/models/report_subscription_schedule_create_request.py +104 -0
- solvimon_python_sdk/models/report_subscription_schedule_update_request.py +104 -0
- solvimon_python_sdk/models/report_subscription_update_request.py +148 -0
- solvimon_python_sdk/models/reprocess.py +137 -0
- solvimon_python_sdk/models/reprocess_create_request.py +134 -0
- solvimon_python_sdk/models/reprocess_customer.py +104 -0
- solvimon_python_sdk/models/reprocess_customer_create_request.py +104 -0
- solvimon_python_sdk/models/reprocess_invoice.py +91 -0
- solvimon_python_sdk/models/reprocess_invoice_create_request.py +91 -0
- solvimon_python_sdk/models/reprocess_not_matched.py +94 -0
- solvimon_python_sdk/models/reprocess_not_matched_create_request.py +94 -0
- solvimon_python_sdk/models/reprocess_response_wrapper.py +108 -0
- solvimon_python_sdk/models/reprocessing_delay.py +102 -0
- solvimon_python_sdk/models/reprocessing_settings.py +93 -0
- solvimon_python_sdk/models/reprocessing_settings_update_request.py +93 -0
- solvimon_python_sdk/models/request_usage_reports_parameters.py +100 -0
- solvimon_python_sdk/models/request_usage_reports_parameters_create_request.py +100 -0
- solvimon_python_sdk/models/required_action.py +107 -0
- solvimon_python_sdk/models/reset_password.py +91 -0
- solvimon_python_sdk/models/reset_password_create_request.py +91 -0
- solvimon_python_sdk/models/resource_identifier.py +101 -0
- solvimon_python_sdk/models/resource_identifier_create_request.py +101 -0
- solvimon_python_sdk/models/resubmit_e_invoice.py +91 -0
- solvimon_python_sdk/models/resubmit_e_invoice_create_request.py +91 -0
- solvimon_python_sdk/models/reviewer.py +101 -0
- solvimon_python_sdk/models/role.py +109 -0
- solvimon_python_sdk/models/role_create_request.py +109 -0
- solvimon_python_sdk/models/role_paginated_response_wrapper.py +108 -0
- solvimon_python_sdk/models/role_update_request.py +109 -0
- solvimon_python_sdk/models/rounding_setting.py +111 -0
- solvimon_python_sdk/models/rounding_setting_update_request.py +111 -0
- solvimon_python_sdk/models/s3.py +109 -0
- solvimon_python_sdk/models/search.py +114 -0
- solvimon_python_sdk/models/search_create_request.py +114 -0
- solvimon_python_sdk/models/search_field.py +97 -0
- solvimon_python_sdk/models/search_field_create_request.py +97 -0
- solvimon_python_sdk/models/seat_assignment.py +128 -0
- solvimon_python_sdk/models/seat_assignment_create_request.py +128 -0
- solvimon_python_sdk/models/seat_assignment_response_wrapper.py +108 -0
- solvimon_python_sdk/models/seat_assignment_update_request.py +128 -0
- solvimon_python_sdk/models/selection_rule.py +105 -0
- solvimon_python_sdk/models/selection_rule_create_request.py +105 -0
- solvimon_python_sdk/models/selection_rule_field.py +91 -0
- solvimon_python_sdk/models/selection_rule_field_create_request.py +91 -0
- solvimon_python_sdk/models/selection_rule_resource.py +127 -0
- solvimon_python_sdk/models/selection_rule_update_request.py +105 -0
- solvimon_python_sdk/models/seller_details.py +89 -0
- solvimon_python_sdk/models/seller_details_create_request.py +89 -0
- solvimon_python_sdk/models/seller_details_update_request.py +89 -0
- solvimon_python_sdk/models/send_email_invoice_configuration.py +105 -0
- solvimon_python_sdk/models/send_email_payment_configuration.py +89 -0
- solvimon_python_sdk/models/send_email_pricing_plan_subscription_configuration.py +89 -0
- solvimon_python_sdk/models/send_email_to_customer.py +175 -0
- solvimon_python_sdk/models/send_email_to_customer_update_request.py +175 -0
- solvimon_python_sdk/models/send_email_wallet_configuration.py +89 -0
- solvimon_python_sdk/models/send_webhook_action.py +89 -0
- solvimon_python_sdk/models/send_webhook_action_update_request.py +89 -0
- solvimon_python_sdk/models/signature_request.py +148 -0
- solvimon_python_sdk/models/signature_request_quote_version.py +91 -0
- solvimon_python_sdk/models/signature_request_recipient_action.py +101 -0
- solvimon_python_sdk/models/signature_request_recipient_action_create_request.py +98 -0
- solvimon_python_sdk/models/signature_request_recipient_data.py +135 -0
- solvimon_python_sdk/models/snowflake.py +97 -0
- solvimon_python_sdk/models/sso_authentication_provider_variant_settings.py +89 -0
- solvimon_python_sdk/models/sso_variant.py +113 -0
- solvimon_python_sdk/models/sso_variant_create_request.py +113 -0
- solvimon_python_sdk/models/sso_variant_update_request.py +113 -0
- solvimon_python_sdk/models/stripe_integration_details.py +89 -0
- solvimon_python_sdk/models/stripe_payment_action.py +91 -0
- solvimon_python_sdk/models/stripe_payment_gateway_integration.py +91 -0
- solvimon_python_sdk/models/stripe_payment_method_option.py +89 -0
- solvimon_python_sdk/models/stripe_required_action.py +95 -0
- solvimon_python_sdk/models/stripe_tokenization_request.py +89 -0
- solvimon_python_sdk/models/stripe_tokenization_request_create_request.py +89 -0
- solvimon_python_sdk/models/system_ownership_details.py +95 -0
- solvimon_python_sdk/models/tax_calculation_integration.py +118 -0
- solvimon_python_sdk/models/tax_calculation_integration_create_request.py +118 -0
- solvimon_python_sdk/models/tax_calculation_integration_update_request.py +118 -0
- solvimon_python_sdk/models/tax_id.py +111 -0
- solvimon_python_sdk/models/tax_id_create_request.py +111 -0
- solvimon_python_sdk/models/tax_id_type_response.py +97 -0
- solvimon_python_sdk/models/tax_id_validation.py +107 -0
- solvimon_python_sdk/models/tax_id_validation_wrapper.py +96 -0
- solvimon_python_sdk/models/tax_registration.py +112 -0
- solvimon_python_sdk/models/tax_registration_create_request.py +112 -0
- solvimon_python_sdk/models/tax_registration_update_request.py +112 -0
- solvimon_python_sdk/models/tax_settings.py +89 -0
- solvimon_python_sdk/models/tax_settings_create_request.py +89 -0
- solvimon_python_sdk/models/team_member_paginated_response_wrapper.py +96 -0
- solvimon_python_sdk/models/team_member_representation.py +109 -0
- solvimon_python_sdk/models/team_member_representation_create_request.py +109 -0
- solvimon_python_sdk/models/team_member_representation_update_request.py +109 -0
- solvimon_python_sdk/models/team_representation.py +106 -0
- solvimon_python_sdk/models/team_representation_create_request.py +106 -0
- solvimon_python_sdk/models/template_pricing_plan_subscription.py +101 -0
- solvimon_python_sdk/models/template_pricing_plan_subscription_update_request.py +101 -0
- solvimon_python_sdk/models/test_connection_response.py +109 -0
- solvimon_python_sdk/models/threshold.py +97 -0
- solvimon_python_sdk/models/total_discount.py +117 -0
- solvimon_python_sdk/models/trigger_report_request.py +96 -0
- solvimon_python_sdk/models/trigger_report_request_create_request.py +96 -0
- solvimon_python_sdk/models/uk_local.py +112 -0
- solvimon_python_sdk/models/unit_name.py +112 -0
- solvimon_python_sdk/models/unit_name_create_request.py +112 -0
- solvimon_python_sdk/models/unit_name_update_request.py +112 -0
- solvimon_python_sdk/models/us_local.py +136 -0
- solvimon_python_sdk/models/usage_limit.py +139 -0
- solvimon_python_sdk/models/usage_limit_create_request.py +136 -0
- solvimon_python_sdk/models/usage_limit_response_wrapper.py +108 -0
- solvimon_python_sdk/models/usage_limit_status.py +118 -0
- solvimon_python_sdk/models/usage_limit_status_response.py +106 -0
- solvimon_python_sdk/models/usage_limit_status_update.py +99 -0
- solvimon_python_sdk/models/usage_limit_status_update_create_request.py +96 -0
- solvimon_python_sdk/models/usage_limit_update_request.py +139 -0
- solvimon_python_sdk/models/usage_limit_value.py +112 -0
- solvimon_python_sdk/models/usage_limit_value_create_request.py +112 -0
- solvimon_python_sdk/models/usage_limit_value_update_request.py +112 -0
- solvimon_python_sdk/models/usage_threshold.py +124 -0
- solvimon_python_sdk/models/usage_trigger.py +97 -0
- solvimon_python_sdk/models/usage_trigger_create_request.py +97 -0
- solvimon_python_sdk/models/usage_trigger_event.py +131 -0
- solvimon_python_sdk/models/usage_workflow.py +110 -0
- solvimon_python_sdk/models/usage_workflow_create_request.py +110 -0
- solvimon_python_sdk/models/usage_workflow_update_request.py +110 -0
- solvimon_python_sdk/models/used_exchange_rate.py +97 -0
- solvimon_python_sdk/models/used_exchange_rate_create_request.py +97 -0
- solvimon_python_sdk/models/used_exchange_rate_update_request.py +97 -0
- solvimon_python_sdk/models/used_wallet_grant_detail.py +111 -0
- solvimon_python_sdk/models/user.py +158 -0
- solvimon_python_sdk/models/user_create_request.py +158 -0
- solvimon_python_sdk/models/user_create_request_identity.py +158 -0
- solvimon_python_sdk/models/user_invite.py +109 -0
- solvimon_python_sdk/models/user_invite_create_request.py +109 -0
- solvimon_python_sdk/models/user_paginated_response_wrapper.py +108 -0
- solvimon_python_sdk/models/user_search_filter.py +95 -0
- solvimon_python_sdk/models/user_search_filter_create_request.py +95 -0
- solvimon_python_sdk/models/user_update_request.py +158 -0
- solvimon_python_sdk/models/user_update_request_identity.py +158 -0
- solvimon_python_sdk/models/username_password.py +91 -0
- solvimon_python_sdk/models/username_password_create_request.py +91 -0
- solvimon_python_sdk/models/volume.py +95 -0
- solvimon_python_sdk/models/volume_create_request.py +95 -0
- solvimon_python_sdk/models/wallet.py +151 -0
- solvimon_python_sdk/models/wallet_balance_status.py +131 -0
- solvimon_python_sdk/models/wallet_balance_status_request.py +92 -0
- solvimon_python_sdk/models/wallet_balance_status_request_create_request.py +92 -0
- solvimon_python_sdk/models/wallet_balance_value.py +103 -0
- solvimon_python_sdk/models/wallet_balance_value_create_request.py +103 -0
- solvimon_python_sdk/models/wallet_create_request.py +148 -0
- solvimon_python_sdk/models/wallet_customer_balance_detail.py +113 -0
- solvimon_python_sdk/models/wallet_grant.py +200 -0
- solvimon_python_sdk/models/wallet_grant_create_request.py +200 -0
- solvimon_python_sdk/models/wallet_grant_response_wrapper.py +108 -0
- solvimon_python_sdk/models/wallet_grant_seat.py +95 -0
- solvimon_python_sdk/models/wallet_grant_seat_create_request.py +95 -0
- solvimon_python_sdk/models/wallet_response_wrapper.py +108 -0
- solvimon_python_sdk/models/wallet_threshold.py +112 -0
- solvimon_python_sdk/models/wallet_trigger.py +127 -0
- solvimon_python_sdk/models/wallet_trigger_create_request.py +127 -0
- solvimon_python_sdk/models/wallet_trigger_event.py +99 -0
- solvimon_python_sdk/models/wallet_trigger_wallet_balance.py +102 -0
- solvimon_python_sdk/models/wallet_type.py +164 -0
- solvimon_python_sdk/models/wallet_type_balance.py +89 -0
- solvimon_python_sdk/models/wallet_type_balance_update_request.py +89 -0
- solvimon_python_sdk/models/wallet_type_create_request.py +164 -0
- solvimon_python_sdk/models/wallet_type_credit.py +111 -0
- solvimon_python_sdk/models/wallet_type_credit_amount_grant.py +111 -0
- solvimon_python_sdk/models/wallet_type_credit_credits_grant.py +89 -0
- solvimon_python_sdk/models/wallet_type_credit_update_request.py +111 -0
- solvimon_python_sdk/models/wallet_type_response_wrapper.py +108 -0
- solvimon_python_sdk/models/wallet_type_update_request.py +164 -0
- solvimon_python_sdk/models/wallet_wallet_balance.py +107 -0
- solvimon_python_sdk/models/wallet_workflow.py +105 -0
- solvimon_python_sdk/models/wallet_workflow_create_request.py +105 -0
- solvimon_python_sdk/models/wallet_workflow_update_request.py +105 -0
- solvimon_python_sdk/models/webhook.py +200 -0
- solvimon_python_sdk/models/webhook_action.py +91 -0
- solvimon_python_sdk/models/webhook_action_response_wrapper.py +98 -0
- solvimon_python_sdk/models/webhook_connection_response.py +95 -0
- solvimon_python_sdk/models/webhook_create_request.py +200 -0
- solvimon_python_sdk/models/webhook_event.py +131 -0
- solvimon_python_sdk/models/webhook_event_failure_data.py +95 -0
- solvimon_python_sdk/models/webhook_event_response_wrapper.py +108 -0
- solvimon_python_sdk/models/webhook_response_wrapper.py +108 -0
- solvimon_python_sdk/models/webhook_update_request.py +200 -0
- solvimon_python_sdk/models/workflow.py +202 -0
- solvimon_python_sdk/models/workflow_action.py +160 -0
- solvimon_python_sdk/models/workflow_action_create_request.py +160 -0
- solvimon_python_sdk/models/workflow_action_execution.py +149 -0
- solvimon_python_sdk/models/workflow_action_execution_create_request.py +146 -0
- solvimon_python_sdk/models/workflow_action_execution_update_request.py +149 -0
- solvimon_python_sdk/models/workflow_action_executions_paginated_response.py +108 -0
- solvimon_python_sdk/models/workflow_action_update_request.py +160 -0
- solvimon_python_sdk/models/workflow_action_update_request_transaction.py +160 -0
- solvimon_python_sdk/models/workflow_conditions.py +111 -0
- solvimon_python_sdk/models/workflow_conditions_comparison.py +103 -0
- solvimon_python_sdk/models/workflow_conditions_create_request.py +111 -0
- solvimon_python_sdk/models/workflow_conditions_group.py +101 -0
- solvimon_python_sdk/models/workflow_conditions_result_comparison.py +105 -0
- solvimon_python_sdk/models/workflow_conditions_result_group.py +101 -0
- solvimon_python_sdk/models/workflow_conditions_result_tree.py +123 -0
- solvimon_python_sdk/models/workflow_conditions_result_tree_create_request.py +123 -0
- solvimon_python_sdk/models/workflow_conditions_result_tree_update_request.py +123 -0
- solvimon_python_sdk/models/workflow_conditions_update_request.py +111 -0
- solvimon_python_sdk/models/workflow_create_request.py +190 -0
- solvimon_python_sdk/models/workflow_create_request_transaction.py +202 -0
- solvimon_python_sdk/models/workflow_init.py +102 -0
- solvimon_python_sdk/models/workflow_init_create_request.py +102 -0
- solvimon_python_sdk/models/workflow_paginated_response.py +108 -0
- solvimon_python_sdk/models/workflow_trigger.py +157 -0
- solvimon_python_sdk/models/workflow_trigger_create_request.py +154 -0
- solvimon_python_sdk/models/workflow_trigger_paginated_response.py +108 -0
- solvimon_python_sdk/models/workflow_trigger_update_request.py +157 -0
- solvimon_python_sdk/models/workflow_update_request.py +202 -0
- solvimon_python_sdk/py.typed +0 -0
- solvimon_python_sdk/rest.py +335 -0
- solvimon_python_sdk-0.0.4b0.dist-info/METADATA +1725 -0
- solvimon_python_sdk-0.0.4b0.dist-info/RECORD +1196 -0
- solvimon_python_sdk-0.0.4b0.dist-info/WHEEL +5 -0
- solvimon_python_sdk-0.0.4b0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,3961 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Solvimon API
|
|
3
|
+
|
|
4
|
+
Unified Solvimon API covering Configuration, Event, Identity, and Transaction domains.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.0.4-beta
|
|
7
|
+
Contact: contact@solvimon.com
|
|
8
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
9
|
+
|
|
10
|
+
Do not edit the class manually.
|
|
11
|
+
""" # noqa: E501
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import Field, StrictBool, StrictInt, StrictStr
|
|
20
|
+
from typing import List, Optional
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from solvimon_python_sdk.models.account_membership_representation import AccountMembershipRepresentation
|
|
23
|
+
from solvimon_python_sdk.models.account_membership_representation_create_request import AccountMembershipRepresentationCreateRequest
|
|
24
|
+
from solvimon_python_sdk.models.account_membership_representation_update_request import AccountMembershipRepresentationUpdateRequest
|
|
25
|
+
from solvimon_python_sdk.models.team_member_paginated_response_wrapper import TeamMemberPaginatedResponseWrapper
|
|
26
|
+
from solvimon_python_sdk.models.team_member_representation import TeamMemberRepresentation
|
|
27
|
+
from solvimon_python_sdk.models.team_member_representation_create_request import TeamMemberRepresentationCreateRequest
|
|
28
|
+
from solvimon_python_sdk.models.user import User
|
|
29
|
+
from solvimon_python_sdk.models.user_create_request_identity import UserCreateRequestIdentity
|
|
30
|
+
from solvimon_python_sdk.models.user_invite import UserInvite
|
|
31
|
+
from solvimon_python_sdk.models.user_invite_create_request import UserInviteCreateRequest
|
|
32
|
+
from solvimon_python_sdk.models.user_paginated_response_wrapper import UserPaginatedResponseWrapper
|
|
33
|
+
from solvimon_python_sdk.models.user_update_request_identity import UserUpdateRequestIdentity
|
|
34
|
+
|
|
35
|
+
from solvimon_python_sdk.api_client import ApiClient, RequestSerialized
|
|
36
|
+
from solvimon_python_sdk.api_response import ApiResponse
|
|
37
|
+
from solvimon_python_sdk.rest import RESTResponseType
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class UsersApi:
|
|
41
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
42
|
+
Ref: https://openapi-generator.tech
|
|
43
|
+
|
|
44
|
+
Do not edit the class manually.
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
def __init__(self, api_client=None) -> None:
|
|
48
|
+
if api_client is None:
|
|
49
|
+
api_client = ApiClient.get_default()
|
|
50
|
+
self.api_client = api_client
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
@validate_call
|
|
54
|
+
def get_users(
|
|
55
|
+
self,
|
|
56
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
57
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
58
|
+
active: Annotated[Optional[StrictBool], Field(description="The active flag by which the resource will be filtered.")] = None,
|
|
59
|
+
username: Annotated[Optional[StrictStr], Field(description="Filter based on username")] = None,
|
|
60
|
+
limit: Annotated[Optional[StrictInt], Field(description="The amount of records shown in the list")] = None,
|
|
61
|
+
page: Annotated[Optional[StrictInt], Field(description="The page which is going to be shown")] = None,
|
|
62
|
+
order_by: Annotated[Optional[StrictStr], Field(description="The parameter by which the response is ordered.")] = None,
|
|
63
|
+
order_direction: Annotated[Optional[StrictStr], Field(description="The order direction by which the response is ordered.")] = None,
|
|
64
|
+
_request_timeout: Union[
|
|
65
|
+
None,
|
|
66
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
67
|
+
Tuple[
|
|
68
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
69
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
70
|
+
]
|
|
71
|
+
] = None,
|
|
72
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
73
|
+
_content_type: Optional[StrictStr] = None,
|
|
74
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
75
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
76
|
+
) -> UserPaginatedResponseWrapper:
|
|
77
|
+
"""Get a list of all users
|
|
78
|
+
|
|
79
|
+
Requires the USER.MORTAL.VIEW permission.
|
|
80
|
+
|
|
81
|
+
:param version: version (required)
|
|
82
|
+
:type version: str
|
|
83
|
+
:param x_platform_id: Platform ID.
|
|
84
|
+
:type x_platform_id: str
|
|
85
|
+
:param active: The active flag by which the resource will be filtered.
|
|
86
|
+
:type active: bool
|
|
87
|
+
:param username: Filter based on username
|
|
88
|
+
:type username: str
|
|
89
|
+
:param limit: The amount of records shown in the list
|
|
90
|
+
:type limit: int
|
|
91
|
+
:param page: The page which is going to be shown
|
|
92
|
+
:type page: int
|
|
93
|
+
:param order_by: The parameter by which the response is ordered.
|
|
94
|
+
:type order_by: str
|
|
95
|
+
:param order_direction: The order direction by which the response is ordered.
|
|
96
|
+
:type order_direction: str
|
|
97
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
98
|
+
number provided, it will be total request
|
|
99
|
+
timeout. It can also be a pair (tuple) of
|
|
100
|
+
(connection, read) timeouts.
|
|
101
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
102
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
103
|
+
request; this effectively ignores the
|
|
104
|
+
authentication in the spec for a single request.
|
|
105
|
+
:type _request_auth: dict, optional
|
|
106
|
+
:param _content_type: force content-type for the request.
|
|
107
|
+
:type _content_type: str, Optional
|
|
108
|
+
:param _headers: set to override the headers for a single
|
|
109
|
+
request; this effectively ignores the headers
|
|
110
|
+
in the spec for a single request.
|
|
111
|
+
:type _headers: dict, optional
|
|
112
|
+
:param _host_index: set to override the host_index for a single
|
|
113
|
+
request; this effectively ignores the host_index
|
|
114
|
+
in the spec for a single request.
|
|
115
|
+
:type _host_index: int, optional
|
|
116
|
+
:return: Returns the result object.
|
|
117
|
+
""" # noqa: E501
|
|
118
|
+
|
|
119
|
+
_param = self._get_users_serialize(
|
|
120
|
+
version=version,
|
|
121
|
+
x_platform_id=x_platform_id,
|
|
122
|
+
active=active,
|
|
123
|
+
username=username,
|
|
124
|
+
limit=limit,
|
|
125
|
+
page=page,
|
|
126
|
+
order_by=order_by,
|
|
127
|
+
order_direction=order_direction,
|
|
128
|
+
_request_auth=_request_auth,
|
|
129
|
+
_content_type=_content_type,
|
|
130
|
+
_headers=_headers,
|
|
131
|
+
_host_index=_host_index
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
135
|
+
'200': "UserPaginatedResponseWrapper",
|
|
136
|
+
'401': "ApiError",
|
|
137
|
+
'403': "ApiError",
|
|
138
|
+
'500': "ApiError",
|
|
139
|
+
}
|
|
140
|
+
response_data = self.api_client.call_api(
|
|
141
|
+
*_param,
|
|
142
|
+
_request_timeout=_request_timeout
|
|
143
|
+
)
|
|
144
|
+
response_data.read()
|
|
145
|
+
return self.api_client.response_deserialize(
|
|
146
|
+
response_data=response_data,
|
|
147
|
+
response_types_map=_response_types_map,
|
|
148
|
+
).data
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
@validate_call
|
|
152
|
+
def get_users_with_http_info(
|
|
153
|
+
self,
|
|
154
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
155
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
156
|
+
active: Annotated[Optional[StrictBool], Field(description="The active flag by which the resource will be filtered.")] = None,
|
|
157
|
+
username: Annotated[Optional[StrictStr], Field(description="Filter based on username")] = None,
|
|
158
|
+
limit: Annotated[Optional[StrictInt], Field(description="The amount of records shown in the list")] = None,
|
|
159
|
+
page: Annotated[Optional[StrictInt], Field(description="The page which is going to be shown")] = None,
|
|
160
|
+
order_by: Annotated[Optional[StrictStr], Field(description="The parameter by which the response is ordered.")] = None,
|
|
161
|
+
order_direction: Annotated[Optional[StrictStr], Field(description="The order direction by which the response is ordered.")] = None,
|
|
162
|
+
_request_timeout: Union[
|
|
163
|
+
None,
|
|
164
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
165
|
+
Tuple[
|
|
166
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
167
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
168
|
+
]
|
|
169
|
+
] = None,
|
|
170
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
171
|
+
_content_type: Optional[StrictStr] = None,
|
|
172
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
173
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
174
|
+
) -> ApiResponse[UserPaginatedResponseWrapper]:
|
|
175
|
+
"""Get a list of all users
|
|
176
|
+
|
|
177
|
+
Requires the USER.MORTAL.VIEW permission.
|
|
178
|
+
|
|
179
|
+
:param version: version (required)
|
|
180
|
+
:type version: str
|
|
181
|
+
:param x_platform_id: Platform ID.
|
|
182
|
+
:type x_platform_id: str
|
|
183
|
+
:param active: The active flag by which the resource will be filtered.
|
|
184
|
+
:type active: bool
|
|
185
|
+
:param username: Filter based on username
|
|
186
|
+
:type username: str
|
|
187
|
+
:param limit: The amount of records shown in the list
|
|
188
|
+
:type limit: int
|
|
189
|
+
:param page: The page which is going to be shown
|
|
190
|
+
:type page: int
|
|
191
|
+
:param order_by: The parameter by which the response is ordered.
|
|
192
|
+
:type order_by: str
|
|
193
|
+
:param order_direction: The order direction by which the response is ordered.
|
|
194
|
+
:type order_direction: str
|
|
195
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
196
|
+
number provided, it will be total request
|
|
197
|
+
timeout. It can also be a pair (tuple) of
|
|
198
|
+
(connection, read) timeouts.
|
|
199
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
200
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
201
|
+
request; this effectively ignores the
|
|
202
|
+
authentication in the spec for a single request.
|
|
203
|
+
:type _request_auth: dict, optional
|
|
204
|
+
:param _content_type: force content-type for the request.
|
|
205
|
+
:type _content_type: str, Optional
|
|
206
|
+
:param _headers: set to override the headers for a single
|
|
207
|
+
request; this effectively ignores the headers
|
|
208
|
+
in the spec for a single request.
|
|
209
|
+
:type _headers: dict, optional
|
|
210
|
+
:param _host_index: set to override the host_index for a single
|
|
211
|
+
request; this effectively ignores the host_index
|
|
212
|
+
in the spec for a single request.
|
|
213
|
+
:type _host_index: int, optional
|
|
214
|
+
:return: Returns the result object.
|
|
215
|
+
""" # noqa: E501
|
|
216
|
+
|
|
217
|
+
_param = self._get_users_serialize(
|
|
218
|
+
version=version,
|
|
219
|
+
x_platform_id=x_platform_id,
|
|
220
|
+
active=active,
|
|
221
|
+
username=username,
|
|
222
|
+
limit=limit,
|
|
223
|
+
page=page,
|
|
224
|
+
order_by=order_by,
|
|
225
|
+
order_direction=order_direction,
|
|
226
|
+
_request_auth=_request_auth,
|
|
227
|
+
_content_type=_content_type,
|
|
228
|
+
_headers=_headers,
|
|
229
|
+
_host_index=_host_index
|
|
230
|
+
)
|
|
231
|
+
|
|
232
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
233
|
+
'200': "UserPaginatedResponseWrapper",
|
|
234
|
+
'401': "ApiError",
|
|
235
|
+
'403': "ApiError",
|
|
236
|
+
'500': "ApiError",
|
|
237
|
+
}
|
|
238
|
+
response_data = self.api_client.call_api(
|
|
239
|
+
*_param,
|
|
240
|
+
_request_timeout=_request_timeout
|
|
241
|
+
)
|
|
242
|
+
response_data.read()
|
|
243
|
+
return self.api_client.response_deserialize(
|
|
244
|
+
response_data=response_data,
|
|
245
|
+
response_types_map=_response_types_map,
|
|
246
|
+
)
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
@validate_call
|
|
250
|
+
def get_users_without_preload_content(
|
|
251
|
+
self,
|
|
252
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
253
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
254
|
+
active: Annotated[Optional[StrictBool], Field(description="The active flag by which the resource will be filtered.")] = None,
|
|
255
|
+
username: Annotated[Optional[StrictStr], Field(description="Filter based on username")] = None,
|
|
256
|
+
limit: Annotated[Optional[StrictInt], Field(description="The amount of records shown in the list")] = None,
|
|
257
|
+
page: Annotated[Optional[StrictInt], Field(description="The page which is going to be shown")] = None,
|
|
258
|
+
order_by: Annotated[Optional[StrictStr], Field(description="The parameter by which the response is ordered.")] = None,
|
|
259
|
+
order_direction: Annotated[Optional[StrictStr], Field(description="The order direction by which the response is ordered.")] = None,
|
|
260
|
+
_request_timeout: Union[
|
|
261
|
+
None,
|
|
262
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
263
|
+
Tuple[
|
|
264
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
265
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
266
|
+
]
|
|
267
|
+
] = None,
|
|
268
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
269
|
+
_content_type: Optional[StrictStr] = None,
|
|
270
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
271
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
272
|
+
) -> RESTResponseType:
|
|
273
|
+
"""Get a list of all users
|
|
274
|
+
|
|
275
|
+
Requires the USER.MORTAL.VIEW permission.
|
|
276
|
+
|
|
277
|
+
:param version: version (required)
|
|
278
|
+
:type version: str
|
|
279
|
+
:param x_platform_id: Platform ID.
|
|
280
|
+
:type x_platform_id: str
|
|
281
|
+
:param active: The active flag by which the resource will be filtered.
|
|
282
|
+
:type active: bool
|
|
283
|
+
:param username: Filter based on username
|
|
284
|
+
:type username: str
|
|
285
|
+
:param limit: The amount of records shown in the list
|
|
286
|
+
:type limit: int
|
|
287
|
+
:param page: The page which is going to be shown
|
|
288
|
+
:type page: int
|
|
289
|
+
:param order_by: The parameter by which the response is ordered.
|
|
290
|
+
:type order_by: str
|
|
291
|
+
:param order_direction: The order direction by which the response is ordered.
|
|
292
|
+
:type order_direction: str
|
|
293
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
294
|
+
number provided, it will be total request
|
|
295
|
+
timeout. It can also be a pair (tuple) of
|
|
296
|
+
(connection, read) timeouts.
|
|
297
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
298
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
299
|
+
request; this effectively ignores the
|
|
300
|
+
authentication in the spec for a single request.
|
|
301
|
+
:type _request_auth: dict, optional
|
|
302
|
+
:param _content_type: force content-type for the request.
|
|
303
|
+
:type _content_type: str, Optional
|
|
304
|
+
:param _headers: set to override the headers for a single
|
|
305
|
+
request; this effectively ignores the headers
|
|
306
|
+
in the spec for a single request.
|
|
307
|
+
:type _headers: dict, optional
|
|
308
|
+
:param _host_index: set to override the host_index for a single
|
|
309
|
+
request; this effectively ignores the host_index
|
|
310
|
+
in the spec for a single request.
|
|
311
|
+
:type _host_index: int, optional
|
|
312
|
+
:return: Returns the result object.
|
|
313
|
+
""" # noqa: E501
|
|
314
|
+
|
|
315
|
+
_param = self._get_users_serialize(
|
|
316
|
+
version=version,
|
|
317
|
+
x_platform_id=x_platform_id,
|
|
318
|
+
active=active,
|
|
319
|
+
username=username,
|
|
320
|
+
limit=limit,
|
|
321
|
+
page=page,
|
|
322
|
+
order_by=order_by,
|
|
323
|
+
order_direction=order_direction,
|
|
324
|
+
_request_auth=_request_auth,
|
|
325
|
+
_content_type=_content_type,
|
|
326
|
+
_headers=_headers,
|
|
327
|
+
_host_index=_host_index
|
|
328
|
+
)
|
|
329
|
+
|
|
330
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
331
|
+
'200': "UserPaginatedResponseWrapper",
|
|
332
|
+
'401': "ApiError",
|
|
333
|
+
'403': "ApiError",
|
|
334
|
+
'500': "ApiError",
|
|
335
|
+
}
|
|
336
|
+
response_data = self.api_client.call_api(
|
|
337
|
+
*_param,
|
|
338
|
+
_request_timeout=_request_timeout
|
|
339
|
+
)
|
|
340
|
+
return response_data.response
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
def _get_users_serialize(
|
|
344
|
+
self,
|
|
345
|
+
version,
|
|
346
|
+
x_platform_id,
|
|
347
|
+
active,
|
|
348
|
+
username,
|
|
349
|
+
limit,
|
|
350
|
+
page,
|
|
351
|
+
order_by,
|
|
352
|
+
order_direction,
|
|
353
|
+
_request_auth,
|
|
354
|
+
_content_type,
|
|
355
|
+
_headers,
|
|
356
|
+
_host_index,
|
|
357
|
+
) -> RequestSerialized:
|
|
358
|
+
|
|
359
|
+
_host = None
|
|
360
|
+
|
|
361
|
+
_collection_formats: Dict[str, str] = {
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
_path_params: Dict[str, str] = {}
|
|
365
|
+
_query_params: List[Tuple[str, str]] = []
|
|
366
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
367
|
+
_form_params: List[Tuple[str, str]] = []
|
|
368
|
+
_files: Dict[
|
|
369
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
370
|
+
] = {}
|
|
371
|
+
_body_params: Optional[bytes] = None
|
|
372
|
+
|
|
373
|
+
# process the path parameters
|
|
374
|
+
if version is not None:
|
|
375
|
+
_path_params['version'] = version
|
|
376
|
+
# process the query parameters
|
|
377
|
+
if active is not None:
|
|
378
|
+
|
|
379
|
+
_query_params.append(('active', active))
|
|
380
|
+
|
|
381
|
+
if username is not None:
|
|
382
|
+
|
|
383
|
+
_query_params.append(('username', username))
|
|
384
|
+
|
|
385
|
+
if limit is not None:
|
|
386
|
+
|
|
387
|
+
_query_params.append(('limit', limit))
|
|
388
|
+
|
|
389
|
+
if page is not None:
|
|
390
|
+
|
|
391
|
+
_query_params.append(('page', page))
|
|
392
|
+
|
|
393
|
+
if order_by is not None:
|
|
394
|
+
|
|
395
|
+
_query_params.append(('order_by', order_by))
|
|
396
|
+
|
|
397
|
+
if order_direction is not None:
|
|
398
|
+
|
|
399
|
+
_query_params.append(('order_direction', order_direction))
|
|
400
|
+
|
|
401
|
+
# process the header parameters
|
|
402
|
+
if x_platform_id is not None:
|
|
403
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
404
|
+
# process the form parameters
|
|
405
|
+
# process the body parameter
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
# set the HTTP header `Accept`
|
|
409
|
+
if 'Accept' not in _header_params:
|
|
410
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
411
|
+
[
|
|
412
|
+
'application/json'
|
|
413
|
+
]
|
|
414
|
+
)
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
# authentication setting
|
|
418
|
+
_auth_settings: List[str] = [
|
|
419
|
+
'JWT-Authentication',
|
|
420
|
+
'API-Key'
|
|
421
|
+
]
|
|
422
|
+
|
|
423
|
+
return self.api_client.param_serialize(
|
|
424
|
+
method='GET',
|
|
425
|
+
resource_path='/v{version}/users',
|
|
426
|
+
path_params=_path_params,
|
|
427
|
+
query_params=_query_params,
|
|
428
|
+
header_params=_header_params,
|
|
429
|
+
body=_body_params,
|
|
430
|
+
post_params=_form_params,
|
|
431
|
+
files=_files,
|
|
432
|
+
auth_settings=_auth_settings,
|
|
433
|
+
collection_formats=_collection_formats,
|
|
434
|
+
_host=_host,
|
|
435
|
+
_request_auth=_request_auth
|
|
436
|
+
)
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
@validate_call
|
|
442
|
+
def get_users_by_resource_id(
|
|
443
|
+
self,
|
|
444
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
445
|
+
resource_id: Annotated[StrictStr, Field(description="The ID of the resource to be requested.")],
|
|
446
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
447
|
+
_request_timeout: Union[
|
|
448
|
+
None,
|
|
449
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
450
|
+
Tuple[
|
|
451
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
452
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
453
|
+
]
|
|
454
|
+
] = None,
|
|
455
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
456
|
+
_content_type: Optional[StrictStr] = None,
|
|
457
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
458
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
459
|
+
) -> User:
|
|
460
|
+
"""Get a user by id
|
|
461
|
+
|
|
462
|
+
Requires the USER.MORTAL.VIEW permission.
|
|
463
|
+
|
|
464
|
+
:param version: version (required)
|
|
465
|
+
:type version: str
|
|
466
|
+
:param resource_id: The ID of the resource to be requested. (required)
|
|
467
|
+
:type resource_id: str
|
|
468
|
+
:param x_platform_id: Platform ID.
|
|
469
|
+
:type x_platform_id: str
|
|
470
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
471
|
+
number provided, it will be total request
|
|
472
|
+
timeout. It can also be a pair (tuple) of
|
|
473
|
+
(connection, read) timeouts.
|
|
474
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
475
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
476
|
+
request; this effectively ignores the
|
|
477
|
+
authentication in the spec for a single request.
|
|
478
|
+
:type _request_auth: dict, optional
|
|
479
|
+
:param _content_type: force content-type for the request.
|
|
480
|
+
:type _content_type: str, Optional
|
|
481
|
+
:param _headers: set to override the headers for a single
|
|
482
|
+
request; this effectively ignores the headers
|
|
483
|
+
in the spec for a single request.
|
|
484
|
+
:type _headers: dict, optional
|
|
485
|
+
:param _host_index: set to override the host_index for a single
|
|
486
|
+
request; this effectively ignores the host_index
|
|
487
|
+
in the spec for a single request.
|
|
488
|
+
:type _host_index: int, optional
|
|
489
|
+
:return: Returns the result object.
|
|
490
|
+
""" # noqa: E501
|
|
491
|
+
|
|
492
|
+
_param = self._get_users_by_resource_id_serialize(
|
|
493
|
+
version=version,
|
|
494
|
+
resource_id=resource_id,
|
|
495
|
+
x_platform_id=x_platform_id,
|
|
496
|
+
_request_auth=_request_auth,
|
|
497
|
+
_content_type=_content_type,
|
|
498
|
+
_headers=_headers,
|
|
499
|
+
_host_index=_host_index
|
|
500
|
+
)
|
|
501
|
+
|
|
502
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
503
|
+
'200': "User",
|
|
504
|
+
'401': "ApiError",
|
|
505
|
+
'403': "ApiError",
|
|
506
|
+
'500': "ApiError",
|
|
507
|
+
}
|
|
508
|
+
response_data = self.api_client.call_api(
|
|
509
|
+
*_param,
|
|
510
|
+
_request_timeout=_request_timeout
|
|
511
|
+
)
|
|
512
|
+
response_data.read()
|
|
513
|
+
return self.api_client.response_deserialize(
|
|
514
|
+
response_data=response_data,
|
|
515
|
+
response_types_map=_response_types_map,
|
|
516
|
+
).data
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
@validate_call
|
|
520
|
+
def get_users_by_resource_id_with_http_info(
|
|
521
|
+
self,
|
|
522
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
523
|
+
resource_id: Annotated[StrictStr, Field(description="The ID of the resource to be requested.")],
|
|
524
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
525
|
+
_request_timeout: Union[
|
|
526
|
+
None,
|
|
527
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
528
|
+
Tuple[
|
|
529
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
530
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
531
|
+
]
|
|
532
|
+
] = None,
|
|
533
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
534
|
+
_content_type: Optional[StrictStr] = None,
|
|
535
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
536
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
537
|
+
) -> ApiResponse[User]:
|
|
538
|
+
"""Get a user by id
|
|
539
|
+
|
|
540
|
+
Requires the USER.MORTAL.VIEW permission.
|
|
541
|
+
|
|
542
|
+
:param version: version (required)
|
|
543
|
+
:type version: str
|
|
544
|
+
:param resource_id: The ID of the resource to be requested. (required)
|
|
545
|
+
:type resource_id: str
|
|
546
|
+
:param x_platform_id: Platform ID.
|
|
547
|
+
:type x_platform_id: str
|
|
548
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
549
|
+
number provided, it will be total request
|
|
550
|
+
timeout. It can also be a pair (tuple) of
|
|
551
|
+
(connection, read) timeouts.
|
|
552
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
553
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
554
|
+
request; this effectively ignores the
|
|
555
|
+
authentication in the spec for a single request.
|
|
556
|
+
:type _request_auth: dict, optional
|
|
557
|
+
:param _content_type: force content-type for the request.
|
|
558
|
+
:type _content_type: str, Optional
|
|
559
|
+
:param _headers: set to override the headers for a single
|
|
560
|
+
request; this effectively ignores the headers
|
|
561
|
+
in the spec for a single request.
|
|
562
|
+
:type _headers: dict, optional
|
|
563
|
+
:param _host_index: set to override the host_index for a single
|
|
564
|
+
request; this effectively ignores the host_index
|
|
565
|
+
in the spec for a single request.
|
|
566
|
+
:type _host_index: int, optional
|
|
567
|
+
:return: Returns the result object.
|
|
568
|
+
""" # noqa: E501
|
|
569
|
+
|
|
570
|
+
_param = self._get_users_by_resource_id_serialize(
|
|
571
|
+
version=version,
|
|
572
|
+
resource_id=resource_id,
|
|
573
|
+
x_platform_id=x_platform_id,
|
|
574
|
+
_request_auth=_request_auth,
|
|
575
|
+
_content_type=_content_type,
|
|
576
|
+
_headers=_headers,
|
|
577
|
+
_host_index=_host_index
|
|
578
|
+
)
|
|
579
|
+
|
|
580
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
581
|
+
'200': "User",
|
|
582
|
+
'401': "ApiError",
|
|
583
|
+
'403': "ApiError",
|
|
584
|
+
'500': "ApiError",
|
|
585
|
+
}
|
|
586
|
+
response_data = self.api_client.call_api(
|
|
587
|
+
*_param,
|
|
588
|
+
_request_timeout=_request_timeout
|
|
589
|
+
)
|
|
590
|
+
response_data.read()
|
|
591
|
+
return self.api_client.response_deserialize(
|
|
592
|
+
response_data=response_data,
|
|
593
|
+
response_types_map=_response_types_map,
|
|
594
|
+
)
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
@validate_call
|
|
598
|
+
def get_users_by_resource_id_without_preload_content(
|
|
599
|
+
self,
|
|
600
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
601
|
+
resource_id: Annotated[StrictStr, Field(description="The ID of the resource to be requested.")],
|
|
602
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
603
|
+
_request_timeout: Union[
|
|
604
|
+
None,
|
|
605
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
606
|
+
Tuple[
|
|
607
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
608
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
609
|
+
]
|
|
610
|
+
] = None,
|
|
611
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
612
|
+
_content_type: Optional[StrictStr] = None,
|
|
613
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
614
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
615
|
+
) -> RESTResponseType:
|
|
616
|
+
"""Get a user by id
|
|
617
|
+
|
|
618
|
+
Requires the USER.MORTAL.VIEW permission.
|
|
619
|
+
|
|
620
|
+
:param version: version (required)
|
|
621
|
+
:type version: str
|
|
622
|
+
:param resource_id: The ID of the resource to be requested. (required)
|
|
623
|
+
:type resource_id: str
|
|
624
|
+
:param x_platform_id: Platform ID.
|
|
625
|
+
:type x_platform_id: str
|
|
626
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
627
|
+
number provided, it will be total request
|
|
628
|
+
timeout. It can also be a pair (tuple) of
|
|
629
|
+
(connection, read) timeouts.
|
|
630
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
631
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
632
|
+
request; this effectively ignores the
|
|
633
|
+
authentication in the spec for a single request.
|
|
634
|
+
:type _request_auth: dict, optional
|
|
635
|
+
:param _content_type: force content-type for the request.
|
|
636
|
+
:type _content_type: str, Optional
|
|
637
|
+
:param _headers: set to override the headers for a single
|
|
638
|
+
request; this effectively ignores the headers
|
|
639
|
+
in the spec for a single request.
|
|
640
|
+
:type _headers: dict, optional
|
|
641
|
+
:param _host_index: set to override the host_index for a single
|
|
642
|
+
request; this effectively ignores the host_index
|
|
643
|
+
in the spec for a single request.
|
|
644
|
+
:type _host_index: int, optional
|
|
645
|
+
:return: Returns the result object.
|
|
646
|
+
""" # noqa: E501
|
|
647
|
+
|
|
648
|
+
_param = self._get_users_by_resource_id_serialize(
|
|
649
|
+
version=version,
|
|
650
|
+
resource_id=resource_id,
|
|
651
|
+
x_platform_id=x_platform_id,
|
|
652
|
+
_request_auth=_request_auth,
|
|
653
|
+
_content_type=_content_type,
|
|
654
|
+
_headers=_headers,
|
|
655
|
+
_host_index=_host_index
|
|
656
|
+
)
|
|
657
|
+
|
|
658
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
659
|
+
'200': "User",
|
|
660
|
+
'401': "ApiError",
|
|
661
|
+
'403': "ApiError",
|
|
662
|
+
'500': "ApiError",
|
|
663
|
+
}
|
|
664
|
+
response_data = self.api_client.call_api(
|
|
665
|
+
*_param,
|
|
666
|
+
_request_timeout=_request_timeout
|
|
667
|
+
)
|
|
668
|
+
return response_data.response
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
def _get_users_by_resource_id_serialize(
|
|
672
|
+
self,
|
|
673
|
+
version,
|
|
674
|
+
resource_id,
|
|
675
|
+
x_platform_id,
|
|
676
|
+
_request_auth,
|
|
677
|
+
_content_type,
|
|
678
|
+
_headers,
|
|
679
|
+
_host_index,
|
|
680
|
+
) -> RequestSerialized:
|
|
681
|
+
|
|
682
|
+
_host = None
|
|
683
|
+
|
|
684
|
+
_collection_formats: Dict[str, str] = {
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
_path_params: Dict[str, str] = {}
|
|
688
|
+
_query_params: List[Tuple[str, str]] = []
|
|
689
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
690
|
+
_form_params: List[Tuple[str, str]] = []
|
|
691
|
+
_files: Dict[
|
|
692
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
693
|
+
] = {}
|
|
694
|
+
_body_params: Optional[bytes] = None
|
|
695
|
+
|
|
696
|
+
# process the path parameters
|
|
697
|
+
if version is not None:
|
|
698
|
+
_path_params['version'] = version
|
|
699
|
+
if resource_id is not None:
|
|
700
|
+
_path_params['resourceId'] = resource_id
|
|
701
|
+
# process the query parameters
|
|
702
|
+
# process the header parameters
|
|
703
|
+
if x_platform_id is not None:
|
|
704
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
705
|
+
# process the form parameters
|
|
706
|
+
# process the body parameter
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
# set the HTTP header `Accept`
|
|
710
|
+
if 'Accept' not in _header_params:
|
|
711
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
712
|
+
[
|
|
713
|
+
'application/json'
|
|
714
|
+
]
|
|
715
|
+
)
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
# authentication setting
|
|
719
|
+
_auth_settings: List[str] = [
|
|
720
|
+
'JWT-Authentication',
|
|
721
|
+
'API-Key'
|
|
722
|
+
]
|
|
723
|
+
|
|
724
|
+
return self.api_client.param_serialize(
|
|
725
|
+
method='GET',
|
|
726
|
+
resource_path='/v{version}/users/{resourceId}',
|
|
727
|
+
path_params=_path_params,
|
|
728
|
+
query_params=_query_params,
|
|
729
|
+
header_params=_header_params,
|
|
730
|
+
body=_body_params,
|
|
731
|
+
post_params=_form_params,
|
|
732
|
+
files=_files,
|
|
733
|
+
auth_settings=_auth_settings,
|
|
734
|
+
collection_formats=_collection_formats,
|
|
735
|
+
_host=_host,
|
|
736
|
+
_request_auth=_request_auth
|
|
737
|
+
)
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
@validate_call
|
|
743
|
+
def get_users_by_resource_id_memberships(
|
|
744
|
+
self,
|
|
745
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
746
|
+
resource_id: Annotated[StrictStr, Field(description="The ID of the resource to be requested.")],
|
|
747
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
748
|
+
_request_timeout: Union[
|
|
749
|
+
None,
|
|
750
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
751
|
+
Tuple[
|
|
752
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
753
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
754
|
+
]
|
|
755
|
+
] = None,
|
|
756
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
757
|
+
_content_type: Optional[StrictStr] = None,
|
|
758
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
759
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
760
|
+
) -> List[AccountMembershipRepresentation]:
|
|
761
|
+
"""Get all account memberships for a user
|
|
762
|
+
|
|
763
|
+
Requires the USER.MORTAL.VIEW permission.
|
|
764
|
+
|
|
765
|
+
:param version: version (required)
|
|
766
|
+
:type version: str
|
|
767
|
+
:param resource_id: The ID of the resource to be requested. (required)
|
|
768
|
+
:type resource_id: str
|
|
769
|
+
:param x_platform_id: Platform ID.
|
|
770
|
+
:type x_platform_id: str
|
|
771
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
772
|
+
number provided, it will be total request
|
|
773
|
+
timeout. It can also be a pair (tuple) of
|
|
774
|
+
(connection, read) timeouts.
|
|
775
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
776
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
777
|
+
request; this effectively ignores the
|
|
778
|
+
authentication in the spec for a single request.
|
|
779
|
+
:type _request_auth: dict, optional
|
|
780
|
+
:param _content_type: force content-type for the request.
|
|
781
|
+
:type _content_type: str, Optional
|
|
782
|
+
:param _headers: set to override the headers for a single
|
|
783
|
+
request; this effectively ignores the headers
|
|
784
|
+
in the spec for a single request.
|
|
785
|
+
:type _headers: dict, optional
|
|
786
|
+
:param _host_index: set to override the host_index for a single
|
|
787
|
+
request; this effectively ignores the host_index
|
|
788
|
+
in the spec for a single request.
|
|
789
|
+
:type _host_index: int, optional
|
|
790
|
+
:return: Returns the result object.
|
|
791
|
+
""" # noqa: E501
|
|
792
|
+
|
|
793
|
+
_param = self._get_users_by_resource_id_memberships_serialize(
|
|
794
|
+
version=version,
|
|
795
|
+
resource_id=resource_id,
|
|
796
|
+
x_platform_id=x_platform_id,
|
|
797
|
+
_request_auth=_request_auth,
|
|
798
|
+
_content_type=_content_type,
|
|
799
|
+
_headers=_headers,
|
|
800
|
+
_host_index=_host_index
|
|
801
|
+
)
|
|
802
|
+
|
|
803
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
804
|
+
'200': "List[AccountMembershipRepresentation]",
|
|
805
|
+
'401': "ApiError",
|
|
806
|
+
'403': "ApiError",
|
|
807
|
+
'500': "ApiError",
|
|
808
|
+
}
|
|
809
|
+
response_data = self.api_client.call_api(
|
|
810
|
+
*_param,
|
|
811
|
+
_request_timeout=_request_timeout
|
|
812
|
+
)
|
|
813
|
+
response_data.read()
|
|
814
|
+
return self.api_client.response_deserialize(
|
|
815
|
+
response_data=response_data,
|
|
816
|
+
response_types_map=_response_types_map,
|
|
817
|
+
).data
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
@validate_call
|
|
821
|
+
def get_users_by_resource_id_memberships_with_http_info(
|
|
822
|
+
self,
|
|
823
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
824
|
+
resource_id: Annotated[StrictStr, Field(description="The ID of the resource to be requested.")],
|
|
825
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
826
|
+
_request_timeout: Union[
|
|
827
|
+
None,
|
|
828
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
829
|
+
Tuple[
|
|
830
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
831
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
832
|
+
]
|
|
833
|
+
] = None,
|
|
834
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
835
|
+
_content_type: Optional[StrictStr] = None,
|
|
836
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
837
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
838
|
+
) -> ApiResponse[List[AccountMembershipRepresentation]]:
|
|
839
|
+
"""Get all account memberships for a user
|
|
840
|
+
|
|
841
|
+
Requires the USER.MORTAL.VIEW permission.
|
|
842
|
+
|
|
843
|
+
:param version: version (required)
|
|
844
|
+
:type version: str
|
|
845
|
+
:param resource_id: The ID of the resource to be requested. (required)
|
|
846
|
+
:type resource_id: str
|
|
847
|
+
:param x_platform_id: Platform ID.
|
|
848
|
+
:type x_platform_id: str
|
|
849
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
850
|
+
number provided, it will be total request
|
|
851
|
+
timeout. It can also be a pair (tuple) of
|
|
852
|
+
(connection, read) timeouts.
|
|
853
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
854
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
855
|
+
request; this effectively ignores the
|
|
856
|
+
authentication in the spec for a single request.
|
|
857
|
+
:type _request_auth: dict, optional
|
|
858
|
+
:param _content_type: force content-type for the request.
|
|
859
|
+
:type _content_type: str, Optional
|
|
860
|
+
:param _headers: set to override the headers for a single
|
|
861
|
+
request; this effectively ignores the headers
|
|
862
|
+
in the spec for a single request.
|
|
863
|
+
:type _headers: dict, optional
|
|
864
|
+
:param _host_index: set to override the host_index for a single
|
|
865
|
+
request; this effectively ignores the host_index
|
|
866
|
+
in the spec for a single request.
|
|
867
|
+
:type _host_index: int, optional
|
|
868
|
+
:return: Returns the result object.
|
|
869
|
+
""" # noqa: E501
|
|
870
|
+
|
|
871
|
+
_param = self._get_users_by_resource_id_memberships_serialize(
|
|
872
|
+
version=version,
|
|
873
|
+
resource_id=resource_id,
|
|
874
|
+
x_platform_id=x_platform_id,
|
|
875
|
+
_request_auth=_request_auth,
|
|
876
|
+
_content_type=_content_type,
|
|
877
|
+
_headers=_headers,
|
|
878
|
+
_host_index=_host_index
|
|
879
|
+
)
|
|
880
|
+
|
|
881
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
882
|
+
'200': "List[AccountMembershipRepresentation]",
|
|
883
|
+
'401': "ApiError",
|
|
884
|
+
'403': "ApiError",
|
|
885
|
+
'500': "ApiError",
|
|
886
|
+
}
|
|
887
|
+
response_data = self.api_client.call_api(
|
|
888
|
+
*_param,
|
|
889
|
+
_request_timeout=_request_timeout
|
|
890
|
+
)
|
|
891
|
+
response_data.read()
|
|
892
|
+
return self.api_client.response_deserialize(
|
|
893
|
+
response_data=response_data,
|
|
894
|
+
response_types_map=_response_types_map,
|
|
895
|
+
)
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
@validate_call
|
|
899
|
+
def get_users_by_resource_id_memberships_without_preload_content(
|
|
900
|
+
self,
|
|
901
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
902
|
+
resource_id: Annotated[StrictStr, Field(description="The ID of the resource to be requested.")],
|
|
903
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
904
|
+
_request_timeout: Union[
|
|
905
|
+
None,
|
|
906
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
907
|
+
Tuple[
|
|
908
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
909
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
910
|
+
]
|
|
911
|
+
] = None,
|
|
912
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
913
|
+
_content_type: Optional[StrictStr] = None,
|
|
914
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
915
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
916
|
+
) -> RESTResponseType:
|
|
917
|
+
"""Get all account memberships for a user
|
|
918
|
+
|
|
919
|
+
Requires the USER.MORTAL.VIEW permission.
|
|
920
|
+
|
|
921
|
+
:param version: version (required)
|
|
922
|
+
:type version: str
|
|
923
|
+
:param resource_id: The ID of the resource to be requested. (required)
|
|
924
|
+
:type resource_id: str
|
|
925
|
+
:param x_platform_id: Platform ID.
|
|
926
|
+
:type x_platform_id: str
|
|
927
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
928
|
+
number provided, it will be total request
|
|
929
|
+
timeout. It can also be a pair (tuple) of
|
|
930
|
+
(connection, read) timeouts.
|
|
931
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
932
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
933
|
+
request; this effectively ignores the
|
|
934
|
+
authentication in the spec for a single request.
|
|
935
|
+
:type _request_auth: dict, optional
|
|
936
|
+
:param _content_type: force content-type for the request.
|
|
937
|
+
:type _content_type: str, Optional
|
|
938
|
+
:param _headers: set to override the headers for a single
|
|
939
|
+
request; this effectively ignores the headers
|
|
940
|
+
in the spec for a single request.
|
|
941
|
+
:type _headers: dict, optional
|
|
942
|
+
:param _host_index: set to override the host_index for a single
|
|
943
|
+
request; this effectively ignores the host_index
|
|
944
|
+
in the spec for a single request.
|
|
945
|
+
:type _host_index: int, optional
|
|
946
|
+
:return: Returns the result object.
|
|
947
|
+
""" # noqa: E501
|
|
948
|
+
|
|
949
|
+
_param = self._get_users_by_resource_id_memberships_serialize(
|
|
950
|
+
version=version,
|
|
951
|
+
resource_id=resource_id,
|
|
952
|
+
x_platform_id=x_platform_id,
|
|
953
|
+
_request_auth=_request_auth,
|
|
954
|
+
_content_type=_content_type,
|
|
955
|
+
_headers=_headers,
|
|
956
|
+
_host_index=_host_index
|
|
957
|
+
)
|
|
958
|
+
|
|
959
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
960
|
+
'200': "List[AccountMembershipRepresentation]",
|
|
961
|
+
'401': "ApiError",
|
|
962
|
+
'403': "ApiError",
|
|
963
|
+
'500': "ApiError",
|
|
964
|
+
}
|
|
965
|
+
response_data = self.api_client.call_api(
|
|
966
|
+
*_param,
|
|
967
|
+
_request_timeout=_request_timeout
|
|
968
|
+
)
|
|
969
|
+
return response_data.response
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
def _get_users_by_resource_id_memberships_serialize(
|
|
973
|
+
self,
|
|
974
|
+
version,
|
|
975
|
+
resource_id,
|
|
976
|
+
x_platform_id,
|
|
977
|
+
_request_auth,
|
|
978
|
+
_content_type,
|
|
979
|
+
_headers,
|
|
980
|
+
_host_index,
|
|
981
|
+
) -> RequestSerialized:
|
|
982
|
+
|
|
983
|
+
_host = None
|
|
984
|
+
|
|
985
|
+
_collection_formats: Dict[str, str] = {
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
_path_params: Dict[str, str] = {}
|
|
989
|
+
_query_params: List[Tuple[str, str]] = []
|
|
990
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
991
|
+
_form_params: List[Tuple[str, str]] = []
|
|
992
|
+
_files: Dict[
|
|
993
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
994
|
+
] = {}
|
|
995
|
+
_body_params: Optional[bytes] = None
|
|
996
|
+
|
|
997
|
+
# process the path parameters
|
|
998
|
+
if version is not None:
|
|
999
|
+
_path_params['version'] = version
|
|
1000
|
+
if resource_id is not None:
|
|
1001
|
+
_path_params['resourceId'] = resource_id
|
|
1002
|
+
# process the query parameters
|
|
1003
|
+
# process the header parameters
|
|
1004
|
+
if x_platform_id is not None:
|
|
1005
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
1006
|
+
# process the form parameters
|
|
1007
|
+
# process the body parameter
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
# set the HTTP header `Accept`
|
|
1011
|
+
if 'Accept' not in _header_params:
|
|
1012
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1013
|
+
[
|
|
1014
|
+
'application/json'
|
|
1015
|
+
]
|
|
1016
|
+
)
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
# authentication setting
|
|
1020
|
+
_auth_settings: List[str] = [
|
|
1021
|
+
'JWT-Authentication',
|
|
1022
|
+
'API-Key'
|
|
1023
|
+
]
|
|
1024
|
+
|
|
1025
|
+
return self.api_client.param_serialize(
|
|
1026
|
+
method='GET',
|
|
1027
|
+
resource_path='/v{version}/users/{resourceId}/memberships',
|
|
1028
|
+
path_params=_path_params,
|
|
1029
|
+
query_params=_query_params,
|
|
1030
|
+
header_params=_header_params,
|
|
1031
|
+
body=_body_params,
|
|
1032
|
+
post_params=_form_params,
|
|
1033
|
+
files=_files,
|
|
1034
|
+
auth_settings=_auth_settings,
|
|
1035
|
+
collection_formats=_collection_formats,
|
|
1036
|
+
_host=_host,
|
|
1037
|
+
_request_auth=_request_auth
|
|
1038
|
+
)
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
@validate_call
|
|
1044
|
+
def get_users_by_resource_id_teams(
|
|
1045
|
+
self,
|
|
1046
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1047
|
+
resource_id: Annotated[StrictStr, Field(description="The ID of the resource to be requested.")],
|
|
1048
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1049
|
+
_request_timeout: Union[
|
|
1050
|
+
None,
|
|
1051
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1052
|
+
Tuple[
|
|
1053
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1054
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1055
|
+
]
|
|
1056
|
+
] = None,
|
|
1057
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1058
|
+
_content_type: Optional[StrictStr] = None,
|
|
1059
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1060
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1061
|
+
) -> TeamMemberPaginatedResponseWrapper:
|
|
1062
|
+
"""Get all the team memberships of a user
|
|
1063
|
+
|
|
1064
|
+
Requires the USER.MORTAL.VIEW permission.
|
|
1065
|
+
|
|
1066
|
+
:param version: version (required)
|
|
1067
|
+
:type version: str
|
|
1068
|
+
:param resource_id: The ID of the resource to be requested. (required)
|
|
1069
|
+
:type resource_id: str
|
|
1070
|
+
:param x_platform_id: Platform ID.
|
|
1071
|
+
:type x_platform_id: str
|
|
1072
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1073
|
+
number provided, it will be total request
|
|
1074
|
+
timeout. It can also be a pair (tuple) of
|
|
1075
|
+
(connection, read) timeouts.
|
|
1076
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1077
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1078
|
+
request; this effectively ignores the
|
|
1079
|
+
authentication in the spec for a single request.
|
|
1080
|
+
:type _request_auth: dict, optional
|
|
1081
|
+
:param _content_type: force content-type for the request.
|
|
1082
|
+
:type _content_type: str, Optional
|
|
1083
|
+
:param _headers: set to override the headers for a single
|
|
1084
|
+
request; this effectively ignores the headers
|
|
1085
|
+
in the spec for a single request.
|
|
1086
|
+
:type _headers: dict, optional
|
|
1087
|
+
:param _host_index: set to override the host_index for a single
|
|
1088
|
+
request; this effectively ignores the host_index
|
|
1089
|
+
in the spec for a single request.
|
|
1090
|
+
:type _host_index: int, optional
|
|
1091
|
+
:return: Returns the result object.
|
|
1092
|
+
""" # noqa: E501
|
|
1093
|
+
|
|
1094
|
+
_param = self._get_users_by_resource_id_teams_serialize(
|
|
1095
|
+
version=version,
|
|
1096
|
+
resource_id=resource_id,
|
|
1097
|
+
x_platform_id=x_platform_id,
|
|
1098
|
+
_request_auth=_request_auth,
|
|
1099
|
+
_content_type=_content_type,
|
|
1100
|
+
_headers=_headers,
|
|
1101
|
+
_host_index=_host_index
|
|
1102
|
+
)
|
|
1103
|
+
|
|
1104
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1105
|
+
'200': "TeamMemberPaginatedResponseWrapper",
|
|
1106
|
+
'401': "ApiError",
|
|
1107
|
+
'403': "ApiError",
|
|
1108
|
+
'500': "ApiError",
|
|
1109
|
+
}
|
|
1110
|
+
response_data = self.api_client.call_api(
|
|
1111
|
+
*_param,
|
|
1112
|
+
_request_timeout=_request_timeout
|
|
1113
|
+
)
|
|
1114
|
+
response_data.read()
|
|
1115
|
+
return self.api_client.response_deserialize(
|
|
1116
|
+
response_data=response_data,
|
|
1117
|
+
response_types_map=_response_types_map,
|
|
1118
|
+
).data
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
@validate_call
|
|
1122
|
+
def get_users_by_resource_id_teams_with_http_info(
|
|
1123
|
+
self,
|
|
1124
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1125
|
+
resource_id: Annotated[StrictStr, Field(description="The ID of the resource to be requested.")],
|
|
1126
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1127
|
+
_request_timeout: Union[
|
|
1128
|
+
None,
|
|
1129
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1130
|
+
Tuple[
|
|
1131
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1132
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1133
|
+
]
|
|
1134
|
+
] = None,
|
|
1135
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1136
|
+
_content_type: Optional[StrictStr] = None,
|
|
1137
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1138
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1139
|
+
) -> ApiResponse[TeamMemberPaginatedResponseWrapper]:
|
|
1140
|
+
"""Get all the team memberships of a user
|
|
1141
|
+
|
|
1142
|
+
Requires the USER.MORTAL.VIEW permission.
|
|
1143
|
+
|
|
1144
|
+
:param version: version (required)
|
|
1145
|
+
:type version: str
|
|
1146
|
+
:param resource_id: The ID of the resource to be requested. (required)
|
|
1147
|
+
:type resource_id: str
|
|
1148
|
+
:param x_platform_id: Platform ID.
|
|
1149
|
+
:type x_platform_id: str
|
|
1150
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1151
|
+
number provided, it will be total request
|
|
1152
|
+
timeout. It can also be a pair (tuple) of
|
|
1153
|
+
(connection, read) timeouts.
|
|
1154
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1155
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1156
|
+
request; this effectively ignores the
|
|
1157
|
+
authentication in the spec for a single request.
|
|
1158
|
+
:type _request_auth: dict, optional
|
|
1159
|
+
:param _content_type: force content-type for the request.
|
|
1160
|
+
:type _content_type: str, Optional
|
|
1161
|
+
:param _headers: set to override the headers for a single
|
|
1162
|
+
request; this effectively ignores the headers
|
|
1163
|
+
in the spec for a single request.
|
|
1164
|
+
:type _headers: dict, optional
|
|
1165
|
+
:param _host_index: set to override the host_index for a single
|
|
1166
|
+
request; this effectively ignores the host_index
|
|
1167
|
+
in the spec for a single request.
|
|
1168
|
+
:type _host_index: int, optional
|
|
1169
|
+
:return: Returns the result object.
|
|
1170
|
+
""" # noqa: E501
|
|
1171
|
+
|
|
1172
|
+
_param = self._get_users_by_resource_id_teams_serialize(
|
|
1173
|
+
version=version,
|
|
1174
|
+
resource_id=resource_id,
|
|
1175
|
+
x_platform_id=x_platform_id,
|
|
1176
|
+
_request_auth=_request_auth,
|
|
1177
|
+
_content_type=_content_type,
|
|
1178
|
+
_headers=_headers,
|
|
1179
|
+
_host_index=_host_index
|
|
1180
|
+
)
|
|
1181
|
+
|
|
1182
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1183
|
+
'200': "TeamMemberPaginatedResponseWrapper",
|
|
1184
|
+
'401': "ApiError",
|
|
1185
|
+
'403': "ApiError",
|
|
1186
|
+
'500': "ApiError",
|
|
1187
|
+
}
|
|
1188
|
+
response_data = self.api_client.call_api(
|
|
1189
|
+
*_param,
|
|
1190
|
+
_request_timeout=_request_timeout
|
|
1191
|
+
)
|
|
1192
|
+
response_data.read()
|
|
1193
|
+
return self.api_client.response_deserialize(
|
|
1194
|
+
response_data=response_data,
|
|
1195
|
+
response_types_map=_response_types_map,
|
|
1196
|
+
)
|
|
1197
|
+
|
|
1198
|
+
|
|
1199
|
+
@validate_call
|
|
1200
|
+
def get_users_by_resource_id_teams_without_preload_content(
|
|
1201
|
+
self,
|
|
1202
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1203
|
+
resource_id: Annotated[StrictStr, Field(description="The ID of the resource to be requested.")],
|
|
1204
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1205
|
+
_request_timeout: Union[
|
|
1206
|
+
None,
|
|
1207
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1208
|
+
Tuple[
|
|
1209
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1210
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1211
|
+
]
|
|
1212
|
+
] = None,
|
|
1213
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1214
|
+
_content_type: Optional[StrictStr] = None,
|
|
1215
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1216
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1217
|
+
) -> RESTResponseType:
|
|
1218
|
+
"""Get all the team memberships of a user
|
|
1219
|
+
|
|
1220
|
+
Requires the USER.MORTAL.VIEW permission.
|
|
1221
|
+
|
|
1222
|
+
:param version: version (required)
|
|
1223
|
+
:type version: str
|
|
1224
|
+
:param resource_id: The ID of the resource to be requested. (required)
|
|
1225
|
+
:type resource_id: str
|
|
1226
|
+
:param x_platform_id: Platform ID.
|
|
1227
|
+
:type x_platform_id: str
|
|
1228
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1229
|
+
number provided, it will be total request
|
|
1230
|
+
timeout. It can also be a pair (tuple) of
|
|
1231
|
+
(connection, read) timeouts.
|
|
1232
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1233
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1234
|
+
request; this effectively ignores the
|
|
1235
|
+
authentication in the spec for a single request.
|
|
1236
|
+
:type _request_auth: dict, optional
|
|
1237
|
+
:param _content_type: force content-type for the request.
|
|
1238
|
+
:type _content_type: str, Optional
|
|
1239
|
+
:param _headers: set to override the headers for a single
|
|
1240
|
+
request; this effectively ignores the headers
|
|
1241
|
+
in the spec for a single request.
|
|
1242
|
+
:type _headers: dict, optional
|
|
1243
|
+
:param _host_index: set to override the host_index for a single
|
|
1244
|
+
request; this effectively ignores the host_index
|
|
1245
|
+
in the spec for a single request.
|
|
1246
|
+
:type _host_index: int, optional
|
|
1247
|
+
:return: Returns the result object.
|
|
1248
|
+
""" # noqa: E501
|
|
1249
|
+
|
|
1250
|
+
_param = self._get_users_by_resource_id_teams_serialize(
|
|
1251
|
+
version=version,
|
|
1252
|
+
resource_id=resource_id,
|
|
1253
|
+
x_platform_id=x_platform_id,
|
|
1254
|
+
_request_auth=_request_auth,
|
|
1255
|
+
_content_type=_content_type,
|
|
1256
|
+
_headers=_headers,
|
|
1257
|
+
_host_index=_host_index
|
|
1258
|
+
)
|
|
1259
|
+
|
|
1260
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1261
|
+
'200': "TeamMemberPaginatedResponseWrapper",
|
|
1262
|
+
'401': "ApiError",
|
|
1263
|
+
'403': "ApiError",
|
|
1264
|
+
'500': "ApiError",
|
|
1265
|
+
}
|
|
1266
|
+
response_data = self.api_client.call_api(
|
|
1267
|
+
*_param,
|
|
1268
|
+
_request_timeout=_request_timeout
|
|
1269
|
+
)
|
|
1270
|
+
return response_data.response
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
def _get_users_by_resource_id_teams_serialize(
|
|
1274
|
+
self,
|
|
1275
|
+
version,
|
|
1276
|
+
resource_id,
|
|
1277
|
+
x_platform_id,
|
|
1278
|
+
_request_auth,
|
|
1279
|
+
_content_type,
|
|
1280
|
+
_headers,
|
|
1281
|
+
_host_index,
|
|
1282
|
+
) -> RequestSerialized:
|
|
1283
|
+
|
|
1284
|
+
_host = None
|
|
1285
|
+
|
|
1286
|
+
_collection_formats: Dict[str, str] = {
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
_path_params: Dict[str, str] = {}
|
|
1290
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1291
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1292
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1293
|
+
_files: Dict[
|
|
1294
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1295
|
+
] = {}
|
|
1296
|
+
_body_params: Optional[bytes] = None
|
|
1297
|
+
|
|
1298
|
+
# process the path parameters
|
|
1299
|
+
if version is not None:
|
|
1300
|
+
_path_params['version'] = version
|
|
1301
|
+
if resource_id is not None:
|
|
1302
|
+
_path_params['resourceId'] = resource_id
|
|
1303
|
+
# process the query parameters
|
|
1304
|
+
# process the header parameters
|
|
1305
|
+
if x_platform_id is not None:
|
|
1306
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
1307
|
+
# process the form parameters
|
|
1308
|
+
# process the body parameter
|
|
1309
|
+
|
|
1310
|
+
|
|
1311
|
+
# set the HTTP header `Accept`
|
|
1312
|
+
if 'Accept' not in _header_params:
|
|
1313
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1314
|
+
[
|
|
1315
|
+
'application/json'
|
|
1316
|
+
]
|
|
1317
|
+
)
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
# authentication setting
|
|
1321
|
+
_auth_settings: List[str] = [
|
|
1322
|
+
'JWT-Authentication',
|
|
1323
|
+
'API-Key'
|
|
1324
|
+
]
|
|
1325
|
+
|
|
1326
|
+
return self.api_client.param_serialize(
|
|
1327
|
+
method='GET',
|
|
1328
|
+
resource_path='/v{version}/users/{resourceId}/teams',
|
|
1329
|
+
path_params=_path_params,
|
|
1330
|
+
query_params=_query_params,
|
|
1331
|
+
header_params=_header_params,
|
|
1332
|
+
body=_body_params,
|
|
1333
|
+
post_params=_form_params,
|
|
1334
|
+
files=_files,
|
|
1335
|
+
auth_settings=_auth_settings,
|
|
1336
|
+
collection_formats=_collection_formats,
|
|
1337
|
+
_host=_host,
|
|
1338
|
+
_request_auth=_request_auth
|
|
1339
|
+
)
|
|
1340
|
+
|
|
1341
|
+
|
|
1342
|
+
|
|
1343
|
+
|
|
1344
|
+
@validate_call
|
|
1345
|
+
def get_users_search(
|
|
1346
|
+
self,
|
|
1347
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1348
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1349
|
+
resource_id: Annotated[Optional[StrictStr], Field(description="Resource Id of the user.")] = None,
|
|
1350
|
+
username: Annotated[Optional[StrictStr], Field(description="Filter based on username")] = None,
|
|
1351
|
+
user_type: Annotated[Optional[StrictStr], Field(description="Filter based on user type")] = None,
|
|
1352
|
+
_request_timeout: Union[
|
|
1353
|
+
None,
|
|
1354
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1355
|
+
Tuple[
|
|
1356
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1357
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1358
|
+
]
|
|
1359
|
+
] = None,
|
|
1360
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1361
|
+
_content_type: Optional[StrictStr] = None,
|
|
1362
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1363
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1364
|
+
) -> List[User]:
|
|
1365
|
+
"""Search for a user, using provided filters
|
|
1366
|
+
|
|
1367
|
+
Requires the USER.MORTAL.VIEW permission.
|
|
1368
|
+
|
|
1369
|
+
:param version: version (required)
|
|
1370
|
+
:type version: str
|
|
1371
|
+
:param x_platform_id: Platform ID.
|
|
1372
|
+
:type x_platform_id: str
|
|
1373
|
+
:param resource_id: Resource Id of the user.
|
|
1374
|
+
:type resource_id: str
|
|
1375
|
+
:param username: Filter based on username
|
|
1376
|
+
:type username: str
|
|
1377
|
+
:param user_type: Filter based on user type
|
|
1378
|
+
:type user_type: str
|
|
1379
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1380
|
+
number provided, it will be total request
|
|
1381
|
+
timeout. It can also be a pair (tuple) of
|
|
1382
|
+
(connection, read) timeouts.
|
|
1383
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1384
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1385
|
+
request; this effectively ignores the
|
|
1386
|
+
authentication in the spec for a single request.
|
|
1387
|
+
:type _request_auth: dict, optional
|
|
1388
|
+
:param _content_type: force content-type for the request.
|
|
1389
|
+
:type _content_type: str, Optional
|
|
1390
|
+
:param _headers: set to override the headers for a single
|
|
1391
|
+
request; this effectively ignores the headers
|
|
1392
|
+
in the spec for a single request.
|
|
1393
|
+
:type _headers: dict, optional
|
|
1394
|
+
:param _host_index: set to override the host_index for a single
|
|
1395
|
+
request; this effectively ignores the host_index
|
|
1396
|
+
in the spec for a single request.
|
|
1397
|
+
:type _host_index: int, optional
|
|
1398
|
+
:return: Returns the result object.
|
|
1399
|
+
""" # noqa: E501
|
|
1400
|
+
|
|
1401
|
+
_param = self._get_users_search_serialize(
|
|
1402
|
+
version=version,
|
|
1403
|
+
x_platform_id=x_platform_id,
|
|
1404
|
+
resource_id=resource_id,
|
|
1405
|
+
username=username,
|
|
1406
|
+
user_type=user_type,
|
|
1407
|
+
_request_auth=_request_auth,
|
|
1408
|
+
_content_type=_content_type,
|
|
1409
|
+
_headers=_headers,
|
|
1410
|
+
_host_index=_host_index
|
|
1411
|
+
)
|
|
1412
|
+
|
|
1413
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1414
|
+
'200': "List[User]",
|
|
1415
|
+
'401': "ApiError",
|
|
1416
|
+
'403': "ApiError",
|
|
1417
|
+
'500': "ApiError",
|
|
1418
|
+
}
|
|
1419
|
+
response_data = self.api_client.call_api(
|
|
1420
|
+
*_param,
|
|
1421
|
+
_request_timeout=_request_timeout
|
|
1422
|
+
)
|
|
1423
|
+
response_data.read()
|
|
1424
|
+
return self.api_client.response_deserialize(
|
|
1425
|
+
response_data=response_data,
|
|
1426
|
+
response_types_map=_response_types_map,
|
|
1427
|
+
).data
|
|
1428
|
+
|
|
1429
|
+
|
|
1430
|
+
@validate_call
|
|
1431
|
+
def get_users_search_with_http_info(
|
|
1432
|
+
self,
|
|
1433
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1434
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1435
|
+
resource_id: Annotated[Optional[StrictStr], Field(description="Resource Id of the user.")] = None,
|
|
1436
|
+
username: Annotated[Optional[StrictStr], Field(description="Filter based on username")] = None,
|
|
1437
|
+
user_type: Annotated[Optional[StrictStr], Field(description="Filter based on user type")] = None,
|
|
1438
|
+
_request_timeout: Union[
|
|
1439
|
+
None,
|
|
1440
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1441
|
+
Tuple[
|
|
1442
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1443
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1444
|
+
]
|
|
1445
|
+
] = None,
|
|
1446
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1447
|
+
_content_type: Optional[StrictStr] = None,
|
|
1448
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1449
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1450
|
+
) -> ApiResponse[List[User]]:
|
|
1451
|
+
"""Search for a user, using provided filters
|
|
1452
|
+
|
|
1453
|
+
Requires the USER.MORTAL.VIEW permission.
|
|
1454
|
+
|
|
1455
|
+
:param version: version (required)
|
|
1456
|
+
:type version: str
|
|
1457
|
+
:param x_platform_id: Platform ID.
|
|
1458
|
+
:type x_platform_id: str
|
|
1459
|
+
:param resource_id: Resource Id of the user.
|
|
1460
|
+
:type resource_id: str
|
|
1461
|
+
:param username: Filter based on username
|
|
1462
|
+
:type username: str
|
|
1463
|
+
:param user_type: Filter based on user type
|
|
1464
|
+
:type user_type: str
|
|
1465
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1466
|
+
number provided, it will be total request
|
|
1467
|
+
timeout. It can also be a pair (tuple) of
|
|
1468
|
+
(connection, read) timeouts.
|
|
1469
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1470
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1471
|
+
request; this effectively ignores the
|
|
1472
|
+
authentication in the spec for a single request.
|
|
1473
|
+
:type _request_auth: dict, optional
|
|
1474
|
+
:param _content_type: force content-type for the request.
|
|
1475
|
+
:type _content_type: str, Optional
|
|
1476
|
+
:param _headers: set to override the headers for a single
|
|
1477
|
+
request; this effectively ignores the headers
|
|
1478
|
+
in the spec for a single request.
|
|
1479
|
+
:type _headers: dict, optional
|
|
1480
|
+
:param _host_index: set to override the host_index for a single
|
|
1481
|
+
request; this effectively ignores the host_index
|
|
1482
|
+
in the spec for a single request.
|
|
1483
|
+
:type _host_index: int, optional
|
|
1484
|
+
:return: Returns the result object.
|
|
1485
|
+
""" # noqa: E501
|
|
1486
|
+
|
|
1487
|
+
_param = self._get_users_search_serialize(
|
|
1488
|
+
version=version,
|
|
1489
|
+
x_platform_id=x_platform_id,
|
|
1490
|
+
resource_id=resource_id,
|
|
1491
|
+
username=username,
|
|
1492
|
+
user_type=user_type,
|
|
1493
|
+
_request_auth=_request_auth,
|
|
1494
|
+
_content_type=_content_type,
|
|
1495
|
+
_headers=_headers,
|
|
1496
|
+
_host_index=_host_index
|
|
1497
|
+
)
|
|
1498
|
+
|
|
1499
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1500
|
+
'200': "List[User]",
|
|
1501
|
+
'401': "ApiError",
|
|
1502
|
+
'403': "ApiError",
|
|
1503
|
+
'500': "ApiError",
|
|
1504
|
+
}
|
|
1505
|
+
response_data = self.api_client.call_api(
|
|
1506
|
+
*_param,
|
|
1507
|
+
_request_timeout=_request_timeout
|
|
1508
|
+
)
|
|
1509
|
+
response_data.read()
|
|
1510
|
+
return self.api_client.response_deserialize(
|
|
1511
|
+
response_data=response_data,
|
|
1512
|
+
response_types_map=_response_types_map,
|
|
1513
|
+
)
|
|
1514
|
+
|
|
1515
|
+
|
|
1516
|
+
@validate_call
|
|
1517
|
+
def get_users_search_without_preload_content(
|
|
1518
|
+
self,
|
|
1519
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1520
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1521
|
+
resource_id: Annotated[Optional[StrictStr], Field(description="Resource Id of the user.")] = None,
|
|
1522
|
+
username: Annotated[Optional[StrictStr], Field(description="Filter based on username")] = None,
|
|
1523
|
+
user_type: Annotated[Optional[StrictStr], Field(description="Filter based on user type")] = None,
|
|
1524
|
+
_request_timeout: Union[
|
|
1525
|
+
None,
|
|
1526
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1527
|
+
Tuple[
|
|
1528
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1529
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1530
|
+
]
|
|
1531
|
+
] = None,
|
|
1532
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1533
|
+
_content_type: Optional[StrictStr] = None,
|
|
1534
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1535
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1536
|
+
) -> RESTResponseType:
|
|
1537
|
+
"""Search for a user, using provided filters
|
|
1538
|
+
|
|
1539
|
+
Requires the USER.MORTAL.VIEW permission.
|
|
1540
|
+
|
|
1541
|
+
:param version: version (required)
|
|
1542
|
+
:type version: str
|
|
1543
|
+
:param x_platform_id: Platform ID.
|
|
1544
|
+
:type x_platform_id: str
|
|
1545
|
+
:param resource_id: Resource Id of the user.
|
|
1546
|
+
:type resource_id: str
|
|
1547
|
+
:param username: Filter based on username
|
|
1548
|
+
:type username: str
|
|
1549
|
+
:param user_type: Filter based on user type
|
|
1550
|
+
:type user_type: str
|
|
1551
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1552
|
+
number provided, it will be total request
|
|
1553
|
+
timeout. It can also be a pair (tuple) of
|
|
1554
|
+
(connection, read) timeouts.
|
|
1555
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1556
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1557
|
+
request; this effectively ignores the
|
|
1558
|
+
authentication in the spec for a single request.
|
|
1559
|
+
:type _request_auth: dict, optional
|
|
1560
|
+
:param _content_type: force content-type for the request.
|
|
1561
|
+
:type _content_type: str, Optional
|
|
1562
|
+
:param _headers: set to override the headers for a single
|
|
1563
|
+
request; this effectively ignores the headers
|
|
1564
|
+
in the spec for a single request.
|
|
1565
|
+
:type _headers: dict, optional
|
|
1566
|
+
:param _host_index: set to override the host_index for a single
|
|
1567
|
+
request; this effectively ignores the host_index
|
|
1568
|
+
in the spec for a single request.
|
|
1569
|
+
:type _host_index: int, optional
|
|
1570
|
+
:return: Returns the result object.
|
|
1571
|
+
""" # noqa: E501
|
|
1572
|
+
|
|
1573
|
+
_param = self._get_users_search_serialize(
|
|
1574
|
+
version=version,
|
|
1575
|
+
x_platform_id=x_platform_id,
|
|
1576
|
+
resource_id=resource_id,
|
|
1577
|
+
username=username,
|
|
1578
|
+
user_type=user_type,
|
|
1579
|
+
_request_auth=_request_auth,
|
|
1580
|
+
_content_type=_content_type,
|
|
1581
|
+
_headers=_headers,
|
|
1582
|
+
_host_index=_host_index
|
|
1583
|
+
)
|
|
1584
|
+
|
|
1585
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1586
|
+
'200': "List[User]",
|
|
1587
|
+
'401': "ApiError",
|
|
1588
|
+
'403': "ApiError",
|
|
1589
|
+
'500': "ApiError",
|
|
1590
|
+
}
|
|
1591
|
+
response_data = self.api_client.call_api(
|
|
1592
|
+
*_param,
|
|
1593
|
+
_request_timeout=_request_timeout
|
|
1594
|
+
)
|
|
1595
|
+
return response_data.response
|
|
1596
|
+
|
|
1597
|
+
|
|
1598
|
+
def _get_users_search_serialize(
|
|
1599
|
+
self,
|
|
1600
|
+
version,
|
|
1601
|
+
x_platform_id,
|
|
1602
|
+
resource_id,
|
|
1603
|
+
username,
|
|
1604
|
+
user_type,
|
|
1605
|
+
_request_auth,
|
|
1606
|
+
_content_type,
|
|
1607
|
+
_headers,
|
|
1608
|
+
_host_index,
|
|
1609
|
+
) -> RequestSerialized:
|
|
1610
|
+
|
|
1611
|
+
_host = None
|
|
1612
|
+
|
|
1613
|
+
_collection_formats: Dict[str, str] = {
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
_path_params: Dict[str, str] = {}
|
|
1617
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1618
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1619
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1620
|
+
_files: Dict[
|
|
1621
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1622
|
+
] = {}
|
|
1623
|
+
_body_params: Optional[bytes] = None
|
|
1624
|
+
|
|
1625
|
+
# process the path parameters
|
|
1626
|
+
if version is not None:
|
|
1627
|
+
_path_params['version'] = version
|
|
1628
|
+
# process the query parameters
|
|
1629
|
+
if username is not None:
|
|
1630
|
+
|
|
1631
|
+
_query_params.append(('username', username))
|
|
1632
|
+
|
|
1633
|
+
if user_type is not None:
|
|
1634
|
+
|
|
1635
|
+
_query_params.append(('user_type', user_type))
|
|
1636
|
+
|
|
1637
|
+
# process the header parameters
|
|
1638
|
+
if x_platform_id is not None:
|
|
1639
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
1640
|
+
if resource_id is not None:
|
|
1641
|
+
_header_params['resource_id'] = resource_id
|
|
1642
|
+
# process the form parameters
|
|
1643
|
+
# process the body parameter
|
|
1644
|
+
|
|
1645
|
+
|
|
1646
|
+
# set the HTTP header `Accept`
|
|
1647
|
+
if 'Accept' not in _header_params:
|
|
1648
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1649
|
+
[
|
|
1650
|
+
'application/json'
|
|
1651
|
+
]
|
|
1652
|
+
)
|
|
1653
|
+
|
|
1654
|
+
|
|
1655
|
+
# authentication setting
|
|
1656
|
+
_auth_settings: List[str] = [
|
|
1657
|
+
'JWT-Authentication',
|
|
1658
|
+
'API-Key'
|
|
1659
|
+
]
|
|
1660
|
+
|
|
1661
|
+
return self.api_client.param_serialize(
|
|
1662
|
+
method='GET',
|
|
1663
|
+
resource_path='/v{version}/users/search',
|
|
1664
|
+
path_params=_path_params,
|
|
1665
|
+
query_params=_query_params,
|
|
1666
|
+
header_params=_header_params,
|
|
1667
|
+
body=_body_params,
|
|
1668
|
+
post_params=_form_params,
|
|
1669
|
+
files=_files,
|
|
1670
|
+
auth_settings=_auth_settings,
|
|
1671
|
+
collection_formats=_collection_formats,
|
|
1672
|
+
_host=_host,
|
|
1673
|
+
_request_auth=_request_auth
|
|
1674
|
+
)
|
|
1675
|
+
|
|
1676
|
+
|
|
1677
|
+
|
|
1678
|
+
|
|
1679
|
+
@validate_call
|
|
1680
|
+
def post_users(
|
|
1681
|
+
self,
|
|
1682
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1683
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1684
|
+
user_create_request_identity: Optional[UserCreateRequestIdentity] = None,
|
|
1685
|
+
_request_timeout: Union[
|
|
1686
|
+
None,
|
|
1687
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1688
|
+
Tuple[
|
|
1689
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1690
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1691
|
+
]
|
|
1692
|
+
] = None,
|
|
1693
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1694
|
+
_content_type: Optional[StrictStr] = None,
|
|
1695
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1696
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1697
|
+
) -> User:
|
|
1698
|
+
"""Create a user
|
|
1699
|
+
|
|
1700
|
+
Requires the USER.MORTAL.CREATE permission.
|
|
1701
|
+
|
|
1702
|
+
:param version: version (required)
|
|
1703
|
+
:type version: str
|
|
1704
|
+
:param x_platform_id: Platform ID.
|
|
1705
|
+
:type x_platform_id: str
|
|
1706
|
+
:param user_create_request_identity:
|
|
1707
|
+
:type user_create_request_identity: UserCreateRequestIdentity
|
|
1708
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1709
|
+
number provided, it will be total request
|
|
1710
|
+
timeout. It can also be a pair (tuple) of
|
|
1711
|
+
(connection, read) timeouts.
|
|
1712
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1713
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1714
|
+
request; this effectively ignores the
|
|
1715
|
+
authentication in the spec for a single request.
|
|
1716
|
+
:type _request_auth: dict, optional
|
|
1717
|
+
:param _content_type: force content-type for the request.
|
|
1718
|
+
:type _content_type: str, Optional
|
|
1719
|
+
:param _headers: set to override the headers for a single
|
|
1720
|
+
request; this effectively ignores the headers
|
|
1721
|
+
in the spec for a single request.
|
|
1722
|
+
:type _headers: dict, optional
|
|
1723
|
+
:param _host_index: set to override the host_index for a single
|
|
1724
|
+
request; this effectively ignores the host_index
|
|
1725
|
+
in the spec for a single request.
|
|
1726
|
+
:type _host_index: int, optional
|
|
1727
|
+
:return: Returns the result object.
|
|
1728
|
+
""" # noqa: E501
|
|
1729
|
+
|
|
1730
|
+
_param = self._post_users_serialize(
|
|
1731
|
+
version=version,
|
|
1732
|
+
x_platform_id=x_platform_id,
|
|
1733
|
+
user_create_request_identity=user_create_request_identity,
|
|
1734
|
+
_request_auth=_request_auth,
|
|
1735
|
+
_content_type=_content_type,
|
|
1736
|
+
_headers=_headers,
|
|
1737
|
+
_host_index=_host_index
|
|
1738
|
+
)
|
|
1739
|
+
|
|
1740
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1741
|
+
'201': "User",
|
|
1742
|
+
'400': "ApiError",
|
|
1743
|
+
'401': "ApiError",
|
|
1744
|
+
'403': "ApiError",
|
|
1745
|
+
'500': "ApiError",
|
|
1746
|
+
}
|
|
1747
|
+
response_data = self.api_client.call_api(
|
|
1748
|
+
*_param,
|
|
1749
|
+
_request_timeout=_request_timeout
|
|
1750
|
+
)
|
|
1751
|
+
response_data.read()
|
|
1752
|
+
return self.api_client.response_deserialize(
|
|
1753
|
+
response_data=response_data,
|
|
1754
|
+
response_types_map=_response_types_map,
|
|
1755
|
+
).data
|
|
1756
|
+
|
|
1757
|
+
|
|
1758
|
+
@validate_call
|
|
1759
|
+
def post_users_with_http_info(
|
|
1760
|
+
self,
|
|
1761
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1762
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1763
|
+
user_create_request_identity: Optional[UserCreateRequestIdentity] = None,
|
|
1764
|
+
_request_timeout: Union[
|
|
1765
|
+
None,
|
|
1766
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1767
|
+
Tuple[
|
|
1768
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1769
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1770
|
+
]
|
|
1771
|
+
] = None,
|
|
1772
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1773
|
+
_content_type: Optional[StrictStr] = None,
|
|
1774
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1775
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1776
|
+
) -> ApiResponse[User]:
|
|
1777
|
+
"""Create a user
|
|
1778
|
+
|
|
1779
|
+
Requires the USER.MORTAL.CREATE permission.
|
|
1780
|
+
|
|
1781
|
+
:param version: version (required)
|
|
1782
|
+
:type version: str
|
|
1783
|
+
:param x_platform_id: Platform ID.
|
|
1784
|
+
:type x_platform_id: str
|
|
1785
|
+
:param user_create_request_identity:
|
|
1786
|
+
:type user_create_request_identity: UserCreateRequestIdentity
|
|
1787
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1788
|
+
number provided, it will be total request
|
|
1789
|
+
timeout. It can also be a pair (tuple) of
|
|
1790
|
+
(connection, read) timeouts.
|
|
1791
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1792
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1793
|
+
request; this effectively ignores the
|
|
1794
|
+
authentication in the spec for a single request.
|
|
1795
|
+
:type _request_auth: dict, optional
|
|
1796
|
+
:param _content_type: force content-type for the request.
|
|
1797
|
+
:type _content_type: str, Optional
|
|
1798
|
+
:param _headers: set to override the headers for a single
|
|
1799
|
+
request; this effectively ignores the headers
|
|
1800
|
+
in the spec for a single request.
|
|
1801
|
+
:type _headers: dict, optional
|
|
1802
|
+
:param _host_index: set to override the host_index for a single
|
|
1803
|
+
request; this effectively ignores the host_index
|
|
1804
|
+
in the spec for a single request.
|
|
1805
|
+
:type _host_index: int, optional
|
|
1806
|
+
:return: Returns the result object.
|
|
1807
|
+
""" # noqa: E501
|
|
1808
|
+
|
|
1809
|
+
_param = self._post_users_serialize(
|
|
1810
|
+
version=version,
|
|
1811
|
+
x_platform_id=x_platform_id,
|
|
1812
|
+
user_create_request_identity=user_create_request_identity,
|
|
1813
|
+
_request_auth=_request_auth,
|
|
1814
|
+
_content_type=_content_type,
|
|
1815
|
+
_headers=_headers,
|
|
1816
|
+
_host_index=_host_index
|
|
1817
|
+
)
|
|
1818
|
+
|
|
1819
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1820
|
+
'201': "User",
|
|
1821
|
+
'400': "ApiError",
|
|
1822
|
+
'401': "ApiError",
|
|
1823
|
+
'403': "ApiError",
|
|
1824
|
+
'500': "ApiError",
|
|
1825
|
+
}
|
|
1826
|
+
response_data = self.api_client.call_api(
|
|
1827
|
+
*_param,
|
|
1828
|
+
_request_timeout=_request_timeout
|
|
1829
|
+
)
|
|
1830
|
+
response_data.read()
|
|
1831
|
+
return self.api_client.response_deserialize(
|
|
1832
|
+
response_data=response_data,
|
|
1833
|
+
response_types_map=_response_types_map,
|
|
1834
|
+
)
|
|
1835
|
+
|
|
1836
|
+
|
|
1837
|
+
@validate_call
|
|
1838
|
+
def post_users_without_preload_content(
|
|
1839
|
+
self,
|
|
1840
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1841
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1842
|
+
user_create_request_identity: Optional[UserCreateRequestIdentity] = None,
|
|
1843
|
+
_request_timeout: Union[
|
|
1844
|
+
None,
|
|
1845
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1846
|
+
Tuple[
|
|
1847
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1848
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1849
|
+
]
|
|
1850
|
+
] = None,
|
|
1851
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1852
|
+
_content_type: Optional[StrictStr] = None,
|
|
1853
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1854
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1855
|
+
) -> RESTResponseType:
|
|
1856
|
+
"""Create a user
|
|
1857
|
+
|
|
1858
|
+
Requires the USER.MORTAL.CREATE permission.
|
|
1859
|
+
|
|
1860
|
+
:param version: version (required)
|
|
1861
|
+
:type version: str
|
|
1862
|
+
:param x_platform_id: Platform ID.
|
|
1863
|
+
:type x_platform_id: str
|
|
1864
|
+
:param user_create_request_identity:
|
|
1865
|
+
:type user_create_request_identity: UserCreateRequestIdentity
|
|
1866
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1867
|
+
number provided, it will be total request
|
|
1868
|
+
timeout. It can also be a pair (tuple) of
|
|
1869
|
+
(connection, read) timeouts.
|
|
1870
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1871
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1872
|
+
request; this effectively ignores the
|
|
1873
|
+
authentication in the spec for a single request.
|
|
1874
|
+
:type _request_auth: dict, optional
|
|
1875
|
+
:param _content_type: force content-type for the request.
|
|
1876
|
+
:type _content_type: str, Optional
|
|
1877
|
+
:param _headers: set to override the headers for a single
|
|
1878
|
+
request; this effectively ignores the headers
|
|
1879
|
+
in the spec for a single request.
|
|
1880
|
+
:type _headers: dict, optional
|
|
1881
|
+
:param _host_index: set to override the host_index for a single
|
|
1882
|
+
request; this effectively ignores the host_index
|
|
1883
|
+
in the spec for a single request.
|
|
1884
|
+
:type _host_index: int, optional
|
|
1885
|
+
:return: Returns the result object.
|
|
1886
|
+
""" # noqa: E501
|
|
1887
|
+
|
|
1888
|
+
_param = self._post_users_serialize(
|
|
1889
|
+
version=version,
|
|
1890
|
+
x_platform_id=x_platform_id,
|
|
1891
|
+
user_create_request_identity=user_create_request_identity,
|
|
1892
|
+
_request_auth=_request_auth,
|
|
1893
|
+
_content_type=_content_type,
|
|
1894
|
+
_headers=_headers,
|
|
1895
|
+
_host_index=_host_index
|
|
1896
|
+
)
|
|
1897
|
+
|
|
1898
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1899
|
+
'201': "User",
|
|
1900
|
+
'400': "ApiError",
|
|
1901
|
+
'401': "ApiError",
|
|
1902
|
+
'403': "ApiError",
|
|
1903
|
+
'500': "ApiError",
|
|
1904
|
+
}
|
|
1905
|
+
response_data = self.api_client.call_api(
|
|
1906
|
+
*_param,
|
|
1907
|
+
_request_timeout=_request_timeout
|
|
1908
|
+
)
|
|
1909
|
+
return response_data.response
|
|
1910
|
+
|
|
1911
|
+
|
|
1912
|
+
def _post_users_serialize(
|
|
1913
|
+
self,
|
|
1914
|
+
version,
|
|
1915
|
+
x_platform_id,
|
|
1916
|
+
user_create_request_identity,
|
|
1917
|
+
_request_auth,
|
|
1918
|
+
_content_type,
|
|
1919
|
+
_headers,
|
|
1920
|
+
_host_index,
|
|
1921
|
+
) -> RequestSerialized:
|
|
1922
|
+
|
|
1923
|
+
_host = None
|
|
1924
|
+
|
|
1925
|
+
_collection_formats: Dict[str, str] = {
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1928
|
+
_path_params: Dict[str, str] = {}
|
|
1929
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1930
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1931
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1932
|
+
_files: Dict[
|
|
1933
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1934
|
+
] = {}
|
|
1935
|
+
_body_params: Optional[bytes] = None
|
|
1936
|
+
|
|
1937
|
+
# process the path parameters
|
|
1938
|
+
if version is not None:
|
|
1939
|
+
_path_params['version'] = version
|
|
1940
|
+
# process the query parameters
|
|
1941
|
+
# process the header parameters
|
|
1942
|
+
if x_platform_id is not None:
|
|
1943
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
1944
|
+
# process the form parameters
|
|
1945
|
+
# process the body parameter
|
|
1946
|
+
if user_create_request_identity is not None:
|
|
1947
|
+
_body_params = user_create_request_identity
|
|
1948
|
+
|
|
1949
|
+
|
|
1950
|
+
# set the HTTP header `Accept`
|
|
1951
|
+
if 'Accept' not in _header_params:
|
|
1952
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1953
|
+
[
|
|
1954
|
+
'application/json'
|
|
1955
|
+
]
|
|
1956
|
+
)
|
|
1957
|
+
|
|
1958
|
+
# set the HTTP header `Content-Type`
|
|
1959
|
+
if _content_type:
|
|
1960
|
+
_header_params['Content-Type'] = _content_type
|
|
1961
|
+
else:
|
|
1962
|
+
_default_content_type = (
|
|
1963
|
+
self.api_client.select_header_content_type(
|
|
1964
|
+
[
|
|
1965
|
+
'application/json'
|
|
1966
|
+
]
|
|
1967
|
+
)
|
|
1968
|
+
)
|
|
1969
|
+
if _default_content_type is not None:
|
|
1970
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1971
|
+
|
|
1972
|
+
# authentication setting
|
|
1973
|
+
_auth_settings: List[str] = [
|
|
1974
|
+
'JWT-Authentication',
|
|
1975
|
+
'API-Key'
|
|
1976
|
+
]
|
|
1977
|
+
|
|
1978
|
+
return self.api_client.param_serialize(
|
|
1979
|
+
method='POST',
|
|
1980
|
+
resource_path='/v{version}/users',
|
|
1981
|
+
path_params=_path_params,
|
|
1982
|
+
query_params=_query_params,
|
|
1983
|
+
header_params=_header_params,
|
|
1984
|
+
body=_body_params,
|
|
1985
|
+
post_params=_form_params,
|
|
1986
|
+
files=_files,
|
|
1987
|
+
auth_settings=_auth_settings,
|
|
1988
|
+
collection_formats=_collection_formats,
|
|
1989
|
+
_host=_host,
|
|
1990
|
+
_request_auth=_request_auth
|
|
1991
|
+
)
|
|
1992
|
+
|
|
1993
|
+
|
|
1994
|
+
|
|
1995
|
+
|
|
1996
|
+
@validate_call
|
|
1997
|
+
def post_users_by_resource_id_memberships(
|
|
1998
|
+
self,
|
|
1999
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2000
|
+
resource_id: Annotated[StrictStr, Field(description="The ID of the resource for which the action is posted.")],
|
|
2001
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2002
|
+
account_membership_representation_create_request: Optional[AccountMembershipRepresentationCreateRequest] = None,
|
|
2003
|
+
_request_timeout: Union[
|
|
2004
|
+
None,
|
|
2005
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2006
|
+
Tuple[
|
|
2007
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2008
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2009
|
+
]
|
|
2010
|
+
] = None,
|
|
2011
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2012
|
+
_content_type: Optional[StrictStr] = None,
|
|
2013
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2014
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2015
|
+
) -> List[AccountMembershipRepresentation]:
|
|
2016
|
+
"""Add an account membership for a user
|
|
2017
|
+
|
|
2018
|
+
Requires the USER.MORTAL.UPDATE permission.
|
|
2019
|
+
|
|
2020
|
+
:param version: version (required)
|
|
2021
|
+
:type version: str
|
|
2022
|
+
:param resource_id: The ID of the resource for which the action is posted. (required)
|
|
2023
|
+
:type resource_id: str
|
|
2024
|
+
:param x_platform_id: Platform ID.
|
|
2025
|
+
:type x_platform_id: str
|
|
2026
|
+
:param account_membership_representation_create_request:
|
|
2027
|
+
:type account_membership_representation_create_request: AccountMembershipRepresentationCreateRequest
|
|
2028
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2029
|
+
number provided, it will be total request
|
|
2030
|
+
timeout. It can also be a pair (tuple) of
|
|
2031
|
+
(connection, read) timeouts.
|
|
2032
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2033
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2034
|
+
request; this effectively ignores the
|
|
2035
|
+
authentication in the spec for a single request.
|
|
2036
|
+
:type _request_auth: dict, optional
|
|
2037
|
+
:param _content_type: force content-type for the request.
|
|
2038
|
+
:type _content_type: str, Optional
|
|
2039
|
+
:param _headers: set to override the headers for a single
|
|
2040
|
+
request; this effectively ignores the headers
|
|
2041
|
+
in the spec for a single request.
|
|
2042
|
+
:type _headers: dict, optional
|
|
2043
|
+
:param _host_index: set to override the host_index for a single
|
|
2044
|
+
request; this effectively ignores the host_index
|
|
2045
|
+
in the spec for a single request.
|
|
2046
|
+
:type _host_index: int, optional
|
|
2047
|
+
:return: Returns the result object.
|
|
2048
|
+
""" # noqa: E501
|
|
2049
|
+
|
|
2050
|
+
_param = self._post_users_by_resource_id_memberships_serialize(
|
|
2051
|
+
version=version,
|
|
2052
|
+
resource_id=resource_id,
|
|
2053
|
+
x_platform_id=x_platform_id,
|
|
2054
|
+
account_membership_representation_create_request=account_membership_representation_create_request,
|
|
2055
|
+
_request_auth=_request_auth,
|
|
2056
|
+
_content_type=_content_type,
|
|
2057
|
+
_headers=_headers,
|
|
2058
|
+
_host_index=_host_index
|
|
2059
|
+
)
|
|
2060
|
+
|
|
2061
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2062
|
+
'201': "List[AccountMembershipRepresentation]",
|
|
2063
|
+
'400': "ApiError",
|
|
2064
|
+
'401': "ApiError",
|
|
2065
|
+
'403': "ApiError",
|
|
2066
|
+
'500': "ApiError",
|
|
2067
|
+
}
|
|
2068
|
+
response_data = self.api_client.call_api(
|
|
2069
|
+
*_param,
|
|
2070
|
+
_request_timeout=_request_timeout
|
|
2071
|
+
)
|
|
2072
|
+
response_data.read()
|
|
2073
|
+
return self.api_client.response_deserialize(
|
|
2074
|
+
response_data=response_data,
|
|
2075
|
+
response_types_map=_response_types_map,
|
|
2076
|
+
).data
|
|
2077
|
+
|
|
2078
|
+
|
|
2079
|
+
@validate_call
|
|
2080
|
+
def post_users_by_resource_id_memberships_with_http_info(
|
|
2081
|
+
self,
|
|
2082
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2083
|
+
resource_id: Annotated[StrictStr, Field(description="The ID of the resource for which the action is posted.")],
|
|
2084
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2085
|
+
account_membership_representation_create_request: Optional[AccountMembershipRepresentationCreateRequest] = None,
|
|
2086
|
+
_request_timeout: Union[
|
|
2087
|
+
None,
|
|
2088
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2089
|
+
Tuple[
|
|
2090
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2091
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2092
|
+
]
|
|
2093
|
+
] = None,
|
|
2094
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2095
|
+
_content_type: Optional[StrictStr] = None,
|
|
2096
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2097
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2098
|
+
) -> ApiResponse[List[AccountMembershipRepresentation]]:
|
|
2099
|
+
"""Add an account membership for a user
|
|
2100
|
+
|
|
2101
|
+
Requires the USER.MORTAL.UPDATE permission.
|
|
2102
|
+
|
|
2103
|
+
:param version: version (required)
|
|
2104
|
+
:type version: str
|
|
2105
|
+
:param resource_id: The ID of the resource for which the action is posted. (required)
|
|
2106
|
+
:type resource_id: str
|
|
2107
|
+
:param x_platform_id: Platform ID.
|
|
2108
|
+
:type x_platform_id: str
|
|
2109
|
+
:param account_membership_representation_create_request:
|
|
2110
|
+
:type account_membership_representation_create_request: AccountMembershipRepresentationCreateRequest
|
|
2111
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2112
|
+
number provided, it will be total request
|
|
2113
|
+
timeout. It can also be a pair (tuple) of
|
|
2114
|
+
(connection, read) timeouts.
|
|
2115
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2116
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2117
|
+
request; this effectively ignores the
|
|
2118
|
+
authentication in the spec for a single request.
|
|
2119
|
+
:type _request_auth: dict, optional
|
|
2120
|
+
:param _content_type: force content-type for the request.
|
|
2121
|
+
:type _content_type: str, Optional
|
|
2122
|
+
:param _headers: set to override the headers for a single
|
|
2123
|
+
request; this effectively ignores the headers
|
|
2124
|
+
in the spec for a single request.
|
|
2125
|
+
:type _headers: dict, optional
|
|
2126
|
+
:param _host_index: set to override the host_index for a single
|
|
2127
|
+
request; this effectively ignores the host_index
|
|
2128
|
+
in the spec for a single request.
|
|
2129
|
+
:type _host_index: int, optional
|
|
2130
|
+
:return: Returns the result object.
|
|
2131
|
+
""" # noqa: E501
|
|
2132
|
+
|
|
2133
|
+
_param = self._post_users_by_resource_id_memberships_serialize(
|
|
2134
|
+
version=version,
|
|
2135
|
+
resource_id=resource_id,
|
|
2136
|
+
x_platform_id=x_platform_id,
|
|
2137
|
+
account_membership_representation_create_request=account_membership_representation_create_request,
|
|
2138
|
+
_request_auth=_request_auth,
|
|
2139
|
+
_content_type=_content_type,
|
|
2140
|
+
_headers=_headers,
|
|
2141
|
+
_host_index=_host_index
|
|
2142
|
+
)
|
|
2143
|
+
|
|
2144
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2145
|
+
'201': "List[AccountMembershipRepresentation]",
|
|
2146
|
+
'400': "ApiError",
|
|
2147
|
+
'401': "ApiError",
|
|
2148
|
+
'403': "ApiError",
|
|
2149
|
+
'500': "ApiError",
|
|
2150
|
+
}
|
|
2151
|
+
response_data = self.api_client.call_api(
|
|
2152
|
+
*_param,
|
|
2153
|
+
_request_timeout=_request_timeout
|
|
2154
|
+
)
|
|
2155
|
+
response_data.read()
|
|
2156
|
+
return self.api_client.response_deserialize(
|
|
2157
|
+
response_data=response_data,
|
|
2158
|
+
response_types_map=_response_types_map,
|
|
2159
|
+
)
|
|
2160
|
+
|
|
2161
|
+
|
|
2162
|
+
@validate_call
|
|
2163
|
+
def post_users_by_resource_id_memberships_without_preload_content(
|
|
2164
|
+
self,
|
|
2165
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2166
|
+
resource_id: Annotated[StrictStr, Field(description="The ID of the resource for which the action is posted.")],
|
|
2167
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2168
|
+
account_membership_representation_create_request: Optional[AccountMembershipRepresentationCreateRequest] = None,
|
|
2169
|
+
_request_timeout: Union[
|
|
2170
|
+
None,
|
|
2171
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2172
|
+
Tuple[
|
|
2173
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2174
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2175
|
+
]
|
|
2176
|
+
] = None,
|
|
2177
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2178
|
+
_content_type: Optional[StrictStr] = None,
|
|
2179
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2180
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2181
|
+
) -> RESTResponseType:
|
|
2182
|
+
"""Add an account membership for a user
|
|
2183
|
+
|
|
2184
|
+
Requires the USER.MORTAL.UPDATE permission.
|
|
2185
|
+
|
|
2186
|
+
:param version: version (required)
|
|
2187
|
+
:type version: str
|
|
2188
|
+
:param resource_id: The ID of the resource for which the action is posted. (required)
|
|
2189
|
+
:type resource_id: str
|
|
2190
|
+
:param x_platform_id: Platform ID.
|
|
2191
|
+
:type x_platform_id: str
|
|
2192
|
+
:param account_membership_representation_create_request:
|
|
2193
|
+
:type account_membership_representation_create_request: AccountMembershipRepresentationCreateRequest
|
|
2194
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2195
|
+
number provided, it will be total request
|
|
2196
|
+
timeout. It can also be a pair (tuple) of
|
|
2197
|
+
(connection, read) timeouts.
|
|
2198
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2199
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2200
|
+
request; this effectively ignores the
|
|
2201
|
+
authentication in the spec for a single request.
|
|
2202
|
+
:type _request_auth: dict, optional
|
|
2203
|
+
:param _content_type: force content-type for the request.
|
|
2204
|
+
:type _content_type: str, Optional
|
|
2205
|
+
:param _headers: set to override the headers for a single
|
|
2206
|
+
request; this effectively ignores the headers
|
|
2207
|
+
in the spec for a single request.
|
|
2208
|
+
:type _headers: dict, optional
|
|
2209
|
+
:param _host_index: set to override the host_index for a single
|
|
2210
|
+
request; this effectively ignores the host_index
|
|
2211
|
+
in the spec for a single request.
|
|
2212
|
+
:type _host_index: int, optional
|
|
2213
|
+
:return: Returns the result object.
|
|
2214
|
+
""" # noqa: E501
|
|
2215
|
+
|
|
2216
|
+
_param = self._post_users_by_resource_id_memberships_serialize(
|
|
2217
|
+
version=version,
|
|
2218
|
+
resource_id=resource_id,
|
|
2219
|
+
x_platform_id=x_platform_id,
|
|
2220
|
+
account_membership_representation_create_request=account_membership_representation_create_request,
|
|
2221
|
+
_request_auth=_request_auth,
|
|
2222
|
+
_content_type=_content_type,
|
|
2223
|
+
_headers=_headers,
|
|
2224
|
+
_host_index=_host_index
|
|
2225
|
+
)
|
|
2226
|
+
|
|
2227
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2228
|
+
'201': "List[AccountMembershipRepresentation]",
|
|
2229
|
+
'400': "ApiError",
|
|
2230
|
+
'401': "ApiError",
|
|
2231
|
+
'403': "ApiError",
|
|
2232
|
+
'500': "ApiError",
|
|
2233
|
+
}
|
|
2234
|
+
response_data = self.api_client.call_api(
|
|
2235
|
+
*_param,
|
|
2236
|
+
_request_timeout=_request_timeout
|
|
2237
|
+
)
|
|
2238
|
+
return response_data.response
|
|
2239
|
+
|
|
2240
|
+
|
|
2241
|
+
def _post_users_by_resource_id_memberships_serialize(
|
|
2242
|
+
self,
|
|
2243
|
+
version,
|
|
2244
|
+
resource_id,
|
|
2245
|
+
x_platform_id,
|
|
2246
|
+
account_membership_representation_create_request,
|
|
2247
|
+
_request_auth,
|
|
2248
|
+
_content_type,
|
|
2249
|
+
_headers,
|
|
2250
|
+
_host_index,
|
|
2251
|
+
) -> RequestSerialized:
|
|
2252
|
+
|
|
2253
|
+
_host = None
|
|
2254
|
+
|
|
2255
|
+
_collection_formats: Dict[str, str] = {
|
|
2256
|
+
}
|
|
2257
|
+
|
|
2258
|
+
_path_params: Dict[str, str] = {}
|
|
2259
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2260
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2261
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2262
|
+
_files: Dict[
|
|
2263
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2264
|
+
] = {}
|
|
2265
|
+
_body_params: Optional[bytes] = None
|
|
2266
|
+
|
|
2267
|
+
# process the path parameters
|
|
2268
|
+
if version is not None:
|
|
2269
|
+
_path_params['version'] = version
|
|
2270
|
+
if resource_id is not None:
|
|
2271
|
+
_path_params['resourceId'] = resource_id
|
|
2272
|
+
# process the query parameters
|
|
2273
|
+
# process the header parameters
|
|
2274
|
+
if x_platform_id is not None:
|
|
2275
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
2276
|
+
# process the form parameters
|
|
2277
|
+
# process the body parameter
|
|
2278
|
+
if account_membership_representation_create_request is not None:
|
|
2279
|
+
_body_params = account_membership_representation_create_request
|
|
2280
|
+
|
|
2281
|
+
|
|
2282
|
+
# set the HTTP header `Accept`
|
|
2283
|
+
if 'Accept' not in _header_params:
|
|
2284
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2285
|
+
[
|
|
2286
|
+
'application/json'
|
|
2287
|
+
]
|
|
2288
|
+
)
|
|
2289
|
+
|
|
2290
|
+
# set the HTTP header `Content-Type`
|
|
2291
|
+
if _content_type:
|
|
2292
|
+
_header_params['Content-Type'] = _content_type
|
|
2293
|
+
else:
|
|
2294
|
+
_default_content_type = (
|
|
2295
|
+
self.api_client.select_header_content_type(
|
|
2296
|
+
[
|
|
2297
|
+
'application/json'
|
|
2298
|
+
]
|
|
2299
|
+
)
|
|
2300
|
+
)
|
|
2301
|
+
if _default_content_type is not None:
|
|
2302
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2303
|
+
|
|
2304
|
+
# authentication setting
|
|
2305
|
+
_auth_settings: List[str] = [
|
|
2306
|
+
'JWT-Authentication',
|
|
2307
|
+
'API-Key'
|
|
2308
|
+
]
|
|
2309
|
+
|
|
2310
|
+
return self.api_client.param_serialize(
|
|
2311
|
+
method='POST',
|
|
2312
|
+
resource_path='/v{version}/users/{resourceId}/memberships',
|
|
2313
|
+
path_params=_path_params,
|
|
2314
|
+
query_params=_query_params,
|
|
2315
|
+
header_params=_header_params,
|
|
2316
|
+
body=_body_params,
|
|
2317
|
+
post_params=_form_params,
|
|
2318
|
+
files=_files,
|
|
2319
|
+
auth_settings=_auth_settings,
|
|
2320
|
+
collection_formats=_collection_formats,
|
|
2321
|
+
_host=_host,
|
|
2322
|
+
_request_auth=_request_auth
|
|
2323
|
+
)
|
|
2324
|
+
|
|
2325
|
+
|
|
2326
|
+
|
|
2327
|
+
|
|
2328
|
+
@validate_call
|
|
2329
|
+
def post_users_by_resource_id_teams(
|
|
2330
|
+
self,
|
|
2331
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2332
|
+
resource_id: Annotated[StrictStr, Field(description="The ID of the resource for which the action is posted.")],
|
|
2333
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2334
|
+
team_member_representation_create_request: Optional[TeamMemberRepresentationCreateRequest] = None,
|
|
2335
|
+
_request_timeout: Union[
|
|
2336
|
+
None,
|
|
2337
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2338
|
+
Tuple[
|
|
2339
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2340
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2341
|
+
]
|
|
2342
|
+
] = None,
|
|
2343
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2344
|
+
_content_type: Optional[StrictStr] = None,
|
|
2345
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2346
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2347
|
+
) -> List[TeamMemberRepresentation]:
|
|
2348
|
+
"""Give a user membership to a team, granting access to all the accounts the team has access to
|
|
2349
|
+
|
|
2350
|
+
Requires the USER.MORTAL.UPDATE permission.
|
|
2351
|
+
|
|
2352
|
+
:param version: version (required)
|
|
2353
|
+
:type version: str
|
|
2354
|
+
:param resource_id: The ID of the resource for which the action is posted. (required)
|
|
2355
|
+
:type resource_id: str
|
|
2356
|
+
:param x_platform_id: Platform ID.
|
|
2357
|
+
:type x_platform_id: str
|
|
2358
|
+
:param team_member_representation_create_request:
|
|
2359
|
+
:type team_member_representation_create_request: TeamMemberRepresentationCreateRequest
|
|
2360
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2361
|
+
number provided, it will be total request
|
|
2362
|
+
timeout. It can also be a pair (tuple) of
|
|
2363
|
+
(connection, read) timeouts.
|
|
2364
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2365
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2366
|
+
request; this effectively ignores the
|
|
2367
|
+
authentication in the spec for a single request.
|
|
2368
|
+
:type _request_auth: dict, optional
|
|
2369
|
+
:param _content_type: force content-type for the request.
|
|
2370
|
+
:type _content_type: str, Optional
|
|
2371
|
+
:param _headers: set to override the headers for a single
|
|
2372
|
+
request; this effectively ignores the headers
|
|
2373
|
+
in the spec for a single request.
|
|
2374
|
+
:type _headers: dict, optional
|
|
2375
|
+
:param _host_index: set to override the host_index for a single
|
|
2376
|
+
request; this effectively ignores the host_index
|
|
2377
|
+
in the spec for a single request.
|
|
2378
|
+
:type _host_index: int, optional
|
|
2379
|
+
:return: Returns the result object.
|
|
2380
|
+
""" # noqa: E501
|
|
2381
|
+
|
|
2382
|
+
_param = self._post_users_by_resource_id_teams_serialize(
|
|
2383
|
+
version=version,
|
|
2384
|
+
resource_id=resource_id,
|
|
2385
|
+
x_platform_id=x_platform_id,
|
|
2386
|
+
team_member_representation_create_request=team_member_representation_create_request,
|
|
2387
|
+
_request_auth=_request_auth,
|
|
2388
|
+
_content_type=_content_type,
|
|
2389
|
+
_headers=_headers,
|
|
2390
|
+
_host_index=_host_index
|
|
2391
|
+
)
|
|
2392
|
+
|
|
2393
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2394
|
+
'201': "List[TeamMemberRepresentation]",
|
|
2395
|
+
'400': "ApiError",
|
|
2396
|
+
'401': "ApiError",
|
|
2397
|
+
'403': "ApiError",
|
|
2398
|
+
'500': "ApiError",
|
|
2399
|
+
}
|
|
2400
|
+
response_data = self.api_client.call_api(
|
|
2401
|
+
*_param,
|
|
2402
|
+
_request_timeout=_request_timeout
|
|
2403
|
+
)
|
|
2404
|
+
response_data.read()
|
|
2405
|
+
return self.api_client.response_deserialize(
|
|
2406
|
+
response_data=response_data,
|
|
2407
|
+
response_types_map=_response_types_map,
|
|
2408
|
+
).data
|
|
2409
|
+
|
|
2410
|
+
|
|
2411
|
+
@validate_call
|
|
2412
|
+
def post_users_by_resource_id_teams_with_http_info(
|
|
2413
|
+
self,
|
|
2414
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2415
|
+
resource_id: Annotated[StrictStr, Field(description="The ID of the resource for which the action is posted.")],
|
|
2416
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2417
|
+
team_member_representation_create_request: Optional[TeamMemberRepresentationCreateRequest] = None,
|
|
2418
|
+
_request_timeout: Union[
|
|
2419
|
+
None,
|
|
2420
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2421
|
+
Tuple[
|
|
2422
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2423
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2424
|
+
]
|
|
2425
|
+
] = None,
|
|
2426
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2427
|
+
_content_type: Optional[StrictStr] = None,
|
|
2428
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2429
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2430
|
+
) -> ApiResponse[List[TeamMemberRepresentation]]:
|
|
2431
|
+
"""Give a user membership to a team, granting access to all the accounts the team has access to
|
|
2432
|
+
|
|
2433
|
+
Requires the USER.MORTAL.UPDATE permission.
|
|
2434
|
+
|
|
2435
|
+
:param version: version (required)
|
|
2436
|
+
:type version: str
|
|
2437
|
+
:param resource_id: The ID of the resource for which the action is posted. (required)
|
|
2438
|
+
:type resource_id: str
|
|
2439
|
+
:param x_platform_id: Platform ID.
|
|
2440
|
+
:type x_platform_id: str
|
|
2441
|
+
:param team_member_representation_create_request:
|
|
2442
|
+
:type team_member_representation_create_request: TeamMemberRepresentationCreateRequest
|
|
2443
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2444
|
+
number provided, it will be total request
|
|
2445
|
+
timeout. It can also be a pair (tuple) of
|
|
2446
|
+
(connection, read) timeouts.
|
|
2447
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2448
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2449
|
+
request; this effectively ignores the
|
|
2450
|
+
authentication in the spec for a single request.
|
|
2451
|
+
:type _request_auth: dict, optional
|
|
2452
|
+
:param _content_type: force content-type for the request.
|
|
2453
|
+
:type _content_type: str, Optional
|
|
2454
|
+
:param _headers: set to override the headers for a single
|
|
2455
|
+
request; this effectively ignores the headers
|
|
2456
|
+
in the spec for a single request.
|
|
2457
|
+
:type _headers: dict, optional
|
|
2458
|
+
:param _host_index: set to override the host_index for a single
|
|
2459
|
+
request; this effectively ignores the host_index
|
|
2460
|
+
in the spec for a single request.
|
|
2461
|
+
:type _host_index: int, optional
|
|
2462
|
+
:return: Returns the result object.
|
|
2463
|
+
""" # noqa: E501
|
|
2464
|
+
|
|
2465
|
+
_param = self._post_users_by_resource_id_teams_serialize(
|
|
2466
|
+
version=version,
|
|
2467
|
+
resource_id=resource_id,
|
|
2468
|
+
x_platform_id=x_platform_id,
|
|
2469
|
+
team_member_representation_create_request=team_member_representation_create_request,
|
|
2470
|
+
_request_auth=_request_auth,
|
|
2471
|
+
_content_type=_content_type,
|
|
2472
|
+
_headers=_headers,
|
|
2473
|
+
_host_index=_host_index
|
|
2474
|
+
)
|
|
2475
|
+
|
|
2476
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2477
|
+
'201': "List[TeamMemberRepresentation]",
|
|
2478
|
+
'400': "ApiError",
|
|
2479
|
+
'401': "ApiError",
|
|
2480
|
+
'403': "ApiError",
|
|
2481
|
+
'500': "ApiError",
|
|
2482
|
+
}
|
|
2483
|
+
response_data = self.api_client.call_api(
|
|
2484
|
+
*_param,
|
|
2485
|
+
_request_timeout=_request_timeout
|
|
2486
|
+
)
|
|
2487
|
+
response_data.read()
|
|
2488
|
+
return self.api_client.response_deserialize(
|
|
2489
|
+
response_data=response_data,
|
|
2490
|
+
response_types_map=_response_types_map,
|
|
2491
|
+
)
|
|
2492
|
+
|
|
2493
|
+
|
|
2494
|
+
@validate_call
|
|
2495
|
+
def post_users_by_resource_id_teams_without_preload_content(
|
|
2496
|
+
self,
|
|
2497
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2498
|
+
resource_id: Annotated[StrictStr, Field(description="The ID of the resource for which the action is posted.")],
|
|
2499
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2500
|
+
team_member_representation_create_request: Optional[TeamMemberRepresentationCreateRequest] = None,
|
|
2501
|
+
_request_timeout: Union[
|
|
2502
|
+
None,
|
|
2503
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2504
|
+
Tuple[
|
|
2505
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2506
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2507
|
+
]
|
|
2508
|
+
] = None,
|
|
2509
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2510
|
+
_content_type: Optional[StrictStr] = None,
|
|
2511
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2512
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2513
|
+
) -> RESTResponseType:
|
|
2514
|
+
"""Give a user membership to a team, granting access to all the accounts the team has access to
|
|
2515
|
+
|
|
2516
|
+
Requires the USER.MORTAL.UPDATE permission.
|
|
2517
|
+
|
|
2518
|
+
:param version: version (required)
|
|
2519
|
+
:type version: str
|
|
2520
|
+
:param resource_id: The ID of the resource for which the action is posted. (required)
|
|
2521
|
+
:type resource_id: str
|
|
2522
|
+
:param x_platform_id: Platform ID.
|
|
2523
|
+
:type x_platform_id: str
|
|
2524
|
+
:param team_member_representation_create_request:
|
|
2525
|
+
:type team_member_representation_create_request: TeamMemberRepresentationCreateRequest
|
|
2526
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2527
|
+
number provided, it will be total request
|
|
2528
|
+
timeout. It can also be a pair (tuple) of
|
|
2529
|
+
(connection, read) timeouts.
|
|
2530
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2531
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2532
|
+
request; this effectively ignores the
|
|
2533
|
+
authentication in the spec for a single request.
|
|
2534
|
+
:type _request_auth: dict, optional
|
|
2535
|
+
:param _content_type: force content-type for the request.
|
|
2536
|
+
:type _content_type: str, Optional
|
|
2537
|
+
:param _headers: set to override the headers for a single
|
|
2538
|
+
request; this effectively ignores the headers
|
|
2539
|
+
in the spec for a single request.
|
|
2540
|
+
:type _headers: dict, optional
|
|
2541
|
+
:param _host_index: set to override the host_index for a single
|
|
2542
|
+
request; this effectively ignores the host_index
|
|
2543
|
+
in the spec for a single request.
|
|
2544
|
+
:type _host_index: int, optional
|
|
2545
|
+
:return: Returns the result object.
|
|
2546
|
+
""" # noqa: E501
|
|
2547
|
+
|
|
2548
|
+
_param = self._post_users_by_resource_id_teams_serialize(
|
|
2549
|
+
version=version,
|
|
2550
|
+
resource_id=resource_id,
|
|
2551
|
+
x_platform_id=x_platform_id,
|
|
2552
|
+
team_member_representation_create_request=team_member_representation_create_request,
|
|
2553
|
+
_request_auth=_request_auth,
|
|
2554
|
+
_content_type=_content_type,
|
|
2555
|
+
_headers=_headers,
|
|
2556
|
+
_host_index=_host_index
|
|
2557
|
+
)
|
|
2558
|
+
|
|
2559
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2560
|
+
'201': "List[TeamMemberRepresentation]",
|
|
2561
|
+
'400': "ApiError",
|
|
2562
|
+
'401': "ApiError",
|
|
2563
|
+
'403': "ApiError",
|
|
2564
|
+
'500': "ApiError",
|
|
2565
|
+
}
|
|
2566
|
+
response_data = self.api_client.call_api(
|
|
2567
|
+
*_param,
|
|
2568
|
+
_request_timeout=_request_timeout
|
|
2569
|
+
)
|
|
2570
|
+
return response_data.response
|
|
2571
|
+
|
|
2572
|
+
|
|
2573
|
+
def _post_users_by_resource_id_teams_serialize(
|
|
2574
|
+
self,
|
|
2575
|
+
version,
|
|
2576
|
+
resource_id,
|
|
2577
|
+
x_platform_id,
|
|
2578
|
+
team_member_representation_create_request,
|
|
2579
|
+
_request_auth,
|
|
2580
|
+
_content_type,
|
|
2581
|
+
_headers,
|
|
2582
|
+
_host_index,
|
|
2583
|
+
) -> RequestSerialized:
|
|
2584
|
+
|
|
2585
|
+
_host = None
|
|
2586
|
+
|
|
2587
|
+
_collection_formats: Dict[str, str] = {
|
|
2588
|
+
}
|
|
2589
|
+
|
|
2590
|
+
_path_params: Dict[str, str] = {}
|
|
2591
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2592
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2593
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2594
|
+
_files: Dict[
|
|
2595
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2596
|
+
] = {}
|
|
2597
|
+
_body_params: Optional[bytes] = None
|
|
2598
|
+
|
|
2599
|
+
# process the path parameters
|
|
2600
|
+
if version is not None:
|
|
2601
|
+
_path_params['version'] = version
|
|
2602
|
+
if resource_id is not None:
|
|
2603
|
+
_path_params['resourceId'] = resource_id
|
|
2604
|
+
# process the query parameters
|
|
2605
|
+
# process the header parameters
|
|
2606
|
+
if x_platform_id is not None:
|
|
2607
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
2608
|
+
# process the form parameters
|
|
2609
|
+
# process the body parameter
|
|
2610
|
+
if team_member_representation_create_request is not None:
|
|
2611
|
+
_body_params = team_member_representation_create_request
|
|
2612
|
+
|
|
2613
|
+
|
|
2614
|
+
# set the HTTP header `Accept`
|
|
2615
|
+
if 'Accept' not in _header_params:
|
|
2616
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2617
|
+
[
|
|
2618
|
+
'application/json'
|
|
2619
|
+
]
|
|
2620
|
+
)
|
|
2621
|
+
|
|
2622
|
+
# set the HTTP header `Content-Type`
|
|
2623
|
+
if _content_type:
|
|
2624
|
+
_header_params['Content-Type'] = _content_type
|
|
2625
|
+
else:
|
|
2626
|
+
_default_content_type = (
|
|
2627
|
+
self.api_client.select_header_content_type(
|
|
2628
|
+
[
|
|
2629
|
+
'application/json'
|
|
2630
|
+
]
|
|
2631
|
+
)
|
|
2632
|
+
)
|
|
2633
|
+
if _default_content_type is not None:
|
|
2634
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2635
|
+
|
|
2636
|
+
# authentication setting
|
|
2637
|
+
_auth_settings: List[str] = [
|
|
2638
|
+
'JWT-Authentication',
|
|
2639
|
+
'API-Key'
|
|
2640
|
+
]
|
|
2641
|
+
|
|
2642
|
+
return self.api_client.param_serialize(
|
|
2643
|
+
method='POST',
|
|
2644
|
+
resource_path='/v{version}/users/{resourceId}/teams',
|
|
2645
|
+
path_params=_path_params,
|
|
2646
|
+
query_params=_query_params,
|
|
2647
|
+
header_params=_header_params,
|
|
2648
|
+
body=_body_params,
|
|
2649
|
+
post_params=_form_params,
|
|
2650
|
+
files=_files,
|
|
2651
|
+
auth_settings=_auth_settings,
|
|
2652
|
+
collection_formats=_collection_formats,
|
|
2653
|
+
_host=_host,
|
|
2654
|
+
_request_auth=_request_auth
|
|
2655
|
+
)
|
|
2656
|
+
|
|
2657
|
+
|
|
2658
|
+
|
|
2659
|
+
|
|
2660
|
+
@validate_call
|
|
2661
|
+
def post_users_invite(
|
|
2662
|
+
self,
|
|
2663
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2664
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2665
|
+
user_invite_create_request: Optional[UserInviteCreateRequest] = None,
|
|
2666
|
+
_request_timeout: Union[
|
|
2667
|
+
None,
|
|
2668
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2669
|
+
Tuple[
|
|
2670
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2671
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2672
|
+
]
|
|
2673
|
+
] = None,
|
|
2674
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2675
|
+
_content_type: Optional[StrictStr] = None,
|
|
2676
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2677
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2678
|
+
) -> UserInvite:
|
|
2679
|
+
"""Invite a user
|
|
2680
|
+
|
|
2681
|
+
Requires the USER.MORTAL.CREATE permission.
|
|
2682
|
+
|
|
2683
|
+
:param version: version (required)
|
|
2684
|
+
:type version: str
|
|
2685
|
+
:param x_platform_id: Platform ID.
|
|
2686
|
+
:type x_platform_id: str
|
|
2687
|
+
:param user_invite_create_request:
|
|
2688
|
+
:type user_invite_create_request: UserInviteCreateRequest
|
|
2689
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2690
|
+
number provided, it will be total request
|
|
2691
|
+
timeout. It can also be a pair (tuple) of
|
|
2692
|
+
(connection, read) timeouts.
|
|
2693
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2694
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2695
|
+
request; this effectively ignores the
|
|
2696
|
+
authentication in the spec for a single request.
|
|
2697
|
+
:type _request_auth: dict, optional
|
|
2698
|
+
:param _content_type: force content-type for the request.
|
|
2699
|
+
:type _content_type: str, Optional
|
|
2700
|
+
:param _headers: set to override the headers for a single
|
|
2701
|
+
request; this effectively ignores the headers
|
|
2702
|
+
in the spec for a single request.
|
|
2703
|
+
:type _headers: dict, optional
|
|
2704
|
+
:param _host_index: set to override the host_index for a single
|
|
2705
|
+
request; this effectively ignores the host_index
|
|
2706
|
+
in the spec for a single request.
|
|
2707
|
+
:type _host_index: int, optional
|
|
2708
|
+
:return: Returns the result object.
|
|
2709
|
+
""" # noqa: E501
|
|
2710
|
+
|
|
2711
|
+
_param = self._post_users_invite_serialize(
|
|
2712
|
+
version=version,
|
|
2713
|
+
x_platform_id=x_platform_id,
|
|
2714
|
+
user_invite_create_request=user_invite_create_request,
|
|
2715
|
+
_request_auth=_request_auth,
|
|
2716
|
+
_content_type=_content_type,
|
|
2717
|
+
_headers=_headers,
|
|
2718
|
+
_host_index=_host_index
|
|
2719
|
+
)
|
|
2720
|
+
|
|
2721
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2722
|
+
'200': "UserInvite",
|
|
2723
|
+
'401': "ApiError",
|
|
2724
|
+
'403': "ApiError",
|
|
2725
|
+
}
|
|
2726
|
+
response_data = self.api_client.call_api(
|
|
2727
|
+
*_param,
|
|
2728
|
+
_request_timeout=_request_timeout
|
|
2729
|
+
)
|
|
2730
|
+
response_data.read()
|
|
2731
|
+
return self.api_client.response_deserialize(
|
|
2732
|
+
response_data=response_data,
|
|
2733
|
+
response_types_map=_response_types_map,
|
|
2734
|
+
).data
|
|
2735
|
+
|
|
2736
|
+
|
|
2737
|
+
@validate_call
|
|
2738
|
+
def post_users_invite_with_http_info(
|
|
2739
|
+
self,
|
|
2740
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2741
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2742
|
+
user_invite_create_request: Optional[UserInviteCreateRequest] = None,
|
|
2743
|
+
_request_timeout: Union[
|
|
2744
|
+
None,
|
|
2745
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2746
|
+
Tuple[
|
|
2747
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2748
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2749
|
+
]
|
|
2750
|
+
] = None,
|
|
2751
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2752
|
+
_content_type: Optional[StrictStr] = None,
|
|
2753
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2754
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2755
|
+
) -> ApiResponse[UserInvite]:
|
|
2756
|
+
"""Invite a user
|
|
2757
|
+
|
|
2758
|
+
Requires the USER.MORTAL.CREATE permission.
|
|
2759
|
+
|
|
2760
|
+
:param version: version (required)
|
|
2761
|
+
:type version: str
|
|
2762
|
+
:param x_platform_id: Platform ID.
|
|
2763
|
+
:type x_platform_id: str
|
|
2764
|
+
:param user_invite_create_request:
|
|
2765
|
+
:type user_invite_create_request: UserInviteCreateRequest
|
|
2766
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2767
|
+
number provided, it will be total request
|
|
2768
|
+
timeout. It can also be a pair (tuple) of
|
|
2769
|
+
(connection, read) timeouts.
|
|
2770
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2771
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2772
|
+
request; this effectively ignores the
|
|
2773
|
+
authentication in the spec for a single request.
|
|
2774
|
+
:type _request_auth: dict, optional
|
|
2775
|
+
:param _content_type: force content-type for the request.
|
|
2776
|
+
:type _content_type: str, Optional
|
|
2777
|
+
:param _headers: set to override the headers for a single
|
|
2778
|
+
request; this effectively ignores the headers
|
|
2779
|
+
in the spec for a single request.
|
|
2780
|
+
:type _headers: dict, optional
|
|
2781
|
+
:param _host_index: set to override the host_index for a single
|
|
2782
|
+
request; this effectively ignores the host_index
|
|
2783
|
+
in the spec for a single request.
|
|
2784
|
+
:type _host_index: int, optional
|
|
2785
|
+
:return: Returns the result object.
|
|
2786
|
+
""" # noqa: E501
|
|
2787
|
+
|
|
2788
|
+
_param = self._post_users_invite_serialize(
|
|
2789
|
+
version=version,
|
|
2790
|
+
x_platform_id=x_platform_id,
|
|
2791
|
+
user_invite_create_request=user_invite_create_request,
|
|
2792
|
+
_request_auth=_request_auth,
|
|
2793
|
+
_content_type=_content_type,
|
|
2794
|
+
_headers=_headers,
|
|
2795
|
+
_host_index=_host_index
|
|
2796
|
+
)
|
|
2797
|
+
|
|
2798
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2799
|
+
'200': "UserInvite",
|
|
2800
|
+
'401': "ApiError",
|
|
2801
|
+
'403': "ApiError",
|
|
2802
|
+
}
|
|
2803
|
+
response_data = self.api_client.call_api(
|
|
2804
|
+
*_param,
|
|
2805
|
+
_request_timeout=_request_timeout
|
|
2806
|
+
)
|
|
2807
|
+
response_data.read()
|
|
2808
|
+
return self.api_client.response_deserialize(
|
|
2809
|
+
response_data=response_data,
|
|
2810
|
+
response_types_map=_response_types_map,
|
|
2811
|
+
)
|
|
2812
|
+
|
|
2813
|
+
|
|
2814
|
+
@validate_call
|
|
2815
|
+
def post_users_invite_without_preload_content(
|
|
2816
|
+
self,
|
|
2817
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2818
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2819
|
+
user_invite_create_request: Optional[UserInviteCreateRequest] = None,
|
|
2820
|
+
_request_timeout: Union[
|
|
2821
|
+
None,
|
|
2822
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2823
|
+
Tuple[
|
|
2824
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2825
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2826
|
+
]
|
|
2827
|
+
] = None,
|
|
2828
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2829
|
+
_content_type: Optional[StrictStr] = None,
|
|
2830
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2831
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2832
|
+
) -> RESTResponseType:
|
|
2833
|
+
"""Invite a user
|
|
2834
|
+
|
|
2835
|
+
Requires the USER.MORTAL.CREATE permission.
|
|
2836
|
+
|
|
2837
|
+
:param version: version (required)
|
|
2838
|
+
:type version: str
|
|
2839
|
+
:param x_platform_id: Platform ID.
|
|
2840
|
+
:type x_platform_id: str
|
|
2841
|
+
:param user_invite_create_request:
|
|
2842
|
+
:type user_invite_create_request: UserInviteCreateRequest
|
|
2843
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2844
|
+
number provided, it will be total request
|
|
2845
|
+
timeout. It can also be a pair (tuple) of
|
|
2846
|
+
(connection, read) timeouts.
|
|
2847
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2848
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2849
|
+
request; this effectively ignores the
|
|
2850
|
+
authentication in the spec for a single request.
|
|
2851
|
+
:type _request_auth: dict, optional
|
|
2852
|
+
:param _content_type: force content-type for the request.
|
|
2853
|
+
:type _content_type: str, Optional
|
|
2854
|
+
:param _headers: set to override the headers for a single
|
|
2855
|
+
request; this effectively ignores the headers
|
|
2856
|
+
in the spec for a single request.
|
|
2857
|
+
:type _headers: dict, optional
|
|
2858
|
+
:param _host_index: set to override the host_index for a single
|
|
2859
|
+
request; this effectively ignores the host_index
|
|
2860
|
+
in the spec for a single request.
|
|
2861
|
+
:type _host_index: int, optional
|
|
2862
|
+
:return: Returns the result object.
|
|
2863
|
+
""" # noqa: E501
|
|
2864
|
+
|
|
2865
|
+
_param = self._post_users_invite_serialize(
|
|
2866
|
+
version=version,
|
|
2867
|
+
x_platform_id=x_platform_id,
|
|
2868
|
+
user_invite_create_request=user_invite_create_request,
|
|
2869
|
+
_request_auth=_request_auth,
|
|
2870
|
+
_content_type=_content_type,
|
|
2871
|
+
_headers=_headers,
|
|
2872
|
+
_host_index=_host_index
|
|
2873
|
+
)
|
|
2874
|
+
|
|
2875
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2876
|
+
'200': "UserInvite",
|
|
2877
|
+
'401': "ApiError",
|
|
2878
|
+
'403': "ApiError",
|
|
2879
|
+
}
|
|
2880
|
+
response_data = self.api_client.call_api(
|
|
2881
|
+
*_param,
|
|
2882
|
+
_request_timeout=_request_timeout
|
|
2883
|
+
)
|
|
2884
|
+
return response_data.response
|
|
2885
|
+
|
|
2886
|
+
|
|
2887
|
+
def _post_users_invite_serialize(
|
|
2888
|
+
self,
|
|
2889
|
+
version,
|
|
2890
|
+
x_platform_id,
|
|
2891
|
+
user_invite_create_request,
|
|
2892
|
+
_request_auth,
|
|
2893
|
+
_content_type,
|
|
2894
|
+
_headers,
|
|
2895
|
+
_host_index,
|
|
2896
|
+
) -> RequestSerialized:
|
|
2897
|
+
|
|
2898
|
+
_host = None
|
|
2899
|
+
|
|
2900
|
+
_collection_formats: Dict[str, str] = {
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2903
|
+
_path_params: Dict[str, str] = {}
|
|
2904
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2905
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2906
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2907
|
+
_files: Dict[
|
|
2908
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2909
|
+
] = {}
|
|
2910
|
+
_body_params: Optional[bytes] = None
|
|
2911
|
+
|
|
2912
|
+
# process the path parameters
|
|
2913
|
+
if version is not None:
|
|
2914
|
+
_path_params['version'] = version
|
|
2915
|
+
# process the query parameters
|
|
2916
|
+
# process the header parameters
|
|
2917
|
+
if x_platform_id is not None:
|
|
2918
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
2919
|
+
# process the form parameters
|
|
2920
|
+
# process the body parameter
|
|
2921
|
+
if user_invite_create_request is not None:
|
|
2922
|
+
_body_params = user_invite_create_request
|
|
2923
|
+
|
|
2924
|
+
|
|
2925
|
+
# set the HTTP header `Accept`
|
|
2926
|
+
if 'Accept' not in _header_params:
|
|
2927
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2928
|
+
[
|
|
2929
|
+
'application/json'
|
|
2930
|
+
]
|
|
2931
|
+
)
|
|
2932
|
+
|
|
2933
|
+
# set the HTTP header `Content-Type`
|
|
2934
|
+
if _content_type:
|
|
2935
|
+
_header_params['Content-Type'] = _content_type
|
|
2936
|
+
else:
|
|
2937
|
+
_default_content_type = (
|
|
2938
|
+
self.api_client.select_header_content_type(
|
|
2939
|
+
[
|
|
2940
|
+
'application/json'
|
|
2941
|
+
]
|
|
2942
|
+
)
|
|
2943
|
+
)
|
|
2944
|
+
if _default_content_type is not None:
|
|
2945
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2946
|
+
|
|
2947
|
+
# authentication setting
|
|
2948
|
+
_auth_settings: List[str] = [
|
|
2949
|
+
'JWT-Authentication',
|
|
2950
|
+
'API-Key'
|
|
2951
|
+
]
|
|
2952
|
+
|
|
2953
|
+
return self.api_client.param_serialize(
|
|
2954
|
+
method='POST',
|
|
2955
|
+
resource_path='/v{version}/users/invite',
|
|
2956
|
+
path_params=_path_params,
|
|
2957
|
+
query_params=_query_params,
|
|
2958
|
+
header_params=_header_params,
|
|
2959
|
+
body=_body_params,
|
|
2960
|
+
post_params=_form_params,
|
|
2961
|
+
files=_files,
|
|
2962
|
+
auth_settings=_auth_settings,
|
|
2963
|
+
collection_formats=_collection_formats,
|
|
2964
|
+
_host=_host,
|
|
2965
|
+
_request_auth=_request_auth
|
|
2966
|
+
)
|
|
2967
|
+
|
|
2968
|
+
|
|
2969
|
+
|
|
2970
|
+
|
|
2971
|
+
@validate_call
|
|
2972
|
+
def post_users_revoke_invite(
|
|
2973
|
+
self,
|
|
2974
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2975
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2976
|
+
user_create_request_identity: Optional[UserCreateRequestIdentity] = None,
|
|
2977
|
+
_request_timeout: Union[
|
|
2978
|
+
None,
|
|
2979
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2980
|
+
Tuple[
|
|
2981
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2982
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2983
|
+
]
|
|
2984
|
+
] = None,
|
|
2985
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2986
|
+
_content_type: Optional[StrictStr] = None,
|
|
2987
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2988
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2989
|
+
) -> User:
|
|
2990
|
+
"""Revoke a user invite by username
|
|
2991
|
+
|
|
2992
|
+
Requires the USER.MORTAL.UPDATE permission.
|
|
2993
|
+
|
|
2994
|
+
:param version: version (required)
|
|
2995
|
+
:type version: str
|
|
2996
|
+
:param x_platform_id: Platform ID.
|
|
2997
|
+
:type x_platform_id: str
|
|
2998
|
+
:param user_create_request_identity:
|
|
2999
|
+
:type user_create_request_identity: UserCreateRequestIdentity
|
|
3000
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3001
|
+
number provided, it will be total request
|
|
3002
|
+
timeout. It can also be a pair (tuple) of
|
|
3003
|
+
(connection, read) timeouts.
|
|
3004
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3005
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3006
|
+
request; this effectively ignores the
|
|
3007
|
+
authentication in the spec for a single request.
|
|
3008
|
+
:type _request_auth: dict, optional
|
|
3009
|
+
:param _content_type: force content-type for the request.
|
|
3010
|
+
:type _content_type: str, Optional
|
|
3011
|
+
:param _headers: set to override the headers for a single
|
|
3012
|
+
request; this effectively ignores the headers
|
|
3013
|
+
in the spec for a single request.
|
|
3014
|
+
:type _headers: dict, optional
|
|
3015
|
+
:param _host_index: set to override the host_index for a single
|
|
3016
|
+
request; this effectively ignores the host_index
|
|
3017
|
+
in the spec for a single request.
|
|
3018
|
+
:type _host_index: int, optional
|
|
3019
|
+
:return: Returns the result object.
|
|
3020
|
+
""" # noqa: E501
|
|
3021
|
+
|
|
3022
|
+
_param = self._post_users_revoke_invite_serialize(
|
|
3023
|
+
version=version,
|
|
3024
|
+
x_platform_id=x_platform_id,
|
|
3025
|
+
user_create_request_identity=user_create_request_identity,
|
|
3026
|
+
_request_auth=_request_auth,
|
|
3027
|
+
_content_type=_content_type,
|
|
3028
|
+
_headers=_headers,
|
|
3029
|
+
_host_index=_host_index
|
|
3030
|
+
)
|
|
3031
|
+
|
|
3032
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3033
|
+
'200': "User",
|
|
3034
|
+
'401': "ApiError",
|
|
3035
|
+
'403': "ApiError",
|
|
3036
|
+
'500': "ApiError",
|
|
3037
|
+
}
|
|
3038
|
+
response_data = self.api_client.call_api(
|
|
3039
|
+
*_param,
|
|
3040
|
+
_request_timeout=_request_timeout
|
|
3041
|
+
)
|
|
3042
|
+
response_data.read()
|
|
3043
|
+
return self.api_client.response_deserialize(
|
|
3044
|
+
response_data=response_data,
|
|
3045
|
+
response_types_map=_response_types_map,
|
|
3046
|
+
).data
|
|
3047
|
+
|
|
3048
|
+
|
|
3049
|
+
@validate_call
|
|
3050
|
+
def post_users_revoke_invite_with_http_info(
|
|
3051
|
+
self,
|
|
3052
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
3053
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
3054
|
+
user_create_request_identity: Optional[UserCreateRequestIdentity] = None,
|
|
3055
|
+
_request_timeout: Union[
|
|
3056
|
+
None,
|
|
3057
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3058
|
+
Tuple[
|
|
3059
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3060
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3061
|
+
]
|
|
3062
|
+
] = None,
|
|
3063
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3064
|
+
_content_type: Optional[StrictStr] = None,
|
|
3065
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3066
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3067
|
+
) -> ApiResponse[User]:
|
|
3068
|
+
"""Revoke a user invite by username
|
|
3069
|
+
|
|
3070
|
+
Requires the USER.MORTAL.UPDATE permission.
|
|
3071
|
+
|
|
3072
|
+
:param version: version (required)
|
|
3073
|
+
:type version: str
|
|
3074
|
+
:param x_platform_id: Platform ID.
|
|
3075
|
+
:type x_platform_id: str
|
|
3076
|
+
:param user_create_request_identity:
|
|
3077
|
+
:type user_create_request_identity: UserCreateRequestIdentity
|
|
3078
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3079
|
+
number provided, it will be total request
|
|
3080
|
+
timeout. It can also be a pair (tuple) of
|
|
3081
|
+
(connection, read) timeouts.
|
|
3082
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3083
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3084
|
+
request; this effectively ignores the
|
|
3085
|
+
authentication in the spec for a single request.
|
|
3086
|
+
:type _request_auth: dict, optional
|
|
3087
|
+
:param _content_type: force content-type for the request.
|
|
3088
|
+
:type _content_type: str, Optional
|
|
3089
|
+
:param _headers: set to override the headers for a single
|
|
3090
|
+
request; this effectively ignores the headers
|
|
3091
|
+
in the spec for a single request.
|
|
3092
|
+
:type _headers: dict, optional
|
|
3093
|
+
:param _host_index: set to override the host_index for a single
|
|
3094
|
+
request; this effectively ignores the host_index
|
|
3095
|
+
in the spec for a single request.
|
|
3096
|
+
:type _host_index: int, optional
|
|
3097
|
+
:return: Returns the result object.
|
|
3098
|
+
""" # noqa: E501
|
|
3099
|
+
|
|
3100
|
+
_param = self._post_users_revoke_invite_serialize(
|
|
3101
|
+
version=version,
|
|
3102
|
+
x_platform_id=x_platform_id,
|
|
3103
|
+
user_create_request_identity=user_create_request_identity,
|
|
3104
|
+
_request_auth=_request_auth,
|
|
3105
|
+
_content_type=_content_type,
|
|
3106
|
+
_headers=_headers,
|
|
3107
|
+
_host_index=_host_index
|
|
3108
|
+
)
|
|
3109
|
+
|
|
3110
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3111
|
+
'200': "User",
|
|
3112
|
+
'401': "ApiError",
|
|
3113
|
+
'403': "ApiError",
|
|
3114
|
+
'500': "ApiError",
|
|
3115
|
+
}
|
|
3116
|
+
response_data = self.api_client.call_api(
|
|
3117
|
+
*_param,
|
|
3118
|
+
_request_timeout=_request_timeout
|
|
3119
|
+
)
|
|
3120
|
+
response_data.read()
|
|
3121
|
+
return self.api_client.response_deserialize(
|
|
3122
|
+
response_data=response_data,
|
|
3123
|
+
response_types_map=_response_types_map,
|
|
3124
|
+
)
|
|
3125
|
+
|
|
3126
|
+
|
|
3127
|
+
@validate_call
|
|
3128
|
+
def post_users_revoke_invite_without_preload_content(
|
|
3129
|
+
self,
|
|
3130
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
3131
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
3132
|
+
user_create_request_identity: Optional[UserCreateRequestIdentity] = None,
|
|
3133
|
+
_request_timeout: Union[
|
|
3134
|
+
None,
|
|
3135
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3136
|
+
Tuple[
|
|
3137
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3138
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3139
|
+
]
|
|
3140
|
+
] = None,
|
|
3141
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3142
|
+
_content_type: Optional[StrictStr] = None,
|
|
3143
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3144
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3145
|
+
) -> RESTResponseType:
|
|
3146
|
+
"""Revoke a user invite by username
|
|
3147
|
+
|
|
3148
|
+
Requires the USER.MORTAL.UPDATE permission.
|
|
3149
|
+
|
|
3150
|
+
:param version: version (required)
|
|
3151
|
+
:type version: str
|
|
3152
|
+
:param x_platform_id: Platform ID.
|
|
3153
|
+
:type x_platform_id: str
|
|
3154
|
+
:param user_create_request_identity:
|
|
3155
|
+
:type user_create_request_identity: UserCreateRequestIdentity
|
|
3156
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3157
|
+
number provided, it will be total request
|
|
3158
|
+
timeout. It can also be a pair (tuple) of
|
|
3159
|
+
(connection, read) timeouts.
|
|
3160
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3161
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3162
|
+
request; this effectively ignores the
|
|
3163
|
+
authentication in the spec for a single request.
|
|
3164
|
+
:type _request_auth: dict, optional
|
|
3165
|
+
:param _content_type: force content-type for the request.
|
|
3166
|
+
:type _content_type: str, Optional
|
|
3167
|
+
:param _headers: set to override the headers for a single
|
|
3168
|
+
request; this effectively ignores the headers
|
|
3169
|
+
in the spec for a single request.
|
|
3170
|
+
:type _headers: dict, optional
|
|
3171
|
+
:param _host_index: set to override the host_index for a single
|
|
3172
|
+
request; this effectively ignores the host_index
|
|
3173
|
+
in the spec for a single request.
|
|
3174
|
+
:type _host_index: int, optional
|
|
3175
|
+
:return: Returns the result object.
|
|
3176
|
+
""" # noqa: E501
|
|
3177
|
+
|
|
3178
|
+
_param = self._post_users_revoke_invite_serialize(
|
|
3179
|
+
version=version,
|
|
3180
|
+
x_platform_id=x_platform_id,
|
|
3181
|
+
user_create_request_identity=user_create_request_identity,
|
|
3182
|
+
_request_auth=_request_auth,
|
|
3183
|
+
_content_type=_content_type,
|
|
3184
|
+
_headers=_headers,
|
|
3185
|
+
_host_index=_host_index
|
|
3186
|
+
)
|
|
3187
|
+
|
|
3188
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3189
|
+
'200': "User",
|
|
3190
|
+
'401': "ApiError",
|
|
3191
|
+
'403': "ApiError",
|
|
3192
|
+
'500': "ApiError",
|
|
3193
|
+
}
|
|
3194
|
+
response_data = self.api_client.call_api(
|
|
3195
|
+
*_param,
|
|
3196
|
+
_request_timeout=_request_timeout
|
|
3197
|
+
)
|
|
3198
|
+
return response_data.response
|
|
3199
|
+
|
|
3200
|
+
|
|
3201
|
+
def _post_users_revoke_invite_serialize(
|
|
3202
|
+
self,
|
|
3203
|
+
version,
|
|
3204
|
+
x_platform_id,
|
|
3205
|
+
user_create_request_identity,
|
|
3206
|
+
_request_auth,
|
|
3207
|
+
_content_type,
|
|
3208
|
+
_headers,
|
|
3209
|
+
_host_index,
|
|
3210
|
+
) -> RequestSerialized:
|
|
3211
|
+
|
|
3212
|
+
_host = None
|
|
3213
|
+
|
|
3214
|
+
_collection_formats: Dict[str, str] = {
|
|
3215
|
+
}
|
|
3216
|
+
|
|
3217
|
+
_path_params: Dict[str, str] = {}
|
|
3218
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3219
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3220
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3221
|
+
_files: Dict[
|
|
3222
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3223
|
+
] = {}
|
|
3224
|
+
_body_params: Optional[bytes] = None
|
|
3225
|
+
|
|
3226
|
+
# process the path parameters
|
|
3227
|
+
if version is not None:
|
|
3228
|
+
_path_params['version'] = version
|
|
3229
|
+
# process the query parameters
|
|
3230
|
+
# process the header parameters
|
|
3231
|
+
if x_platform_id is not None:
|
|
3232
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
3233
|
+
# process the form parameters
|
|
3234
|
+
# process the body parameter
|
|
3235
|
+
if user_create_request_identity is not None:
|
|
3236
|
+
_body_params = user_create_request_identity
|
|
3237
|
+
|
|
3238
|
+
|
|
3239
|
+
# set the HTTP header `Accept`
|
|
3240
|
+
if 'Accept' not in _header_params:
|
|
3241
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3242
|
+
[
|
|
3243
|
+
'application/json'
|
|
3244
|
+
]
|
|
3245
|
+
)
|
|
3246
|
+
|
|
3247
|
+
# set the HTTP header `Content-Type`
|
|
3248
|
+
if _content_type:
|
|
3249
|
+
_header_params['Content-Type'] = _content_type
|
|
3250
|
+
else:
|
|
3251
|
+
_default_content_type = (
|
|
3252
|
+
self.api_client.select_header_content_type(
|
|
3253
|
+
[
|
|
3254
|
+
'application/json'
|
|
3255
|
+
]
|
|
3256
|
+
)
|
|
3257
|
+
)
|
|
3258
|
+
if _default_content_type is not None:
|
|
3259
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3260
|
+
|
|
3261
|
+
# authentication setting
|
|
3262
|
+
_auth_settings: List[str] = [
|
|
3263
|
+
'JWT-Authentication',
|
|
3264
|
+
'API-Key'
|
|
3265
|
+
]
|
|
3266
|
+
|
|
3267
|
+
return self.api_client.param_serialize(
|
|
3268
|
+
method='POST',
|
|
3269
|
+
resource_path='/v{version}/users/revoke-invite',
|
|
3270
|
+
path_params=_path_params,
|
|
3271
|
+
query_params=_query_params,
|
|
3272
|
+
header_params=_header_params,
|
|
3273
|
+
body=_body_params,
|
|
3274
|
+
post_params=_form_params,
|
|
3275
|
+
files=_files,
|
|
3276
|
+
auth_settings=_auth_settings,
|
|
3277
|
+
collection_formats=_collection_formats,
|
|
3278
|
+
_host=_host,
|
|
3279
|
+
_request_auth=_request_auth
|
|
3280
|
+
)
|
|
3281
|
+
|
|
3282
|
+
|
|
3283
|
+
|
|
3284
|
+
|
|
3285
|
+
@validate_call
|
|
3286
|
+
def update_users_by_resource_id(
|
|
3287
|
+
self,
|
|
3288
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
3289
|
+
resource_id: Annotated[StrictStr, Field(description="The ID of the resource to be requested.")],
|
|
3290
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
3291
|
+
user_update_request_identity: Optional[UserUpdateRequestIdentity] = None,
|
|
3292
|
+
_request_timeout: Union[
|
|
3293
|
+
None,
|
|
3294
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3295
|
+
Tuple[
|
|
3296
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3297
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3298
|
+
]
|
|
3299
|
+
] = None,
|
|
3300
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3301
|
+
_content_type: Optional[StrictStr] = None,
|
|
3302
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3303
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3304
|
+
) -> User:
|
|
3305
|
+
"""Patch a user password or username
|
|
3306
|
+
|
|
3307
|
+
Requires the USER.MORTAL.UPDATE permission.
|
|
3308
|
+
|
|
3309
|
+
:param version: version (required)
|
|
3310
|
+
:type version: str
|
|
3311
|
+
:param resource_id: The ID of the resource to be requested. (required)
|
|
3312
|
+
:type resource_id: str
|
|
3313
|
+
:param x_platform_id: Platform ID.
|
|
3314
|
+
:type x_platform_id: str
|
|
3315
|
+
:param user_update_request_identity:
|
|
3316
|
+
:type user_update_request_identity: UserUpdateRequestIdentity
|
|
3317
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3318
|
+
number provided, it will be total request
|
|
3319
|
+
timeout. It can also be a pair (tuple) of
|
|
3320
|
+
(connection, read) timeouts.
|
|
3321
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3322
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3323
|
+
request; this effectively ignores the
|
|
3324
|
+
authentication in the spec for a single request.
|
|
3325
|
+
:type _request_auth: dict, optional
|
|
3326
|
+
:param _content_type: force content-type for the request.
|
|
3327
|
+
:type _content_type: str, Optional
|
|
3328
|
+
:param _headers: set to override the headers for a single
|
|
3329
|
+
request; this effectively ignores the headers
|
|
3330
|
+
in the spec for a single request.
|
|
3331
|
+
:type _headers: dict, optional
|
|
3332
|
+
:param _host_index: set to override the host_index for a single
|
|
3333
|
+
request; this effectively ignores the host_index
|
|
3334
|
+
in the spec for a single request.
|
|
3335
|
+
:type _host_index: int, optional
|
|
3336
|
+
:return: Returns the result object.
|
|
3337
|
+
""" # noqa: E501
|
|
3338
|
+
|
|
3339
|
+
_param = self._update_users_by_resource_id_serialize(
|
|
3340
|
+
version=version,
|
|
3341
|
+
resource_id=resource_id,
|
|
3342
|
+
x_platform_id=x_platform_id,
|
|
3343
|
+
user_update_request_identity=user_update_request_identity,
|
|
3344
|
+
_request_auth=_request_auth,
|
|
3345
|
+
_content_type=_content_type,
|
|
3346
|
+
_headers=_headers,
|
|
3347
|
+
_host_index=_host_index
|
|
3348
|
+
)
|
|
3349
|
+
|
|
3350
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3351
|
+
'200': "User",
|
|
3352
|
+
'400': "ApiError",
|
|
3353
|
+
'401': "ApiError",
|
|
3354
|
+
'403': "ApiError",
|
|
3355
|
+
'500': "ApiError",
|
|
3356
|
+
}
|
|
3357
|
+
response_data = self.api_client.call_api(
|
|
3358
|
+
*_param,
|
|
3359
|
+
_request_timeout=_request_timeout
|
|
3360
|
+
)
|
|
3361
|
+
response_data.read()
|
|
3362
|
+
return self.api_client.response_deserialize(
|
|
3363
|
+
response_data=response_data,
|
|
3364
|
+
response_types_map=_response_types_map,
|
|
3365
|
+
).data
|
|
3366
|
+
|
|
3367
|
+
|
|
3368
|
+
@validate_call
|
|
3369
|
+
def update_users_by_resource_id_with_http_info(
|
|
3370
|
+
self,
|
|
3371
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
3372
|
+
resource_id: Annotated[StrictStr, Field(description="The ID of the resource to be requested.")],
|
|
3373
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
3374
|
+
user_update_request_identity: Optional[UserUpdateRequestIdentity] = None,
|
|
3375
|
+
_request_timeout: Union[
|
|
3376
|
+
None,
|
|
3377
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3378
|
+
Tuple[
|
|
3379
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3380
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3381
|
+
]
|
|
3382
|
+
] = None,
|
|
3383
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3384
|
+
_content_type: Optional[StrictStr] = None,
|
|
3385
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3386
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3387
|
+
) -> ApiResponse[User]:
|
|
3388
|
+
"""Patch a user password or username
|
|
3389
|
+
|
|
3390
|
+
Requires the USER.MORTAL.UPDATE permission.
|
|
3391
|
+
|
|
3392
|
+
:param version: version (required)
|
|
3393
|
+
:type version: str
|
|
3394
|
+
:param resource_id: The ID of the resource to be requested. (required)
|
|
3395
|
+
:type resource_id: str
|
|
3396
|
+
:param x_platform_id: Platform ID.
|
|
3397
|
+
:type x_platform_id: str
|
|
3398
|
+
:param user_update_request_identity:
|
|
3399
|
+
:type user_update_request_identity: UserUpdateRequestIdentity
|
|
3400
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3401
|
+
number provided, it will be total request
|
|
3402
|
+
timeout. It can also be a pair (tuple) of
|
|
3403
|
+
(connection, read) timeouts.
|
|
3404
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3405
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3406
|
+
request; this effectively ignores the
|
|
3407
|
+
authentication in the spec for a single request.
|
|
3408
|
+
:type _request_auth: dict, optional
|
|
3409
|
+
:param _content_type: force content-type for the request.
|
|
3410
|
+
:type _content_type: str, Optional
|
|
3411
|
+
:param _headers: set to override the headers for a single
|
|
3412
|
+
request; this effectively ignores the headers
|
|
3413
|
+
in the spec for a single request.
|
|
3414
|
+
:type _headers: dict, optional
|
|
3415
|
+
:param _host_index: set to override the host_index for a single
|
|
3416
|
+
request; this effectively ignores the host_index
|
|
3417
|
+
in the spec for a single request.
|
|
3418
|
+
:type _host_index: int, optional
|
|
3419
|
+
:return: Returns the result object.
|
|
3420
|
+
""" # noqa: E501
|
|
3421
|
+
|
|
3422
|
+
_param = self._update_users_by_resource_id_serialize(
|
|
3423
|
+
version=version,
|
|
3424
|
+
resource_id=resource_id,
|
|
3425
|
+
x_platform_id=x_platform_id,
|
|
3426
|
+
user_update_request_identity=user_update_request_identity,
|
|
3427
|
+
_request_auth=_request_auth,
|
|
3428
|
+
_content_type=_content_type,
|
|
3429
|
+
_headers=_headers,
|
|
3430
|
+
_host_index=_host_index
|
|
3431
|
+
)
|
|
3432
|
+
|
|
3433
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3434
|
+
'200': "User",
|
|
3435
|
+
'400': "ApiError",
|
|
3436
|
+
'401': "ApiError",
|
|
3437
|
+
'403': "ApiError",
|
|
3438
|
+
'500': "ApiError",
|
|
3439
|
+
}
|
|
3440
|
+
response_data = self.api_client.call_api(
|
|
3441
|
+
*_param,
|
|
3442
|
+
_request_timeout=_request_timeout
|
|
3443
|
+
)
|
|
3444
|
+
response_data.read()
|
|
3445
|
+
return self.api_client.response_deserialize(
|
|
3446
|
+
response_data=response_data,
|
|
3447
|
+
response_types_map=_response_types_map,
|
|
3448
|
+
)
|
|
3449
|
+
|
|
3450
|
+
|
|
3451
|
+
@validate_call
|
|
3452
|
+
def update_users_by_resource_id_without_preload_content(
|
|
3453
|
+
self,
|
|
3454
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
3455
|
+
resource_id: Annotated[StrictStr, Field(description="The ID of the resource to be requested.")],
|
|
3456
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
3457
|
+
user_update_request_identity: Optional[UserUpdateRequestIdentity] = None,
|
|
3458
|
+
_request_timeout: Union[
|
|
3459
|
+
None,
|
|
3460
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3461
|
+
Tuple[
|
|
3462
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3463
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3464
|
+
]
|
|
3465
|
+
] = None,
|
|
3466
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3467
|
+
_content_type: Optional[StrictStr] = None,
|
|
3468
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3469
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3470
|
+
) -> RESTResponseType:
|
|
3471
|
+
"""Patch a user password or username
|
|
3472
|
+
|
|
3473
|
+
Requires the USER.MORTAL.UPDATE permission.
|
|
3474
|
+
|
|
3475
|
+
:param version: version (required)
|
|
3476
|
+
:type version: str
|
|
3477
|
+
:param resource_id: The ID of the resource to be requested. (required)
|
|
3478
|
+
:type resource_id: str
|
|
3479
|
+
:param x_platform_id: Platform ID.
|
|
3480
|
+
:type x_platform_id: str
|
|
3481
|
+
:param user_update_request_identity:
|
|
3482
|
+
:type user_update_request_identity: UserUpdateRequestIdentity
|
|
3483
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3484
|
+
number provided, it will be total request
|
|
3485
|
+
timeout. It can also be a pair (tuple) of
|
|
3486
|
+
(connection, read) timeouts.
|
|
3487
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3488
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3489
|
+
request; this effectively ignores the
|
|
3490
|
+
authentication in the spec for a single request.
|
|
3491
|
+
:type _request_auth: dict, optional
|
|
3492
|
+
:param _content_type: force content-type for the request.
|
|
3493
|
+
:type _content_type: str, Optional
|
|
3494
|
+
:param _headers: set to override the headers for a single
|
|
3495
|
+
request; this effectively ignores the headers
|
|
3496
|
+
in the spec for a single request.
|
|
3497
|
+
:type _headers: dict, optional
|
|
3498
|
+
:param _host_index: set to override the host_index for a single
|
|
3499
|
+
request; this effectively ignores the host_index
|
|
3500
|
+
in the spec for a single request.
|
|
3501
|
+
:type _host_index: int, optional
|
|
3502
|
+
:return: Returns the result object.
|
|
3503
|
+
""" # noqa: E501
|
|
3504
|
+
|
|
3505
|
+
_param = self._update_users_by_resource_id_serialize(
|
|
3506
|
+
version=version,
|
|
3507
|
+
resource_id=resource_id,
|
|
3508
|
+
x_platform_id=x_platform_id,
|
|
3509
|
+
user_update_request_identity=user_update_request_identity,
|
|
3510
|
+
_request_auth=_request_auth,
|
|
3511
|
+
_content_type=_content_type,
|
|
3512
|
+
_headers=_headers,
|
|
3513
|
+
_host_index=_host_index
|
|
3514
|
+
)
|
|
3515
|
+
|
|
3516
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3517
|
+
'200': "User",
|
|
3518
|
+
'400': "ApiError",
|
|
3519
|
+
'401': "ApiError",
|
|
3520
|
+
'403': "ApiError",
|
|
3521
|
+
'500': "ApiError",
|
|
3522
|
+
}
|
|
3523
|
+
response_data = self.api_client.call_api(
|
|
3524
|
+
*_param,
|
|
3525
|
+
_request_timeout=_request_timeout
|
|
3526
|
+
)
|
|
3527
|
+
return response_data.response
|
|
3528
|
+
|
|
3529
|
+
|
|
3530
|
+
def _update_users_by_resource_id_serialize(
|
|
3531
|
+
self,
|
|
3532
|
+
version,
|
|
3533
|
+
resource_id,
|
|
3534
|
+
x_platform_id,
|
|
3535
|
+
user_update_request_identity,
|
|
3536
|
+
_request_auth,
|
|
3537
|
+
_content_type,
|
|
3538
|
+
_headers,
|
|
3539
|
+
_host_index,
|
|
3540
|
+
) -> RequestSerialized:
|
|
3541
|
+
|
|
3542
|
+
_host = None
|
|
3543
|
+
|
|
3544
|
+
_collection_formats: Dict[str, str] = {
|
|
3545
|
+
}
|
|
3546
|
+
|
|
3547
|
+
_path_params: Dict[str, str] = {}
|
|
3548
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3549
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3550
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3551
|
+
_files: Dict[
|
|
3552
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3553
|
+
] = {}
|
|
3554
|
+
_body_params: Optional[bytes] = None
|
|
3555
|
+
|
|
3556
|
+
# process the path parameters
|
|
3557
|
+
if version is not None:
|
|
3558
|
+
_path_params['version'] = version
|
|
3559
|
+
if resource_id is not None:
|
|
3560
|
+
_path_params['resourceId'] = resource_id
|
|
3561
|
+
# process the query parameters
|
|
3562
|
+
# process the header parameters
|
|
3563
|
+
if x_platform_id is not None:
|
|
3564
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
3565
|
+
# process the form parameters
|
|
3566
|
+
# process the body parameter
|
|
3567
|
+
if user_update_request_identity is not None:
|
|
3568
|
+
_body_params = user_update_request_identity
|
|
3569
|
+
|
|
3570
|
+
|
|
3571
|
+
# set the HTTP header `Accept`
|
|
3572
|
+
if 'Accept' not in _header_params:
|
|
3573
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3574
|
+
[
|
|
3575
|
+
'application/json'
|
|
3576
|
+
]
|
|
3577
|
+
)
|
|
3578
|
+
|
|
3579
|
+
# set the HTTP header `Content-Type`
|
|
3580
|
+
if _content_type:
|
|
3581
|
+
_header_params['Content-Type'] = _content_type
|
|
3582
|
+
else:
|
|
3583
|
+
_default_content_type = (
|
|
3584
|
+
self.api_client.select_header_content_type(
|
|
3585
|
+
[
|
|
3586
|
+
'application/json'
|
|
3587
|
+
]
|
|
3588
|
+
)
|
|
3589
|
+
)
|
|
3590
|
+
if _default_content_type is not None:
|
|
3591
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3592
|
+
|
|
3593
|
+
# authentication setting
|
|
3594
|
+
_auth_settings: List[str] = [
|
|
3595
|
+
'JWT-Authentication',
|
|
3596
|
+
'API-Key'
|
|
3597
|
+
]
|
|
3598
|
+
|
|
3599
|
+
return self.api_client.param_serialize(
|
|
3600
|
+
method='PATCH',
|
|
3601
|
+
resource_path='/v{version}/users/{resourceId}',
|
|
3602
|
+
path_params=_path_params,
|
|
3603
|
+
query_params=_query_params,
|
|
3604
|
+
header_params=_header_params,
|
|
3605
|
+
body=_body_params,
|
|
3606
|
+
post_params=_form_params,
|
|
3607
|
+
files=_files,
|
|
3608
|
+
auth_settings=_auth_settings,
|
|
3609
|
+
collection_formats=_collection_formats,
|
|
3610
|
+
_host=_host,
|
|
3611
|
+
_request_auth=_request_auth
|
|
3612
|
+
)
|
|
3613
|
+
|
|
3614
|
+
|
|
3615
|
+
|
|
3616
|
+
|
|
3617
|
+
@validate_call
|
|
3618
|
+
def update_users_by_resource_id_memberships_by_membership_resource_id(
|
|
3619
|
+
self,
|
|
3620
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
3621
|
+
membership_resource_id: Annotated[StrictStr, Field(description="The ID of the membership to be patched.")],
|
|
3622
|
+
resource_id: Annotated[StrictStr, Field(description="The ID of the user to be patched.")],
|
|
3623
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
3624
|
+
account_membership_representation_update_request: Optional[AccountMembershipRepresentationUpdateRequest] = None,
|
|
3625
|
+
_request_timeout: Union[
|
|
3626
|
+
None,
|
|
3627
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3628
|
+
Tuple[
|
|
3629
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3630
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3631
|
+
]
|
|
3632
|
+
] = None,
|
|
3633
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3634
|
+
_content_type: Optional[StrictStr] = None,
|
|
3635
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3636
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3637
|
+
) -> List[AccountMembershipRepresentation]:
|
|
3638
|
+
"""Patch an account membership
|
|
3639
|
+
|
|
3640
|
+
Requires the USER.MORTAL.UPDATE permission.
|
|
3641
|
+
|
|
3642
|
+
:param version: version (required)
|
|
3643
|
+
:type version: str
|
|
3644
|
+
:param membership_resource_id: The ID of the membership to be patched. (required)
|
|
3645
|
+
:type membership_resource_id: str
|
|
3646
|
+
:param resource_id: The ID of the user to be patched. (required)
|
|
3647
|
+
:type resource_id: str
|
|
3648
|
+
:param x_platform_id: Platform ID.
|
|
3649
|
+
:type x_platform_id: str
|
|
3650
|
+
:param account_membership_representation_update_request:
|
|
3651
|
+
:type account_membership_representation_update_request: AccountMembershipRepresentationUpdateRequest
|
|
3652
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3653
|
+
number provided, it will be total request
|
|
3654
|
+
timeout. It can also be a pair (tuple) of
|
|
3655
|
+
(connection, read) timeouts.
|
|
3656
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3657
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3658
|
+
request; this effectively ignores the
|
|
3659
|
+
authentication in the spec for a single request.
|
|
3660
|
+
:type _request_auth: dict, optional
|
|
3661
|
+
:param _content_type: force content-type for the request.
|
|
3662
|
+
:type _content_type: str, Optional
|
|
3663
|
+
:param _headers: set to override the headers for a single
|
|
3664
|
+
request; this effectively ignores the headers
|
|
3665
|
+
in the spec for a single request.
|
|
3666
|
+
:type _headers: dict, optional
|
|
3667
|
+
:param _host_index: set to override the host_index for a single
|
|
3668
|
+
request; this effectively ignores the host_index
|
|
3669
|
+
in the spec for a single request.
|
|
3670
|
+
:type _host_index: int, optional
|
|
3671
|
+
:return: Returns the result object.
|
|
3672
|
+
""" # noqa: E501
|
|
3673
|
+
|
|
3674
|
+
_param = self._update_users_by_resource_id_memberships_by_membership_resource_id_serialize(
|
|
3675
|
+
version=version,
|
|
3676
|
+
membership_resource_id=membership_resource_id,
|
|
3677
|
+
resource_id=resource_id,
|
|
3678
|
+
x_platform_id=x_platform_id,
|
|
3679
|
+
account_membership_representation_update_request=account_membership_representation_update_request,
|
|
3680
|
+
_request_auth=_request_auth,
|
|
3681
|
+
_content_type=_content_type,
|
|
3682
|
+
_headers=_headers,
|
|
3683
|
+
_host_index=_host_index
|
|
3684
|
+
)
|
|
3685
|
+
|
|
3686
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3687
|
+
'200': "List[AccountMembershipRepresentation]",
|
|
3688
|
+
'400': "ApiError",
|
|
3689
|
+
'401': "ApiError",
|
|
3690
|
+
'403': "ApiError",
|
|
3691
|
+
'500': "ApiError",
|
|
3692
|
+
}
|
|
3693
|
+
response_data = self.api_client.call_api(
|
|
3694
|
+
*_param,
|
|
3695
|
+
_request_timeout=_request_timeout
|
|
3696
|
+
)
|
|
3697
|
+
response_data.read()
|
|
3698
|
+
return self.api_client.response_deserialize(
|
|
3699
|
+
response_data=response_data,
|
|
3700
|
+
response_types_map=_response_types_map,
|
|
3701
|
+
).data
|
|
3702
|
+
|
|
3703
|
+
|
|
3704
|
+
@validate_call
|
|
3705
|
+
def update_users_by_resource_id_memberships_by_membership_resource_id_with_http_info(
|
|
3706
|
+
self,
|
|
3707
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
3708
|
+
membership_resource_id: Annotated[StrictStr, Field(description="The ID of the membership to be patched.")],
|
|
3709
|
+
resource_id: Annotated[StrictStr, Field(description="The ID of the user to be patched.")],
|
|
3710
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
3711
|
+
account_membership_representation_update_request: Optional[AccountMembershipRepresentationUpdateRequest] = None,
|
|
3712
|
+
_request_timeout: Union[
|
|
3713
|
+
None,
|
|
3714
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3715
|
+
Tuple[
|
|
3716
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3717
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3718
|
+
]
|
|
3719
|
+
] = None,
|
|
3720
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3721
|
+
_content_type: Optional[StrictStr] = None,
|
|
3722
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3723
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3724
|
+
) -> ApiResponse[List[AccountMembershipRepresentation]]:
|
|
3725
|
+
"""Patch an account membership
|
|
3726
|
+
|
|
3727
|
+
Requires the USER.MORTAL.UPDATE permission.
|
|
3728
|
+
|
|
3729
|
+
:param version: version (required)
|
|
3730
|
+
:type version: str
|
|
3731
|
+
:param membership_resource_id: The ID of the membership to be patched. (required)
|
|
3732
|
+
:type membership_resource_id: str
|
|
3733
|
+
:param resource_id: The ID of the user to be patched. (required)
|
|
3734
|
+
:type resource_id: str
|
|
3735
|
+
:param x_platform_id: Platform ID.
|
|
3736
|
+
:type x_platform_id: str
|
|
3737
|
+
:param account_membership_representation_update_request:
|
|
3738
|
+
:type account_membership_representation_update_request: AccountMembershipRepresentationUpdateRequest
|
|
3739
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3740
|
+
number provided, it will be total request
|
|
3741
|
+
timeout. It can also be a pair (tuple) of
|
|
3742
|
+
(connection, read) timeouts.
|
|
3743
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3744
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3745
|
+
request; this effectively ignores the
|
|
3746
|
+
authentication in the spec for a single request.
|
|
3747
|
+
:type _request_auth: dict, optional
|
|
3748
|
+
:param _content_type: force content-type for the request.
|
|
3749
|
+
:type _content_type: str, Optional
|
|
3750
|
+
:param _headers: set to override the headers for a single
|
|
3751
|
+
request; this effectively ignores the headers
|
|
3752
|
+
in the spec for a single request.
|
|
3753
|
+
:type _headers: dict, optional
|
|
3754
|
+
:param _host_index: set to override the host_index for a single
|
|
3755
|
+
request; this effectively ignores the host_index
|
|
3756
|
+
in the spec for a single request.
|
|
3757
|
+
:type _host_index: int, optional
|
|
3758
|
+
:return: Returns the result object.
|
|
3759
|
+
""" # noqa: E501
|
|
3760
|
+
|
|
3761
|
+
_param = self._update_users_by_resource_id_memberships_by_membership_resource_id_serialize(
|
|
3762
|
+
version=version,
|
|
3763
|
+
membership_resource_id=membership_resource_id,
|
|
3764
|
+
resource_id=resource_id,
|
|
3765
|
+
x_platform_id=x_platform_id,
|
|
3766
|
+
account_membership_representation_update_request=account_membership_representation_update_request,
|
|
3767
|
+
_request_auth=_request_auth,
|
|
3768
|
+
_content_type=_content_type,
|
|
3769
|
+
_headers=_headers,
|
|
3770
|
+
_host_index=_host_index
|
|
3771
|
+
)
|
|
3772
|
+
|
|
3773
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3774
|
+
'200': "List[AccountMembershipRepresentation]",
|
|
3775
|
+
'400': "ApiError",
|
|
3776
|
+
'401': "ApiError",
|
|
3777
|
+
'403': "ApiError",
|
|
3778
|
+
'500': "ApiError",
|
|
3779
|
+
}
|
|
3780
|
+
response_data = self.api_client.call_api(
|
|
3781
|
+
*_param,
|
|
3782
|
+
_request_timeout=_request_timeout
|
|
3783
|
+
)
|
|
3784
|
+
response_data.read()
|
|
3785
|
+
return self.api_client.response_deserialize(
|
|
3786
|
+
response_data=response_data,
|
|
3787
|
+
response_types_map=_response_types_map,
|
|
3788
|
+
)
|
|
3789
|
+
|
|
3790
|
+
|
|
3791
|
+
@validate_call
|
|
3792
|
+
def update_users_by_resource_id_memberships_by_membership_resource_id_without_preload_content(
|
|
3793
|
+
self,
|
|
3794
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
3795
|
+
membership_resource_id: Annotated[StrictStr, Field(description="The ID of the membership to be patched.")],
|
|
3796
|
+
resource_id: Annotated[StrictStr, Field(description="The ID of the user to be patched.")],
|
|
3797
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
3798
|
+
account_membership_representation_update_request: Optional[AccountMembershipRepresentationUpdateRequest] = None,
|
|
3799
|
+
_request_timeout: Union[
|
|
3800
|
+
None,
|
|
3801
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3802
|
+
Tuple[
|
|
3803
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3804
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3805
|
+
]
|
|
3806
|
+
] = None,
|
|
3807
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3808
|
+
_content_type: Optional[StrictStr] = None,
|
|
3809
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3810
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3811
|
+
) -> RESTResponseType:
|
|
3812
|
+
"""Patch an account membership
|
|
3813
|
+
|
|
3814
|
+
Requires the USER.MORTAL.UPDATE permission.
|
|
3815
|
+
|
|
3816
|
+
:param version: version (required)
|
|
3817
|
+
:type version: str
|
|
3818
|
+
:param membership_resource_id: The ID of the membership to be patched. (required)
|
|
3819
|
+
:type membership_resource_id: str
|
|
3820
|
+
:param resource_id: The ID of the user to be patched. (required)
|
|
3821
|
+
:type resource_id: str
|
|
3822
|
+
:param x_platform_id: Platform ID.
|
|
3823
|
+
:type x_platform_id: str
|
|
3824
|
+
:param account_membership_representation_update_request:
|
|
3825
|
+
:type account_membership_representation_update_request: AccountMembershipRepresentationUpdateRequest
|
|
3826
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3827
|
+
number provided, it will be total request
|
|
3828
|
+
timeout. It can also be a pair (tuple) of
|
|
3829
|
+
(connection, read) timeouts.
|
|
3830
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3831
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3832
|
+
request; this effectively ignores the
|
|
3833
|
+
authentication in the spec for a single request.
|
|
3834
|
+
:type _request_auth: dict, optional
|
|
3835
|
+
:param _content_type: force content-type for the request.
|
|
3836
|
+
:type _content_type: str, Optional
|
|
3837
|
+
:param _headers: set to override the headers for a single
|
|
3838
|
+
request; this effectively ignores the headers
|
|
3839
|
+
in the spec for a single request.
|
|
3840
|
+
:type _headers: dict, optional
|
|
3841
|
+
:param _host_index: set to override the host_index for a single
|
|
3842
|
+
request; this effectively ignores the host_index
|
|
3843
|
+
in the spec for a single request.
|
|
3844
|
+
:type _host_index: int, optional
|
|
3845
|
+
:return: Returns the result object.
|
|
3846
|
+
""" # noqa: E501
|
|
3847
|
+
|
|
3848
|
+
_param = self._update_users_by_resource_id_memberships_by_membership_resource_id_serialize(
|
|
3849
|
+
version=version,
|
|
3850
|
+
membership_resource_id=membership_resource_id,
|
|
3851
|
+
resource_id=resource_id,
|
|
3852
|
+
x_platform_id=x_platform_id,
|
|
3853
|
+
account_membership_representation_update_request=account_membership_representation_update_request,
|
|
3854
|
+
_request_auth=_request_auth,
|
|
3855
|
+
_content_type=_content_type,
|
|
3856
|
+
_headers=_headers,
|
|
3857
|
+
_host_index=_host_index
|
|
3858
|
+
)
|
|
3859
|
+
|
|
3860
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3861
|
+
'200': "List[AccountMembershipRepresentation]",
|
|
3862
|
+
'400': "ApiError",
|
|
3863
|
+
'401': "ApiError",
|
|
3864
|
+
'403': "ApiError",
|
|
3865
|
+
'500': "ApiError",
|
|
3866
|
+
}
|
|
3867
|
+
response_data = self.api_client.call_api(
|
|
3868
|
+
*_param,
|
|
3869
|
+
_request_timeout=_request_timeout
|
|
3870
|
+
)
|
|
3871
|
+
return response_data.response
|
|
3872
|
+
|
|
3873
|
+
|
|
3874
|
+
def _update_users_by_resource_id_memberships_by_membership_resource_id_serialize(
|
|
3875
|
+
self,
|
|
3876
|
+
version,
|
|
3877
|
+
membership_resource_id,
|
|
3878
|
+
resource_id,
|
|
3879
|
+
x_platform_id,
|
|
3880
|
+
account_membership_representation_update_request,
|
|
3881
|
+
_request_auth,
|
|
3882
|
+
_content_type,
|
|
3883
|
+
_headers,
|
|
3884
|
+
_host_index,
|
|
3885
|
+
) -> RequestSerialized:
|
|
3886
|
+
|
|
3887
|
+
_host = None
|
|
3888
|
+
|
|
3889
|
+
_collection_formats: Dict[str, str] = {
|
|
3890
|
+
}
|
|
3891
|
+
|
|
3892
|
+
_path_params: Dict[str, str] = {}
|
|
3893
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3894
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3895
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3896
|
+
_files: Dict[
|
|
3897
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3898
|
+
] = {}
|
|
3899
|
+
_body_params: Optional[bytes] = None
|
|
3900
|
+
|
|
3901
|
+
# process the path parameters
|
|
3902
|
+
if version is not None:
|
|
3903
|
+
_path_params['version'] = version
|
|
3904
|
+
if membership_resource_id is not None:
|
|
3905
|
+
_path_params['membershipResourceId'] = membership_resource_id
|
|
3906
|
+
if resource_id is not None:
|
|
3907
|
+
_path_params['resourceId'] = resource_id
|
|
3908
|
+
# process the query parameters
|
|
3909
|
+
# process the header parameters
|
|
3910
|
+
if x_platform_id is not None:
|
|
3911
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
3912
|
+
# process the form parameters
|
|
3913
|
+
# process the body parameter
|
|
3914
|
+
if account_membership_representation_update_request is not None:
|
|
3915
|
+
_body_params = account_membership_representation_update_request
|
|
3916
|
+
|
|
3917
|
+
|
|
3918
|
+
# set the HTTP header `Accept`
|
|
3919
|
+
if 'Accept' not in _header_params:
|
|
3920
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3921
|
+
[
|
|
3922
|
+
'application/json'
|
|
3923
|
+
]
|
|
3924
|
+
)
|
|
3925
|
+
|
|
3926
|
+
# set the HTTP header `Content-Type`
|
|
3927
|
+
if _content_type:
|
|
3928
|
+
_header_params['Content-Type'] = _content_type
|
|
3929
|
+
else:
|
|
3930
|
+
_default_content_type = (
|
|
3931
|
+
self.api_client.select_header_content_type(
|
|
3932
|
+
[
|
|
3933
|
+
'application/json'
|
|
3934
|
+
]
|
|
3935
|
+
)
|
|
3936
|
+
)
|
|
3937
|
+
if _default_content_type is not None:
|
|
3938
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3939
|
+
|
|
3940
|
+
# authentication setting
|
|
3941
|
+
_auth_settings: List[str] = [
|
|
3942
|
+
'JWT-Authentication',
|
|
3943
|
+
'API-Key'
|
|
3944
|
+
]
|
|
3945
|
+
|
|
3946
|
+
return self.api_client.param_serialize(
|
|
3947
|
+
method='PATCH',
|
|
3948
|
+
resource_path='/v{version}/users/{resourceId}/memberships/{membershipResourceId}',
|
|
3949
|
+
path_params=_path_params,
|
|
3950
|
+
query_params=_query_params,
|
|
3951
|
+
header_params=_header_params,
|
|
3952
|
+
body=_body_params,
|
|
3953
|
+
post_params=_form_params,
|
|
3954
|
+
files=_files,
|
|
3955
|
+
auth_settings=_auth_settings,
|
|
3956
|
+
collection_formats=_collection_formats,
|
|
3957
|
+
_host=_host,
|
|
3958
|
+
_request_auth=_request_auth
|
|
3959
|
+
)
|
|
3960
|
+
|
|
3961
|
+
|