diff --git a/README.md b/README.md index 72e723b..5c2b1c6 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 0.1.0 -- Package version: 3.2.4 +- Package version: 3.2.5 - Generator version: 7.9.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -104,10 +104,13 @@ Class | Method | HTTP request | Description *EXTERNALApi* | [**create_rag_deployment_deployments_rag_post**](docs/EXTERNALApi.md#create_rag_deployment_deployments_rag_post) | **POST** /deployments/rag | Create Rag Deployment *EXTERNALApi* | [**create_setup_payments_setup_checkout_post**](docs/EXTERNALApi.md#create_setup_payments_setup_checkout_post) | **POST** /payments/setup_checkout | Create Setup *EXTERNALApi* | [**delete_api_key_credentials_api_key_id_delete**](docs/EXTERNALApi.md#delete_api_key_credentials_api_key_id_delete) | **DELETE** /credentials/api-key/{id} | Delete Api Key +*EXTERNALApi* | [**delete_autocharge_preferences_autocharge_preferences_delete**](docs/EXTERNALApi.md#delete_autocharge_preferences_autocharge_preferences_delete) | **DELETE** /autocharge/preferences | Delete Autocharge Preferences +*EXTERNALApi* | [**delete_payment_method_payments_methods_delete**](docs/EXTERNALApi.md#delete_payment_method_payments_methods_delete) | **DELETE** /payments/methods | Delete Payment Method *EXTERNALApi* | [**delete_user_vault_item_endpoint_user_vault_delete**](docs/EXTERNALApi.md#delete_user_vault_item_endpoint_user_vault_delete) | **DELETE** /user_vault | Delete User Vault Item Endpoint *EXTERNALApi* | [**download_url_file_url_download_post**](docs/EXTERNALApi.md#download_url_file_url_download_post) | **POST** /file_url/download | Download Url *EXTERNALApi* | [**get_all_user_vault_items_endpoint_user_vault_get**](docs/EXTERNALApi.md#get_all_user_vault_items_endpoint_user_vault_get) | **GET** /user_vault | Get All User Vault Items Endpoint *EXTERNALApi* | [**get_api_keys_credentials_api_key_get**](docs/EXTERNALApi.md#get_api_keys_credentials_api_key_get) | **GET** /credentials/api-key | Get Api Keys +*EXTERNALApi* | [**get_autocharge_preferences_autocharge_preferences_get**](docs/EXTERNALApi.md#get_autocharge_preferences_autocharge_preferences_get) | **GET** /autocharge/preferences | Get Autocharge Preferences *EXTERNALApi* | [**get_clusters_clusters_get**](docs/EXTERNALApi.md#get_clusters_clusters_get) | **GET** /clusters | Get Clusters *EXTERNALApi* | [**get_compute_deployment_deployments_compute_deployment_id_get**](docs/EXTERNALApi.md#get_compute_deployment_deployments_compute_deployment_id_get) | **GET** /deployments/compute/{deployment_id} | Get Compute Deployment *EXTERNALApi* | [**get_credits_credits_get**](docs/EXTERNALApi.md#get_credits_credits_get) | **GET** /credits | Get Credits @@ -119,13 +122,14 @@ Class | Method | HTTP request | Description *EXTERNALApi* | [**get_deployments_deployments_get**](docs/EXTERNALApi.md#get_deployments_deployments_get) | **GET** /deployments | Get Deployments *EXTERNALApi* | [**get_hardware_instances_hardware_instances_get**](docs/EXTERNALApi.md#get_hardware_instances_hardware_instances_get) | **GET** /hardware-instances | Get Hardware Instances *EXTERNALApi* | [**get_inference_deployment_deployments_inference_deployment_id_get**](docs/EXTERNALApi.md#get_inference_deployment_deployments_inference_deployment_id_get) | **GET** /deployments/inference/{deployment_id} | Get Inference Deployment +*EXTERNALApi* | [**get_payment_method_payments_methods_get**](docs/EXTERNALApi.md#get_payment_method_payments_methods_get) | **GET** /payments/methods | Get Payment Method *EXTERNALApi* | [**get_payments_payments_get**](docs/EXTERNALApi.md#get_payments_payments_get) | **GET** /payments | Get Payments *EXTERNALApi* | [**get_prebuilt_images_prebuilt_images_get**](docs/EXTERNALApi.md#get_prebuilt_images_prebuilt_images_get) | **GET** /prebuilt-images | Get Prebuilt Images *EXTERNALApi* | [**get_rag_deployment_deployments_rag_deployment_id_get**](docs/EXTERNALApi.md#get_rag_deployment_deployments_rag_deployment_id_get) | **GET** /deployments/rag/{deployment_id} | Get Rag Deployment *EXTERNALApi* | [**get_usage_daily_bills_get**](docs/EXTERNALApi.md#get_usage_daily_bills_get) | **GET** /daily_bills | Get Usage *EXTERNALApi* | [**get_usage_deployments_usage_deployment_id_get**](docs/EXTERNALApi.md#get_usage_deployments_usage_deployment_id_get) | **GET** /deployments/usage/{deployment_id} | Get Usage *EXTERNALApi* | [**setup_stripe_customer_payments_setup_post**](docs/EXTERNALApi.md#setup_stripe_customer_payments_setup_post) | **POST** /payments/setup | Setup Stripe Customer -*EXTERNALApi* | [**update_autopay_preferences_autopay_put**](docs/EXTERNALApi.md#update_autopay_preferences_autopay_put) | **PUT** /preferences/autopay | Update Autopay +*EXTERNALApi* | [**update_autocharge_preferences_autocharge_preferences_put**](docs/EXTERNALApi.md#update_autocharge_preferences_autocharge_preferences_put) | **PUT** /autocharge/preferences | Update Autocharge Preferences *EXTERNALApi* | [**update_deployment_status_deployments_status_deployment_id_put**](docs/EXTERNALApi.md#update_deployment_status_deployments_status_deployment_id_put) | **PUT** /deployments/status/{deployment_id} | Update Deployment Status *EXTERNALApi* | [**update_user_vault_item_endpoint_user_vault_put**](docs/EXTERNALApi.md#update_user_vault_item_endpoint_user_vault_put) | **PUT** /user_vault | Update User Vault Item Endpoint *EXTERNALApi* | [**upload_url_file_url_upload_post**](docs/EXTERNALApi.md#upload_url_file_url_upload_post) | **POST** /file_url/upload | Upload Url @@ -161,6 +165,7 @@ Class | Method | HTTP request | Description - [DeploymentStatusResponse](docs/DeploymentStatusResponse.md) - [DeploymentType](docs/DeploymentType.md) - [DeploymentUsageValue](docs/DeploymentUsageValue.md) + - [GetAutochargePreferencesResponse](docs/GetAutochargePreferencesResponse.md) - [GetCServeDeploymentResponse](docs/GetCServeDeploymentResponse.md) - [GetCServeV2DeploymentResponse](docs/GetCServeV2DeploymentResponse.md) - [GetClusterResponse](docs/GetClusterResponse.md) @@ -183,9 +188,10 @@ Class | Method | HTTP request | Description - [ListPrebuiltImageResponse](docs/ListPrebuiltImageResponse.md) - [ListUserVaultItemsResponse](docs/ListUserVaultItemsResponse.md) - [Metric](docs/Metric.md) + - [PaymentMethodResponse](docs/PaymentMethodResponse.md) - [PrebuiltImageResponse](docs/PrebuiltImageResponse.md) - [ServiceStatus](docs/ServiceStatus.md) - - [UpdateAutopayRequest](docs/UpdateAutopayRequest.md) + - [UpdateAutochargePreferencesRequest](docs/UpdateAutochargePreferencesRequest.md) - [UserSupportEmailRequest](docs/UserSupportEmailRequest.md) - [UserVaultItem](docs/UserVaultItem.md) - [UserVaultType](docs/UserVaultType.md) diff --git a/docs/CServeV2RecipeInput.md b/docs/CServeV2RecipeInput.md deleted file mode 100644 index ebd1d71..0000000 --- a/docs/CServeV2RecipeInput.md +++ /dev/null @@ -1,31 +0,0 @@ -# CServeV2RecipeInput - -Inputs to start deployment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**model** | **str** | | -**is_embedding_model** | **bool** | | [optional] [default to False] - -## Example - -```python -from platform_api_python_client.models.c_serve_v2_recipe_input import CServeV2RecipeInput - -# TODO update the JSON string below -json = "{}" -# create an instance of CServeV2RecipeInput from a JSON string -c_serve_v2_recipe_input_instance = CServeV2RecipeInput.from_json(json) -# print the JSON string representation of the object -print(CServeV2RecipeInput.to_json()) - -# convert the object into a dict -c_serve_v2_recipe_input_dict = c_serve_v2_recipe_input_instance.to_dict() -# create an instance of CServeV2RecipeInput from a dict -c_serve_v2_recipe_input_from_dict = CServeV2RecipeInput.from_dict(c_serve_v2_recipe_input_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CServeV2RecipeOutput.md b/docs/CServeV2RecipeOutput.md deleted file mode 100644 index f237e1a..0000000 --- a/docs/CServeV2RecipeOutput.md +++ /dev/null @@ -1,31 +0,0 @@ -# CServeV2RecipeOutput - -Inputs to start deployment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**model** | **str** | | -**is_embedding_model** | **bool** | | [default to False] - -## Example - -```python -from platform_api_python_client.models.c_serve_v2_recipe_output import CServeV2RecipeOutput - -# TODO update the JSON string below -json = "{}" -# create an instance of CServeV2RecipeOutput from a JSON string -c_serve_v2_recipe_output_instance = CServeV2RecipeOutput.from_json(json) -# print the JSON string representation of the object -print(CServeV2RecipeOutput.to_json()) - -# convert the object into a dict -c_serve_v2_recipe_output_dict = c_serve_v2_recipe_output_instance.to_dict() -# create an instance of CServeV2RecipeOutput from a dict -c_serve_v2_recipe_output_from_dict = CServeV2RecipeOutput.from_dict(c_serve_v2_recipe_output_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/EXTERNALApi.md b/docs/EXTERNALApi.md index 6913f7a..d3fe101 100644 --- a/docs/EXTERNALApi.md +++ b/docs/EXTERNALApi.md @@ -14,10 +14,13 @@ Method | HTTP request | Description [**create_rag_deployment_deployments_rag_post**](EXTERNALApi.md#create_rag_deployment_deployments_rag_post) | **POST** /deployments/rag | Create Rag Deployment [**create_setup_payments_setup_checkout_post**](EXTERNALApi.md#create_setup_payments_setup_checkout_post) | **POST** /payments/setup_checkout | Create Setup [**delete_api_key_credentials_api_key_id_delete**](EXTERNALApi.md#delete_api_key_credentials_api_key_id_delete) | **DELETE** /credentials/api-key/{id} | Delete Api Key +[**delete_autocharge_preferences_autocharge_preferences_delete**](EXTERNALApi.md#delete_autocharge_preferences_autocharge_preferences_delete) | **DELETE** /autocharge/preferences | Delete Autocharge Preferences +[**delete_payment_method_payments_methods_delete**](EXTERNALApi.md#delete_payment_method_payments_methods_delete) | **DELETE** /payments/methods | Delete Payment Method [**delete_user_vault_item_endpoint_user_vault_delete**](EXTERNALApi.md#delete_user_vault_item_endpoint_user_vault_delete) | **DELETE** /user_vault | Delete User Vault Item Endpoint [**download_url_file_url_download_post**](EXTERNALApi.md#download_url_file_url_download_post) | **POST** /file_url/download | Download Url [**get_all_user_vault_items_endpoint_user_vault_get**](EXTERNALApi.md#get_all_user_vault_items_endpoint_user_vault_get) | **GET** /user_vault | Get All User Vault Items Endpoint [**get_api_keys_credentials_api_key_get**](EXTERNALApi.md#get_api_keys_credentials_api_key_get) | **GET** /credentials/api-key | Get Api Keys +[**get_autocharge_preferences_autocharge_preferences_get**](EXTERNALApi.md#get_autocharge_preferences_autocharge_preferences_get) | **GET** /autocharge/preferences | Get Autocharge Preferences [**get_clusters_clusters_get**](EXTERNALApi.md#get_clusters_clusters_get) | **GET** /clusters | Get Clusters [**get_compute_deployment_deployments_compute_deployment_id_get**](EXTERNALApi.md#get_compute_deployment_deployments_compute_deployment_id_get) | **GET** /deployments/compute/{deployment_id} | Get Compute Deployment [**get_credits_credits_get**](EXTERNALApi.md#get_credits_credits_get) | **GET** /credits | Get Credits @@ -29,13 +32,14 @@ Method | HTTP request | Description [**get_deployments_deployments_get**](EXTERNALApi.md#get_deployments_deployments_get) | **GET** /deployments | Get Deployments [**get_hardware_instances_hardware_instances_get**](EXTERNALApi.md#get_hardware_instances_hardware_instances_get) | **GET** /hardware-instances | Get Hardware Instances [**get_inference_deployment_deployments_inference_deployment_id_get**](EXTERNALApi.md#get_inference_deployment_deployments_inference_deployment_id_get) | **GET** /deployments/inference/{deployment_id} | Get Inference Deployment +[**get_payment_method_payments_methods_get**](EXTERNALApi.md#get_payment_method_payments_methods_get) | **GET** /payments/methods | Get Payment Method [**get_payments_payments_get**](EXTERNALApi.md#get_payments_payments_get) | **GET** /payments | Get Payments [**get_prebuilt_images_prebuilt_images_get**](EXTERNALApi.md#get_prebuilt_images_prebuilt_images_get) | **GET** /prebuilt-images | Get Prebuilt Images [**get_rag_deployment_deployments_rag_deployment_id_get**](EXTERNALApi.md#get_rag_deployment_deployments_rag_deployment_id_get) | **GET** /deployments/rag/{deployment_id} | Get Rag Deployment [**get_usage_daily_bills_get**](EXTERNALApi.md#get_usage_daily_bills_get) | **GET** /daily_bills | Get Usage [**get_usage_deployments_usage_deployment_id_get**](EXTERNALApi.md#get_usage_deployments_usage_deployment_id_get) | **GET** /deployments/usage/{deployment_id} | Get Usage [**setup_stripe_customer_payments_setup_post**](EXTERNALApi.md#setup_stripe_customer_payments_setup_post) | **POST** /payments/setup | Setup Stripe Customer -[**update_autopay_preferences_autopay_put**](EXTERNALApi.md#update_autopay_preferences_autopay_put) | **PUT** /preferences/autopay | Update Autopay +[**update_autocharge_preferences_autocharge_preferences_put**](EXTERNALApi.md#update_autocharge_preferences_autocharge_preferences_put) | **PUT** /autocharge/preferences | Update Autocharge Preferences [**update_deployment_status_deployments_status_deployment_id_put**](EXTERNALApi.md#update_deployment_status_deployments_status_deployment_id_put) | **PUT** /deployments/status/{deployment_id} | Update Deployment Status [**update_user_vault_item_endpoint_user_vault_put**](EXTERNALApi.md#update_user_vault_item_endpoint_user_vault_put) | **PUT** /user_vault | Update User Vault Item Endpoint [**upload_url_file_url_upload_post**](EXTERNALApi.md#upload_url_file_url_upload_post) | **POST** /file_url/upload | Upload Url @@ -818,6 +822,148 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_autocharge_preferences_autocharge_preferences_delete** +> object delete_autocharge_preferences_autocharge_preferences_delete() + +Delete Autocharge Preferences + +### Example + +* Bearer Authentication (HTTPBearer): + +```python +import platform_api_python_client +from platform_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = platform_api_python_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: HTTPBearer +configuration = platform_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with platform_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = platform_api_python_client.EXTERNALApi(api_client) + + try: + # Delete Autocharge Preferences + api_response = api_instance.delete_autocharge_preferences_autocharge_preferences_delete() + print("The response of EXTERNALApi->delete_autocharge_preferences_autocharge_preferences_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EXTERNALApi->delete_autocharge_preferences_autocharge_preferences_delete: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +**object** + +### Authorization + +[HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_payment_method_payments_methods_delete** +> object delete_payment_method_payments_methods_delete() + +Delete Payment Method + +### Example + +* Bearer Authentication (HTTPBearer): + +```python +import platform_api_python_client +from platform_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = platform_api_python_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: HTTPBearer +configuration = platform_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with platform_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = platform_api_python_client.EXTERNALApi(api_client) + + try: + # Delete Payment Method + api_response = api_instance.delete_payment_method_payments_methods_delete() + print("The response of EXTERNALApi->delete_payment_method_payments_methods_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EXTERNALApi->delete_payment_method_payments_methods_delete: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +**object** + +### Authorization + +[HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_user_vault_item_endpoint_user_vault_delete** > object delete_user_vault_item_endpoint_user_vault_delete(user_vault_item) @@ -1129,6 +1275,78 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_autocharge_preferences_autocharge_preferences_get** +> GetAutochargePreferencesResponse get_autocharge_preferences_autocharge_preferences_get() + +Get Autocharge Preferences + +### Example + +* Bearer Authentication (HTTPBearer): + +```python +import platform_api_python_client +from platform_api_python_client.models.get_autocharge_preferences_response import GetAutochargePreferencesResponse +from platform_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = platform_api_python_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: HTTPBearer +configuration = platform_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with platform_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = platform_api_python_client.EXTERNALApi(api_client) + + try: + # Get Autocharge Preferences + api_response = api_instance.get_autocharge_preferences_autocharge_preferences_get() + print("The response of EXTERNALApi->get_autocharge_preferences_autocharge_preferences_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EXTERNALApi->get_autocharge_preferences_autocharge_preferences_get: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**GetAutochargePreferencesResponse**](GetAutochargePreferencesResponse.md) + +### Authorization + +[HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_clusters_clusters_get** > ListGetClusterResponse get_clusters_clusters_get() @@ -1985,6 +2203,78 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_payment_method_payments_methods_get** +> PaymentMethodResponse get_payment_method_payments_methods_get() + +Get Payment Method + +### Example + +* Bearer Authentication (HTTPBearer): + +```python +import platform_api_python_client +from platform_api_python_client.models.payment_method_response import PaymentMethodResponse +from platform_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = platform_api_python_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: HTTPBearer +configuration = platform_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with platform_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = platform_api_python_client.EXTERNALApi(api_client) + + try: + # Get Payment Method + api_response = api_instance.get_payment_method_payments_methods_get() + print("The response of EXTERNALApi->get_payment_method_payments_methods_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EXTERNALApi->get_payment_method_payments_methods_get: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**PaymentMethodResponse**](PaymentMethodResponse.md) + +### Authorization + +[HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_payments_payments_get** > ListPaymentsResponse get_payments_payments_get() @@ -2448,10 +2738,10 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **update_autopay_preferences_autopay_put** -> object update_autopay_preferences_autopay_put(update_autopay_request) +# **update_autocharge_preferences_autocharge_preferences_put** +> object update_autocharge_preferences_autocharge_preferences_put(update_autocharge_preferences_request) -Update Autopay +Update Autocharge Preferences ### Example @@ -2459,7 +2749,7 @@ Update Autopay ```python import platform_api_python_client -from platform_api_python_client.models.update_autopay_request import UpdateAutopayRequest +from platform_api_python_client.models.update_autocharge_preferences_request import UpdateAutochargePreferencesRequest from platform_api_python_client.rest import ApiException from pprint import pprint @@ -2483,15 +2773,15 @@ configuration = platform_api_python_client.Configuration( with platform_api_python_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = platform_api_python_client.EXTERNALApi(api_client) - update_autopay_request = platform_api_python_client.UpdateAutopayRequest() # UpdateAutopayRequest | + update_autocharge_preferences_request = platform_api_python_client.UpdateAutochargePreferencesRequest() # UpdateAutochargePreferencesRequest | try: - # Update Autopay - api_response = api_instance.update_autopay_preferences_autopay_put(update_autopay_request) - print("The response of EXTERNALApi->update_autopay_preferences_autopay_put:\n") + # Update Autocharge Preferences + api_response = api_instance.update_autocharge_preferences_autocharge_preferences_put(update_autocharge_preferences_request) + print("The response of EXTERNALApi->update_autocharge_preferences_autocharge_preferences_put:\n") pprint(api_response) except Exception as e: - print("Exception when calling EXTERNALApi->update_autopay_preferences_autopay_put: %s\n" % e) + print("Exception when calling EXTERNALApi->update_autocharge_preferences_autocharge_preferences_put: %s\n" % e) ``` @@ -2501,7 +2791,7 @@ with platform_api_python_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **update_autopay_request** | [**UpdateAutopayRequest**](UpdateAutopayRequest.md)| | + **update_autocharge_preferences_request** | [**UpdateAutochargePreferencesRequest**](UpdateAutochargePreferencesRequest.md)| | ### Return type diff --git a/docs/GetAutochargePreferencesResponse.md b/docs/GetAutochargePreferencesResponse.md new file mode 100644 index 0000000..6af4ab1 --- /dev/null +++ b/docs/GetAutochargePreferencesResponse.md @@ -0,0 +1,30 @@ +# GetAutochargePreferencesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**threshold_in_cents** | **int** | | +**amount_in_cents** | **int** | | + +## Example + +```python +from platform_api_python_client.models.get_autocharge_preferences_response import GetAutochargePreferencesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAutochargePreferencesResponse from a JSON string +get_autocharge_preferences_response_instance = GetAutochargePreferencesResponse.from_json(json) +# print the JSON string representation of the object +print(GetAutochargePreferencesResponse.to_json()) + +# convert the object into a dict +get_autocharge_preferences_response_dict = get_autocharge_preferences_response_instance.to_dict() +# create an instance of GetAutochargePreferencesResponse from a dict +get_autocharge_preferences_response_from_dict = GetAutochargePreferencesResponse.from_dict(get_autocharge_preferences_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaymentMethodResponse.md b/docs/PaymentMethodResponse.md new file mode 100644 index 0000000..5e97d53 --- /dev/null +++ b/docs/PaymentMethodResponse.md @@ -0,0 +1,29 @@ +# PaymentMethodResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**result** | **object** | | + +## Example + +```python +from platform_api_python_client.models.payment_method_response import PaymentMethodResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PaymentMethodResponse from a JSON string +payment_method_response_instance = PaymentMethodResponse.from_json(json) +# print the JSON string representation of the object +print(PaymentMethodResponse.to_json()) + +# convert the object into a dict +payment_method_response_dict = payment_method_response_instance.to_dict() +# create an instance of PaymentMethodResponse from a dict +payment_method_response_from_dict = PaymentMethodResponse.from_dict(payment_method_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateAutochargePreferencesRequest.md b/docs/UpdateAutochargePreferencesRequest.md new file mode 100644 index 0000000..c5447a7 --- /dev/null +++ b/docs/UpdateAutochargePreferencesRequest.md @@ -0,0 +1,30 @@ +# UpdateAutochargePreferencesRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**threshold_in_cents** | **int** | | +**amount_in_cents** | **int** | | + +## Example + +```python +from platform_api_python_client.models.update_autocharge_preferences_request import UpdateAutochargePreferencesRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateAutochargePreferencesRequest from a JSON string +update_autocharge_preferences_request_instance = UpdateAutochargePreferencesRequest.from_json(json) +# print the JSON string representation of the object +print(UpdateAutochargePreferencesRequest.to_json()) + +# convert the object into a dict +update_autocharge_preferences_request_dict = update_autocharge_preferences_request_instance.to_dict() +# create an instance of UpdateAutochargePreferencesRequest from a dict +update_autocharge_preferences_request_from_dict = UpdateAutochargePreferencesRequest.from_dict(update_autocharge_preferences_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateAutopayRequest.md b/docs/UpdateAutopayRequest.md deleted file mode 100644 index 1916f5c..0000000 --- a/docs/UpdateAutopayRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# UpdateAutopayRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**threshold** | **int** | | [optional] -**amount** | **int** | | [optional] - -## Example - -```python -from platform_api_python_client.models.update_autopay_request import UpdateAutopayRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of UpdateAutopayRequest from a JSON string -update_autopay_request_instance = UpdateAutopayRequest.from_json(json) -# print the JSON string representation of the object -print(UpdateAutopayRequest.to_json()) - -# convert the object into a dict -update_autopay_request_dict = update_autopay_request_instance.to_dict() -# create an instance of UpdateAutopayRequest from a dict -update_autopay_request_from_dict = UpdateAutopayRequest.from_dict(update_autopay_request_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/UserVaultItemInput.md b/docs/UserVaultItemInput.md deleted file mode 100644 index 6733c27..0000000 --- a/docs/UserVaultItemInput.md +++ /dev/null @@ -1,31 +0,0 @@ -# UserVaultItemInput - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | [**UserVaultType**](UserVaultType.md) | | -**key** | **str** | | -**value** | **str** | | [optional] - -## Example - -```python -from platform_api_python_client.models.user_vault_item_input import UserVaultItemInput - -# TODO update the JSON string below -json = "{}" -# create an instance of UserVaultItemInput from a JSON string -user_vault_item_input_instance = UserVaultItemInput.from_json(json) -# print the JSON string representation of the object -print(UserVaultItemInput.to_json()) - -# convert the object into a dict -user_vault_item_input_dict = user_vault_item_input_instance.to_dict() -# create an instance of UserVaultItemInput from a dict -user_vault_item_input_from_dict = UserVaultItemInput.from_dict(user_vault_item_input_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/UserVaultItemOutput.md b/docs/UserVaultItemOutput.md deleted file mode 100644 index 9ce5e0b..0000000 --- a/docs/UserVaultItemOutput.md +++ /dev/null @@ -1,31 +0,0 @@ -# UserVaultItemOutput - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | [**UserVaultType**](UserVaultType.md) | | -**key** | **str** | | -**value** | **str** | | - -## Example - -```python -from platform_api_python_client.models.user_vault_item_output import UserVaultItemOutput - -# TODO update the JSON string below -json = "{}" -# create an instance of UserVaultItemOutput from a JSON string -user_vault_item_output_instance = UserVaultItemOutput.from_json(json) -# print the JSON string representation of the object -print(UserVaultItemOutput.to_json()) - -# convert the object into a dict -user_vault_item_output_dict = user_vault_item_output_instance.to_dict() -# create an instance of UserVaultItemOutput from a dict -user_vault_item_output_from_dict = UserVaultItemOutput.from_dict(user_vault_item_output_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/platform_api_python_client/__init__.py b/platform_api_python_client/__init__.py index e597592..2e2f0bd 100644 --- a/platform_api_python_client/__init__.py +++ b/platform_api_python_client/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "3.2.4" +__version__ = "3.2.5" # import apis into sdk package from platform_api_python_client.api.external_api import EXTERNALApi @@ -59,6 +59,7 @@ from platform_api_python_client.models.deployment_status_response import DeploymentStatusResponse from platform_api_python_client.models.deployment_type import DeploymentType from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue +from platform_api_python_client.models.get_autocharge_preferences_response import GetAutochargePreferencesResponse from platform_api_python_client.models.get_c_serve_deployment_response import GetCServeDeploymentResponse from platform_api_python_client.models.get_c_serve_v2_deployment_response import GetCServeV2DeploymentResponse from platform_api_python_client.models.get_cluster_response import GetClusterResponse @@ -81,9 +82,10 @@ from platform_api_python_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse from platform_api_python_client.models.list_user_vault_items_response import ListUserVaultItemsResponse from platform_api_python_client.models.metric import Metric +from platform_api_python_client.models.payment_method_response import PaymentMethodResponse from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse from platform_api_python_client.models.service_status import ServiceStatus -from platform_api_python_client.models.update_autopay_request import UpdateAutopayRequest +from platform_api_python_client.models.update_autocharge_preferences_request import UpdateAutochargePreferencesRequest from platform_api_python_client.models.user_support_email_request import UserSupportEmailRequest from platform_api_python_client.models.user_vault_item import UserVaultItem from platform_api_python_client.models.user_vault_type import UserVaultType diff --git a/platform_api_python_client/api/external_api.py b/platform_api_python_client/api/external_api.py index 2fcad63..1542bc0 100644 --- a/platform_api_python_client/api/external_api.py +++ b/platform_api_python_client/api/external_api.py @@ -40,6 +40,7 @@ from platform_api_python_client.models.deployment_status_request import DeploymentStatusRequest from platform_api_python_client.models.deployment_status_response import DeploymentStatusResponse from platform_api_python_client.models.deployment_type import DeploymentType +from platform_api_python_client.models.get_autocharge_preferences_response import GetAutochargePreferencesResponse from platform_api_python_client.models.get_c_serve_deployment_response import GetCServeDeploymentResponse from platform_api_python_client.models.get_c_serve_v2_deployment_response import GetCServeV2DeploymentResponse from platform_api_python_client.models.get_compute_deployment_response import GetComputeDeploymentResponse @@ -57,7 +58,8 @@ from platform_api_python_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse from platform_api_python_client.models.list_user_vault_items_response import ListUserVaultItemsResponse from platform_api_python_client.models.metric import Metric -from platform_api_python_client.models.update_autopay_request import UpdateAutopayRequest +from platform_api_python_client.models.payment_method_response import PaymentMethodResponse +from platform_api_python_client.models.update_autocharge_preferences_request import UpdateAutochargePreferencesRequest from platform_api_python_client.models.user_support_email_request import UserSupportEmailRequest from platform_api_python_client.models.user_vault_item import UserVaultItem from platform_api_python_client.models.user_vault_type import UserVaultType @@ -2807,6 +2809,492 @@ def _delete_api_key_credentials_api_key_id_delete_serialize( + @validate_call + def delete_autocharge_preferences_autocharge_preferences_delete( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Delete Autocharge Preferences + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_autocharge_preferences_autocharge_preferences_delete_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_autocharge_preferences_autocharge_preferences_delete_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Delete Autocharge Preferences + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_autocharge_preferences_autocharge_preferences_delete_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_autocharge_preferences_autocharge_preferences_delete_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete Autocharge Preferences + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_autocharge_preferences_autocharge_preferences_delete_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_autocharge_preferences_autocharge_preferences_delete_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/autocharge/preferences', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_payment_method_payments_methods_delete( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Delete Payment Method + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_payment_method_payments_methods_delete_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_payment_method_payments_methods_delete_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Delete Payment Method + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_payment_method_payments_methods_delete_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_payment_method_payments_methods_delete_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete Payment Method + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_payment_method_payments_methods_delete_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_payment_method_payments_methods_delete_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/payments/methods', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def delete_user_vault_item_endpoint_user_vault_delete( self, @@ -3572,8 +4060,259 @@ def get_all_user_vault_items_endpoint_user_vault_get_without_preload_content( def _get_all_user_vault_items_endpoint_user_vault_get_serialize( self, - type, - search_query, + type, + search_query, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if type is not None: + + _query_params.append(('type', type.value)) + + if search_query is not None: + + _query_params.append(('search_query', search_query)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/user_vault', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_api_keys_credentials_api_key_get( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ListAPIKeyResponse: + """Get Api Keys + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_keys_credentials_api_key_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListAPIKeyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_api_keys_credentials_api_key_get_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ListAPIKeyResponse]: + """Get Api Keys + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_keys_credentials_api_key_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListAPIKeyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_api_keys_credentials_api_key_get_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get Api Keys + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_keys_credentials_api_key_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListAPIKeyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_api_keys_credentials_api_key_get_serialize( + self, _request_auth, _content_type, _headers, @@ -3596,14 +4335,6 @@ def _get_all_user_vault_items_endpoint_user_vault_get_serialize( # process the path parameters # process the query parameters - if type is not None: - - _query_params.append(('type', type.value)) - - if search_query is not None: - - _query_params.append(('search_query', search_query)) - # process the header parameters # process the form parameters # process the body parameter @@ -3625,7 +4356,7 @@ def _get_all_user_vault_items_endpoint_user_vault_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/user_vault', + resource_path='/credentials/api-key', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3642,7 +4373,7 @@ def _get_all_user_vault_items_endpoint_user_vault_get_serialize( @validate_call - def get_api_keys_credentials_api_key_get( + def get_autocharge_preferences_autocharge_preferences_get( self, _request_timeout: Union[ None, @@ -3656,8 +4387,8 @@ def get_api_keys_credentials_api_key_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListAPIKeyResponse: - """Get Api Keys + ) -> GetAutochargePreferencesResponse: + """Get Autocharge Preferences :param _request_timeout: timeout setting for this request. If one @@ -3682,7 +4413,7 @@ def get_api_keys_credentials_api_key_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_api_keys_credentials_api_key_get_serialize( + _param = self._get_autocharge_preferences_autocharge_preferences_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3690,7 +4421,7 @@ def get_api_keys_credentials_api_key_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListAPIKeyResponse", + '200': "GetAutochargePreferencesResponse", } response_data = self.api_client.call_api( *_param, @@ -3704,7 +4435,7 @@ def get_api_keys_credentials_api_key_get( @validate_call - def get_api_keys_credentials_api_key_get_with_http_info( + def get_autocharge_preferences_autocharge_preferences_get_with_http_info( self, _request_timeout: Union[ None, @@ -3718,8 +4449,8 @@ def get_api_keys_credentials_api_key_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ListAPIKeyResponse]: - """Get Api Keys + ) -> ApiResponse[GetAutochargePreferencesResponse]: + """Get Autocharge Preferences :param _request_timeout: timeout setting for this request. If one @@ -3744,7 +4475,7 @@ def get_api_keys_credentials_api_key_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_api_keys_credentials_api_key_get_serialize( + _param = self._get_autocharge_preferences_autocharge_preferences_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3752,7 +4483,7 @@ def get_api_keys_credentials_api_key_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListAPIKeyResponse", + '200': "GetAutochargePreferencesResponse", } response_data = self.api_client.call_api( *_param, @@ -3766,7 +4497,7 @@ def get_api_keys_credentials_api_key_get_with_http_info( @validate_call - def get_api_keys_credentials_api_key_get_without_preload_content( + def get_autocharge_preferences_autocharge_preferences_get_without_preload_content( self, _request_timeout: Union[ None, @@ -3781,7 +4512,7 @@ def get_api_keys_credentials_api_key_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Api Keys + """Get Autocharge Preferences :param _request_timeout: timeout setting for this request. If one @@ -3806,7 +4537,7 @@ def get_api_keys_credentials_api_key_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_api_keys_credentials_api_key_get_serialize( + _param = self._get_autocharge_preferences_autocharge_preferences_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3814,7 +4545,7 @@ def get_api_keys_credentials_api_key_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListAPIKeyResponse", + '200': "GetAutochargePreferencesResponse", } response_data = self.api_client.call_api( *_param, @@ -3823,7 +4554,7 @@ def get_api_keys_credentials_api_key_get_without_preload_content( return response_data.response - def _get_api_keys_credentials_api_key_get_serialize( + def _get_autocharge_preferences_autocharge_preferences_get_serialize( self, _request_auth, _content_type, @@ -3868,7 +4599,7 @@ def _get_api_keys_credentials_api_key_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/credentials/api-key', + resource_path='/autocharge/preferences', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6878,6 +7609,249 @@ def _get_inference_deployment_deployments_inference_deployment_id_get_serialize( + @validate_call + def get_payment_method_payments_methods_get( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PaymentMethodResponse: + """Get Payment Method + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payment_method_payments_methods_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaymentMethodResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_payment_method_payments_methods_get_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PaymentMethodResponse]: + """Get Payment Method + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payment_method_payments_methods_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaymentMethodResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_payment_method_payments_methods_get_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get Payment Method + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payment_method_payments_methods_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaymentMethodResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_payment_method_payments_methods_get_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/payments/methods', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def get_payments_payments_get( self, @@ -8516,9 +9490,9 @@ def _setup_stripe_customer_payments_setup_post_serialize( @validate_call - def update_autopay_preferences_autopay_put( + def update_autocharge_preferences_autocharge_preferences_put( self, - update_autopay_request: UpdateAutopayRequest, + update_autocharge_preferences_request: UpdateAutochargePreferencesRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8532,11 +9506,11 @@ def update_autopay_preferences_autopay_put( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: - """Update Autopay + """Update Autocharge Preferences - :param update_autopay_request: (required) - :type update_autopay_request: UpdateAutopayRequest + :param update_autocharge_preferences_request: (required) + :type update_autocharge_preferences_request: UpdateAutochargePreferencesRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8559,8 +9533,8 @@ def update_autopay_preferences_autopay_put( :return: Returns the result object. """ # noqa: E501 - _param = self._update_autopay_preferences_autopay_put_serialize( - update_autopay_request=update_autopay_request, + _param = self._update_autocharge_preferences_autocharge_preferences_put_serialize( + update_autocharge_preferences_request=update_autocharge_preferences_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8583,9 +9557,9 @@ def update_autopay_preferences_autopay_put( @validate_call - def update_autopay_preferences_autopay_put_with_http_info( + def update_autocharge_preferences_autocharge_preferences_put_with_http_info( self, - update_autopay_request: UpdateAutopayRequest, + update_autocharge_preferences_request: UpdateAutochargePreferencesRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8599,11 +9573,11 @@ def update_autopay_preferences_autopay_put_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[object]: - """Update Autopay + """Update Autocharge Preferences - :param update_autopay_request: (required) - :type update_autopay_request: UpdateAutopayRequest + :param update_autocharge_preferences_request: (required) + :type update_autocharge_preferences_request: UpdateAutochargePreferencesRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8626,8 +9600,8 @@ def update_autopay_preferences_autopay_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_autopay_preferences_autopay_put_serialize( - update_autopay_request=update_autopay_request, + _param = self._update_autocharge_preferences_autocharge_preferences_put_serialize( + update_autocharge_preferences_request=update_autocharge_preferences_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8650,9 +9624,9 @@ def update_autopay_preferences_autopay_put_with_http_info( @validate_call - def update_autopay_preferences_autopay_put_without_preload_content( + def update_autocharge_preferences_autocharge_preferences_put_without_preload_content( self, - update_autopay_request: UpdateAutopayRequest, + update_autocharge_preferences_request: UpdateAutochargePreferencesRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8666,11 +9640,11 @@ def update_autopay_preferences_autopay_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Update Autopay + """Update Autocharge Preferences - :param update_autopay_request: (required) - :type update_autopay_request: UpdateAutopayRequest + :param update_autocharge_preferences_request: (required) + :type update_autocharge_preferences_request: UpdateAutochargePreferencesRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8693,8 +9667,8 @@ def update_autopay_preferences_autopay_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_autopay_preferences_autopay_put_serialize( - update_autopay_request=update_autopay_request, + _param = self._update_autocharge_preferences_autocharge_preferences_put_serialize( + update_autocharge_preferences_request=update_autocharge_preferences_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8712,9 +9686,9 @@ def update_autopay_preferences_autopay_put_without_preload_content( return response_data.response - def _update_autopay_preferences_autopay_put_serialize( + def _update_autocharge_preferences_autocharge_preferences_put_serialize( self, - update_autopay_request, + update_autocharge_preferences_request, _request_auth, _content_type, _headers, @@ -8740,8 +9714,8 @@ def _update_autopay_preferences_autopay_put_serialize( # process the header parameters # process the form parameters # process the body parameter - if update_autopay_request is not None: - _body_params = update_autopay_request + if update_autocharge_preferences_request is not None: + _body_params = update_autocharge_preferences_request # set the HTTP header `Accept` @@ -8773,7 +9747,7 @@ def _update_autopay_preferences_autopay_put_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/preferences/autopay', + resource_path='/autocharge/preferences', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/platform_api_python_client/api_client.py b/platform_api_python_client/api_client.py index 5c5710a..6b3a70d 100644 --- a/platform_api_python_client/api_client.py +++ b/platform_api_python_client/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/3.2.4/python' + self.user_agent = 'OpenAPI-Generator/3.2.5/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/platform_api_python_client/configuration.py b/platform_api_python_client/configuration.py index 22013cf..a7a9ad4 100644 --- a/platform_api_python_client/configuration.py +++ b/platform_api_python_client/configuration.py @@ -392,7 +392,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 0.1.0\n"\ - "SDK Package Version: 3.2.4".\ + "SDK Package Version: 3.2.5".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/platform_api_python_client/models/__init__.py b/platform_api_python_client/models/__init__.py index a041598..5fb539a 100644 --- a/platform_api_python_client/models/__init__.py +++ b/platform_api_python_client/models/__init__.py @@ -42,6 +42,7 @@ from platform_api_python_client.models.deployment_status_response import DeploymentStatusResponse from platform_api_python_client.models.deployment_type import DeploymentType from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue +from platform_api_python_client.models.get_autocharge_preferences_response import GetAutochargePreferencesResponse from platform_api_python_client.models.get_c_serve_deployment_response import GetCServeDeploymentResponse from platform_api_python_client.models.get_c_serve_v2_deployment_response import GetCServeV2DeploymentResponse from platform_api_python_client.models.get_cluster_response import GetClusterResponse @@ -64,9 +65,10 @@ from platform_api_python_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse from platform_api_python_client.models.list_user_vault_items_response import ListUserVaultItemsResponse from platform_api_python_client.models.metric import Metric +from platform_api_python_client.models.payment_method_response import PaymentMethodResponse from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse from platform_api_python_client.models.service_status import ServiceStatus -from platform_api_python_client.models.update_autopay_request import UpdateAutopayRequest +from platform_api_python_client.models.update_autocharge_preferences_request import UpdateAutochargePreferencesRequest from platform_api_python_client.models.user_support_email_request import UserSupportEmailRequest from platform_api_python_client.models.user_vault_item import UserVaultItem from platform_api_python_client.models.user_vault_type import UserVaultType diff --git a/platform_api_python_client/models/c_serve_v2_recipe_input.py b/platform_api_python_client/models/c_serve_v2_recipe_input.py deleted file mode 100644 index 4684de8..0000000 --- a/platform_api_python_client/models/c_serve_v2_recipe_input.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding: utf-8 - -""" - Platform External API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class CServeV2RecipeInput(BaseModel): - """ - Inputs to start deployment - """ # noqa: E501 - model: StrictStr - is_embedding_model: Optional[StrictBool] = False - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["model", "is_embedding_model"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CServeV2RecipeInput from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - * Fields in `self.additional_properties` are added to the output dict. - """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CServeV2RecipeInput from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "model": obj.get("model"), - "is_embedding_model": obj.get("is_embedding_model") if obj.get("is_embedding_model") is not None else False - }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - - return _obj - - diff --git a/platform_api_python_client/models/c_serve_v2_recipe_output.py b/platform_api_python_client/models/c_serve_v2_recipe_output.py deleted file mode 100644 index 27c35ad..0000000 --- a/platform_api_python_client/models/c_serve_v2_recipe_output.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding: utf-8 - -""" - Platform External API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class CServeV2RecipeOutput(BaseModel): - """ - Inputs to start deployment - """ # noqa: E501 - model: StrictStr - is_embedding_model: StrictBool - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["model", "is_embedding_model"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CServeV2RecipeOutput from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - * Fields in `self.additional_properties` are added to the output dict. - """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CServeV2RecipeOutput from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "model": obj.get("model"), - "is_embedding_model": obj.get("is_embedding_model") if obj.get("is_embedding_model") is not None else False - }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - - return _obj - - diff --git a/platform_api_python_client/models/user_vault_item_input.py b/platform_api_python_client/models/get_autocharge_preferences_response.py similarity index 71% rename from platform_api_python_client/models/user_vault_item_input.py rename to platform_api_python_client/models/get_autocharge_preferences_response.py index a986736..f774266 100644 --- a/platform_api_python_client/models/user_vault_item_input.py +++ b/platform_api_python_client/models/get_autocharge_preferences_response.py @@ -17,20 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from platform_api_python_client.models.user_vault_type import UserVaultType +from pydantic import BaseModel, ConfigDict, StrictInt +from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -class UserVaultItemInput(BaseModel): +class GetAutochargePreferencesResponse(BaseModel): """ - UserVaultItemInput + GetAutochargePreferencesResponse """ # noqa: E501 - type: UserVaultType - key: StrictStr - value: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["type", "key", "value"] + threshold_in_cents: StrictInt + amount_in_cents: StrictInt + __properties: ClassVar[List[str]] = ["threshold_in_cents", "amount_in_cents"] model_config = ConfigDict( populate_by_name=True, @@ -50,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserVaultItemInput from a JSON string""" + """Create an instance of GetAutochargePreferencesResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -71,16 +69,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if value (nullable) is None - # and model_fields_set contains the field - if self.value is None and "value" in self.model_fields_set: - _dict['value'] = None - return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserVaultItemInput from a dict""" + """Create an instance of GetAutochargePreferencesResponse from a dict""" if obj is None: return None @@ -88,9 +81,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "type": obj.get("type"), - "key": obj.get("key"), - "value": obj.get("value") + "threshold_in_cents": obj.get("threshold_in_cents"), + "amount_in_cents": obj.get("amount_in_cents") }) return _obj diff --git a/platform_api_python_client/models/user_vault_item_output.py b/platform_api_python_client/models/payment_method_response.py similarity index 74% rename from platform_api_python_client/models/user_vault_item_output.py rename to platform_api_python_client/models/payment_method_response.py index 262f82c..c40e7e1 100644 --- a/platform_api_python_client/models/user_vault_item_output.py +++ b/platform_api_python_client/models/payment_method_response.py @@ -17,20 +17,17 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from platform_api_python_client.models.user_vault_type import UserVaultType from typing import Optional, Set from typing_extensions import Self -class UserVaultItemOutput(BaseModel): +class PaymentMethodResponse(BaseModel): """ - UserVaultItemOutput + PaymentMethodResponse """ # noqa: E501 - type: UserVaultType - key: StrictStr - value: Optional[StrictStr] - __properties: ClassVar[List[str]] = ["type", "key", "value"] + result: Optional[Dict[str, Any]] + __properties: ClassVar[List[str]] = ["result"] model_config = ConfigDict( populate_by_name=True, @@ -50,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserVaultItemOutput from a JSON string""" + """Create an instance of PaymentMethodResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -71,16 +68,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if value (nullable) is None + # set to None if result (nullable) is None # and model_fields_set contains the field - if self.value is None and "value" in self.model_fields_set: - _dict['value'] = None + if self.result is None and "result" in self.model_fields_set: + _dict['result'] = None return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserVaultItemOutput from a dict""" + """Create an instance of PaymentMethodResponse from a dict""" if obj is None: return None @@ -88,9 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "type": obj.get("type"), - "key": obj.get("key"), - "value": obj.get("value") + "result": obj.get("result") }) return _obj diff --git a/platform_api_python_client/models/update_autopay_request.py b/platform_api_python_client/models/update_autocharge_preferences_request.py similarity index 70% rename from platform_api_python_client/models/update_autopay_request.py rename to platform_api_python_client/models/update_autocharge_preferences_request.py index 0f65495..c0933f4 100644 --- a/platform_api_python_client/models/update_autopay_request.py +++ b/platform_api_python_client/models/update_autocharge_preferences_request.py @@ -18,17 +18,17 @@ import json from pydantic import BaseModel, ConfigDict, StrictInt -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -class UpdateAutopayRequest(BaseModel): +class UpdateAutochargePreferencesRequest(BaseModel): """ - UpdateAutopayRequest + UpdateAutochargePreferencesRequest """ # noqa: E501 - threshold: Optional[StrictInt] = None - amount: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["threshold", "amount"] + threshold_in_cents: StrictInt + amount_in_cents: StrictInt + __properties: ClassVar[List[str]] = ["threshold_in_cents", "amount_in_cents"] model_config = ConfigDict( populate_by_name=True, @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UpdateAutopayRequest from a JSON string""" + """Create an instance of UpdateAutochargePreferencesRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -69,21 +69,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if threshold (nullable) is None - # and model_fields_set contains the field - if self.threshold is None and "threshold" in self.model_fields_set: - _dict['threshold'] = None - - # set to None if amount (nullable) is None - # and model_fields_set contains the field - if self.amount is None and "amount" in self.model_fields_set: - _dict['amount'] = None - return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UpdateAutopayRequest from a dict""" + """Create an instance of UpdateAutochargePreferencesRequest from a dict""" if obj is None: return None @@ -91,8 +81,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "threshold": obj.get("threshold"), - "amount": obj.get("amount") + "threshold_in_cents": obj.get("threshold_in_cents"), + "amount_in_cents": obj.get("amount_in_cents") }) return _obj diff --git a/pyproject.toml b/pyproject.toml index 424dc07..cef8984 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "platform_api_python_client" -version = "3.2.4" +version = "3.2.5" description = "Platform External API" authors = ["OpenAPI Generator Community "] license = "NoLicense" diff --git a/setup.py b/setup.py index 17a8e35..5889d82 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "platform-api-python-client" -VERSION = "3.2.4" +VERSION = "3.2.5" PYTHON_REQUIRES = ">= 3.8" REQUIRES = [ "urllib3 >= 1.25.3, < 3.0.0", diff --git a/test/test_c_serve_v2_recipe_input.py b/test/test_c_serve_v2_recipe_input.py deleted file mode 100644 index 9fe49a5..0000000 --- a/test/test_c_serve_v2_recipe_input.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Platform External API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from platform_api_python_client.models.c_serve_v2_recipe_input import CServeV2RecipeInput - -class TestCServeV2RecipeInput(unittest.TestCase): - """CServeV2RecipeInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CServeV2RecipeInput: - """Test CServeV2RecipeInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CServeV2RecipeInput` - """ - model = CServeV2RecipeInput() - if include_optional: - return CServeV2RecipeInput( - model = '', - is_embedding_model = True - ) - else: - return CServeV2RecipeInput( - model = '', - ) - """ - - def testCServeV2RecipeInput(self): - """Test CServeV2RecipeInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_c_serve_v2_recipe_output.py b/test/test_c_serve_v2_recipe_output.py deleted file mode 100644 index 1f8691e..0000000 --- a/test/test_c_serve_v2_recipe_output.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Platform External API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from platform_api_python_client.models.c_serve_v2_recipe_output import CServeV2RecipeOutput - -class TestCServeV2RecipeOutput(unittest.TestCase): - """CServeV2RecipeOutput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CServeV2RecipeOutput: - """Test CServeV2RecipeOutput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CServeV2RecipeOutput` - """ - model = CServeV2RecipeOutput() - if include_optional: - return CServeV2RecipeOutput( - model = '', - is_embedding_model = True - ) - else: - return CServeV2RecipeOutput( - model = '', - is_embedding_model = True, - ) - """ - - def testCServeV2RecipeOutput(self): - """Test CServeV2RecipeOutput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_create_url_response.py b/test/test_create_url_response.py index 425d1bc..0d832fa 100644 --- a/test/test_create_url_response.py +++ b/test/test_create_url_response.py @@ -35,11 +35,11 @@ def make_instance(self, include_optional) -> CreateUrlResponse: model = CreateUrlResponse() if include_optional: return CreateUrlResponse( - url = '0' + url = '' ) else: return CreateUrlResponse( - url = '0', + url = '', ) """ diff --git a/test/test_external_api.py b/test/test_external_api.py index 81f1700..571c9c6 100644 --- a/test/test_external_api.py +++ b/test/test_external_api.py @@ -96,6 +96,13 @@ def test_delete_api_key_credentials_api_key_id_delete(self) -> None: """ pass + def test_delete_payment_method_payments_methods_delete(self) -> None: + """Test case for delete_payment_method_payments_methods_delete + + Delete Payment Method + """ + pass + def test_delete_user_vault_item_endpoint_user_vault_delete(self) -> None: """Test case for delete_user_vault_item_endpoint_user_vault_delete @@ -124,6 +131,13 @@ def test_get_api_keys_credentials_api_key_get(self) -> None: """ pass + def test_get_autocharge_preferences_autocharge_preferences_get(self) -> None: + """Test case for get_autocharge_preferences_autocharge_preferences_get + + Get Autocharge Preferences + """ + pass + def test_get_clusters_clusters_get(self) -> None: """Test case for get_clusters_clusters_get @@ -201,6 +215,13 @@ def test_get_inference_deployment_deployments_inference_deployment_id_get(self) """ pass + def test_get_payment_method_payments_methods_get(self) -> None: + """Test case for get_payment_method_payments_methods_get + + Get Payment Method + """ + pass + def test_get_payments_payments_get(self) -> None: """Test case for get_payments_payments_get @@ -243,6 +264,13 @@ def test_setup_stripe_customer_payments_setup_post(self) -> None: """ pass + def test_update_autocharge_preferences_autocharge_preferences_put(self) -> None: + """Test case for update_autocharge_preferences_autocharge_preferences_put + + Update Autocharge Preferences + """ + pass + def test_update_deployment_status_deployments_status_deployment_id_put(self) -> None: """Test case for update_deployment_status_deployments_status_deployment_id_put diff --git a/test/test_user_vault_item_input.py b/test/test_get_autocharge_preferences_response.py similarity index 50% rename from test/test_user_vault_item_input.py rename to test/test_get_autocharge_preferences_response.py index ec65d24..4f29e01 100644 --- a/test/test_user_vault_item_input.py +++ b/test/test_get_autocharge_preferences_response.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.user_vault_item_input import UserVaultItemInput +from platform_api_python_client.models.get_autocharge_preferences_response import GetAutochargePreferencesResponse -class TestUserVaultItemInput(unittest.TestCase): - """UserVaultItemInput unit test stubs""" +class TestGetAutochargePreferencesResponse(unittest.TestCase): + """GetAutochargePreferencesResponse unit test stubs""" def setUp(self): pass @@ -25,29 +25,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> UserVaultItemInput: - """Test UserVaultItemInput + def make_instance(self, include_optional) -> GetAutochargePreferencesResponse: + """Test GetAutochargePreferencesResponse include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `UserVaultItemInput` + # uncomment below to create an instance of `GetAutochargePreferencesResponse` """ - model = UserVaultItemInput() + model = GetAutochargePreferencesResponse() if include_optional: - return UserVaultItemInput( - type = 'env_vars', - key = '', - value = '' + return GetAutochargePreferencesResponse( + threshold_in_cents = 56, + amount_in_cents = 56 ) else: - return UserVaultItemInput( - type = 'env_vars', - key = '', + return GetAutochargePreferencesResponse( + threshold_in_cents = 56, + amount_in_cents = 56, ) """ - def testUserVaultItemInput(self): - """Test UserVaultItemInput""" + def testGetAutochargePreferencesResponse(self): + """Test GetAutochargePreferencesResponse""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_update_autopay_request.py b/test/test_payment_method_response.py similarity index 57% rename from test/test_update_autopay_request.py rename to test/test_payment_method_response.py index 60c936c..43f4311 100644 --- a/test/test_update_autopay_request.py +++ b/test/test_payment_method_response.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.update_autopay_request import UpdateAutopayRequest +from platform_api_python_client.models.payment_method_response import PaymentMethodResponse -class TestUpdateAutopayRequest(unittest.TestCase): - """UpdateAutopayRequest unit test stubs""" +class TestPaymentMethodResponse(unittest.TestCase): + """PaymentMethodResponse unit test stubs""" def setUp(self): pass @@ -25,25 +25,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> UpdateAutopayRequest: - """Test UpdateAutopayRequest + def make_instance(self, include_optional) -> PaymentMethodResponse: + """Test PaymentMethodResponse include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `UpdateAutopayRequest` + # uncomment below to create an instance of `PaymentMethodResponse` """ - model = UpdateAutopayRequest() + model = PaymentMethodResponse() if include_optional: - return UpdateAutopayRequest( - threshold = 56 + return PaymentMethodResponse( + result = None ) else: - return UpdateAutopayRequest( + return PaymentMethodResponse( + result = None, ) """ - def testUpdateAutopayRequest(self): - """Test UpdateAutopayRequest""" + def testPaymentMethodResponse(self): + """Test PaymentMethodResponse""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_update_autocharge_preferences_request.py b/test/test_update_autocharge_preferences_request.py new file mode 100644 index 0000000..5f84ca8 --- /dev/null +++ b/test/test_update_autocharge_preferences_request.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.update_autocharge_preferences_request import UpdateAutochargePreferencesRequest + +class TestUpdateAutochargePreferencesRequest(unittest.TestCase): + """UpdateAutochargePreferencesRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpdateAutochargePreferencesRequest: + """Test UpdateAutochargePreferencesRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpdateAutochargePreferencesRequest` + """ + model = UpdateAutochargePreferencesRequest() + if include_optional: + return UpdateAutochargePreferencesRequest( + threshold_in_cents = 56, + amount_in_cents = 56 + ) + else: + return UpdateAutochargePreferencesRequest( + threshold_in_cents = 56, + amount_in_cents = 56, + ) + """ + + def testUpdateAutochargePreferencesRequest(self): + """Test UpdateAutochargePreferencesRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_user_vault_item_output.py b/test/test_user_vault_item_output.py deleted file mode 100644 index 3653a72..0000000 --- a/test/test_user_vault_item_output.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - Platform External API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.1.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from platform_api_python_client.models.user_vault_item_output import UserVaultItemOutput - -class TestUserVaultItemOutput(unittest.TestCase): - """UserVaultItemOutput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserVaultItemOutput: - """Test UserVaultItemOutput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UserVaultItemOutput` - """ - model = UserVaultItemOutput() - if include_optional: - return UserVaultItemOutput( - type = 'env_vars', - key = '', - value = '' - ) - else: - return UserVaultItemOutput( - type = 'env_vars', - key = '', - value = '', - ) - """ - - def testUserVaultItemOutput(self): - """Test UserVaultItemOutput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main()