From e4ff4abf781b32ef6e266abd4819ce13cf826faf Mon Sep 17 00:00:00 2001 From: Tobia Zanarella Date: Thu, 1 Oct 2026 14:59:30 +0200 Subject: [PATCH 1/2] Regenerate the client from the updated specification - per_page defaults to 15 instead of 20 in the 56 list operations, as in the API. - list_active_monitoring_products and list_private_cloud_sv_products return ServicePaginatedListResponse, list_cloud_vps_products and list_dedicated_server_products the new ServiceServerPaginatedListResponse, with PaginationMeta as meta. - ServiceListResponse, ServiceServerListResponse and their MetaType0 models are removed: an incompatible change. Co-Authored-By: Claude Opus 5.5 --- spec/openapi.yaml | 195 ++++++++---------- .../client/api/account/list_sub_accounts.py | 18 +- .../client/api/billing/list_credit_notes.py | 18 +- .../client/api/billing/list_invoices.py | 18 +- .../api/domains/list_domain_dns_records.py | 18 +- .../client/api/domains/list_domains.py | 18 +- .../list_hosting_allow_list_entries.py | 18 +- .../list_hosting_antivirus_removal_scans.py | 18 +- .../hosting/list_hosting_antivirus_scans.py | 18 +- .../list_hosting_block_list_entries.py | 18 +- .../api/hosting/list_hosting_cronjobs.py | 18 +- .../list_hosting_mod_security_scans.py | 18 +- .../client/api/hosting/list_hostings.py | 18 +- .../api/license_/list_cpanel_licenses.py | 18 +- .../list_microsoft_365_subscriptions.py | 18 +- .../license_/list_microsoft_365_tenants.py | 18 +- .../api/license_/list_plesk_licenses.py | 18 +- .../license_/list_secure_mail_mailboxes.py | 18 +- .../client/api/license_/list_secure_mails.py | 18 +- .../api/monitoring/list_server_monitorings.py | 18 +- .../api/monitoring/list_web_monitorings.py | 18 +- .../client/api/payment/list_one_clicks.py | 18 +- .../client/api/payment/list_payments.py | 18 +- .../payment/list_prepaid_credit_operations.py | 18 +- .../api/payment/list_prepaid_credit_topups.py | 18 +- .../api/pec/list_pec_domain_owner_changes.py | 18 +- .../client/api/pec/list_pec_domains.py | 18 +- .../api/pec/list_pec_mailbox_owner_changes.py | 18 +- .../client/api/pec/list_pec_mailboxes.py | 18 +- .../client/api/purchases/list_purchases.py | 18 +- .../client/api/purchases/list_tasks.py | 18 +- .../api/server/list_server_snapshots.py | 18 +- .../client/api/server/list_servers.py | 18 +- .../shop/list_active_monitoring_products.py | 42 ++-- .../api/shop/list_cloud_storage_products.py | 18 +- .../api/shop/list_cloud_vps_products.py | 42 ++-- .../api/shop/list_cpanel_license_products.py | 18 +- .../shop/list_dedicated_server_products.py | 42 ++-- .../api/shop/list_microsoft_365_products.py | 18 +- .../client/api/shop/list_orders.py | 18 +- .../client/api/shop/list_pec_products.py | 18 +- .../api/shop/list_plesk_license_products.py | 18 +- .../shop/list_private_cloud_sv_products.py | 42 ++-- .../shop/list_shop_microsoft_365_tenants.py | 18 +- .../api/shop/list_sms_topup_products.py | 18 +- .../api/shop/list_ssl_certificate_products.py | 18 +- .../client/api/shop/list_tlds.py | 18 +- src/shellrent_sdk/client/api/sms/list_sms.py | 18 +- .../api/sms/list_sms_phonebook_contacts.py | 18 +- .../client/api/sms/list_sms_phonebooks.py | 18 +- .../client/api/ssl/list_ssl_certificates.py | 18 +- .../storage/list_cloud_storage_accesses.py | 18 +- .../client/api/storage/list_cloud_storages.py | 18 +- ..._object_storage_bucket_firewall_entries.py | 18 +- .../storage/list_object_storage_buckets.py | 18 +- .../storage/list_object_storage_iam_users.py | 18 +- .../api/storage/list_object_storages.py | 18 +- src/shellrent_sdk/client/models/__init__.py | 10 +- .../client/models/service_list_response.py | 120 ----------- .../service_list_response_meta_type_0.py | 45 ---- ...ervice_server_list_response_meta_type_0.py | 45 ---- ...service_server_paginated_list_response.py} | 43 +--- tests/unit/test_client.py | 4 +- 63 files changed, 651 insertions(+), 915 deletions(-) delete mode 100644 src/shellrent_sdk/client/models/service_list_response.py delete mode 100644 src/shellrent_sdk/client/models/service_list_response_meta_type_0.py delete mode 100644 src/shellrent_sdk/client/models/service_server_list_response_meta_type_0.py rename src/shellrent_sdk/client/models/{service_server_list_response.py => service_server_paginated_list_response.py} (61%) diff --git a/spec/openapi.yaml b/spec/openapi.yaml index 75191cd..ce8b45e 100644 --- a/spec/openapi.yaml +++ b/spec/openapi.yaml @@ -154,7 +154,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -542,7 +542,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -1335,7 +1335,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -1824,7 +1824,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -2706,7 +2706,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -2929,7 +2929,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -3151,7 +3151,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -3476,7 +3476,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -4243,7 +4243,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -4406,7 +4406,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -5158,7 +5158,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -5522,7 +5522,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -5578,7 +5578,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -5734,7 +5734,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -5895,7 +5895,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -6067,7 +6067,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -6174,7 +6174,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -6459,7 +6459,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -6733,7 +6733,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -7179,7 +7179,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -7284,7 +7284,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -7394,7 +7394,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -7558,7 +7558,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -7722,7 +7722,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -7887,7 +7887,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -8025,7 +8025,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -8330,7 +8330,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -9184,7 +9184,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -9612,7 +9612,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -10261,7 +10261,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -11739,7 +11739,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -11941,7 +11941,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -12045,7 +12045,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -12149,7 +12149,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -12253,7 +12253,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -12357,7 +12357,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -12461,7 +12461,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -12525,7 +12525,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -12680,14 +12680,14 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK content: application/json: schema: - $ref: '#/components/schemas/ServiceListResponse' + $ref: '#/components/schemas/ServicePaginatedListResponse' '400': description: Bad request content: @@ -12784,14 +12784,14 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK content: application/json: schema: - $ref: '#/components/schemas/ServiceListResponse' + $ref: '#/components/schemas/ServicePaginatedListResponse' '400': description: Bad request content: @@ -12888,14 +12888,14 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK content: application/json: schema: - $ref: '#/components/schemas/ServiceServerListResponse' + $ref: '#/components/schemas/ServiceServerPaginatedListResponse' '400': description: Bad request content: @@ -12992,14 +12992,14 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK content: application/json: schema: - $ref: '#/components/schemas/ServiceServerListResponse' + $ref: '#/components/schemas/ServiceServerPaginatedListResponse' '400': description: Bad request content: @@ -13365,7 +13365,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -13952,7 +13952,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -14212,7 +14212,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -14490,7 +14490,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -15009,7 +15009,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -15221,7 +15221,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -15438,7 +15438,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -15597,7 +15597,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -15813,7 +15813,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -16203,7 +16203,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -16661,7 +16661,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -16932,7 +16932,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -17125,7 +17125,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -17278,7 +17278,7 @@ paths: required: false schema: type: integer - default: 20 + default: 15 responses: '200': description: OK @@ -25281,29 +25281,6 @@ components: type: - object - 'null' - ServerBackupListResponse: - type: object - required: - - error - - message - - data - - meta - properties: - error: - type: integer - example: 0 - message: - type: - - string - - 'null' - data: - type: array - items: - $ref: '#/components/schemas/ServerBackup' - meta: - type: - - object - - 'null' AccountResponse: type: object required: @@ -27558,6 +27535,29 @@ components: type: - object - 'null' + ServerBackupListResponse: + type: object + required: + - error + - message + - data + - meta + properties: + error: + type: integer + example: 0 + message: + type: + - string + - 'null' + data: + type: array + items: + $ref: '#/components/schemas/ServerBackup' + meta: + type: + - object + - 'null' ServerBackupResponse: type: object required: @@ -27751,30 +27751,7 @@ components: type: - object - 'null' - ServiceListResponse: - type: object - required: - - error - - message - - data - - meta - properties: - error: - type: integer - example: 0 - message: - type: - - string - - 'null' - data: - type: array - items: - $ref: '#/components/schemas/Service' - meta: - type: - - object - - 'null' - ServiceServerListResponse: + ServiceServerPaginatedListResponse: type: object required: - error @@ -27794,9 +27771,7 @@ components: items: $ref: '#/components/schemas/ServiceServer' meta: - type: - - object - - 'null' + $ref: '#/components/schemas/PaginationMeta' SmsPaginatedListResponse: type: object required: diff --git a/src/shellrent_sdk/client/api/account/list_sub_accounts.py b/src/shellrent_sdk/client/api/account/list_sub_accounts.py index cab419d..780fde4 100644 --- a/src/shellrent_sdk/client/api/account/list_sub_accounts.py +++ b/src/shellrent_sdk/client/api/account/list_sub_accounts.py @@ -13,7 +13,7 @@ def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -87,7 +87,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[AccountPaginatedListResponse | ApiError]: """List all sub accounts @@ -95,7 +95,7 @@ def sync_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +121,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> AccountPaginatedListResponse | ApiError | None: """List all sub accounts @@ -129,7 +129,7 @@ def sync( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[AccountPaginatedListResponse | ApiError]: """List all sub accounts @@ -158,7 +158,7 @@ async def asyncio_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +182,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> AccountPaginatedListResponse | ApiError | None: """List all sub accounts @@ -190,7 +190,7 @@ async def asyncio( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/billing/list_credit_notes.py b/src/shellrent_sdk/client/api/billing/list_credit_notes.py index 722907a..c5173f4 100644 --- a/src/shellrent_sdk/client/api/billing/list_credit_notes.py +++ b/src/shellrent_sdk/client/api/billing/list_credit_notes.py @@ -16,7 +16,7 @@ def _get_kwargs( date_emission_from: datetime.date | Unset = UNSET, date_emission_to: datetime.date | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -102,7 +102,7 @@ def sync_detailed( date_emission_from: datetime.date | Unset = UNSET, date_emission_to: datetime.date | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | CreditnotePaginatedListResponse]: """List all Credit notes @@ -112,7 +112,7 @@ def sync_detailed( date_emission_from (datetime.date | Unset): date_emission_to (datetime.date | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -142,7 +142,7 @@ def sync( date_emission_from: datetime.date | Unset = UNSET, date_emission_to: datetime.date | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | CreditnotePaginatedListResponse | None: """List all Credit notes @@ -152,7 +152,7 @@ def sync( date_emission_from (datetime.date | Unset): date_emission_to (datetime.date | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -177,7 +177,7 @@ async def asyncio_detailed( date_emission_from: datetime.date | Unset = UNSET, date_emission_to: datetime.date | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | CreditnotePaginatedListResponse]: """List all Credit notes @@ -187,7 +187,7 @@ async def asyncio_detailed( date_emission_from (datetime.date | Unset): date_emission_to (datetime.date | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -215,7 +215,7 @@ async def asyncio( date_emission_from: datetime.date | Unset = UNSET, date_emission_to: datetime.date | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | CreditnotePaginatedListResponse | None: """List all Credit notes @@ -225,7 +225,7 @@ async def asyncio( date_emission_from (datetime.date | Unset): date_emission_to (datetime.date | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/billing/list_invoices.py b/src/shellrent_sdk/client/api/billing/list_invoices.py index 4247de6..bcd30ba 100644 --- a/src/shellrent_sdk/client/api/billing/list_invoices.py +++ b/src/shellrent_sdk/client/api/billing/list_invoices.py @@ -17,7 +17,7 @@ def _get_kwargs( date_emission_to: datetime.date | Unset = UNSET, payed: bool | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -106,7 +106,7 @@ def sync_detailed( date_emission_to: datetime.date | Unset = UNSET, payed: bool | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | InvoicePaginatedListResponse]: """List all Invoices @@ -117,7 +117,7 @@ def sync_detailed( date_emission_to (datetime.date | Unset): payed (bool | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -149,7 +149,7 @@ def sync( date_emission_to: datetime.date | Unset = UNSET, payed: bool | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | InvoicePaginatedListResponse | None: """List all Invoices @@ -160,7 +160,7 @@ def sync( date_emission_to (datetime.date | Unset): payed (bool | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -187,7 +187,7 @@ async def asyncio_detailed( date_emission_to: datetime.date | Unset = UNSET, payed: bool | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | InvoicePaginatedListResponse]: """List all Invoices @@ -198,7 +198,7 @@ async def asyncio_detailed( date_emission_to (datetime.date | Unset): payed (bool | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -228,7 +228,7 @@ async def asyncio( date_emission_to: datetime.date | Unset = UNSET, payed: bool | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | InvoicePaginatedListResponse | None: """List all Invoices @@ -239,7 +239,7 @@ async def asyncio( date_emission_to (datetime.date | Unset): payed (bool | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/domains/list_domain_dns_records.py b/src/shellrent_sdk/client/api/domains/list_domain_dns_records.py index 965f47d..66728e1 100644 --- a/src/shellrent_sdk/client/api/domains/list_domain_dns_records.py +++ b/src/shellrent_sdk/client/api/domains/list_domain_dns_records.py @@ -18,7 +18,7 @@ def _get_kwargs( host: str | Unset = UNSET, destination: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -104,7 +104,7 @@ def sync_detailed( host: str | Unset = UNSET, destination: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | DnsRecordPaginatedListResponse]: """List DNS records @@ -118,7 +118,7 @@ def sync_detailed( host (str | Unset): destination (str | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -152,7 +152,7 @@ def sync( host: str | Unset = UNSET, destination: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | DnsRecordPaginatedListResponse | None: """List DNS records @@ -166,7 +166,7 @@ def sync( host (str | Unset): destination (str | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -195,7 +195,7 @@ async def asyncio_detailed( host: str | Unset = UNSET, destination: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | DnsRecordPaginatedListResponse]: """List DNS records @@ -209,7 +209,7 @@ async def asyncio_detailed( host (str | Unset): destination (str | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -241,7 +241,7 @@ async def asyncio( host: str | Unset = UNSET, destination: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | DnsRecordPaginatedListResponse | None: """List DNS records @@ -255,7 +255,7 @@ async def asyncio( host (str | Unset): destination (str | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/domains/list_domains.py b/src/shellrent_sdk/client/api/domains/list_domains.py index a77a092..64fc4d2 100644 --- a/src/shellrent_sdk/client/api/domains/list_domains.py +++ b/src/shellrent_sdk/client/api/domains/list_domains.py @@ -17,7 +17,7 @@ def _get_kwargs( tld_id: int | Unset = UNSET, tld_extension: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -103,7 +103,7 @@ def sync_detailed( tld_id: int | Unset = UNSET, tld_extension: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | DomainPaginatedListResponse]: """List domains @@ -115,7 +115,7 @@ def sync_detailed( tld_id (int | Unset): tld_extension (str | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -149,7 +149,7 @@ def sync( tld_id: int | Unset = UNSET, tld_extension: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | DomainPaginatedListResponse | None: """List domains @@ -161,7 +161,7 @@ def sync( tld_id (int | Unset): tld_extension (str | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -190,7 +190,7 @@ async def asyncio_detailed( tld_id: int | Unset = UNSET, tld_extension: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | DomainPaginatedListResponse]: """List domains @@ -202,7 +202,7 @@ async def asyncio_detailed( tld_id (int | Unset): tld_extension (str | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -234,7 +234,7 @@ async def asyncio( tld_id: int | Unset = UNSET, tld_extension: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | DomainPaginatedListResponse | None: """List domains @@ -246,7 +246,7 @@ async def asyncio( tld_id (int | Unset): tld_extension (str | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/hosting/list_hosting_allow_list_entries.py b/src/shellrent_sdk/client/api/hosting/list_hosting_allow_list_entries.py index 7199a78..cb39be8 100644 --- a/src/shellrent_sdk/client/api/hosting/list_hosting_allow_list_entries.py +++ b/src/shellrent_sdk/client/api/hosting/list_hosting_allow_list_entries.py @@ -17,7 +17,7 @@ def _get_kwargs( hosting_id: int, *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -94,7 +94,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | HostingEmailAllowListPaginatedListResponse]: """List hosting allow list @@ -103,7 +103,7 @@ def sync_detailed( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -131,7 +131,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | HostingEmailAllowListPaginatedListResponse | None: """List hosting allow list @@ -140,7 +140,7 @@ def sync( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -163,7 +163,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | HostingEmailAllowListPaginatedListResponse]: """List hosting allow list @@ -172,7 +172,7 @@ async def asyncio_detailed( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -198,7 +198,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | HostingEmailAllowListPaginatedListResponse | None: """List hosting allow list @@ -207,7 +207,7 @@ async def asyncio( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/hosting/list_hosting_antivirus_removal_scans.py b/src/shellrent_sdk/client/api/hosting/list_hosting_antivirus_removal_scans.py index b9963b3..e82c153 100644 --- a/src/shellrent_sdk/client/api/hosting/list_hosting_antivirus_removal_scans.py +++ b/src/shellrent_sdk/client/api/hosting/list_hosting_antivirus_removal_scans.py @@ -17,7 +17,7 @@ def _get_kwargs( hosting_id: int, *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -94,7 +94,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | HostingAntivirusRemovalScanPaginatedListResponse]: """List antivirus removal scans @@ -103,7 +103,7 @@ def sync_detailed( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -131,7 +131,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | HostingAntivirusRemovalScanPaginatedListResponse | None: """List antivirus removal scans @@ -140,7 +140,7 @@ def sync( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -163,7 +163,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | HostingAntivirusRemovalScanPaginatedListResponse]: """List antivirus removal scans @@ -172,7 +172,7 @@ async def asyncio_detailed( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -198,7 +198,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | HostingAntivirusRemovalScanPaginatedListResponse | None: """List antivirus removal scans @@ -207,7 +207,7 @@ async def asyncio( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/hosting/list_hosting_antivirus_scans.py b/src/shellrent_sdk/client/api/hosting/list_hosting_antivirus_scans.py index 0b9c4b5..fce2f45 100644 --- a/src/shellrent_sdk/client/api/hosting/list_hosting_antivirus_scans.py +++ b/src/shellrent_sdk/client/api/hosting/list_hosting_antivirus_scans.py @@ -17,7 +17,7 @@ def _get_kwargs( hosting_id: int, *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -94,7 +94,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | HostingAntivirusScanPaginatedListResponse]: """List antivirus scans @@ -103,7 +103,7 @@ def sync_detailed( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -131,7 +131,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | HostingAntivirusScanPaginatedListResponse | None: """List antivirus scans @@ -140,7 +140,7 @@ def sync( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -163,7 +163,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | HostingAntivirusScanPaginatedListResponse]: """List antivirus scans @@ -172,7 +172,7 @@ async def asyncio_detailed( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -198,7 +198,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | HostingAntivirusScanPaginatedListResponse | None: """List antivirus scans @@ -207,7 +207,7 @@ async def asyncio( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/hosting/list_hosting_block_list_entries.py b/src/shellrent_sdk/client/api/hosting/list_hosting_block_list_entries.py index 2daf0ac..ca23806 100644 --- a/src/shellrent_sdk/client/api/hosting/list_hosting_block_list_entries.py +++ b/src/shellrent_sdk/client/api/hosting/list_hosting_block_list_entries.py @@ -17,7 +17,7 @@ def _get_kwargs( hosting_id: int, *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -94,7 +94,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | HostingEmailBlocListPaginatedListResponse]: """List hosting block list @@ -103,7 +103,7 @@ def sync_detailed( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -131,7 +131,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | HostingEmailBlocListPaginatedListResponse | None: """List hosting block list @@ -140,7 +140,7 @@ def sync( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -163,7 +163,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | HostingEmailBlocListPaginatedListResponse]: """List hosting block list @@ -172,7 +172,7 @@ async def asyncio_detailed( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -198,7 +198,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | HostingEmailBlocListPaginatedListResponse | None: """List hosting block list @@ -207,7 +207,7 @@ async def asyncio( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/hosting/list_hosting_cronjobs.py b/src/shellrent_sdk/client/api/hosting/list_hosting_cronjobs.py index c504f0f..eb24c41 100644 --- a/src/shellrent_sdk/client/api/hosting/list_hosting_cronjobs.py +++ b/src/shellrent_sdk/client/api/hosting/list_hosting_cronjobs.py @@ -15,7 +15,7 @@ def _get_kwargs( hosting_id: int, *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -92,7 +92,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | HostingCronjobPaginatedListResponse]: """List hosting cronjobs @@ -101,7 +101,7 @@ def sync_detailed( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -129,7 +129,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | HostingCronjobPaginatedListResponse | None: """List hosting cronjobs @@ -138,7 +138,7 @@ def sync( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -161,7 +161,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | HostingCronjobPaginatedListResponse]: """List hosting cronjobs @@ -170,7 +170,7 @@ async def asyncio_detailed( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -196,7 +196,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | HostingCronjobPaginatedListResponse | None: """List hosting cronjobs @@ -205,7 +205,7 @@ async def asyncio( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/hosting/list_hosting_mod_security_scans.py b/src/shellrent_sdk/client/api/hosting/list_hosting_mod_security_scans.py index b1eb3dc..492262b 100644 --- a/src/shellrent_sdk/client/api/hosting/list_hosting_mod_security_scans.py +++ b/src/shellrent_sdk/client/api/hosting/list_hosting_mod_security_scans.py @@ -17,7 +17,7 @@ def _get_kwargs( hosting_id: int, *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -94,7 +94,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | HostingModSecurityScanPaginatedListResponse]: """List ModSecurity scans @@ -103,7 +103,7 @@ def sync_detailed( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -131,7 +131,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | HostingModSecurityScanPaginatedListResponse | None: """List ModSecurity scans @@ -140,7 +140,7 @@ def sync( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -163,7 +163,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | HostingModSecurityScanPaginatedListResponse]: """List ModSecurity scans @@ -172,7 +172,7 @@ async def asyncio_detailed( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -198,7 +198,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | HostingModSecurityScanPaginatedListResponse | None: """List ModSecurity scans @@ -207,7 +207,7 @@ async def asyncio( Args: hosting_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/hosting/list_hostings.py b/src/shellrent_sdk/client/api/hosting/list_hostings.py index 2333771..a80e155 100644 --- a/src/shellrent_sdk/client/api/hosting/list_hostings.py +++ b/src/shellrent_sdk/client/api/hosting/list_hostings.py @@ -13,7 +13,7 @@ def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -87,7 +87,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | HostingPaginatedListResponse]: """List all hostings @@ -95,7 +95,7 @@ def sync_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +121,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | HostingPaginatedListResponse | None: """List all hostings @@ -129,7 +129,7 @@ def sync( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | HostingPaginatedListResponse]: """List all hostings @@ -158,7 +158,7 @@ async def asyncio_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +182,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | HostingPaginatedListResponse | None: """List all hostings @@ -190,7 +190,7 @@ async def asyncio( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/license_/list_cpanel_licenses.py b/src/shellrent_sdk/client/api/license_/list_cpanel_licenses.py index ec5fff1..5b3b6da 100644 --- a/src/shellrent_sdk/client/api/license_/list_cpanel_licenses.py +++ b/src/shellrent_sdk/client/api/license_/list_cpanel_licenses.py @@ -13,7 +13,7 @@ def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -87,7 +87,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | CpanelLicensePaginatedListResponse]: """List cPanel licenses @@ -95,7 +95,7 @@ def sync_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +121,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | CpanelLicensePaginatedListResponse | None: """List cPanel licenses @@ -129,7 +129,7 @@ def sync( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | CpanelLicensePaginatedListResponse]: """List cPanel licenses @@ -158,7 +158,7 @@ async def asyncio_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +182,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | CpanelLicensePaginatedListResponse | None: """List cPanel licenses @@ -190,7 +190,7 @@ async def asyncio( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/license_/list_microsoft_365_subscriptions.py b/src/shellrent_sdk/client/api/license_/list_microsoft_365_subscriptions.py index 2b18b3a..04093c7 100644 --- a/src/shellrent_sdk/client/api/license_/list_microsoft_365_subscriptions.py +++ b/src/shellrent_sdk/client/api/license_/list_microsoft_365_subscriptions.py @@ -13,7 +13,7 @@ def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -87,7 +87,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | Microsoft365PaginatedListResponse]: """List Microsoft 365 subscriptions @@ -95,7 +95,7 @@ def sync_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +121,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | Microsoft365PaginatedListResponse | None: """List Microsoft 365 subscriptions @@ -129,7 +129,7 @@ def sync( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | Microsoft365PaginatedListResponse]: """List Microsoft 365 subscriptions @@ -158,7 +158,7 @@ async def asyncio_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +182,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | Microsoft365PaginatedListResponse | None: """List Microsoft 365 subscriptions @@ -190,7 +190,7 @@ async def asyncio( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/license_/list_microsoft_365_tenants.py b/src/shellrent_sdk/client/api/license_/list_microsoft_365_tenants.py index 31f170a..762d9b7 100644 --- a/src/shellrent_sdk/client/api/license_/list_microsoft_365_tenants.py +++ b/src/shellrent_sdk/client/api/license_/list_microsoft_365_tenants.py @@ -15,7 +15,7 @@ def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -89,7 +89,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | Microsoft365TenantPaginatedListResponse]: """List Microsoft 365 tenants @@ -97,7 +97,7 @@ def sync_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -123,7 +123,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | Microsoft365TenantPaginatedListResponse | None: """List Microsoft 365 tenants @@ -131,7 +131,7 @@ def sync( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -152,7 +152,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | Microsoft365TenantPaginatedListResponse]: """List Microsoft 365 tenants @@ -160,7 +160,7 @@ async def asyncio_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -184,7 +184,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | Microsoft365TenantPaginatedListResponse | None: """List Microsoft 365 tenants @@ -192,7 +192,7 @@ async def asyncio( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/license_/list_plesk_licenses.py b/src/shellrent_sdk/client/api/license_/list_plesk_licenses.py index d719572..86df553 100644 --- a/src/shellrent_sdk/client/api/license_/list_plesk_licenses.py +++ b/src/shellrent_sdk/client/api/license_/list_plesk_licenses.py @@ -13,7 +13,7 @@ def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -87,7 +87,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | PleskLicensePaginatedListResponse]: """List Plesk licenses @@ -95,7 +95,7 @@ def sync_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +121,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | PleskLicensePaginatedListResponse | None: """List Plesk licenses @@ -129,7 +129,7 @@ def sync( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | PleskLicensePaginatedListResponse]: """List Plesk licenses @@ -158,7 +158,7 @@ async def asyncio_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +182,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | PleskLicensePaginatedListResponse | None: """List Plesk licenses @@ -190,7 +190,7 @@ async def asyncio( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/license_/list_secure_mail_mailboxes.py b/src/shellrent_sdk/client/api/license_/list_secure_mail_mailboxes.py index 1f3d30a..24e2c34 100644 --- a/src/shellrent_sdk/client/api/license_/list_secure_mail_mailboxes.py +++ b/src/shellrent_sdk/client/api/license_/list_secure_mail_mailboxes.py @@ -17,7 +17,7 @@ def _get_kwargs( securemail_id: int, *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -94,7 +94,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | SecuremailMailboxPaginatedListResponse]: """List SecureMail mailboxes @@ -103,7 +103,7 @@ def sync_detailed( Args: securemail_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -131,7 +131,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | SecuremailMailboxPaginatedListResponse | None: """List SecureMail mailboxes @@ -140,7 +140,7 @@ def sync( Args: securemail_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -163,7 +163,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | SecuremailMailboxPaginatedListResponse]: """List SecureMail mailboxes @@ -172,7 +172,7 @@ async def asyncio_detailed( Args: securemail_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -198,7 +198,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | SecuremailMailboxPaginatedListResponse | None: """List SecureMail mailboxes @@ -207,7 +207,7 @@ async def asyncio( Args: securemail_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/license_/list_secure_mails.py b/src/shellrent_sdk/client/api/license_/list_secure_mails.py index 7fd75ae..e1a145a 100644 --- a/src/shellrent_sdk/client/api/license_/list_secure_mails.py +++ b/src/shellrent_sdk/client/api/license_/list_secure_mails.py @@ -13,7 +13,7 @@ def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -87,7 +87,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | SecuremailPaginatedListResponse]: """List SecureMail subscriptions @@ -95,7 +95,7 @@ def sync_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +121,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | SecuremailPaginatedListResponse | None: """List SecureMail subscriptions @@ -129,7 +129,7 @@ def sync( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | SecuremailPaginatedListResponse]: """List SecureMail subscriptions @@ -158,7 +158,7 @@ async def asyncio_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +182,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | SecuremailPaginatedListResponse | None: """List SecureMail subscriptions @@ -190,7 +190,7 @@ async def asyncio( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/monitoring/list_server_monitorings.py b/src/shellrent_sdk/client/api/monitoring/list_server_monitorings.py index 23f8c86..6621779 100644 --- a/src/shellrent_sdk/client/api/monitoring/list_server_monitorings.py +++ b/src/shellrent_sdk/client/api/monitoring/list_server_monitorings.py @@ -15,7 +15,7 @@ def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -89,7 +89,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ServerMonitoringPaginatedListResponse]: """List server monitorings @@ -97,7 +97,7 @@ def sync_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -123,7 +123,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ServerMonitoringPaginatedListResponse | None: """List server monitorings @@ -131,7 +131,7 @@ def sync( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -152,7 +152,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ServerMonitoringPaginatedListResponse]: """List server monitorings @@ -160,7 +160,7 @@ async def asyncio_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -184,7 +184,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ServerMonitoringPaginatedListResponse | None: """List server monitorings @@ -192,7 +192,7 @@ async def asyncio( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/monitoring/list_web_monitorings.py b/src/shellrent_sdk/client/api/monitoring/list_web_monitorings.py index 996ad77..02f596a 100644 --- a/src/shellrent_sdk/client/api/monitoring/list_web_monitorings.py +++ b/src/shellrent_sdk/client/api/monitoring/list_web_monitorings.py @@ -13,7 +13,7 @@ def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -87,7 +87,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | WebMonitoringPaginatedListResponse]: """List web monitorings @@ -95,7 +95,7 @@ def sync_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +121,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | WebMonitoringPaginatedListResponse | None: """List web monitorings @@ -129,7 +129,7 @@ def sync( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | WebMonitoringPaginatedListResponse]: """List web monitorings @@ -158,7 +158,7 @@ async def asyncio_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +182,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | WebMonitoringPaginatedListResponse | None: """List web monitorings @@ -190,7 +190,7 @@ async def asyncio( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/payment/list_one_clicks.py b/src/shellrent_sdk/client/api/payment/list_one_clicks.py index cc9ee57..75141a9 100644 --- a/src/shellrent_sdk/client/api/payment/list_one_clicks.py +++ b/src/shellrent_sdk/client/api/payment/list_one_clicks.py @@ -17,7 +17,7 @@ def _get_kwargs( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -106,7 +106,7 @@ def sync_detailed( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | OneClickPaginatedListResponse]: """List all One-Clicks @@ -117,7 +117,7 @@ def sync_detailed( date_created_from (datetime.datetime | Unset): date_created_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -149,7 +149,7 @@ def sync( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | OneClickPaginatedListResponse | None: """List all One-Clicks @@ -160,7 +160,7 @@ def sync( date_created_from (datetime.datetime | Unset): date_created_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -187,7 +187,7 @@ async def asyncio_detailed( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | OneClickPaginatedListResponse]: """List all One-Clicks @@ -198,7 +198,7 @@ async def asyncio_detailed( date_created_from (datetime.datetime | Unset): date_created_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -228,7 +228,7 @@ async def asyncio( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | OneClickPaginatedListResponse | None: """List all One-Clicks @@ -239,7 +239,7 @@ async def asyncio( date_created_from (datetime.datetime | Unset): date_created_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/payment/list_payments.py b/src/shellrent_sdk/client/api/payment/list_payments.py index b372cad..5826909 100644 --- a/src/shellrent_sdk/client/api/payment/list_payments.py +++ b/src/shellrent_sdk/client/api/payment/list_payments.py @@ -17,7 +17,7 @@ def _get_kwargs( date_payment_from: datetime.datetime | Unset = UNSET, date_payment_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -106,7 +106,7 @@ def sync_detailed( date_payment_from: datetime.datetime | Unset = UNSET, date_payment_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | PaymentPaginatedListResponse]: """List all Payments @@ -117,7 +117,7 @@ def sync_detailed( date_payment_from (datetime.datetime | Unset): date_payment_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -149,7 +149,7 @@ def sync( date_payment_from: datetime.datetime | Unset = UNSET, date_payment_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | PaymentPaginatedListResponse | None: """List all Payments @@ -160,7 +160,7 @@ def sync( date_payment_from (datetime.datetime | Unset): date_payment_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -187,7 +187,7 @@ async def asyncio_detailed( date_payment_from: datetime.datetime | Unset = UNSET, date_payment_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | PaymentPaginatedListResponse]: """List all Payments @@ -198,7 +198,7 @@ async def asyncio_detailed( date_payment_from (datetime.datetime | Unset): date_payment_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -228,7 +228,7 @@ async def asyncio( date_payment_from: datetime.datetime | Unset = UNSET, date_payment_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | PaymentPaginatedListResponse | None: """List all Payments @@ -239,7 +239,7 @@ async def asyncio( date_payment_from (datetime.datetime | Unset): date_payment_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/payment/list_prepaid_credit_operations.py b/src/shellrent_sdk/client/api/payment/list_prepaid_credit_operations.py index d6b4178..ea96213 100644 --- a/src/shellrent_sdk/client/api/payment/list_prepaid_credit_operations.py +++ b/src/shellrent_sdk/client/api/payment/list_prepaid_credit_operations.py @@ -18,7 +18,7 @@ def _get_kwargs( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -104,7 +104,7 @@ def sync_detailed( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | PrepaidCreditOperationPaginatedListResponse]: """List all Prepaid credit operations @@ -114,7 +114,7 @@ def sync_detailed( date_created_from (datetime.datetime | Unset): date_created_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -144,7 +144,7 @@ def sync( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | PrepaidCreditOperationPaginatedListResponse | None: """List all Prepaid credit operations @@ -154,7 +154,7 @@ def sync( date_created_from (datetime.datetime | Unset): date_created_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -179,7 +179,7 @@ async def asyncio_detailed( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | PrepaidCreditOperationPaginatedListResponse]: """List all Prepaid credit operations @@ -189,7 +189,7 @@ async def asyncio_detailed( date_created_from (datetime.datetime | Unset): date_created_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -217,7 +217,7 @@ async def asyncio( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | PrepaidCreditOperationPaginatedListResponse | None: """List all Prepaid credit operations @@ -227,7 +227,7 @@ async def asyncio( date_created_from (datetime.datetime | Unset): date_created_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/payment/list_prepaid_credit_topups.py b/src/shellrent_sdk/client/api/payment/list_prepaid_credit_topups.py index 9042c48..3a941a3 100644 --- a/src/shellrent_sdk/client/api/payment/list_prepaid_credit_topups.py +++ b/src/shellrent_sdk/client/api/payment/list_prepaid_credit_topups.py @@ -22,7 +22,7 @@ def _get_kwargs( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -120,7 +120,7 @@ def sync_detailed( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | PrepaidCreditTopupPaginatedListResponse]: """List all topups @@ -134,7 +134,7 @@ def sync_detailed( date_created_from (datetime.datetime | Unset): date_created_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -172,7 +172,7 @@ def sync( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | PrepaidCreditTopupPaginatedListResponse | None: """List all topups @@ -186,7 +186,7 @@ def sync( date_created_from (datetime.datetime | Unset): date_created_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -219,7 +219,7 @@ async def asyncio_detailed( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | PrepaidCreditTopupPaginatedListResponse]: """List all topups @@ -233,7 +233,7 @@ async def asyncio_detailed( date_created_from (datetime.datetime | Unset): date_created_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -269,7 +269,7 @@ async def asyncio( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | PrepaidCreditTopupPaginatedListResponse | None: """List all topups @@ -283,7 +283,7 @@ async def asyncio( date_created_from (datetime.datetime | Unset): date_created_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/pec/list_pec_domain_owner_changes.py b/src/shellrent_sdk/client/api/pec/list_pec_domain_owner_changes.py index 1b7235e..311cdc4 100644 --- a/src/shellrent_sdk/client/api/pec/list_pec_domain_owner_changes.py +++ b/src/shellrent_sdk/client/api/pec/list_pec_domain_owner_changes.py @@ -15,7 +15,7 @@ def _get_kwargs( pec_domain_id: int, *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -92,7 +92,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | PecOwnerChangePaginatedListResponse]: """List PEC domain owner changes @@ -101,7 +101,7 @@ def sync_detailed( Args: pec_domain_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -129,7 +129,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | PecOwnerChangePaginatedListResponse | None: """List PEC domain owner changes @@ -138,7 +138,7 @@ def sync( Args: pec_domain_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -161,7 +161,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | PecOwnerChangePaginatedListResponse]: """List PEC domain owner changes @@ -170,7 +170,7 @@ async def asyncio_detailed( Args: pec_domain_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -196,7 +196,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | PecOwnerChangePaginatedListResponse | None: """List PEC domain owner changes @@ -205,7 +205,7 @@ async def asyncio( Args: pec_domain_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/pec/list_pec_domains.py b/src/shellrent_sdk/client/api/pec/list_pec_domains.py index e59c1b7..f2807cf 100644 --- a/src/shellrent_sdk/client/api/pec/list_pec_domains.py +++ b/src/shellrent_sdk/client/api/pec/list_pec_domains.py @@ -13,7 +13,7 @@ def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -87,7 +87,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | PecDomainPaginatedListResponse]: """List PEC domains @@ -95,7 +95,7 @@ def sync_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +121,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | PecDomainPaginatedListResponse | None: """List PEC domains @@ -129,7 +129,7 @@ def sync( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | PecDomainPaginatedListResponse]: """List PEC domains @@ -158,7 +158,7 @@ async def asyncio_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +182,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | PecDomainPaginatedListResponse | None: """List PEC domains @@ -190,7 +190,7 @@ async def asyncio( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/pec/list_pec_mailbox_owner_changes.py b/src/shellrent_sdk/client/api/pec/list_pec_mailbox_owner_changes.py index 69f9ed3..0eec287 100644 --- a/src/shellrent_sdk/client/api/pec/list_pec_mailbox_owner_changes.py +++ b/src/shellrent_sdk/client/api/pec/list_pec_mailbox_owner_changes.py @@ -15,7 +15,7 @@ def _get_kwargs( pec_id: int, *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -92,7 +92,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | PecOwnerChangePaginatedListResponse]: """List PEC mailbox owner changes @@ -101,7 +101,7 @@ def sync_detailed( Args: pec_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -129,7 +129,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | PecOwnerChangePaginatedListResponse | None: """List PEC mailbox owner changes @@ -138,7 +138,7 @@ def sync( Args: pec_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -161,7 +161,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | PecOwnerChangePaginatedListResponse]: """List PEC mailbox owner changes @@ -170,7 +170,7 @@ async def asyncio_detailed( Args: pec_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -196,7 +196,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | PecOwnerChangePaginatedListResponse | None: """List PEC mailbox owner changes @@ -205,7 +205,7 @@ async def asyncio( Args: pec_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/pec/list_pec_mailboxes.py b/src/shellrent_sdk/client/api/pec/list_pec_mailboxes.py index bd3c9f4..bc5e856 100644 --- a/src/shellrent_sdk/client/api/pec/list_pec_mailboxes.py +++ b/src/shellrent_sdk/client/api/pec/list_pec_mailboxes.py @@ -13,7 +13,7 @@ def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -87,7 +87,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | PecPaginatedListResponse]: """List PEC mailboxes @@ -95,7 +95,7 @@ def sync_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +121,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | PecPaginatedListResponse | None: """List PEC mailboxes @@ -129,7 +129,7 @@ def sync( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | PecPaginatedListResponse]: """List PEC mailboxes @@ -158,7 +158,7 @@ async def asyncio_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +182,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | PecPaginatedListResponse | None: """List PEC mailboxes @@ -190,7 +190,7 @@ async def asyncio( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/purchases/list_purchases.py b/src/shellrent_sdk/client/api/purchases/list_purchases.py index 7beae5a..c67cb74 100644 --- a/src/shellrent_sdk/client/api/purchases/list_purchases.py +++ b/src/shellrent_sdk/client/api/purchases/list_purchases.py @@ -26,7 +26,7 @@ def _get_kwargs( service_category_code: str | Unset = UNSET, search: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -152,7 +152,7 @@ def sync_detailed( service_category_code: str | Unset = UNSET, search: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | PurchasePaginatedListResponse]: """List purchases @@ -172,7 +172,7 @@ def sync_detailed( service_category_code (str | Unset): search (str | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -222,7 +222,7 @@ def sync( service_category_code: str | Unset = UNSET, search: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | PurchasePaginatedListResponse | None: """List purchases @@ -242,7 +242,7 @@ def sync( service_category_code (str | Unset): search (str | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -287,7 +287,7 @@ async def asyncio_detailed( service_category_code: str | Unset = UNSET, search: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | PurchasePaginatedListResponse]: """List purchases @@ -307,7 +307,7 @@ async def asyncio_detailed( service_category_code (str | Unset): search (str | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -355,7 +355,7 @@ async def asyncio( service_category_code: str | Unset = UNSET, search: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | PurchasePaginatedListResponse | None: """List purchases @@ -375,7 +375,7 @@ async def asyncio( service_category_code (str | Unset): search (str | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/purchases/list_tasks.py b/src/shellrent_sdk/client/api/purchases/list_tasks.py index f4b2fb5..4e3cd61 100644 --- a/src/shellrent_sdk/client/api/purchases/list_tasks.py +++ b/src/shellrent_sdk/client/api/purchases/list_tasks.py @@ -16,7 +16,7 @@ def _get_kwargs( ask_user_error: str | Unset = UNSET, purchase_id: int | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -99,7 +99,7 @@ def sync_detailed( ask_user_error: str | Unset = UNSET, purchase_id: int | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | TaskPaginatedListResponse]: """List purchases tasks @@ -110,7 +110,7 @@ def sync_detailed( ask_user_error (str | Unset): purchase_id (int | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -142,7 +142,7 @@ def sync( ask_user_error: str | Unset = UNSET, purchase_id: int | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | TaskPaginatedListResponse | None: """List purchases tasks @@ -153,7 +153,7 @@ def sync( ask_user_error (str | Unset): purchase_id (int | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -180,7 +180,7 @@ async def asyncio_detailed( ask_user_error: str | Unset = UNSET, purchase_id: int | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | TaskPaginatedListResponse]: """List purchases tasks @@ -191,7 +191,7 @@ async def asyncio_detailed( ask_user_error (str | Unset): purchase_id (int | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -221,7 +221,7 @@ async def asyncio( ask_user_error: str | Unset = UNSET, purchase_id: int | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | TaskPaginatedListResponse | None: """List purchases tasks @@ -232,7 +232,7 @@ async def asyncio( ask_user_error (str | Unset): purchase_id (int | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/server/list_server_snapshots.py b/src/shellrent_sdk/client/api/server/list_server_snapshots.py index 75d1d94..39b0f63 100644 --- a/src/shellrent_sdk/client/api/server/list_server_snapshots.py +++ b/src/shellrent_sdk/client/api/server/list_server_snapshots.py @@ -15,7 +15,7 @@ def _get_kwargs( server_id: int, *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -92,7 +92,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ServerSnapshotPaginatedListResponse]: """List server snapshots @@ -101,7 +101,7 @@ def sync_detailed( Args: server_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -129,7 +129,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ServerSnapshotPaginatedListResponse | None: """List server snapshots @@ -138,7 +138,7 @@ def sync( Args: server_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -161,7 +161,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ServerSnapshotPaginatedListResponse]: """List server snapshots @@ -170,7 +170,7 @@ async def asyncio_detailed( Args: server_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -196,7 +196,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ServerSnapshotPaginatedListResponse | None: """List server snapshots @@ -205,7 +205,7 @@ async def asyncio( Args: server_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/server/list_servers.py b/src/shellrent_sdk/client/api/server/list_servers.py index bb6e281..cc5c0b8 100644 --- a/src/shellrent_sdk/client/api/server/list_servers.py +++ b/src/shellrent_sdk/client/api/server/list_servers.py @@ -13,7 +13,7 @@ def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -87,7 +87,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ServerPaginatedListResponse]: """List servers @@ -95,7 +95,7 @@ def sync_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +121,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ServerPaginatedListResponse | None: """List servers @@ -129,7 +129,7 @@ def sync( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ServerPaginatedListResponse]: """List servers @@ -158,7 +158,7 @@ async def asyncio_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +182,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ServerPaginatedListResponse | None: """List servers @@ -190,7 +190,7 @@ async def asyncio( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/shop/list_active_monitoring_products.py b/src/shellrent_sdk/client/api/shop/list_active_monitoring_products.py index 4c22ba4..ba1987c 100644 --- a/src/shellrent_sdk/client/api/shop/list_active_monitoring_products.py +++ b/src/shellrent_sdk/client/api/shop/list_active_monitoring_products.py @@ -6,14 +6,14 @@ from ... import errors from ...client import AuthenticatedClient, Client from ...models.api_error import ApiError -from ...models.service_list_response import ServiceListResponse +from ...models.service_paginated_list_response import ServicePaginatedListResponse from ...types import UNSET, Response, Unset def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -35,9 +35,9 @@ def _get_kwargs( def _parse_response( *, client: AuthenticatedClient | Client, response: httpx.Response -) -> ApiError | ServiceListResponse | None: +) -> ApiError | ServicePaginatedListResponse | None: if response.status_code == 200: - response_200 = ServiceListResponse.from_dict(response.json()) + response_200 = ServicePaginatedListResponse.from_dict(response.json()) return response_200 @@ -74,7 +74,7 @@ def _parse_response( def _build_response( *, client: AuthenticatedClient | Client, response: httpx.Response -) -> Response[ApiError | ServiceListResponse]: +) -> Response[ApiError | ServicePaginatedListResponse]: return Response( status_code=HTTPStatus(response.status_code), content=response.content, @@ -87,22 +87,22 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, -) -> Response[ApiError | ServiceListResponse]: + per_page: int | Unset = 15, +) -> Response[ApiError | ServicePaginatedListResponse]: """Active Monitoring products Get a list of all Active Monitoring products that can be ordered Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - Response[ApiError | ServiceListResponse] + Response[ApiError | ServicePaginatedListResponse] """ kwargs = _get_kwargs( @@ -121,22 +121,22 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, -) -> ApiError | ServiceListResponse | None: + per_page: int | Unset = 15, +) -> ApiError | ServicePaginatedListResponse | None: """Active Monitoring products Get a list of all Active Monitoring products that can be ordered Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - ApiError | ServiceListResponse + ApiError | ServicePaginatedListResponse """ return sync_detailed( @@ -150,22 +150,22 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, -) -> Response[ApiError | ServiceListResponse]: + per_page: int | Unset = 15, +) -> Response[ApiError | ServicePaginatedListResponse]: """Active Monitoring products Get a list of all Active Monitoring products that can be ordered Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - Response[ApiError | ServiceListResponse] + Response[ApiError | ServicePaginatedListResponse] """ kwargs = _get_kwargs( @@ -182,22 +182,22 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, -) -> ApiError | ServiceListResponse | None: + per_page: int | Unset = 15, +) -> ApiError | ServicePaginatedListResponse | None: """Active Monitoring products Get a list of all Active Monitoring products that can be ordered Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - ApiError | ServiceListResponse + ApiError | ServicePaginatedListResponse """ return ( diff --git a/src/shellrent_sdk/client/api/shop/list_cloud_storage_products.py b/src/shellrent_sdk/client/api/shop/list_cloud_storage_products.py index bf4ebbd..d7fcda6 100644 --- a/src/shellrent_sdk/client/api/shop/list_cloud_storage_products.py +++ b/src/shellrent_sdk/client/api/shop/list_cloud_storage_products.py @@ -13,7 +13,7 @@ def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -87,7 +87,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ServicePaginatedListResponse]: """Cloud Storage products @@ -95,7 +95,7 @@ def sync_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +121,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ServicePaginatedListResponse | None: """Cloud Storage products @@ -129,7 +129,7 @@ def sync( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ServicePaginatedListResponse]: """Cloud Storage products @@ -158,7 +158,7 @@ async def asyncio_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +182,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ServicePaginatedListResponse | None: """Cloud Storage products @@ -190,7 +190,7 @@ async def asyncio( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/shop/list_cloud_vps_products.py b/src/shellrent_sdk/client/api/shop/list_cloud_vps_products.py index 1838fd9..48ff8c5 100644 --- a/src/shellrent_sdk/client/api/shop/list_cloud_vps_products.py +++ b/src/shellrent_sdk/client/api/shop/list_cloud_vps_products.py @@ -6,14 +6,14 @@ from ... import errors from ...client import AuthenticatedClient, Client from ...models.api_error import ApiError -from ...models.service_server_list_response import ServiceServerListResponse +from ...models.service_server_paginated_list_response import ServiceServerPaginatedListResponse from ...types import UNSET, Response, Unset def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -35,9 +35,9 @@ def _get_kwargs( def _parse_response( *, client: AuthenticatedClient | Client, response: httpx.Response -) -> ApiError | ServiceServerListResponse | None: +) -> ApiError | ServiceServerPaginatedListResponse | None: if response.status_code == 200: - response_200 = ServiceServerListResponse.from_dict(response.json()) + response_200 = ServiceServerPaginatedListResponse.from_dict(response.json()) return response_200 @@ -74,7 +74,7 @@ def _parse_response( def _build_response( *, client: AuthenticatedClient | Client, response: httpx.Response -) -> Response[ApiError | ServiceServerListResponse]: +) -> Response[ApiError | ServiceServerPaginatedListResponse]: return Response( status_code=HTTPStatus(response.status_code), content=response.content, @@ -87,22 +87,22 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, -) -> Response[ApiError | ServiceServerListResponse]: + per_page: int | Unset = 15, +) -> Response[ApiError | ServiceServerPaginatedListResponse]: """Cloud VPS products Get a list of all Cloud VPS products that can be ordered Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - Response[ApiError | ServiceServerListResponse] + Response[ApiError | ServiceServerPaginatedListResponse] """ kwargs = _get_kwargs( @@ -121,22 +121,22 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, -) -> ApiError | ServiceServerListResponse | None: + per_page: int | Unset = 15, +) -> ApiError | ServiceServerPaginatedListResponse | None: """Cloud VPS products Get a list of all Cloud VPS products that can be ordered Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - ApiError | ServiceServerListResponse + ApiError | ServiceServerPaginatedListResponse """ return sync_detailed( @@ -150,22 +150,22 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, -) -> Response[ApiError | ServiceServerListResponse]: + per_page: int | Unset = 15, +) -> Response[ApiError | ServiceServerPaginatedListResponse]: """Cloud VPS products Get a list of all Cloud VPS products that can be ordered Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - Response[ApiError | ServiceServerListResponse] + Response[ApiError | ServiceServerPaginatedListResponse] """ kwargs = _get_kwargs( @@ -182,22 +182,22 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, -) -> ApiError | ServiceServerListResponse | None: + per_page: int | Unset = 15, +) -> ApiError | ServiceServerPaginatedListResponse | None: """Cloud VPS products Get a list of all Cloud VPS products that can be ordered Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - ApiError | ServiceServerListResponse + ApiError | ServiceServerPaginatedListResponse """ return ( diff --git a/src/shellrent_sdk/client/api/shop/list_cpanel_license_products.py b/src/shellrent_sdk/client/api/shop/list_cpanel_license_products.py index 1e15f65..88e24e6 100644 --- a/src/shellrent_sdk/client/api/shop/list_cpanel_license_products.py +++ b/src/shellrent_sdk/client/api/shop/list_cpanel_license_products.py @@ -13,7 +13,7 @@ def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -87,7 +87,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ServicePaginatedListResponse]: """cPanel licenses products @@ -95,7 +95,7 @@ def sync_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +121,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ServicePaginatedListResponse | None: """cPanel licenses products @@ -129,7 +129,7 @@ def sync( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ServicePaginatedListResponse]: """cPanel licenses products @@ -158,7 +158,7 @@ async def asyncio_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +182,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ServicePaginatedListResponse | None: """cPanel licenses products @@ -190,7 +190,7 @@ async def asyncio( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/shop/list_dedicated_server_products.py b/src/shellrent_sdk/client/api/shop/list_dedicated_server_products.py index 90ce4a2..4275621 100644 --- a/src/shellrent_sdk/client/api/shop/list_dedicated_server_products.py +++ b/src/shellrent_sdk/client/api/shop/list_dedicated_server_products.py @@ -6,14 +6,14 @@ from ... import errors from ...client import AuthenticatedClient, Client from ...models.api_error import ApiError -from ...models.service_server_list_response import ServiceServerListResponse +from ...models.service_server_paginated_list_response import ServiceServerPaginatedListResponse from ...types import UNSET, Response, Unset def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -35,9 +35,9 @@ def _get_kwargs( def _parse_response( *, client: AuthenticatedClient | Client, response: httpx.Response -) -> ApiError | ServiceServerListResponse | None: +) -> ApiError | ServiceServerPaginatedListResponse | None: if response.status_code == 200: - response_200 = ServiceServerListResponse.from_dict(response.json()) + response_200 = ServiceServerPaginatedListResponse.from_dict(response.json()) return response_200 @@ -74,7 +74,7 @@ def _parse_response( def _build_response( *, client: AuthenticatedClient | Client, response: httpx.Response -) -> Response[ApiError | ServiceServerListResponse]: +) -> Response[ApiError | ServiceServerPaginatedListResponse]: return Response( status_code=HTTPStatus(response.status_code), content=response.content, @@ -87,22 +87,22 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, -) -> Response[ApiError | ServiceServerListResponse]: + per_page: int | Unset = 15, +) -> Response[ApiError | ServiceServerPaginatedListResponse]: """Dedicated Servers products Get a list of all Dedicated Server products that can be ordered Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - Response[ApiError | ServiceServerListResponse] + Response[ApiError | ServiceServerPaginatedListResponse] """ kwargs = _get_kwargs( @@ -121,22 +121,22 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, -) -> ApiError | ServiceServerListResponse | None: + per_page: int | Unset = 15, +) -> ApiError | ServiceServerPaginatedListResponse | None: """Dedicated Servers products Get a list of all Dedicated Server products that can be ordered Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - ApiError | ServiceServerListResponse + ApiError | ServiceServerPaginatedListResponse """ return sync_detailed( @@ -150,22 +150,22 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, -) -> Response[ApiError | ServiceServerListResponse]: + per_page: int | Unset = 15, +) -> Response[ApiError | ServiceServerPaginatedListResponse]: """Dedicated Servers products Get a list of all Dedicated Server products that can be ordered Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - Response[ApiError | ServiceServerListResponse] + Response[ApiError | ServiceServerPaginatedListResponse] """ kwargs = _get_kwargs( @@ -182,22 +182,22 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, -) -> ApiError | ServiceServerListResponse | None: + per_page: int | Unset = 15, +) -> ApiError | ServiceServerPaginatedListResponse | None: """Dedicated Servers products Get a list of all Dedicated Server products that can be ordered Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - ApiError | ServiceServerListResponse + ApiError | ServiceServerPaginatedListResponse """ return ( diff --git a/src/shellrent_sdk/client/api/shop/list_microsoft_365_products.py b/src/shellrent_sdk/client/api/shop/list_microsoft_365_products.py index 89fb43e..5b509b8 100644 --- a/src/shellrent_sdk/client/api/shop/list_microsoft_365_products.py +++ b/src/shellrent_sdk/client/api/shop/list_microsoft_365_products.py @@ -13,7 +13,7 @@ def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -87,7 +87,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ServicePaginatedListResponse]: """Microsoft 365 subscriptions @@ -95,7 +95,7 @@ def sync_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +121,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ServicePaginatedListResponse | None: """Microsoft 365 subscriptions @@ -129,7 +129,7 @@ def sync( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ServicePaginatedListResponse]: """Microsoft 365 subscriptions @@ -158,7 +158,7 @@ async def asyncio_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +182,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ServicePaginatedListResponse | None: """Microsoft 365 subscriptions @@ -190,7 +190,7 @@ async def asyncio( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/shop/list_orders.py b/src/shellrent_sdk/client/api/shop/list_orders.py index 245654e..38ad76e 100644 --- a/src/shellrent_sdk/client/api/shop/list_orders.py +++ b/src/shellrent_sdk/client/api/shop/list_orders.py @@ -22,7 +22,7 @@ def _get_kwargs( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -127,7 +127,7 @@ def sync_detailed( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | OrderPaginatedListResponse]: """List all Orders @@ -142,7 +142,7 @@ def sync_detailed( date_created_from (datetime.datetime | Unset): date_created_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +182,7 @@ def sync( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | OrderPaginatedListResponse | None: """List all Orders @@ -197,7 +197,7 @@ def sync( date_created_from (datetime.datetime | Unset): date_created_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -232,7 +232,7 @@ async def asyncio_detailed( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | OrderPaginatedListResponse]: """List all Orders @@ -247,7 +247,7 @@ async def asyncio_detailed( date_created_from (datetime.datetime | Unset): date_created_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -285,7 +285,7 @@ async def asyncio( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | OrderPaginatedListResponse | None: """List all Orders @@ -300,7 +300,7 @@ async def asyncio( date_created_from (datetime.datetime | Unset): date_created_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/shop/list_pec_products.py b/src/shellrent_sdk/client/api/shop/list_pec_products.py index 9d7e6cc..12c054e 100644 --- a/src/shellrent_sdk/client/api/shop/list_pec_products.py +++ b/src/shellrent_sdk/client/api/shop/list_pec_products.py @@ -13,7 +13,7 @@ def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -87,7 +87,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ServicePaginatedListResponse]: """PEC products @@ -95,7 +95,7 @@ def sync_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +121,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ServicePaginatedListResponse | None: """PEC products @@ -129,7 +129,7 @@ def sync( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ServicePaginatedListResponse]: """PEC products @@ -158,7 +158,7 @@ async def asyncio_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +182,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ServicePaginatedListResponse | None: """PEC products @@ -190,7 +190,7 @@ async def asyncio( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/shop/list_plesk_license_products.py b/src/shellrent_sdk/client/api/shop/list_plesk_license_products.py index e18356a..f8f8dd9 100644 --- a/src/shellrent_sdk/client/api/shop/list_plesk_license_products.py +++ b/src/shellrent_sdk/client/api/shop/list_plesk_license_products.py @@ -13,7 +13,7 @@ def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -87,7 +87,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ServicePaginatedListResponse]: """Plesk licenses products @@ -95,7 +95,7 @@ def sync_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +121,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ServicePaginatedListResponse | None: """Plesk licenses products @@ -129,7 +129,7 @@ def sync( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ServicePaginatedListResponse]: """Plesk licenses products @@ -158,7 +158,7 @@ async def asyncio_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +182,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ServicePaginatedListResponse | None: """Plesk licenses products @@ -190,7 +190,7 @@ async def asyncio( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/shop/list_private_cloud_sv_products.py b/src/shellrent_sdk/client/api/shop/list_private_cloud_sv_products.py index 3f47dec..70323b9 100644 --- a/src/shellrent_sdk/client/api/shop/list_private_cloud_sv_products.py +++ b/src/shellrent_sdk/client/api/shop/list_private_cloud_sv_products.py @@ -6,14 +6,14 @@ from ... import errors from ...client import AuthenticatedClient, Client from ...models.api_error import ApiError -from ...models.service_list_response import ServiceListResponse +from ...models.service_paginated_list_response import ServicePaginatedListResponse from ...types import UNSET, Response, Unset def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -35,9 +35,9 @@ def _get_kwargs( def _parse_response( *, client: AuthenticatedClient | Client, response: httpx.Response -) -> ApiError | ServiceListResponse | None: +) -> ApiError | ServicePaginatedListResponse | None: if response.status_code == 200: - response_200 = ServiceListResponse.from_dict(response.json()) + response_200 = ServicePaginatedListResponse.from_dict(response.json()) return response_200 @@ -74,7 +74,7 @@ def _parse_response( def _build_response( *, client: AuthenticatedClient | Client, response: httpx.Response -) -> Response[ApiError | ServiceListResponse]: +) -> Response[ApiError | ServicePaginatedListResponse]: return Response( status_code=HTTPStatus(response.status_code), content=response.content, @@ -87,22 +87,22 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, -) -> Response[ApiError | ServiceListResponse]: + per_page: int | Unset = 15, +) -> Response[ApiError | ServicePaginatedListResponse]: """Private Cloud SV products Get a list of all Private Cloud SV products that can be ordered Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - Response[ApiError | ServiceListResponse] + Response[ApiError | ServicePaginatedListResponse] """ kwargs = _get_kwargs( @@ -121,22 +121,22 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, -) -> ApiError | ServiceListResponse | None: + per_page: int | Unset = 15, +) -> ApiError | ServicePaginatedListResponse | None: """Private Cloud SV products Get a list of all Private Cloud SV products that can be ordered Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - ApiError | ServiceListResponse + ApiError | ServicePaginatedListResponse """ return sync_detailed( @@ -150,22 +150,22 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, -) -> Response[ApiError | ServiceListResponse]: + per_page: int | Unset = 15, +) -> Response[ApiError | ServicePaginatedListResponse]: """Private Cloud SV products Get a list of all Private Cloud SV products that can be ordered Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - Response[ApiError | ServiceListResponse] + Response[ApiError | ServicePaginatedListResponse] """ kwargs = _get_kwargs( @@ -182,22 +182,22 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, -) -> ApiError | ServiceListResponse | None: + per_page: int | Unset = 15, +) -> ApiError | ServicePaginatedListResponse | None: """Private Cloud SV products Get a list of all Private Cloud SV products that can be ordered Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - ApiError | ServiceListResponse + ApiError | ServicePaginatedListResponse """ return ( diff --git a/src/shellrent_sdk/client/api/shop/list_shop_microsoft_365_tenants.py b/src/shellrent_sdk/client/api/shop/list_shop_microsoft_365_tenants.py index efe6a16..c337011 100644 --- a/src/shellrent_sdk/client/api/shop/list_shop_microsoft_365_tenants.py +++ b/src/shellrent_sdk/client/api/shop/list_shop_microsoft_365_tenants.py @@ -16,7 +16,7 @@ def _get_kwargs( *, account_id: int | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -93,7 +93,7 @@ def sync_detailed( client: AuthenticatedClient, account_id: int | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | Microsoft365TenantPaginatedListResponse]: """Microsoft 365 tenants @@ -103,7 +103,7 @@ def sync_detailed( account_id (int | Unset): ID of the account owner of the Microsoft 365 subscription used to search for existing tenants. Available to Resellers only. page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -131,7 +131,7 @@ def sync( client: AuthenticatedClient, account_id: int | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | Microsoft365TenantPaginatedListResponse | None: """Microsoft 365 tenants @@ -141,7 +141,7 @@ def sync( account_id (int | Unset): ID of the account owner of the Microsoft 365 subscription used to search for existing tenants. Available to Resellers only. page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -164,7 +164,7 @@ async def asyncio_detailed( client: AuthenticatedClient, account_id: int | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | Microsoft365TenantPaginatedListResponse]: """Microsoft 365 tenants @@ -174,7 +174,7 @@ async def asyncio_detailed( account_id (int | Unset): ID of the account owner of the Microsoft 365 subscription used to search for existing tenants. Available to Resellers only. page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -200,7 +200,7 @@ async def asyncio( client: AuthenticatedClient, account_id: int | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | Microsoft365TenantPaginatedListResponse | None: """Microsoft 365 tenants @@ -210,7 +210,7 @@ async def asyncio( account_id (int | Unset): ID of the account owner of the Microsoft 365 subscription used to search for existing tenants. Available to Resellers only. page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/shop/list_sms_topup_products.py b/src/shellrent_sdk/client/api/shop/list_sms_topup_products.py index b08595f..bf204d8 100644 --- a/src/shellrent_sdk/client/api/shop/list_sms_topup_products.py +++ b/src/shellrent_sdk/client/api/shop/list_sms_topup_products.py @@ -13,7 +13,7 @@ def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -87,7 +87,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ServicePaginatedListResponse]: """SMS topups products @@ -95,7 +95,7 @@ def sync_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +121,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ServicePaginatedListResponse | None: """SMS topups products @@ -129,7 +129,7 @@ def sync( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ServicePaginatedListResponse]: """SMS topups products @@ -158,7 +158,7 @@ async def asyncio_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +182,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ServicePaginatedListResponse | None: """SMS topups products @@ -190,7 +190,7 @@ async def asyncio( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/shop/list_ssl_certificate_products.py b/src/shellrent_sdk/client/api/shop/list_ssl_certificate_products.py index de430a4..e626024 100644 --- a/src/shellrent_sdk/client/api/shop/list_ssl_certificate_products.py +++ b/src/shellrent_sdk/client/api/shop/list_ssl_certificate_products.py @@ -13,7 +13,7 @@ def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -87,7 +87,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ServicePaginatedListResponse]: """SSL/TLS Certificates products @@ -95,7 +95,7 @@ def sync_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +121,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ServicePaginatedListResponse | None: """SSL/TLS Certificates products @@ -129,7 +129,7 @@ def sync( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ServicePaginatedListResponse]: """SSL/TLS Certificates products @@ -158,7 +158,7 @@ async def asyncio_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +182,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ServicePaginatedListResponse | None: """SSL/TLS Certificates products @@ -190,7 +190,7 @@ async def asyncio( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/shop/list_tlds.py b/src/shellrent_sdk/client/api/shop/list_tlds.py index da4b3ce..5893c6d 100644 --- a/src/shellrent_sdk/client/api/shop/list_tlds.py +++ b/src/shellrent_sdk/client/api/shop/list_tlds.py @@ -17,7 +17,7 @@ def _get_kwargs( is_it: bool | Unset = UNSET, country: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -103,7 +103,7 @@ def sync_detailed( is_it: bool | Unset = UNSET, country: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | TldPaginatedListResponse]: """List all TLDs @@ -115,7 +115,7 @@ def sync_detailed( is_it (bool | Unset): country (str | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -149,7 +149,7 @@ def sync( is_it: bool | Unset = UNSET, country: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | TldPaginatedListResponse | None: """List all TLDs @@ -161,7 +161,7 @@ def sync( is_it (bool | Unset): country (str | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -190,7 +190,7 @@ async def asyncio_detailed( is_it: bool | Unset = UNSET, country: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | TldPaginatedListResponse]: """List all TLDs @@ -202,7 +202,7 @@ async def asyncio_detailed( is_it (bool | Unset): country (str | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -234,7 +234,7 @@ async def asyncio( is_it: bool | Unset = UNSET, country: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | TldPaginatedListResponse | None: """List all TLDs @@ -246,7 +246,7 @@ async def asyncio( is_it (bool | Unset): country (str | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/sms/list_sms.py b/src/shellrent_sdk/client/api/sms/list_sms.py index 2408ee4..06448d5 100644 --- a/src/shellrent_sdk/client/api/sms/list_sms.py +++ b/src/shellrent_sdk/client/api/sms/list_sms.py @@ -18,7 +18,7 @@ def _get_kwargs( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -111,7 +111,7 @@ def sync_detailed( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | SmsPaginatedListResponse]: """List all SMS @@ -122,7 +122,7 @@ def sync_detailed( date_created_from (datetime.datetime | Unset): date_created_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -154,7 +154,7 @@ def sync( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | SmsPaginatedListResponse | None: """List all SMS @@ -165,7 +165,7 @@ def sync( date_created_from (datetime.datetime | Unset): date_created_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -192,7 +192,7 @@ async def asyncio_detailed( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | SmsPaginatedListResponse]: """List all SMS @@ -203,7 +203,7 @@ async def asyncio_detailed( date_created_from (datetime.datetime | Unset): date_created_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -233,7 +233,7 @@ async def asyncio( date_created_from: datetime.datetime | Unset = UNSET, date_created_to: datetime.datetime | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | SmsPaginatedListResponse | None: """List all SMS @@ -244,7 +244,7 @@ async def asyncio( date_created_from (datetime.datetime | Unset): date_created_to (datetime.datetime | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/sms/list_sms_phonebook_contacts.py b/src/shellrent_sdk/client/api/sms/list_sms_phonebook_contacts.py index b30aad9..f6a94ce 100644 --- a/src/shellrent_sdk/client/api/sms/list_sms_phonebook_contacts.py +++ b/src/shellrent_sdk/client/api/sms/list_sms_phonebook_contacts.py @@ -17,7 +17,7 @@ def _get_kwargs( phonebook_id: int, *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -94,7 +94,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | SmsPhonebookContactPaginatedListResponse]: """Phonebook Contacts @@ -103,7 +103,7 @@ def sync_detailed( Args: phonebook_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -131,7 +131,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | SmsPhonebookContactPaginatedListResponse | None: """Phonebook Contacts @@ -140,7 +140,7 @@ def sync( Args: phonebook_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -163,7 +163,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | SmsPhonebookContactPaginatedListResponse]: """Phonebook Contacts @@ -172,7 +172,7 @@ async def asyncio_detailed( Args: phonebook_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -198,7 +198,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | SmsPhonebookContactPaginatedListResponse | None: """Phonebook Contacts @@ -207,7 +207,7 @@ async def asyncio( Args: phonebook_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/sms/list_sms_phonebooks.py b/src/shellrent_sdk/client/api/sms/list_sms_phonebooks.py index bf9c85f..3b7e9a9 100644 --- a/src/shellrent_sdk/client/api/sms/list_sms_phonebooks.py +++ b/src/shellrent_sdk/client/api/sms/list_sms_phonebooks.py @@ -13,7 +13,7 @@ def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -87,7 +87,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | SmsPhonebookPaginatedListResponse]: """List all Phonebooks @@ -95,7 +95,7 @@ def sync_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +121,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | SmsPhonebookPaginatedListResponse | None: """List all Phonebooks @@ -129,7 +129,7 @@ def sync( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | SmsPhonebookPaginatedListResponse]: """List all Phonebooks @@ -158,7 +158,7 @@ async def asyncio_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +182,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | SmsPhonebookPaginatedListResponse | None: """List all Phonebooks @@ -190,7 +190,7 @@ async def asyncio( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/ssl/list_ssl_certificates.py b/src/shellrent_sdk/client/api/ssl/list_ssl_certificates.py index 5121249..cdfa06a 100644 --- a/src/shellrent_sdk/client/api/ssl/list_ssl_certificates.py +++ b/src/shellrent_sdk/client/api/ssl/list_ssl_certificates.py @@ -15,7 +15,7 @@ def _get_kwargs( domain_name: str | Unset = UNSET, san_domain_name: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -95,7 +95,7 @@ def sync_detailed( domain_name: str | Unset = UNSET, san_domain_name: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | SslCertificatePaginatedListResponse]: """List all SSL Certificates @@ -105,7 +105,7 @@ def sync_detailed( domain_name (str | Unset): san_domain_name (str | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -135,7 +135,7 @@ def sync( domain_name: str | Unset = UNSET, san_domain_name: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | SslCertificatePaginatedListResponse | None: """List all SSL Certificates @@ -145,7 +145,7 @@ def sync( domain_name (str | Unset): san_domain_name (str | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +170,7 @@ async def asyncio_detailed( domain_name: str | Unset = UNSET, san_domain_name: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | SslCertificatePaginatedListResponse]: """List all SSL Certificates @@ -180,7 +180,7 @@ async def asyncio_detailed( domain_name (str | Unset): san_domain_name (str | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -208,7 +208,7 @@ async def asyncio( domain_name: str | Unset = UNSET, san_domain_name: str | Unset = UNSET, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | SslCertificatePaginatedListResponse | None: """List all SSL Certificates @@ -218,7 +218,7 @@ async def asyncio( domain_name (str | Unset): san_domain_name (str | Unset): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/storage/list_cloud_storage_accesses.py b/src/shellrent_sdk/client/api/storage/list_cloud_storage_accesses.py index 42fde4a..07ef775 100644 --- a/src/shellrent_sdk/client/api/storage/list_cloud_storage_accesses.py +++ b/src/shellrent_sdk/client/api/storage/list_cloud_storage_accesses.py @@ -17,7 +17,7 @@ def _get_kwargs( cloud_storage_id: int, *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -94,7 +94,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | CloudStorageAccessPaginatedListResponse]: """List cloud storage accesses @@ -103,7 +103,7 @@ def sync_detailed( Args: cloud_storage_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -131,7 +131,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | CloudStorageAccessPaginatedListResponse | None: """List cloud storage accesses @@ -140,7 +140,7 @@ def sync( Args: cloud_storage_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -163,7 +163,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | CloudStorageAccessPaginatedListResponse]: """List cloud storage accesses @@ -172,7 +172,7 @@ async def asyncio_detailed( Args: cloud_storage_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -198,7 +198,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | CloudStorageAccessPaginatedListResponse | None: """List cloud storage accesses @@ -207,7 +207,7 @@ async def asyncio( Args: cloud_storage_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/storage/list_cloud_storages.py b/src/shellrent_sdk/client/api/storage/list_cloud_storages.py index a30bc00..5b42dd9 100644 --- a/src/shellrent_sdk/client/api/storage/list_cloud_storages.py +++ b/src/shellrent_sdk/client/api/storage/list_cloud_storages.py @@ -13,7 +13,7 @@ def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -87,7 +87,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | CloudStoragePaginatedListResponse]: """List cloud storages @@ -95,7 +95,7 @@ def sync_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +121,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | CloudStoragePaginatedListResponse | None: """List cloud storages @@ -129,7 +129,7 @@ def sync( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | CloudStoragePaginatedListResponse]: """List cloud storages @@ -158,7 +158,7 @@ async def asyncio_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +182,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | CloudStoragePaginatedListResponse | None: """List cloud storages @@ -190,7 +190,7 @@ async def asyncio( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/storage/list_object_storage_bucket_firewall_entries.py b/src/shellrent_sdk/client/api/storage/list_object_storage_bucket_firewall_entries.py index d0ba5eb..b16f810 100644 --- a/src/shellrent_sdk/client/api/storage/list_object_storage_bucket_firewall_entries.py +++ b/src/shellrent_sdk/client/api/storage/list_object_storage_bucket_firewall_entries.py @@ -18,7 +18,7 @@ def _get_kwargs( bucket_id: int, *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -99,7 +99,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ObjectStorageBucketFirewallEntryPaginatedListResponse]: """List object storage bucket firewall entries @@ -109,7 +109,7 @@ def sync_detailed( object_storage_id (int): bucket_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +139,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ObjectStorageBucketFirewallEntryPaginatedListResponse | None: """List object storage bucket firewall entries @@ -149,7 +149,7 @@ def sync( object_storage_id (int): bucket_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -174,7 +174,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ObjectStorageBucketFirewallEntryPaginatedListResponse]: """List object storage bucket firewall entries @@ -184,7 +184,7 @@ async def asyncio_detailed( object_storage_id (int): bucket_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -212,7 +212,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ObjectStorageBucketFirewallEntryPaginatedListResponse | None: """List object storage bucket firewall entries @@ -222,7 +222,7 @@ async def asyncio( object_storage_id (int): bucket_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/storage/list_object_storage_buckets.py b/src/shellrent_sdk/client/api/storage/list_object_storage_buckets.py index 9db380e..015de1b 100644 --- a/src/shellrent_sdk/client/api/storage/list_object_storage_buckets.py +++ b/src/shellrent_sdk/client/api/storage/list_object_storage_buckets.py @@ -17,7 +17,7 @@ def _get_kwargs( object_storage_id: int, *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -94,7 +94,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ObjectStorageBucketPaginatedListResponse]: """List object storage buckets @@ -103,7 +103,7 @@ def sync_detailed( Args: object_storage_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -131,7 +131,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ObjectStorageBucketPaginatedListResponse | None: """List object storage buckets @@ -140,7 +140,7 @@ def sync( Args: object_storage_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -163,7 +163,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ObjectStorageBucketPaginatedListResponse]: """List object storage buckets @@ -172,7 +172,7 @@ async def asyncio_detailed( Args: object_storage_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -198,7 +198,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ObjectStorageBucketPaginatedListResponse | None: """List object storage buckets @@ -207,7 +207,7 @@ async def asyncio( Args: object_storage_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/storage/list_object_storage_iam_users.py b/src/shellrent_sdk/client/api/storage/list_object_storage_iam_users.py index 3964b79..7f87f95 100644 --- a/src/shellrent_sdk/client/api/storage/list_object_storage_iam_users.py +++ b/src/shellrent_sdk/client/api/storage/list_object_storage_iam_users.py @@ -17,7 +17,7 @@ def _get_kwargs( object_storage_id: int, *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -94,7 +94,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ObjectStorageIamUserPaginatedListResponse]: """List object storage IAM users @@ -103,7 +103,7 @@ def sync_detailed( Args: object_storage_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -131,7 +131,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ObjectStorageIamUserPaginatedListResponse | None: """List object storage IAM users @@ -140,7 +140,7 @@ def sync( Args: object_storage_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -163,7 +163,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ObjectStorageIamUserPaginatedListResponse]: """List object storage IAM users @@ -172,7 +172,7 @@ async def asyncio_detailed( Args: object_storage_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -198,7 +198,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ObjectStorageIamUserPaginatedListResponse | None: """List object storage IAM users @@ -207,7 +207,7 @@ async def asyncio( Args: object_storage_id (int): page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/api/storage/list_object_storages.py b/src/shellrent_sdk/client/api/storage/list_object_storages.py index 9a13182..10ef816 100644 --- a/src/shellrent_sdk/client/api/storage/list_object_storages.py +++ b/src/shellrent_sdk/client/api/storage/list_object_storages.py @@ -13,7 +13,7 @@ def _get_kwargs( *, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> dict[str, Any]: params: dict[str, Any] = {} @@ -87,7 +87,7 @@ def sync_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ObjectStoragePaginatedListResponse]: """List object storages @@ -95,7 +95,7 @@ def sync_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +121,7 @@ def sync( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ObjectStoragePaginatedListResponse | None: """List object storages @@ -129,7 +129,7 @@ def sync( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> Response[ApiError | ObjectStoragePaginatedListResponse]: """List object storages @@ -158,7 +158,7 @@ async def asyncio_detailed( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +182,7 @@ async def asyncio( *, client: AuthenticatedClient, page: int | Unset = 1, - per_page: int | Unset = 20, + per_page: int | Unset = 15, ) -> ApiError | ObjectStoragePaginatedListResponse | None: """List object storages @@ -190,7 +190,7 @@ async def asyncio( Args: page (int | Unset): Default: 1. - per_page (int | Unset): Default: 20. + per_page (int | Unset): Default: 15. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/src/shellrent_sdk/client/models/__init__.py b/src/shellrent_sdk/client/models/__init__.py index 3f93e6c..c70c8c5 100644 --- a/src/shellrent_sdk/client/models/__init__.py +++ b/src/shellrent_sdk/client/models/__init__.py @@ -579,12 +579,9 @@ from .service import Service from .service_category import ServiceCategory from .service_change import ServiceChange -from .service_list_response import ServiceListResponse -from .service_list_response_meta_type_0 import ServiceListResponseMetaType0 from .service_paginated_list_response import ServicePaginatedListResponse from .service_server import ServiceServer -from .service_server_list_response import ServiceServerListResponse -from .service_server_list_response_meta_type_0 import ServiceServerListResponseMetaType0 +from .service_server_paginated_list_response import ServiceServerPaginatedListResponse from .simple_pagination_meta import SimplePaginationMeta from .sms import Sms from .sms_account import SmsAccount @@ -1185,12 +1182,9 @@ "Service", "ServiceCategory", "ServiceChange", - "ServiceListResponse", - "ServiceListResponseMetaType0", "ServicePaginatedListResponse", "ServiceServer", - "ServiceServerListResponse", - "ServiceServerListResponseMetaType0", + "ServiceServerPaginatedListResponse", "SimplePaginationMeta", "Sms", "SmsAccount", diff --git a/src/shellrent_sdk/client/models/service_list_response.py b/src/shellrent_sdk/client/models/service_list_response.py deleted file mode 100644 index dc5f439..0000000 --- a/src/shellrent_sdk/client/models/service_list_response.py +++ /dev/null @@ -1,120 +0,0 @@ -from __future__ import annotations - -from collections.abc import Mapping -from typing import TYPE_CHECKING, Any, Self, TypeVar, cast - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -if TYPE_CHECKING: - from ..models.service import Service - from ..models.service_list_response_meta_type_0 import ServiceListResponseMetaType0 - - -T = TypeVar("T", bound="ServiceListResponse") - - -@_attrs_define -class ServiceListResponse: - error: int - message: None | str - data: list[Service] - meta: None | ServiceListResponseMetaType0 - additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) - - def to_dict(self) -> dict[str, Any]: - from ..models.service_list_response_meta_type_0 import ServiceListResponseMetaType0 - - error = self.error - - message: None | str - message = self.message - - data = [] - for data_item_data in self.data: - data_item = data_item_data.to_dict() - data.append(data_item) - - meta: dict[str, Any] | None - if isinstance(self.meta, ServiceListResponseMetaType0): - meta = self.meta.to_dict() - else: - meta = self.meta - - field_dict: dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update( - { - "error": error, - "message": message, - "data": data, - "meta": meta, - } - ) - - return field_dict - - @classmethod - def from_dict(cls, src_dict: Mapping[str, Any]) -> Self: - from ..models.service import Service - from ..models.service_list_response_meta_type_0 import ( - ServiceListResponseMetaType0, - ) - - d = dict(src_dict) - error = d.pop("error") - - def _parse_message(data: object) -> None | str: - if data is None: - return data - return cast(None | str, data) - - message = _parse_message(d.pop("message")) - - data = [] - _data = d.pop("data") - for data_item_data in _data: - data_item = Service.from_dict(data_item_data) - - data.append(data_item) - - def _parse_meta(data: object) -> None | ServiceListResponseMetaType0: - if data is None: - return data - try: - if not isinstance(data, dict): - raise TypeError() - meta_type_0 = ServiceListResponseMetaType0.from_dict(data) - - return meta_type_0 - except (TypeError, ValueError, AttributeError, KeyError): - pass - return cast(None | ServiceListResponseMetaType0, data) - - meta = _parse_meta(d.pop("meta")) - - service_list_response = cls( - error=error, - message=message, - data=data, - meta=meta, - ) - - service_list_response.additional_properties = d - return service_list_response - - @property - def additional_keys(self) -> list[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/src/shellrent_sdk/client/models/service_list_response_meta_type_0.py b/src/shellrent_sdk/client/models/service_list_response_meta_type_0.py deleted file mode 100644 index 4581396..0000000 --- a/src/shellrent_sdk/client/models/service_list_response_meta_type_0.py +++ /dev/null @@ -1,45 +0,0 @@ -from __future__ import annotations - -from collections.abc import Mapping -from typing import Any, Self, TypeVar - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -T = TypeVar("T", bound="ServiceListResponseMetaType0") - - -@_attrs_define -class ServiceListResponseMetaType0: - additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) - - def to_dict(self) -> dict[str, Any]: - - field_dict: dict[str, Any] = {} - field_dict.update(self.additional_properties) - - return field_dict - - @classmethod - def from_dict(cls, src_dict: Mapping[str, Any]) -> Self: - d = dict(src_dict) - service_list_response_meta_type_0 = cls() - - service_list_response_meta_type_0.additional_properties = d - return service_list_response_meta_type_0 - - @property - def additional_keys(self) -> list[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/src/shellrent_sdk/client/models/service_server_list_response_meta_type_0.py b/src/shellrent_sdk/client/models/service_server_list_response_meta_type_0.py deleted file mode 100644 index 4305e65..0000000 --- a/src/shellrent_sdk/client/models/service_server_list_response_meta_type_0.py +++ /dev/null @@ -1,45 +0,0 @@ -from __future__ import annotations - -from collections.abc import Mapping -from typing import Any, Self, TypeVar - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -T = TypeVar("T", bound="ServiceServerListResponseMetaType0") - - -@_attrs_define -class ServiceServerListResponseMetaType0: - additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) - - def to_dict(self) -> dict[str, Any]: - - field_dict: dict[str, Any] = {} - field_dict.update(self.additional_properties) - - return field_dict - - @classmethod - def from_dict(cls, src_dict: Mapping[str, Any]) -> Self: - d = dict(src_dict) - service_server_list_response_meta_type_0 = cls() - - service_server_list_response_meta_type_0.additional_properties = d - return service_server_list_response_meta_type_0 - - @property - def additional_keys(self) -> list[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/src/shellrent_sdk/client/models/service_server_list_response.py b/src/shellrent_sdk/client/models/service_server_paginated_list_response.py similarity index 61% rename from src/shellrent_sdk/client/models/service_server_list_response.py rename to src/shellrent_sdk/client/models/service_server_paginated_list_response.py index 56ab149..f6e5c8c 100644 --- a/src/shellrent_sdk/client/models/service_server_list_response.py +++ b/src/shellrent_sdk/client/models/service_server_paginated_list_response.py @@ -7,26 +7,22 @@ from attrs import field as _attrs_field if TYPE_CHECKING: + from ..models.pagination_meta import PaginationMeta from ..models.service_server import ServiceServer - from ..models.service_server_list_response_meta_type_0 import ServiceServerListResponseMetaType0 -T = TypeVar("T", bound="ServiceServerListResponse") +T = TypeVar("T", bound="ServiceServerPaginatedListResponse") @_attrs_define -class ServiceServerListResponse: +class ServiceServerPaginatedListResponse: error: int message: None | str data: list[ServiceServer] - meta: None | ServiceServerListResponseMetaType0 + meta: PaginationMeta additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: - from ..models.service_server_list_response_meta_type_0 import ( - ServiceServerListResponseMetaType0, - ) - error = self.error message: None | str @@ -37,11 +33,7 @@ def to_dict(self) -> dict[str, Any]: data_item = data_item_data.to_dict() data.append(data_item) - meta: dict[str, Any] | None - if isinstance(self.meta, ServiceServerListResponseMetaType0): - meta = self.meta.to_dict() - else: - meta = self.meta + meta = self.meta.to_dict() field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) @@ -58,10 +50,8 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls, src_dict: Mapping[str, Any]) -> Self: + from ..models.pagination_meta import PaginationMeta from ..models.service_server import ServiceServer - from ..models.service_server_list_response_meta_type_0 import ( - ServiceServerListResponseMetaType0, - ) d = dict(src_dict) error = d.pop("error") @@ -80,30 +70,17 @@ def _parse_message(data: object) -> None | str: data.append(data_item) - def _parse_meta(data: object) -> None | ServiceServerListResponseMetaType0: - if data is None: - return data - try: - if not isinstance(data, dict): - raise TypeError() - meta_type_0 = ServiceServerListResponseMetaType0.from_dict(data) - - return meta_type_0 - except (TypeError, ValueError, AttributeError, KeyError): - pass - return cast(None | ServiceServerListResponseMetaType0, data) - - meta = _parse_meta(d.pop("meta")) + meta = PaginationMeta.from_dict(d.pop("meta")) - service_server_list_response = cls( + service_server_paginated_list_response = cls( error=error, message=message, data=data, meta=meta, ) - service_server_list_response.additional_properties = d - return service_server_list_response + service_server_paginated_list_response.additional_properties = d + return service_server_paginated_list_response @property def additional_keys(self) -> list[str]: diff --git a/tests/unit/test_client.py b/tests/unit/test_client.py index 058d0fc..a8541b8 100644 --- a/tests/unit/test_client.py +++ b/tests/unit/test_client.py @@ -187,7 +187,7 @@ def test_list_tasks_sends_only_the_parameters_with_a_default(api: FakeApi) -> No "error": 0, "message": None, "data": [], - "meta": {"total": 0, "count": 0, "pages": 0, "page": 1, "per_page": 20}, + "meta": {"total": 0, "count": 0, "pages": 0, "page": 1, "per_page": 15}, } api.responses += [token_response(), httpx.Response(200, json=body)] @@ -196,7 +196,7 @@ def test_list_tasks_sends_only_the_parameters_with_a_default(api: FakeApi) -> No assert dict(api.api_requests[0].url.params) == { "alive_only": "true", "page": "1", - "per_page": "20", + "per_page": "15", } From bf7d974e9efa12d18af77e8fdaf91c8de003ca89 Mon Sep 17 00:00:00 2001 From: Tobia Zanarella Date: Thu, 1 Oct 2026 14:59:30 +0200 Subject: [PATCH 2/2] Add unwrap(unexpected_status_type=) and SHELLRENT_TOKEN_CACHE in FileTokenStore - unwrap() takes the UnexpectedStatus class of another generated client, so that shellrent-internal-sdk raises its own exception instead of the one of shellrent_sdk.client. The default is unchanged. - FileTokenStore() without a directory follows SHELLRENT_TOKEN_CACHE: a directory, or "off" to keep the tokens in memory. The CLI now uses it, with the same behaviour. - Released as 0.3.0, not 0.2.1: the regenerated client removes models. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 31 ++++++++++++- CLAUDE.md | 10 ++-- README.md | 11 +++-- src/shellrent_sdk/_errors.py | 36 +++++++++++--- src/shellrent_sdk/auth.py | 30 ++++++++++-- src/shellrent_sdk/cli.py | 22 ++------- tests/unit/test_errors.py | 67 +++++++++++++++++++++++++-- tests/unit/test_token_store.py | 85 ++++++++++++++++++++++++++++++++++ 8 files changed, 251 insertions(+), 41 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d84782..5b2cdd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,34 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.3.0] - 2026-10-01 + +### Added + +- `unwrap(response, unexpected_status_type=...)`: another generated client passes its own + `UnexpectedStatus`, so that `unwrap()` raises the same exception as its generated functions + instead of the `UnexpectedStatus` of `shellrent_sdk.client`, which its callers would not catch. + Without it, `unwrap()` raises the `UnexpectedStatus` of `shellrent_sdk.client` as before. +- `ServiceServerPaginatedListResponse`, from the updated specification. + +### Changed + +- `FileTokenStore()` without a directory follows `SHELLRENT_TOKEN_CACHE`, like the `shellrent` + command: a directory, or `off` to keep the tokens in memory without writing any file. A directory + passed to `FileTokenStore` still wins. The command now uses `FileTokenStore()` itself, with the + same behaviour as before. +- Functions and models regenerated from the updated specification of the Shellrent API: + - the default of `per_page` in the list operations is 15 instead of 20, as in the API; + - `list_active_monitoring_products` and `list_private_cloud_sv_products` return + `ServicePaginatedListResponse`, `list_cloud_vps_products` and `list_dedicated_server_products` + return `ServiceServerPaginatedListResponse`: their `meta` is a `PaginationMeta`. + +### Removed + +- `ServiceListResponse`, `ServiceListResponseMetaType0`, `ServiceServerListResponse` and + `ServiceServerListResponseMetaType0`, no longer in the specification: use + `ServicePaginatedListResponse` and `ServiceServerPaginatedListResponse`. + ## [0.2.0] - 2026-10-01 ### Added @@ -45,6 +73,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 `invalid_client` or, for its rate limit, `rate_limited`. - The `shellrent` command, with `shellrent api` and `shellrent token`. -[Unreleased]: https://github.com/shellrent/shellrent-sdk-python/compare/v0.2.0...HEAD +[Unreleased]: https://github.com/shellrent/shellrent-sdk-python/compare/v0.3.0...HEAD +[0.3.0]: https://github.com/shellrent/shellrent-sdk-python/compare/v0.2.0...v0.3.0 [0.2.0]: https://github.com/shellrent/shellrent-sdk-python/compare/v0.1.0...v0.2.0 [0.1.0]: https://github.com/shellrent/shellrent-sdk-python/releases/tag/v0.1.0 diff --git a/CLAUDE.md b/CLAUDE.md index 54e161e..0499605 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -54,9 +54,11 @@ da `spec/openapi.yaml`; a mano solo autenticazione, creazione del client, CLI, t - `auth.py`, `http.py` e `cli.py` non importano nulla da `shellrent_sdk.client` (lo verifica `test_layers.py`). - I transport di default di `RetryTransport` seguono l'ambiente come quelli di httpx: proxy con `urllib.request.getproxies`/`proxy_bypass` (httpx non ha un'API pubblica), certificati con `trust_env`. -- L'interfaccia pubblica di `auth`, `http`, di `unwrap()` e `ApiException` (con `ApiErrorLike`) e della CLI - (`main(argv)`, comandi, variabili d'ambiente, exit code) è usata da `shellrent-internal-sdk`: cambiarla è - una modifica incompatibile (major). Il client generato interno passa il proprio `ApiError` a - `unwrap(error_type=...)`: `ApiException` non dipende dall'`ApiError` di questo pacchetto. +- L'interfaccia pubblica di `auth`, `http`, di `unwrap()` (con `error_type` e `unexpected_status_type`) e + `ApiException` (con `ApiErrorLike`) e della CLI (`main(argv)`, comandi, variabili d'ambiente, exit code) è + usata da `shellrent-internal-sdk`: cambiarla è una modifica incompatibile (major). Il client generato + interno passa il proprio `ApiError` e la propria `UnexpectedStatus` a + `unwrap(error_type=..., unexpected_status_type=...)`: `ApiException` non dipende dall'`ApiError` di questo + pacchetto e chi usa il client interno riceve la sua `UnexpectedStatus`. - `create_client()` restituisce `AuthenticatedClient` perché le funzioni generate lo richiedono nel tipo; il token lo mette `OAuth2Auth` a ogni richiesta, non il campo `token` del client. diff --git a/README.md b/README.md index 26aa1ca..5e54479 100644 --- a/README.md +++ b/README.md @@ -76,13 +76,18 @@ this saves a token request per process and keeps you within the limit of the tok ```python from shellrent_sdk import FileTokenStore, create_client -# $XDG_CACHE_HOME/shellrent-sdk, or ~/.cache/shellrent-sdk +# $SHELLRENT_TOKEN_CACHE, or $XDG_CACHE_HOME/shellrent-sdk, or ~/.cache/shellrent-sdk client = create_client(token_store=FileTokenStore()) # In a web application the home directory of the server user may not be writable: client = create_client(token_store=FileTokenStore("/var/cache/myapp/shellrent")) ``` +Without a directory, `FileTokenStore()` follows `SHELLRENT_TOKEN_CACHE`, like the +[`shellrent` command](#command-line): the variable sets another directory, or `off` keeps the tokens +in memory, for the life of the process, without writing any file. A directory passed to +`FileTokenStore` wins over the variable. + `FileTokenStore` creates its directory readable by its owner only (0700) and writes each token atomically to a file with mode 0600. The client secret is never cached. @@ -258,8 +263,8 @@ fi Each run is a new process, so the command keeps the token in a file, in `$XDG_CACHE_HOME/shellrent-sdk` or `~/.cache/shellrent-sdk`, and reuses it until it expires: scripts run by cron do not request a -token every time. `SHELLRENT_TOKEN_CACHE` sets another directory, or `off` to keep the token only -for the current run. `python -m shellrent_sdk` is the same as `shellrent`, and +token every time. `SHELLRENT_TOKEN_CACHE`, as for `FileTokenStore()`, sets another directory, or +`off` to keep the token only for the current run. `python -m shellrent_sdk` is the same as `shellrent`, and `uvx --from shellrent-sdk shellrent` runs it without installing it. ## Using httpx directly diff --git a/src/shellrent_sdk/_errors.py b/src/shellrent_sdk/_errors.py index e8c4c18..047950d 100644 --- a/src/shellrent_sdk/_errors.py +++ b/src/shellrent_sdk/_errors.py @@ -1,6 +1,6 @@ from __future__ import annotations -from collections.abc import Mapping +from collections.abc import Callable, Mapping from typing import TYPE_CHECKING, Protocol, TypeVar, overload from .client.errors import UnexpectedStatus @@ -66,15 +66,28 @@ def __init__( @overload -def unwrap(response: Response[T | ApiError], *, error_type: type[ApiError] | None = None) -> T: ... +def unwrap( + response: Response[T | ApiError], + *, + error_type: type[ApiError] | None = None, + unexpected_status_type: Callable[[int, bytes], Exception] | None = None, +) -> T: ... @overload -def unwrap(response: _ResponseLike[T | E], *, error_type: type[E]) -> T: ... +def unwrap( + response: _ResponseLike[T | E], + *, + error_type: type[E], + unexpected_status_type: Callable[[int, bytes], Exception] | None = None, +) -> T: ... def unwrap( - response: _ResponseLike[object], *, error_type: type[ApiErrorLike] | None = None + response: _ResponseLike[object], + *, + error_type: type[ApiErrorLike] | None = None, + unexpected_status_type: Callable[[int, bytes], Exception] | None = None, ) -> object: """Returns the parsed body of a successful response and raises an exception for the others. @@ -89,11 +102,18 @@ def unwrap( envelope of the body, so another generated client wraps ``unwrap()`` with its own types:: def unwrap(response: Response[T | ApiError]) -> T: - return shellrent_sdk.unwrap(response, error_type=ApiError) + return shellrent_sdk.unwrap( + response, error_type=ApiError, unexpected_status_type=UnexpectedStatus + ) + + unexpected_status_type: The ``UnexpectedStatus`` class of the generated client; default the + one of ``shellrent_sdk.client``. Each generated client has its own: another client passes + it, so that ``unwrap()`` raises the same exception as its generated functions. Raises: ApiException: An error response documented in the specification (``error_type``). - UnexpectedStatus: Any other response outside 2xx, or without a parsed body. + UnexpectedStatus: Any other response outside 2xx, or without a parsed body + (``unexpected_status_type``). """ if error_type is None: # Imported here: importing the models takes a while, and the CLI does not need them. @@ -105,5 +125,7 @@ def unwrap(response: Response[T | ApiError]) -> T: if isinstance(parsed, error_type): raise ApiException(response.status_code, parsed, response.headers, response.content) if parsed is None or not 200 <= response.status_code < 300: - raise UnexpectedStatus(response.status_code, response.content) + if unexpected_status_type is None: + unexpected_status_type = UnexpectedStatus + raise unexpected_status_type(response.status_code, response.content) return parsed diff --git a/src/shellrent_sdk/auth.py b/src/shellrent_sdk/auth.py index 0c27516..15bd4d3 100644 --- a/src/shellrent_sdk/auth.py +++ b/src/shellrent_sdk/auth.py @@ -186,9 +186,13 @@ def delete(self, key: str) -> None: class FileTokenStore: """Keeps the tokens in files, one per key, shared by the processes of the same user. - The directory defaults to ``$XDG_CACHE_HOME/shellrent-sdk``, or ``~/.cache/shellrent-sdk``. - When it does not exist it is created readable by its owner only (0700); the files are always - written with mode 0600, through a temporary file and an atomic rename. + Without ``directory``, like the ``shellrent`` command, it follows ``SHELLRENT_TOKEN_CACHE``: a + directory, or ``off`` to keep the tokens in memory instead, for the life of the process, as + ``MemoryTokenStore`` does. Otherwise the directory is ``$XDG_CACHE_HOME/shellrent-sdk``, or + ``~/.cache/shellrent-sdk``. + + When the directory does not exist it is created readable by its owner only (0700); the files + are always written with mode 0600, through a temporary file and an atomic rename. """ _KEY_PATTERN: Final = re.compile(r"[A-Za-z0-9_-][A-Za-z0-9_.-]*") @@ -199,12 +203,21 @@ def __init__( *, clock: Callable[[], float] = time.time, ) -> None: + setting = _env("SHELLRENT_TOKEN_CACHE") if directory is None else None + off = setting is not None and setting.lower() == "off" + if directory is None and setting is not None and not off: + directory = setting + self.directory: Final = Path(directory) if directory is not None else _default_cache_dir() self._clock = clock + self._memory: Final = MemoryTokenStore(clock=clock) if off else None def get(self, key: str) -> str | None: + path = self._path(key) + if self._memory is not None: + return self._memory.get(key) try: - data = json.loads(self._path(key).read_text(encoding="utf-8")) + data = json.loads(path.read_text(encoding="utf-8")) except FileNotFoundError: return None except ValueError: # Not JSON: a file of someone else, or damaged. @@ -219,6 +232,9 @@ def get(self, key: str) -> str | None: def set(self, key: str, value: str, ttl: int) -> None: path = self._path(key) + if self._memory is not None: + self._memory.set(key, value, ttl) + return if ttl <= 0: self.delete(key) return @@ -236,7 +252,11 @@ def set(self, key: str, value: str, ttl: int) -> None: raise def delete(self, key: str) -> None: - self._path(key).unlink(missing_ok=True) + path = self._path(key) + if self._memory is not None: + self._memory.delete(key) + return + path.unlink(missing_ok=True) def _path(self, key: str) -> Path: if not self._KEY_PATTERN.fullmatch(key): diff --git a/src/shellrent_sdk/cli.py b/src/shellrent_sdk/cli.py index 32dde94..34b1096 100644 --- a/src/shellrent_sdk/cli.py +++ b/src/shellrent_sdk/cli.py @@ -8,7 +8,6 @@ import argparse import json -import os import sys from collections.abc import Sequence from pathlib import Path @@ -17,14 +16,7 @@ import httpx -from .auth import ( - ClientCredentials, - FileTokenStore, - MemoryTokenStore, - OAuth2Auth, - TokenError, - TokenStore, -) +from .auth import ClientCredentials, FileTokenStore, OAuth2Auth, TokenError from .http import _package_version, client_args __all__ = ["main"] @@ -152,7 +144,9 @@ def _token(args: argparse.Namespace) -> int: def _client(credentials: ClientCredentials) -> tuple[httpx.Client, OAuth2Auth]: - args = client_args(credentials, token_store=_token_store()) + # Each run is a new process: without a file the token would be requested every time. + # FileTokenStore follows SHELLRENT_TOKEN_CACHE, "off" included. + args = client_args(credentials, token_store=FileTokenStore()) return httpx.Client(**args), args["auth"] @@ -163,14 +157,6 @@ def _credentials() -> ClientCredentials: raise _UsageError(str(exc)) from None -def _token_store() -> TokenStore: - # Each run is a new process: without a file the token would be requested every time. - setting = os.environ.get("SHELLRENT_TOKEN_CACHE", "") - if setting.lower() == "off": - return MemoryTokenStore() - return FileTokenStore(setting or None) - - def _path(path: str) -> str: # A URL would send the token to another host. parts = urlsplit(path) diff --git a/tests/unit/test_errors.py b/tests/unit/test_errors.py index 486970f..a222997 100644 --- a/tests/unit/test_errors.py +++ b/tests/unit/test_errors.py @@ -1,4 +1,4 @@ -"""unwrap() with the models of another generated client, such as the one of shellrent-internal-sdk.""" +"""unwrap() with the types of another generated client, such as the one of shellrent-internal-sdk.""" from __future__ import annotations @@ -10,7 +10,7 @@ import pytest from attrs import define -from shellrent_sdk import ApiException, unwrap +from shellrent_sdk import ApiException, UnexpectedStatus, unwrap from shellrent_sdk.client.models import ApiError from shellrent_sdk.client.types import File, Response @@ -39,9 +39,16 @@ class OtherStatus: data: str +class OtherUnexpectedStatus(Exception): + def __init__(self, status_code: int, content: bytes): + self.status_code = status_code + self.content = content + super().__init__(f"Unexpected status code: {status_code}") + + def other_unwrap(response: OtherResponse[T | OtherApiError]) -> T: """The wrapper of the other client, as in the docstring of unwrap().""" - return unwrap(response, error_type=OtherApiError) + return unwrap(response, error_type=OtherApiError, unexpected_status_type=OtherUnexpectedStatus) def test_unwrap_raises_api_exception_for_the_api_error_of_another_client() -> None: @@ -79,6 +86,47 @@ def test_api_exception_without_message() -> None: assert str(info.value) == "HTTP 409" +@pytest.mark.parametrize( + ("status", "parsed"), + [ + # A status code missing from the specification. + (HTTPStatus.SERVICE_UNAVAILABLE, None), + # A 2xx without a parsed body. + (HTTPStatus.OK, None), + # A body parsed for a status outside 2xx. + (HTTPStatus.INTERNAL_SERVER_ERROR, OtherStatus(error=0, message=None, data="ok")), + ], +) +def test_unwrap_raises_the_unexpected_status_of_another_client( + status: HTTPStatus, parsed: OtherStatus | None +) -> None: + response: OtherResponse[OtherStatus | OtherApiError] = OtherResponse( + status, b"Maintenance", {}, parsed + ) + + with pytest.raises(OtherUnexpectedStatus) as info: + other_unwrap(response) + + assert not isinstance(info.value, UnexpectedStatus) + assert info.value.status_code == status + assert info.value.content == b"Maintenance" + + +def test_without_unexpected_status_type_another_client_gets_the_one_of_shellrent_sdk() -> None: + def unwrap_0_2_0(response: OtherResponse[T | OtherApiError]) -> T: + """The wrapper of the other client with shellrent-sdk 0.2.0.""" + return unwrap(response, error_type=OtherApiError) + + response: OtherResponse[OtherStatus | OtherApiError] = OtherResponse( + HTTPStatus.SERVICE_UNAVAILABLE, b"Maintenance", {}, None + ) + + with pytest.raises(UnexpectedStatus) as info: + unwrap_0_2_0(response) + + assert info.value.status_code == 503 + + def test_the_api_error_of_shellrent_sdk_is_the_default() -> None: file = File(payload=BytesIO(b"%PDF")) response: Response[File | ApiError] = Response(HTTPStatus.OK, b"%PDF", {}, file) @@ -93,3 +141,16 @@ def test_the_api_error_of_shellrent_sdk_is_the_default() -> None: assert assert_type(unwrap(response, error_type=ApiError), File) is file with pytest.raises(ApiException): unwrap(error, error_type=ApiError) + + +def test_the_unexpected_status_of_shellrent_sdk_is_the_default() -> None: + response: Response[File | ApiError] = Response( + HTTPStatus.SERVICE_UNAVAILABLE, b"Maintenance", {}, None + ) + + with pytest.raises(UnexpectedStatus): + unwrap(response) + with pytest.raises(UnexpectedStatus): + unwrap(response, unexpected_status_type=UnexpectedStatus) + with pytest.raises(OtherUnexpectedStatus): + unwrap(response, unexpected_status_type=OtherUnexpectedStatus) diff --git a/tests/unit/test_token_store.py b/tests/unit/test_token_store.py index b6d1519..9fea855 100644 --- a/tests/unit/test_token_store.py +++ b/tests/unit/test_token_store.py @@ -153,15 +153,73 @@ def replace(src: str, dst: str) -> None: def test_file_store_default_directory(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: + monkeypatch.delenv("SHELLRENT_TOKEN_CACHE", raising=False) monkeypatch.setenv("XDG_CACHE_HOME", str(tmp_path / "xdg")) assert FileTokenStore().directory == tmp_path / "xdg" / "shellrent-sdk" + monkeypatch.setenv("SHELLRENT_TOKEN_CACHE", "") + assert FileTokenStore().directory == tmp_path / "xdg" / "shellrent-sdk" + monkeypatch.setenv("XDG_CACHE_HOME", "relative/path") monkeypatch.setenv("HOME", str(tmp_path / "home")) monkeypatch.setenv("USERPROFILE", str(tmp_path / "home")) assert FileTokenStore().directory == tmp_path / "home" / ".cache" / "shellrent-sdk" +def test_file_store_directory_from_the_environment( + monkeypatch: pytest.MonkeyPatch, tmp_path: Path +) -> None: + monkeypatch.setenv("SHELLRENT_TOKEN_CACHE", str(tmp_path / "env")) + monkeypatch.setenv("XDG_CACHE_HOME", str(tmp_path / "xdg")) + + store = FileTokenStore() + store.set("key", "value", 10) + + assert store.directory == tmp_path / "env" + assert (tmp_path / "env" / "key.json").exists() + assert not (tmp_path / "xdg").exists() + + +def test_a_directory_argument_wins_over_the_environment( + monkeypatch: pytest.MonkeyPatch, tmp_path: Path +) -> None: + monkeypatch.setenv("SHELLRENT_TOKEN_CACHE", str(tmp_path / "env")) + assert FileTokenStore(tmp_path / "arg").directory == tmp_path / "arg" + + # Even "off": it is the name of a directory then. + monkeypatch.setenv("SHELLRENT_TOKEN_CACHE", "off") + store = FileTokenStore(tmp_path) + store.set("key", "value", 10) + assert (tmp_path / "key.json").exists() + + +@pytest.mark.parametrize("setting", ["off", "OFF", "Off"]) +def test_file_store_turned_off_keeps_values_in_memory( + monkeypatch: pytest.MonkeyPatch, tmp_path: Path, setting: str +) -> None: + monkeypatch.setenv("SHELLRENT_TOKEN_CACHE", setting) + monkeypatch.setenv("XDG_CACHE_HOME", str(tmp_path)) + monkeypatch.setenv("HOME", str(tmp_path)) + monkeypatch.setenv("USERPROFILE", str(tmp_path)) + clock = FakeClock() + store = FileTokenStore(clock=clock) + + store.set("key", "value", 10) + store.set("other", "value", 10) + assert store.get("key") == "value" + assert FileTokenStore().get("key") is None # Not shared with the other processes. + + store.delete("other") + store.delete("missing") + assert store.get("other") is None + clock.now += 10 + assert store.get("key") is None + + with pytest.raises(ValueError, match="Invalid key"): + store.set("../key", "value", 10) + assert list(tmp_path.iterdir()) == [] + + # With OAuth2Auth @@ -180,6 +238,33 @@ def test_a_new_process_reuses_the_token_in_the_file(tmp_path: Path) -> None: assert CLIENT_SECRET not in file.name +def test_with_the_cache_turned_off_a_new_process_requests_a_new_token( + monkeypatch: pytest.MonkeyPatch, tmp_path: Path +) -> None: + monkeypatch.setenv("SHELLRENT_TOKEN_CACHE", "off") + monkeypatch.setenv("XDG_CACHE_HOME", str(tmp_path)) + api = FakeApi( + token_response("token-1"), + health_response(), + health_response(), + token_response("token-2"), + health_response(), + ) + + store = FileTokenStore() + for _ in range(2): # Two clients of the same process share the store. + auth = OAuth2Auth(credentials(), store) + with httpx.Client(base_url=API_URL, auth=auth, transport=api.transport()) as client: + client.get("/api/health") + auth = OAuth2Auth(credentials(), FileTokenStore()) + with httpx.Client(base_url=API_URL, auth=auth, transport=api.transport()) as client: + client.get("/api/health") + + assert len(api.token_requests) == 2 + assert api.api_requests[-1].headers["Authorization"] == "Bearer token-2" + assert list(tmp_path.iterdir()) == [] + + def test_an_expired_token_in_the_file_is_not_used(tmp_path: Path) -> None: clock = FakeClock() api = FakeApi(