From d9752de9f23b524dfac07ad74abae0e8c9a8f007 Mon Sep 17 00:00:00 2001 From: jenkins_job Date: Thu, 16 Nov 2023 23:53:33 +0000 Subject: [PATCH] ci: jenkins push --- v1/python/README.md | 2 - v1/python/carbon3d/__init__.py | 1 - .../carbon3d/api/model_program_runs_api.py | 114 ------------- v1/python/carbon3d/models/__init__.py | 1 - .../models/model_program_operation.py | 2 +- .../carbon3d/models/model_program_run.py | 2 +- .../models/model_program_run_request.py | 10 +- .../models/model_program_run_status_info.py | 2 +- .../models/model_program_run_typed_request.py | 153 ------------------ v1/python/docs/ModelProgramRunRequest.md | 4 +- v1/python/docs/ModelProgramRunTypedRequest.md | 11 -- v1/python/docs/ModelProgramRunsApi.md | 74 --------- .../test/test_model_program_run_request.py | 8 +- .../test_model_program_run_typed_request.py | 60 ------- v1/python/test/test_model_program_runs_api.py | 7 - 15 files changed, 12 insertions(+), 439 deletions(-) delete mode 100755 v1/python/carbon3d/models/model_program_run_typed_request.py delete mode 100755 v1/python/docs/ModelProgramRunTypedRequest.md delete mode 100755 v1/python/test/test_model_program_run_typed_request.py diff --git a/v1/python/README.md b/v1/python/README.md index c23f6e0..49ca620 100755 --- a/v1/python/README.md +++ b/v1/python/README.md @@ -96,7 +96,6 @@ Class | Method | HTTP request | Description *BuildsApi* | [**get_build**](docs/BuildsApi.md#get_build) | **GET** /builds/{uuid} | Fetch a build *BuildsApi* | [**get_builds**](docs/BuildsApi.md#get_builds) | **GET** /builds | Fetch builds *ModelProgramRunsApi* | [**create_model_program_run**](docs/ModelProgramRunsApi.md#create_model_program_run) | **POST** /model_program_runs | Run a model program to alter your models -*ModelProgramRunsApi* | [**create_model_program_run_typed_params**](docs/ModelProgramRunsApi.md#create_model_program_run_typed_params) | **POST** /model_program_runs_typed_params | Run a model program to alter your models with typed params *ModelProgramRunsApi* | [**get_model_program_run**](docs/ModelProgramRunsApi.md#get_model_program_run) | **GET** /model_program_runs/{uuid} | Get a model program run by UUID *ModelProgramRunsApi* | [**get_model_program_runs**](docs/ModelProgramRunsApi.md#get_model_program_runs) | **GET** /model_program_runs | Get a list of model program runs based on their uuids *ModelsApi* | [**download_model**](docs/ModelsApi.md#download_model) | **GET** /models/{uuid}/download | Download a model by UUID @@ -149,7 +148,6 @@ Class | Method | HTTP request | Description - [ModelProgramRunAllOf](docs/ModelProgramRunAllOf.md) - [ModelProgramRunRequest](docs/ModelProgramRunRequest.md) - [ModelProgramRunStatusInfo](docs/ModelProgramRunStatusInfo.md) - - [ModelProgramRunTypedRequest](docs/ModelProgramRunTypedRequest.md) - [ModelProgramRuns](docs/ModelProgramRuns.md) - [ModelResolveUploadRequest](docs/ModelResolveUploadRequest.md) - [ModelsResponse](docs/ModelsResponse.md) diff --git a/v1/python/carbon3d/__init__.py b/v1/python/carbon3d/__init__.py index e59dcd2..1ca3772 100755 --- a/v1/python/carbon3d/__init__.py +++ b/v1/python/carbon3d/__init__.py @@ -61,7 +61,6 @@ from carbon3d.models.model_program_run_all_of import ModelProgramRunAllOf from carbon3d.models.model_program_run_request import ModelProgramRunRequest from carbon3d.models.model_program_run_status_info import ModelProgramRunStatusInfo -from carbon3d.models.model_program_run_typed_request import ModelProgramRunTypedRequest from carbon3d.models.model_program_runs import ModelProgramRuns from carbon3d.models.model_resolve_upload_request import ModelResolveUploadRequest from carbon3d.models.models_response import ModelsResponse diff --git a/v1/python/carbon3d/api/model_program_runs_api.py b/v1/python/carbon3d/api/model_program_runs_api.py index 216bf65..1c5b684 100755 --- a/v1/python/carbon3d/api/model_program_runs_api.py +++ b/v1/python/carbon3d/api/model_program_runs_api.py @@ -151,120 +151,6 @@ def create_model_program_run_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def create_model_program_run_typed_params(self, **kwargs): # noqa: E501 - """Run a model program to alter your models with typed params # noqa: E501 - - Create a new model program run with typed params # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_model_program_run_typed_params(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param ModelProgramRunTypedRequest model_program_run_typed_request: - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :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. - :return: ModelProgramRun - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.create_model_program_run_typed_params_with_http_info(**kwargs) # noqa: E501 - - def create_model_program_run_typed_params_with_http_info(self, **kwargs): # noqa: E501 - """Run a model program to alter your models with typed params # noqa: E501 - - Create a new model program run with typed params # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_model_program_run_typed_params_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param ModelProgramRunTypedRequest model_program_run_typed_request: - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :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. - :return: tuple(ModelProgramRun, status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - 'model_program_run_typed_request' - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method create_model_program_run_typed_params" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'model_program_run_typed_request' in local_var_params: - body_params = local_var_params['model_program_run_typed_request'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/model_program_runs_typed_params', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ModelProgramRun', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - def get_model_program_run(self, uuid, **kwargs): # noqa: E501 """Get a model program run by UUID # noqa: E501 diff --git a/v1/python/carbon3d/models/__init__.py b/v1/python/carbon3d/models/__init__.py index 4d17ad8..78808fe 100755 --- a/v1/python/carbon3d/models/__init__.py +++ b/v1/python/carbon3d/models/__init__.py @@ -33,7 +33,6 @@ from carbon3d.models.model_program_run_all_of import ModelProgramRunAllOf from carbon3d.models.model_program_run_request import ModelProgramRunRequest from carbon3d.models.model_program_run_status_info import ModelProgramRunStatusInfo -from carbon3d.models.model_program_run_typed_request import ModelProgramRunTypedRequest from carbon3d.models.model_program_runs import ModelProgramRuns from carbon3d.models.model_resolve_upload_request import ModelResolveUploadRequest from carbon3d.models.models_response import ModelsResponse diff --git a/v1/python/carbon3d/models/model_program_operation.py b/v1/python/carbon3d/models/model_program_operation.py index b1f4995..bf015fc 100755 --- a/v1/python/carbon3d/models/model_program_operation.py +++ b/v1/python/carbon3d/models/model_program_operation.py @@ -90,7 +90,7 @@ def status(self, status): """ if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - allowed_values = ["complete", "failed", "preparing", "pending"] # noqa: E501 + allowed_values = ["complete", "failed", "preparing", "pending", "invalid"] # noqa: E501 if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501 raise ValueError( "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 diff --git a/v1/python/carbon3d/models/model_program_run.py b/v1/python/carbon3d/models/model_program_run.py index aeea78a..6c9aa94 100755 --- a/v1/python/carbon3d/models/model_program_run.py +++ b/v1/python/carbon3d/models/model_program_run.py @@ -95,7 +95,7 @@ def status(self, status): """ if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - allowed_values = ["complete", "failed", "preparing", "pending"] # noqa: E501 + allowed_values = ["complete", "failed", "preparing", "pending", "invalid"] # noqa: E501 if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501 raise ValueError( "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 diff --git a/v1/python/carbon3d/models/model_program_run_request.py b/v1/python/carbon3d/models/model_program_run_request.py index fa4828a..827169a 100755 --- a/v1/python/carbon3d/models/model_program_run_request.py +++ b/v1/python/carbon3d/models/model_program_run_request.py @@ -35,7 +35,7 @@ class ModelProgramRunRequest(object): """ openapi_types = { 'model_program_uuid': 'str', - 'parameters': 'dict(str, str)' + 'parameters': 'OneOfarraymap' } attribute_map = { @@ -85,10 +85,10 @@ def model_program_uuid(self, model_program_uuid): def parameters(self): """Gets the parameters of this ModelProgramRunRequest. # noqa: E501 - parameters for the model program # noqa: E501 + Parameters for the model program. Use either `TypedReplacements` or `TokenReplacements` # noqa: E501 :return: The parameters of this ModelProgramRunRequest. # noqa: E501 - :rtype: dict(str, str) + :rtype: OneOfarraymap """ return self._parameters @@ -96,10 +96,10 @@ def parameters(self): def parameters(self, parameters): """Sets the parameters of this ModelProgramRunRequest. - parameters for the model program # noqa: E501 + Parameters for the model program. Use either `TypedReplacements` or `TokenReplacements` # noqa: E501 :param parameters: The parameters of this ModelProgramRunRequest. # noqa: E501 - :type: dict(str, str) + :type: OneOfarraymap """ if self.local_vars_configuration.client_side_validation and parameters is None: # noqa: E501 raise ValueError("Invalid value for `parameters`, must not be `None`") # noqa: E501 diff --git a/v1/python/carbon3d/models/model_program_run_status_info.py b/v1/python/carbon3d/models/model_program_run_status_info.py index 131a836..d69fb8b 100755 --- a/v1/python/carbon3d/models/model_program_run_status_info.py +++ b/v1/python/carbon3d/models/model_program_run_status_info.py @@ -86,7 +86,7 @@ def status(self, status): """ if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - allowed_values = ["complete", "failed", "preparing", "pending"] # noqa: E501 + allowed_values = ["complete", "failed", "preparing", "pending", "invalid"] # noqa: E501 if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501 raise ValueError( "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 diff --git a/v1/python/carbon3d/models/model_program_run_typed_request.py b/v1/python/carbon3d/models/model_program_run_typed_request.py deleted file mode 100755 index f8594c4..0000000 --- a/v1/python/carbon3d/models/model_program_run_typed_request.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - Carbon DLS API - - Welcome to the Carbon DLS API docs! # noqa: E501 - - The version of the OpenAPI document: 0.4.16 - Contact: api-list@carbon3d.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - -from carbon3d.configuration import Configuration - - -class ModelProgramRunTypedRequest(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'model_program_uuid': 'str', - 'parameters': 'list[OneOfStringParameterIntegerParameterDoubleParameter]' - } - - attribute_map = { - 'model_program_uuid': 'model_program_uuid', - 'parameters': 'parameters' - } - - def __init__(self, model_program_uuid=None, parameters=None, local_vars_configuration=None): # noqa: E501 - """ModelProgramRunTypedRequest - a model defined in OpenAPI""" # noqa: E501 - if local_vars_configuration is None: - local_vars_configuration = Configuration() - self.local_vars_configuration = local_vars_configuration - - self._model_program_uuid = None - self._parameters = None - self.discriminator = None - - self.model_program_uuid = model_program_uuid - self.parameters = parameters - - @property - def model_program_uuid(self): - """Gets the model_program_uuid of this ModelProgramRunTypedRequest. # noqa: E501 - - uuid for a model program # noqa: E501 - - :return: The model_program_uuid of this ModelProgramRunTypedRequest. # noqa: E501 - :rtype: str - """ - return self._model_program_uuid - - @model_program_uuid.setter - def model_program_uuid(self, model_program_uuid): - """Sets the model_program_uuid of this ModelProgramRunTypedRequest. - - uuid for a model program # noqa: E501 - - :param model_program_uuid: The model_program_uuid of this ModelProgramRunTypedRequest. # noqa: E501 - :type: str - """ - if self.local_vars_configuration.client_side_validation and model_program_uuid is None: # noqa: E501 - raise ValueError("Invalid value for `model_program_uuid`, must not be `None`") # noqa: E501 - - self._model_program_uuid = model_program_uuid - - @property - def parameters(self): - """Gets the parameters of this ModelProgramRunTypedRequest. # noqa: E501 - - parameters for the model program # noqa: E501 - - :return: The parameters of this ModelProgramRunTypedRequest. # noqa: E501 - :rtype: list[OneOfStringParameterIntegerParameterDoubleParameter] - """ - return self._parameters - - @parameters.setter - def parameters(self, parameters): - """Sets the parameters of this ModelProgramRunTypedRequest. - - parameters for the model program # noqa: E501 - - :param parameters: The parameters of this ModelProgramRunTypedRequest. # noqa: E501 - :type: list[OneOfStringParameterIntegerParameterDoubleParameter] - """ - if self.local_vars_configuration.client_side_validation and parameters is None: # noqa: E501 - raise ValueError("Invalid value for `parameters`, must not be `None`") # noqa: E501 - - self._parameters = parameters - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ModelProgramRunTypedRequest): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ModelProgramRunTypedRequest): - return True - - return self.to_dict() != other.to_dict() diff --git a/v1/python/docs/ModelProgramRunRequest.md b/v1/python/docs/ModelProgramRunRequest.md index 85db5f5..e0cc680 100755 --- a/v1/python/docs/ModelProgramRunRequest.md +++ b/v1/python/docs/ModelProgramRunRequest.md @@ -1,11 +1,11 @@ # ModelProgramRunRequest -This schema is deprecated. Please Use the 'ModelProgramRunTypedRequest' schema instead. +Start a ModelProgramRun with replacement parameters ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **model_program_uuid** | **str** | uuid for a model program | -**parameters** | **dict(str, str)** | parameters for the model program | +**parameters** | [**OneOfarraymap**](OneOfarraymap.md) | Parameters for the model program. Use either `TypedReplacements` or `TokenReplacements` | [[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/v1/python/docs/ModelProgramRunTypedRequest.md b/v1/python/docs/ModelProgramRunTypedRequest.md deleted file mode 100755 index bc9c8b2..0000000 --- a/v1/python/docs/ModelProgramRunTypedRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# ModelProgramRunTypedRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**model_program_uuid** | **str** | uuid for a model program | -**parameters** | [**list[OneOfStringParameterIntegerParameterDoubleParameter]**](OneOfStringParameterIntegerParameterDoubleParameter.md) | parameters for the model program | - -[[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/v1/python/docs/ModelProgramRunsApi.md b/v1/python/docs/ModelProgramRunsApi.md index b5e4fe8..e1dd0b0 100755 --- a/v1/python/docs/ModelProgramRunsApi.md +++ b/v1/python/docs/ModelProgramRunsApi.md @@ -5,7 +5,6 @@ All URIs are relative to *https://api.carbon3d.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_model_program_run**](ModelProgramRunsApi.md#create_model_program_run) | **POST** /model_program_runs | Run a model program to alter your models -[**create_model_program_run_typed_params**](ModelProgramRunsApi.md#create_model_program_run_typed_params) | **POST** /model_program_runs_typed_params | Run a model program to alter your models with typed params [**get_model_program_run**](ModelProgramRunsApi.md#get_model_program_run) | **GET** /model_program_runs/{uuid} | Get a model program run by UUID [**get_model_program_runs**](ModelProgramRunsApi.md#get_model_program_runs) | **GET** /model_program_runs | Get a list of model program runs based on their uuids @@ -83,79 +82,6 @@ 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) -# **create_model_program_run_typed_params** -> ModelProgramRun create_model_program_run_typed_params(model_program_run_typed_request=model_program_run_typed_request) - -Run a model program to alter your models with typed params - -Create a new model program run with typed params - -### Example - -* Bearer (JWT) Authentication (bearerAuth): -```python -from __future__ import print_function -import time -import carbon3d -from carbon3d.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to https://api.carbon3d.com/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = carbon3d.Configuration( - host = "https://api.carbon3d.com/v1" -) - -# 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 (JWT): bearerAuth -configuration = carbon3d.Configuration( - access_token = 'YOUR_BEARER_TOKEN' -) - -# Enter a context with an instance of the API client -with carbon3d.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = carbon3d.ModelProgramRunsApi(api_client) - model_program_run_typed_request = carbon3d.ModelProgramRunTypedRequest() # ModelProgramRunTypedRequest | (optional) - - try: - # Run a model program to alter your models with typed params - api_response = api_instance.create_model_program_run_typed_params(model_program_run_typed_request=model_program_run_typed_request) - pprint(api_response) - except ApiException as e: - print("Exception when calling ModelProgramRunsApi->create_model_program_run_typed_params: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **model_program_run_typed_request** | [**ModelProgramRunTypedRequest**](ModelProgramRunTypedRequest.md)| | [optional] - -### Return type - -[**ModelProgramRun**](ModelProgramRun.md) - -### Authorization - -[bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful operation | - | -**400** | Invalid input | - | - -[[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_model_program_run** > ModelProgramRun get_model_program_run(uuid) diff --git a/v1/python/test/test_model_program_run_request.py b/v1/python/test/test_model_program_run_request.py index c64dac6..53164e8 100755 --- a/v1/python/test/test_model_program_run_request.py +++ b/v1/python/test/test_model_program_run_request.py @@ -38,16 +38,12 @@ def make_instance(self, include_optional): if include_optional : return ModelProgramRunRequest( model_program_uuid = '0', - parameters = { - 'key' : '0' - } + parameters = null ) else : return ModelProgramRunRequest( model_program_uuid = '0', - parameters = { - 'key' : '0' - }, + parameters = null, ) def testModelProgramRunRequest(self): diff --git a/v1/python/test/test_model_program_run_typed_request.py b/v1/python/test/test_model_program_run_typed_request.py deleted file mode 100755 index a4af88e..0000000 --- a/v1/python/test/test_model_program_run_typed_request.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Carbon DLS API - - Welcome to the Carbon DLS API docs! # noqa: E501 - - The version of the OpenAPI document: 0.4.16 - Contact: api-list@carbon3d.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest -import datetime - -import carbon3d -from carbon3d.models.model_program_run_typed_request import ModelProgramRunTypedRequest # noqa: E501 -from carbon3d.rest import ApiException - -class TestModelProgramRunTypedRequest(unittest.TestCase): - """ModelProgramRunTypedRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional): - """Test ModelProgramRunTypedRequest - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # model = carbon3d.models.model_program_run_typed_request.ModelProgramRunTypedRequest() # noqa: E501 - if include_optional : - return ModelProgramRunTypedRequest( - model_program_uuid = '0', - parameters = [ - null - ] - ) - else : - return ModelProgramRunTypedRequest( - model_program_uuid = '0', - parameters = [ - null - ], - ) - - def testModelProgramRunTypedRequest(self): - """Test ModelProgramRunTypedRequest""" - 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/v1/python/test/test_model_program_runs_api.py b/v1/python/test/test_model_program_runs_api.py index 63c69b5..9345462 100755 --- a/v1/python/test/test_model_program_runs_api.py +++ b/v1/python/test/test_model_program_runs_api.py @@ -36,13 +36,6 @@ def test_create_model_program_run(self): """ pass - def test_create_model_program_run_typed_params(self): - """Test case for create_model_program_run_typed_params - - Run a model program to alter your models with typed params # noqa: E501 - """ - pass - def test_get_model_program_run(self): """Test case for get_model_program_run