unitysvc-py 0.2.0__tar.gz → 0.2.1__tar.gz
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.
- {unitysvc_py-0.2.0/src/unitysvc_py.egg-info → unitysvc_py-0.2.1}/PKG-INFO +1 -1
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/pyproject.toml +1 -1
- unitysvc_py-0.2.1/src/unitysvc/_generated/api/customer/customer_get_cycle_usage.py +229 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_broadcasts/customer_broadcasts_update_broadcast.py +20 -16
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_groups/customer_groups_list_group_services.py +8 -12
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_services/customer_services_get_service.py +48 -32
- unitysvc_py-0.2.1/src/unitysvc/_generated/api/preferences/__init__.py +1 -0
- unitysvc_py-0.2.1/src/unitysvc/_generated/api/preferences/preferences_clear_named_preference.py +207 -0
- unitysvc_py-0.2.1/src/unitysvc/_generated/api/preferences/preferences_read_named_preference.py +203 -0
- unitysvc_py-0.2.1/src/unitysvc/_generated/api/preferences/preferences_read_preferences.py +188 -0
- unitysvc_py-0.2.1/src/unitysvc/_generated/api/preferences/preferences_set_named_preference.py +237 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/__init__.py +24 -6
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/channel_plan.py +19 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/customer_group_view.py +6 -27
- unitysvc_py-0.2.1/src/unitysvc/_generated/models/cycle_usage_response.py +225 -0
- unitysvc_py-0.2.1/src/unitysvc/_generated/models/plan_meter_public.py +108 -0
- unitysvc_py-0.2.0/src/unitysvc/_generated/models/preference_set_request.py → unitysvc_py-0.2.1/src/unitysvc/_generated/models/preference_account_public.py +21 -16
- unitysvc_py-0.2.1/src/unitysvc/_generated/models/preference_account_public_type.py +15 -0
- unitysvc_py-0.2.1/src/unitysvc/_generated/models/preference_public.py +181 -0
- unitysvc_py-0.2.1/src/unitysvc/_generated/models/preference_public_source_type_0.py +15 -0
- unitysvc_py-0.2.1/src/unitysvc/_generated/models/preference_update.py +87 -0
- unitysvc_py-0.2.1/src/unitysvc/_generated/models/preference_value.py +86 -0
- unitysvc_py-0.2.1/src/unitysvc/_generated/models/preferences_public.py +74 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_detail.py +1 -1
- unitysvc_py-0.2.1/src/unitysvc/_generated/models/service_usage_public.py +130 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/usage_event_info.py +35 -10
- unitysvc_py-0.2.0/src/unitysvc/_generated/models/user_public_preference_type_0.py → unitysvc_py-0.2.1/src/unitysvc/_generated/models/usage_event_metrics.py +8 -8
- unitysvc_py-0.2.1/src/unitysvc/_generated/models/usage_metrics.py +46 -0
- unitysvc_py-0.2.1/src/unitysvc/apreferences.py +65 -0
- unitysvc_py-0.2.1/src/unitysvc/commands/preferences.py +175 -0
- unitysvc_py-0.2.1/src/unitysvc/preferences.py +127 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/request_logs.py +1 -2
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1/src/unitysvc_py.egg-info}/PKG-INFO +1 -1
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc_py.egg-info/SOURCES.txt +19 -4
- unitysvc_py-0.2.1/tests/test_check_spec_sync.py +101 -0
- unitysvc_py-0.2.1/tests/test_preferences.py +167 -0
- unitysvc_py-0.2.1/tests/test_preferences_cli.py +178 -0
- unitysvc_py-0.2.0/src/unitysvc/_generated/api/customer/customer_set_preference.py +0 -222
- unitysvc_py-0.2.0/src/unitysvc/_generated/models/user_public.py +0 -122
- unitysvc_py-0.2.0/src/unitysvc/apreferences.py +0 -42
- unitysvc_py-0.2.0/src/unitysvc/commands/preferences.py +0 -131
- unitysvc_py-0.2.0/src/unitysvc/preferences.py +0 -78
- unitysvc_py-0.2.0/tests/test_preferences.py +0 -123
- unitysvc_py-0.2.0/tests/test_preferences_cli.py +0 -130
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/LICENSE +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/README.md +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/setup.cfg +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/__init__.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_experimental.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/__init__.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/__init__.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer/__init__.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer/customer_cancel_enrollment.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer/customer_download_account_file.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer/customer_enroll.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer/customer_get_enrollment.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer/customer_get_request_log.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer/customer_list_account_files.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer/customer_list_enrollments.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer/customer_list_request_logs.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer/customer_upload_account_file.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_aliases/__init__.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_aliases/customer_aliases_create_alias.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_aliases/customer_aliases_delete_alias.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_aliases/customer_aliases_get_alias.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_aliases/customer_aliases_list_aliases.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_aliases/customer_aliases_switch_alias_routing.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_aliases/customer_aliases_update_alias.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_broadcasts/__init__.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_broadcasts/customer_broadcasts_add_target.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_broadcasts/customer_broadcasts_create_broadcast.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_broadcasts/customer_broadcasts_delete_broadcast.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_broadcasts/customer_broadcasts_get_broadcast.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_broadcasts/customer_broadcasts_list_broadcasts.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_broadcasts/customer_broadcasts_remove_target.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_broadcasts/customer_broadcasts_replace_targets.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_chains/__init__.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_chains/customer_chains_add_step.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_chains/customer_chains_create_chain.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_chains/customer_chains_delete_chain.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_chains/customer_chains_get_chain.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_chains/customer_chains_list_chains.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_chains/customer_chains_remove_step.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_chains/customer_chains_replace_steps.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_chains/customer_chains_update_chain.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_chains/customer_chains_update_step.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_groups/__init__.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_groups/customer_groups_add_member.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_groups/customer_groups_create_customer_group.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_groups/customer_groups_delete_customer_group.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_groups/customer_groups_get_group.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_groups/customer_groups_list_groups.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_groups/customer_groups_list_members.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_groups/customer_groups_remove_member.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_groups/customer_groups_update_customer_group.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_recurrent_requests/__init__.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_recurrent_requests/customer_recurrent_requests_create_recurrent_request.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_recurrent_requests/customer_recurrent_requests_get_recurrent_request.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_recurrent_requests/customer_recurrent_requests_list_recurrent_requests.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_recurrent_requests/customer_recurrent_requests_remove_recurrent_request.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_recurrent_requests/customer_recurrent_requests_trigger_recurrent_request.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_recurrent_requests/customer_recurrent_requests_update_recurrent_request.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_resolve/__init__.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_resolve/customer_resolve_resolve_route.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_secrets/__init__.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_secrets/customer_secrets_delete_secret.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_secrets/customer_secrets_get_secret.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_secrets/customer_secrets_list_secrets.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_secrets/customer_secrets_set_secret.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_services/__init__.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_services/customer_services_get_service_document.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_services/customer_services_get_service_usage.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_services/customer_services_list_customer_group_membership.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_services/customer_services_list_service_documents.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_services/customer_services_list_service_interfaces.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/api/customer_services/customer_services_set_customer_group_membership.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/client.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/errors.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/access_interface.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/access_interface_plan.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/access_interface_plan_routing_key_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/access_plan.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/access_plan_enrollment_mode.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/account_file_download_response.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/account_file_download_response_scope.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/account_file_object.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/account_file_upload_request.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/account_file_upload_request_scope.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/account_file_upload_response.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/account_file_upload_response_scope.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/account_files_list_response.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/account_files_list_response_scope.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/broadcast_create.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/broadcast_create_mode.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/broadcast_public.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/broadcast_public_details_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/broadcast_public_mode.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/broadcast_target_create.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/broadcast_target_create_routing_key_override_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/broadcast_target_public.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/broadcast_target_public_routing_key_override_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/broadcast_update.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/broadcast_update_mode_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/broadcasts_public.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/chain_create.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/chain_public.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/chain_public_details_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/chain_step_create.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/chain_step_public.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/chain_step_update.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/chain_update.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/chains_public.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/cursor_page_service_summary.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/customer_download_account_file_scope.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/customer_enrollment.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/customer_enrollment_cancel_response.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/customer_enrollment_create_response.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/customer_enrollment_parameters_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/customer_enrollment_service_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/customer_enrollments_response.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/customer_group_detail.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/customer_group_detail_details_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/customer_group_detail_routing_policy_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/customer_group_list_response.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/customer_group_membership_entry.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/customer_group_membership_response.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/customer_group_membership_update.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/customer_group_view_details_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/customer_list_account_files_scope.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/document_category_enum.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/fields.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/gateway_kind.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/gateway_request_info.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/gateway_request_info_headers_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/group_type_enum.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/http_validation_error.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/message.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/ops_customer_request_log_detail.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/parameter_requirement.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/recurrent_request_create.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/recurrent_request_create_body_template_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/recurrent_request_create_request_headers_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/recurrent_request_public.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/recurrent_request_public_body_template_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/recurrent_request_public_request_headers_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/recurrent_request_public_schedule_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/recurrent_request_public_state_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/recurrent_request_status_enum.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/recurrent_request_update.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/recurrent_request_update_body_template_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/recurrent_request_update_request_headers_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/recurrent_request_update_schedule_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/recurrent_requests_public.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/request_log_detail.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/request_log_list_item.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/request_log_list_response.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/resolve_candidate.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/resolve_request.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/resolve_request_routing_key_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/resolve_response.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/resolve_response_routing_strategy_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/routing_endpoint_plan.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/routing_endpoint_plan_routing_key_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/sanitized_error_info.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/secret_owner_type_enum.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/secret_public.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/secret_requirement.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/secret_update.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/secrets_public.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_alias_create.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_alias_create_request_routing_key_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_alias_create_routing_key_override_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_alias_public.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_alias_public_details_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_alias_public_request_routing_key_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_alias_public_routing_key_override_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_alias_update.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_alias_update_request_routing_key_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_alias_update_routing_key_override_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_aliases_public.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_collection_create.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_collection_member_create.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_collection_member_create_routing_key_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_collection_member_public.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_collection_member_public_routing_key_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_collection_public.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_collection_update.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_detail_list_price_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_document_detail.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_document_detail_meta_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_documents_response.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_enrollment_create.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_enrollment_create_parameters_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_enrollment_create_recurrence_schedule_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_enrollment_status_enum.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/service_summary.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/switch_routing_response.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/upstream_response_info.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/upstream_response_info_headers_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/user_request_info.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/user_request_info_headers_type_0.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/models/validation_error.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_generated/types.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_http.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_plugins.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_streaming.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/_wrappers.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/aaliases.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/abroadcasts.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/achains.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/aclient.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/aenrollments.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/afiles.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/agroups.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/aliases.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/arecurrent_requests.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/arequest_logs.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/aresolve.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/asecrets.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/aservices.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/broadcasts.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/chains.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/cli.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/client.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/commands/__init__.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/commands/_helpers.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/commands/aliases.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/commands/enrollments.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/commands/files.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/commands/groups.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/commands/recurrent_requests.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/commands/resolve.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/commands/secrets.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/commands/services.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/enrollments.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/exceptions.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/files.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/groups.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/py.typed +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/recurrent_requests.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/resolve.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/secrets.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc/services.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc_py.egg-info/dependency_links.txt +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc_py.egg-info/entry_points.txt +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc_py.egg-info/requires.txt +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/src/unitysvc_py.egg-info/top_level.txt +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/tests/test_anonymous.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/tests/test_broadcasts.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/tests/test_chains.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/tests/test_cli.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/tests/test_client.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/tests/test_experimental.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/tests/test_files.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/tests/test_generated_owner_scoped_models.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/tests/test_generated_secret_public.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/tests/test_groups.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/tests/test_http.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/tests/test_plugins.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/tests/test_secrets_cli.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/tests/test_service_usage.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/tests/test_streaming.py +0 -0
- {unitysvc_py-0.2.0 → unitysvc_py-0.2.1}/tests/test_wrappers.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "unitysvc-py"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.1"
|
|
8
8
|
description = "Customer-facing Python SDK and `usvc` CLI for UnitySVC"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [{ name = "Bo Peng", email = "bo.peng@unitysvc.com" }]
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from http import HTTPStatus
|
|
3
|
+
from typing import Any, cast
|
|
4
|
+
from urllib.parse import quote
|
|
5
|
+
|
|
6
|
+
import httpx
|
|
7
|
+
from dateutil.parser import isoparse
|
|
8
|
+
|
|
9
|
+
from ... import errors
|
|
10
|
+
from ...client import AuthenticatedClient, Client
|
|
11
|
+
from ...models.cycle_usage_response import CycleUsageResponse
|
|
12
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
13
|
+
from ...types import UNSET, Response, Unset
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def _get_kwargs(
|
|
17
|
+
*,
|
|
18
|
+
cycle_start: datetime.date | None | Unset = UNSET,
|
|
19
|
+
authorization: None | str | Unset = UNSET,
|
|
20
|
+
x_role_id: None | str | Unset = UNSET,
|
|
21
|
+
) -> dict[str, Any]:
|
|
22
|
+
headers: dict[str, Any] = {}
|
|
23
|
+
if not isinstance(authorization, Unset):
|
|
24
|
+
headers["authorization"] = authorization
|
|
25
|
+
|
|
26
|
+
if not isinstance(x_role_id, Unset):
|
|
27
|
+
headers["x-role-id"] = x_role_id
|
|
28
|
+
|
|
29
|
+
params: dict[str, Any] = {}
|
|
30
|
+
|
|
31
|
+
json_cycle_start: None | str | Unset
|
|
32
|
+
if isinstance(cycle_start, Unset):
|
|
33
|
+
json_cycle_start = UNSET
|
|
34
|
+
elif isinstance(cycle_start, datetime.date):
|
|
35
|
+
json_cycle_start = cycle_start.isoformat()
|
|
36
|
+
else:
|
|
37
|
+
json_cycle_start = cycle_start
|
|
38
|
+
params["cycle_start"] = json_cycle_start
|
|
39
|
+
|
|
40
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
41
|
+
|
|
42
|
+
_kwargs: dict[str, Any] = {
|
|
43
|
+
"method": "get",
|
|
44
|
+
"url": "/usage/cycle",
|
|
45
|
+
"params": params,
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
_kwargs["headers"] = headers
|
|
49
|
+
return _kwargs
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def _parse_response(
|
|
53
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
54
|
+
) -> CycleUsageResponse | HTTPValidationError | None:
|
|
55
|
+
if response.status_code == 200:
|
|
56
|
+
response_200 = CycleUsageResponse.from_dict(response.json())
|
|
57
|
+
|
|
58
|
+
return response_200
|
|
59
|
+
|
|
60
|
+
if response.status_code == 422:
|
|
61
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
62
|
+
|
|
63
|
+
return response_422
|
|
64
|
+
|
|
65
|
+
if client.raise_on_unexpected_status:
|
|
66
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
67
|
+
else:
|
|
68
|
+
return None
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def _build_response(
|
|
72
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
73
|
+
) -> Response[CycleUsageResponse | HTTPValidationError]:
|
|
74
|
+
return Response(
|
|
75
|
+
status_code=HTTPStatus(response.status_code),
|
|
76
|
+
content=response.content,
|
|
77
|
+
headers=response.headers,
|
|
78
|
+
parsed=_parse_response(client=client, response=response),
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def sync_detailed(
|
|
83
|
+
*,
|
|
84
|
+
client: AuthenticatedClient | Client,
|
|
85
|
+
cycle_start: datetime.date | None | Unset = UNSET,
|
|
86
|
+
authorization: None | str | Unset = UNSET,
|
|
87
|
+
x_role_id: None | str | Unset = UNSET,
|
|
88
|
+
) -> Response[CycleUsageResponse | HTTPValidationError]:
|
|
89
|
+
"""Cycle-to-date usage and cost
|
|
90
|
+
|
|
91
|
+
Per-service usage and cost for the current billing cycle, plus every plan-level meter (request
|
|
92
|
+
logging, log storage, data transfer) with its included quota. Defaults to the current cycle; pass
|
|
93
|
+
cycle_start to read an earlier one.
|
|
94
|
+
|
|
95
|
+
Args:
|
|
96
|
+
cycle_start (datetime.date | None | Unset): First day of the cycle to report. Defaults to
|
|
97
|
+
the customer's current wallet cycle.
|
|
98
|
+
authorization (None | str | Unset):
|
|
99
|
+
x_role_id (None | str | Unset):
|
|
100
|
+
|
|
101
|
+
Raises:
|
|
102
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
103
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
104
|
+
|
|
105
|
+
Returns:
|
|
106
|
+
Response[CycleUsageResponse | HTTPValidationError]
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
kwargs = _get_kwargs(
|
|
110
|
+
cycle_start=cycle_start,
|
|
111
|
+
authorization=authorization,
|
|
112
|
+
x_role_id=x_role_id,
|
|
113
|
+
)
|
|
114
|
+
|
|
115
|
+
response = client.get_httpx_client().request(
|
|
116
|
+
**kwargs,
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
return _build_response(client=client, response=response)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
def sync(
|
|
123
|
+
*,
|
|
124
|
+
client: AuthenticatedClient | Client,
|
|
125
|
+
cycle_start: datetime.date | None | Unset = UNSET,
|
|
126
|
+
authorization: None | str | Unset = UNSET,
|
|
127
|
+
x_role_id: None | str | Unset = UNSET,
|
|
128
|
+
) -> CycleUsageResponse | HTTPValidationError | None:
|
|
129
|
+
"""Cycle-to-date usage and cost
|
|
130
|
+
|
|
131
|
+
Per-service usage and cost for the current billing cycle, plus every plan-level meter (request
|
|
132
|
+
logging, log storage, data transfer) with its included quota. Defaults to the current cycle; pass
|
|
133
|
+
cycle_start to read an earlier one.
|
|
134
|
+
|
|
135
|
+
Args:
|
|
136
|
+
cycle_start (datetime.date | None | Unset): First day of the cycle to report. Defaults to
|
|
137
|
+
the customer's current wallet cycle.
|
|
138
|
+
authorization (None | str | Unset):
|
|
139
|
+
x_role_id (None | str | Unset):
|
|
140
|
+
|
|
141
|
+
Raises:
|
|
142
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
143
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
144
|
+
|
|
145
|
+
Returns:
|
|
146
|
+
CycleUsageResponse | HTTPValidationError
|
|
147
|
+
"""
|
|
148
|
+
|
|
149
|
+
return sync_detailed(
|
|
150
|
+
client=client,
|
|
151
|
+
cycle_start=cycle_start,
|
|
152
|
+
authorization=authorization,
|
|
153
|
+
x_role_id=x_role_id,
|
|
154
|
+
).parsed
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
async def asyncio_detailed(
|
|
158
|
+
*,
|
|
159
|
+
client: AuthenticatedClient | Client,
|
|
160
|
+
cycle_start: datetime.date | None | Unset = UNSET,
|
|
161
|
+
authorization: None | str | Unset = UNSET,
|
|
162
|
+
x_role_id: None | str | Unset = UNSET,
|
|
163
|
+
) -> Response[CycleUsageResponse | HTTPValidationError]:
|
|
164
|
+
"""Cycle-to-date usage and cost
|
|
165
|
+
|
|
166
|
+
Per-service usage and cost for the current billing cycle, plus every plan-level meter (request
|
|
167
|
+
logging, log storage, data transfer) with its included quota. Defaults to the current cycle; pass
|
|
168
|
+
cycle_start to read an earlier one.
|
|
169
|
+
|
|
170
|
+
Args:
|
|
171
|
+
cycle_start (datetime.date | None | Unset): First day of the cycle to report. Defaults to
|
|
172
|
+
the customer's current wallet cycle.
|
|
173
|
+
authorization (None | str | Unset):
|
|
174
|
+
x_role_id (None | str | Unset):
|
|
175
|
+
|
|
176
|
+
Raises:
|
|
177
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
178
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
179
|
+
|
|
180
|
+
Returns:
|
|
181
|
+
Response[CycleUsageResponse | HTTPValidationError]
|
|
182
|
+
"""
|
|
183
|
+
|
|
184
|
+
kwargs = _get_kwargs(
|
|
185
|
+
cycle_start=cycle_start,
|
|
186
|
+
authorization=authorization,
|
|
187
|
+
x_role_id=x_role_id,
|
|
188
|
+
)
|
|
189
|
+
|
|
190
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
191
|
+
|
|
192
|
+
return _build_response(client=client, response=response)
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
async def asyncio(
|
|
196
|
+
*,
|
|
197
|
+
client: AuthenticatedClient | Client,
|
|
198
|
+
cycle_start: datetime.date | None | Unset = UNSET,
|
|
199
|
+
authorization: None | str | Unset = UNSET,
|
|
200
|
+
x_role_id: None | str | Unset = UNSET,
|
|
201
|
+
) -> CycleUsageResponse | HTTPValidationError | None:
|
|
202
|
+
"""Cycle-to-date usage and cost
|
|
203
|
+
|
|
204
|
+
Per-service usage and cost for the current billing cycle, plus every plan-level meter (request
|
|
205
|
+
logging, log storage, data transfer) with its included quota. Defaults to the current cycle; pass
|
|
206
|
+
cycle_start to read an earlier one.
|
|
207
|
+
|
|
208
|
+
Args:
|
|
209
|
+
cycle_start (datetime.date | None | Unset): First day of the cycle to report. Defaults to
|
|
210
|
+
the customer's current wallet cycle.
|
|
211
|
+
authorization (None | str | Unset):
|
|
212
|
+
x_role_id (None | str | Unset):
|
|
213
|
+
|
|
214
|
+
Raises:
|
|
215
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
216
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
217
|
+
|
|
218
|
+
Returns:
|
|
219
|
+
CycleUsageResponse | HTTPValidationError
|
|
220
|
+
"""
|
|
221
|
+
|
|
222
|
+
return (
|
|
223
|
+
await asyncio_detailed(
|
|
224
|
+
client=client,
|
|
225
|
+
cycle_start=cycle_start,
|
|
226
|
+
authorization=authorization,
|
|
227
|
+
x_role_id=x_role_id,
|
|
228
|
+
)
|
|
229
|
+
).parsed
|
|
@@ -80,12 +80,13 @@ def sync_detailed(
|
|
|
80
80
|
authorization: None | str | Unset = UNSET,
|
|
81
81
|
x_role_id: None | str | Unset = UNSET,
|
|
82
82
|
) -> Response[BroadcastPublic | HTTPValidationError]:
|
|
83
|
-
|
|
83
|
+
"""Update Broadcast
|
|
84
84
|
|
|
85
|
-
Update a broadcast's config (timeout, enabled, description).
|
|
85
|
+
Update a broadcast's config (mode, timeout, enabled, description).
|
|
86
86
|
|
|
87
|
-
``mode``
|
|
88
|
-
|
|
87
|
+
Switching ``mode`` takes effect on the next ``/b/<name>`` call: ``sync``
|
|
88
|
+
blocks for the aggregated envelope, ``async`` returns ``202`` + per-target
|
|
89
|
+
task ids (#1553).
|
|
89
90
|
|
|
90
91
|
Args:
|
|
91
92
|
broadcast_id (UUID):
|
|
@@ -123,12 +124,13 @@ def sync(
|
|
|
123
124
|
authorization: None | str | Unset = UNSET,
|
|
124
125
|
x_role_id: None | str | Unset = UNSET,
|
|
125
126
|
) -> BroadcastPublic | HTTPValidationError | None:
|
|
126
|
-
|
|
127
|
+
"""Update Broadcast
|
|
127
128
|
|
|
128
|
-
Update a broadcast's config (timeout, enabled, description).
|
|
129
|
+
Update a broadcast's config (mode, timeout, enabled, description).
|
|
129
130
|
|
|
130
|
-
``mode``
|
|
131
|
-
|
|
131
|
+
Switching ``mode`` takes effect on the next ``/b/<name>`` call: ``sync``
|
|
132
|
+
blocks for the aggregated envelope, ``async`` returns ``202`` + per-target
|
|
133
|
+
task ids (#1553).
|
|
132
134
|
|
|
133
135
|
Args:
|
|
134
136
|
broadcast_id (UUID):
|
|
@@ -161,12 +163,13 @@ async def asyncio_detailed(
|
|
|
161
163
|
authorization: None | str | Unset = UNSET,
|
|
162
164
|
x_role_id: None | str | Unset = UNSET,
|
|
163
165
|
) -> Response[BroadcastPublic | HTTPValidationError]:
|
|
164
|
-
|
|
166
|
+
"""Update Broadcast
|
|
165
167
|
|
|
166
|
-
Update a broadcast's config (timeout, enabled, description).
|
|
168
|
+
Update a broadcast's config (mode, timeout, enabled, description).
|
|
167
169
|
|
|
168
|
-
``mode``
|
|
169
|
-
|
|
170
|
+
Switching ``mode`` takes effect on the next ``/b/<name>`` call: ``sync``
|
|
171
|
+
blocks for the aggregated envelope, ``async`` returns ``202`` + per-target
|
|
172
|
+
task ids (#1553).
|
|
170
173
|
|
|
171
174
|
Args:
|
|
172
175
|
broadcast_id (UUID):
|
|
@@ -202,12 +205,13 @@ async def asyncio(
|
|
|
202
205
|
authorization: None | str | Unset = UNSET,
|
|
203
206
|
x_role_id: None | str | Unset = UNSET,
|
|
204
207
|
) -> BroadcastPublic | HTTPValidationError | None:
|
|
205
|
-
|
|
208
|
+
"""Update Broadcast
|
|
206
209
|
|
|
207
|
-
Update a broadcast's config (timeout, enabled, description).
|
|
210
|
+
Update a broadcast's config (mode, timeout, enabled, description).
|
|
208
211
|
|
|
209
|
-
``mode``
|
|
210
|
-
|
|
212
|
+
Switching ``mode`` takes effect on the next ``/b/<name>`` call: ``sync``
|
|
213
|
+
blocks for the aggregated envelope, ``async`` returns ``202`` + per-target
|
|
214
|
+
task ids (#1553).
|
|
211
215
|
|
|
212
216
|
Args:
|
|
213
217
|
broadcast_id (UUID):
|
|
@@ -106,9 +106,8 @@ def sync_detailed(
|
|
|
106
106
|
The group is addressable by id or name; both are returned in the
|
|
107
107
|
group detail shape. Names stay valid across admin recreations of a
|
|
108
108
|
group, so SDK scripts that use the name keep working.
|
|
109
|
-
|
|
110
|
-
``
|
|
111
|
-
callers: service must be ``status='active'`` and
|
|
109
|
+
Matches the public catalog visibility rule: service must be
|
|
110
|
+
``status='active'`` and
|
|
112
111
|
``visibility='public'``. The group itself must be in the
|
|
113
112
|
customer-visible set (active + platform + non-empty).
|
|
114
113
|
|
|
@@ -172,9 +171,8 @@ def sync(
|
|
|
172
171
|
The group is addressable by id or name; both are returned in the
|
|
173
172
|
group detail shape. Names stay valid across admin recreations of a
|
|
174
173
|
group, so SDK scripts that use the name keep working.
|
|
175
|
-
|
|
176
|
-
``
|
|
177
|
-
callers: service must be ``status='active'`` and
|
|
174
|
+
Matches the public catalog visibility rule: service must be
|
|
175
|
+
``status='active'`` and
|
|
178
176
|
``visibility='public'``. The group itself must be in the
|
|
179
177
|
customer-visible set (active + platform + non-empty).
|
|
180
178
|
|
|
@@ -233,9 +231,8 @@ async def asyncio_detailed(
|
|
|
233
231
|
The group is addressable by id or name; both are returned in the
|
|
234
232
|
group detail shape. Names stay valid across admin recreations of a
|
|
235
233
|
group, so SDK scripts that use the name keep working.
|
|
236
|
-
|
|
237
|
-
``
|
|
238
|
-
callers: service must be ``status='active'`` and
|
|
234
|
+
Matches the public catalog visibility rule: service must be
|
|
235
|
+
``status='active'`` and
|
|
239
236
|
``visibility='public'``. The group itself must be in the
|
|
240
237
|
customer-visible set (active + platform + non-empty).
|
|
241
238
|
|
|
@@ -297,9 +294,8 @@ async def asyncio(
|
|
|
297
294
|
The group is addressable by id or name; both are returned in the
|
|
298
295
|
group detail shape. Names stay valid across admin recreations of a
|
|
299
296
|
group, so SDK scripts that use the name keep working.
|
|
300
|
-
|
|
301
|
-
``
|
|
302
|
-
callers: service must be ``status='active'`` and
|
|
297
|
+
Matches the public catalog visibility rule: service must be
|
|
298
|
+
``status='active'`` and
|
|
303
299
|
``visibility='public'``. The group itself must be in the
|
|
304
300
|
customer-visible set (active + platform + non-empty).
|
|
305
301
|
|
|
@@ -77,14 +77,11 @@ def sync_detailed(
|
|
|
77
77
|
|
|
78
78
|
Get details of a single service in the public catalog.
|
|
79
79
|
|
|
80
|
-
Hot path:
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
rendering after a service has been deprecated (the service still
|
|
86
|
-
exists in the base tables; only the mview filters it out). See
|
|
87
|
-
unitysvc#1027.
|
|
80
|
+
Hot path: the active + public row. Cold path: the same query at
|
|
81
|
+
``status = 'deprecated'``, so statement / invoice back-reference URLs
|
|
82
|
+
keep rendering after a service has been deprecated — see unitysvc#1027,
|
|
83
|
+
which added the fallback back when ``service_mview`` was the hot path
|
|
84
|
+
and excluded deprecated rows. Both paths read the base tables now.
|
|
88
85
|
|
|
89
86
|
Returns 404 for non-public services, or for statuses other than
|
|
90
87
|
``active`` / ``deprecated`` — the visible set is intentionally
|
|
@@ -96,6 +93,13 @@ def sync_detailed(
|
|
|
96
93
|
caller sees exactly what an authenticated customer sees — caller
|
|
97
94
|
identity was never used for scoping here.
|
|
98
95
|
|
|
96
|
+
Cacheable, but only with revalidation: ``no-cache`` plus an ``ETag``.
|
|
97
|
+
The catalog row fetches this on expand for the full description
|
|
98
|
+
(unitysvc#2632), so a browser or the edge may keep a copy, but every
|
|
99
|
+
reuse comes back here and re-runs the live visibility gate, so a service
|
|
100
|
+
made private or suspended stops being served at once (#1952). An
|
|
101
|
+
unchanged service costs a 304, not the body.
|
|
102
|
+
|
|
99
103
|
Args:
|
|
100
104
|
service_id (UUID):
|
|
101
105
|
authorization (None | str | Unset):
|
|
@@ -133,14 +137,11 @@ def sync(
|
|
|
133
137
|
|
|
134
138
|
Get details of a single service in the public catalog.
|
|
135
139
|
|
|
136
|
-
Hot path:
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
rendering after a service has been deprecated (the service still
|
|
142
|
-
exists in the base tables; only the mview filters it out). See
|
|
143
|
-
unitysvc#1027.
|
|
140
|
+
Hot path: the active + public row. Cold path: the same query at
|
|
141
|
+
``status = 'deprecated'``, so statement / invoice back-reference URLs
|
|
142
|
+
keep rendering after a service has been deprecated — see unitysvc#1027,
|
|
143
|
+
which added the fallback back when ``service_mview`` was the hot path
|
|
144
|
+
and excluded deprecated rows. Both paths read the base tables now.
|
|
144
145
|
|
|
145
146
|
Returns 404 for non-public services, or for statuses other than
|
|
146
147
|
``active`` / ``deprecated`` — the visible set is intentionally
|
|
@@ -152,6 +153,13 @@ def sync(
|
|
|
152
153
|
caller sees exactly what an authenticated customer sees — caller
|
|
153
154
|
identity was never used for scoping here.
|
|
154
155
|
|
|
156
|
+
Cacheable, but only with revalidation: ``no-cache`` plus an ``ETag``.
|
|
157
|
+
The catalog row fetches this on expand for the full description
|
|
158
|
+
(unitysvc#2632), so a browser or the edge may keep a copy, but every
|
|
159
|
+
reuse comes back here and re-runs the live visibility gate, so a service
|
|
160
|
+
made private or suspended stops being served at once (#1952). An
|
|
161
|
+
unchanged service costs a 304, not the body.
|
|
162
|
+
|
|
155
163
|
Args:
|
|
156
164
|
service_id (UUID):
|
|
157
165
|
authorization (None | str | Unset):
|
|
@@ -184,14 +192,11 @@ async def asyncio_detailed(
|
|
|
184
192
|
|
|
185
193
|
Get details of a single service in the public catalog.
|
|
186
194
|
|
|
187
|
-
Hot path:
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
rendering after a service has been deprecated (the service still
|
|
193
|
-
exists in the base tables; only the mview filters it out). See
|
|
194
|
-
unitysvc#1027.
|
|
195
|
+
Hot path: the active + public row. Cold path: the same query at
|
|
196
|
+
``status = 'deprecated'``, so statement / invoice back-reference URLs
|
|
197
|
+
keep rendering after a service has been deprecated — see unitysvc#1027,
|
|
198
|
+
which added the fallback back when ``service_mview`` was the hot path
|
|
199
|
+
and excluded deprecated rows. Both paths read the base tables now.
|
|
195
200
|
|
|
196
201
|
Returns 404 for non-public services, or for statuses other than
|
|
197
202
|
``active`` / ``deprecated`` — the visible set is intentionally
|
|
@@ -203,6 +208,13 @@ async def asyncio_detailed(
|
|
|
203
208
|
caller sees exactly what an authenticated customer sees — caller
|
|
204
209
|
identity was never used for scoping here.
|
|
205
210
|
|
|
211
|
+
Cacheable, but only with revalidation: ``no-cache`` plus an ``ETag``.
|
|
212
|
+
The catalog row fetches this on expand for the full description
|
|
213
|
+
(unitysvc#2632), so a browser or the edge may keep a copy, but every
|
|
214
|
+
reuse comes back here and re-runs the live visibility gate, so a service
|
|
215
|
+
made private or suspended stops being served at once (#1952). An
|
|
216
|
+
unchanged service costs a 304, not the body.
|
|
217
|
+
|
|
206
218
|
Args:
|
|
207
219
|
service_id (UUID):
|
|
208
220
|
authorization (None | str | Unset):
|
|
@@ -238,14 +250,11 @@ async def asyncio(
|
|
|
238
250
|
|
|
239
251
|
Get details of a single service in the public catalog.
|
|
240
252
|
|
|
241
|
-
Hot path:
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
rendering after a service has been deprecated (the service still
|
|
247
|
-
exists in the base tables; only the mview filters it out). See
|
|
248
|
-
unitysvc#1027.
|
|
253
|
+
Hot path: the active + public row. Cold path: the same query at
|
|
254
|
+
``status = 'deprecated'``, so statement / invoice back-reference URLs
|
|
255
|
+
keep rendering after a service has been deprecated — see unitysvc#1027,
|
|
256
|
+
which added the fallback back when ``service_mview`` was the hot path
|
|
257
|
+
and excluded deprecated rows. Both paths read the base tables now.
|
|
249
258
|
|
|
250
259
|
Returns 404 for non-public services, or for statuses other than
|
|
251
260
|
``active`` / ``deprecated`` — the visible set is intentionally
|
|
@@ -257,6 +266,13 @@ async def asyncio(
|
|
|
257
266
|
caller sees exactly what an authenticated customer sees — caller
|
|
258
267
|
identity was never used for scoping here.
|
|
259
268
|
|
|
269
|
+
Cacheable, but only with revalidation: ``no-cache`` plus an ``ETag``.
|
|
270
|
+
The catalog row fetches this on expand for the full description
|
|
271
|
+
(unitysvc#2632), so a browser or the edge may keep a copy, but every
|
|
272
|
+
reuse comes back here and re-runs the live visibility gate, so a service
|
|
273
|
+
made private or suspended stops being served at once (#1952). An
|
|
274
|
+
unchanged service costs a 304, not the body.
|
|
275
|
+
|
|
260
276
|
Args:
|
|
261
277
|
service_id (UUID):
|
|
262
278
|
authorization (None | str | Unset):
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Contains endpoint functions for accessing the API"""
|