diff --git a/README.md b/README.md index b9ec36a62d34178106d6da05996f203c255dc25d..84a910daa045bb91118aef2b02c61e00ccd4f99a 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,6 @@ Class | Method | HTTP request | Description *MarketOpenapiApi* | [**get_app_plugin_list**](docs/MarketOpenapiApi.md#get_app_plugin_list) | **GET** /app-server/openapi/apps/plugins | 应用插件列表 *MarketOpenapiApi* | [**get_app_temp_list**](docs/MarketOpenapiApi.md#get_app_temp_list) | **GET** /app-server/openapi/apps/template | 控制台应用模版列表 *MarketOpenapiApi* | [**get_market_info**](docs/MarketOpenapiApi.md#get_market_info) | **GET** /app-server/openapi/info | 获取商店信息 -*MarketOpenapiApi* | [**get_orgs**](docs/MarketOpenapiApi.md#get_orgs) | **GET** /app-server/openapi/organizations | 获取组织机构(行业)列表 *MarketOpenapiApi* | [**get_user_app_detail**](docs/MarketOpenapiApi.md#get_user_app_detail) | **GET** /app-server/openapi/apps/{appID} | 应用详情 *MarketOpenapiApi* | [**get_user_app_list**](docs/MarketOpenapiApi.md#get_user_app_list) | **GET** /app-server/openapi/apps | 应用列表 *MarketOpenapiApi* | [**get_user_app_version_detail**](docs/MarketOpenapiApi.md#get_user_app_version_detail) | **GET** /app-server/openapi/apps/{appID}/versions/{version} | 应用版本信息 @@ -116,6 +115,7 @@ Class | Method | HTTP request | Description - [ControllerResult](docs/ControllerResult.md) - [RestfulutilResult](docs/RestfulutilResult.md) - [V1AppBaseInfo](docs/V1AppBaseInfo.md) + - [V1AppClassifications](docs/V1AppClassifications.md) - [V1AppDetailInfoResponse](docs/V1AppDetailInfoResponse.md) - [V1AppImageHubInfoResponse](docs/V1AppImageHubInfoResponse.md) - [V1AppModelCreateRequest](docs/V1AppModelCreateRequest.md) @@ -127,7 +127,6 @@ Class | Method | HTTP request | Description - [V1CreateAppPaaSVersionRequest](docs/V1CreateAppPaaSVersionRequest.md) - [V1MarketInfoResponse](docs/V1MarketInfoResponse.md) - [V1MarketUIAppTagsResponse](docs/V1MarketUIAppTagsResponse.md) - - [V1Organization](docs/V1Organization.md) - [V1UserAppListResponse](docs/V1UserAppListResponse.md) - [V1alpha1AppConfigGroup](docs/V1alpha1AppConfigGroup.md) - [V1alpha1Component](docs/V1alpha1Component.md) @@ -135,6 +134,7 @@ Class | Method | HTTP request | Description - [V1alpha1ComponentEnv](docs/V1alpha1ComponentEnv.md) - [V1alpha1ComponentExtendMethodRule](docs/V1alpha1ComponentExtendMethodRule.md) - [V1alpha1ComponentGraph](docs/V1alpha1ComponentGraph.md) + - [V1alpha1ComponentK8sAttribute](docs/V1alpha1ComponentK8sAttribute.md) - [V1alpha1ComponentMonitor](docs/V1alpha1ComponentMonitor.md) - [V1alpha1ComponentPluginConfig](docs/V1alpha1ComponentPluginConfig.md) - [V1alpha1ComponentPort](docs/V1alpha1ComponentPort.md) @@ -145,6 +145,7 @@ Class | Method | HTTP request | Description - [V1alpha1ImageInfo](docs/V1alpha1ImageInfo.md) - [V1alpha1IngressHTTPRoute](docs/V1alpha1IngressHTTPRoute.md) - [V1alpha1IngressSreamRoute](docs/V1alpha1IngressSreamRoute.md) + - [V1alpha1K8sResource](docs/V1alpha1K8sResource.md) - [V1alpha1Plugin](docs/V1alpha1Plugin.md) - [V1alpha1PluginConfigGroup](docs/V1alpha1PluginConfigGroup.md) - [V1alpha1PluginConfigGroupOption](docs/V1alpha1PluginConfigGroupOption.md) @@ -163,6 +164,6 @@ Class | Method | HTTP request | Description ## Author -huangrh@goodrain.com + diff --git a/docs/AppsImageInfo.md b/docs/AppsImageInfo.md new file mode 100644 index 0000000000000000000000000000000000000000..0ef367fcb61a86c0ef41ace9574ff0913e46e5d2 --- /dev/null +++ b/docs/AppsImageInfo.md @@ -0,0 +1,14 @@ +# AppsImageInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hub_password** | **str** | | +**hub_url** | **str** | | +**hub_user** | **str** | | +**is_trust** | **bool** | | +**namespace** | **str** | | + +[[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/AppsStoreAppVersionTemplete.md b/docs/AppsStoreAppVersionTemplete.md new file mode 100644 index 0000000000000000000000000000000000000000..ee6e90a5528a698618886aee2e3cb8762bfee067 --- /dev/null +++ b/docs/AppsStoreAppVersionTemplete.md @@ -0,0 +1,15 @@ +# AppsStoreAppVersionTemplete + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apps** | [**list[AppsStoreAppVersionTempleteApp]**](AppsStoreAppVersionTempleteApp.md) | | +**group_key** | **str** | | +**group_name** | **str** | | +**group_version** | **str** | | +**plugins** | [**list[AppsStoreAppVersionTempletePlugin]**](AppsStoreAppVersionTempletePlugin.md) | | [optional] +**template_version** | **str** | | + +[[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/AppsStoreAppVersionTempleteApp.md b/docs/AppsStoreAppVersionTempleteApp.md new file mode 100644 index 0000000000000000000000000000000000000000..a407d73b3d07e6b5f5c2b50763d5b0abd4525665 --- /dev/null +++ b/docs/AppsStoreAppVersionTempleteApp.md @@ -0,0 +1,39 @@ +# AppsStoreAppVersionTempleteApp + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**category** | **str** | | +**cmd** | **str** | | +**dep_service_map_list** | [**list[AppsStoreAppVersionTempleteAppDepService]**](AppsStoreAppVersionTempleteAppDepService.md) | | +**deploy_version** | **str** | | +**extend_method** | **str** | | +**extend_method_map** | [**AppsStoreAppVersionTempleteAppExtendMethodRule**](AppsStoreAppVersionTempleteAppExtendMethodRule.md) | | +**image** | **str** | | +**language** | **str** | | +**memory** | **int** | | +**mnt_relation_list** | [**list[AppsStoreAppVersionTempleteAppShareVolume]**](AppsStoreAppVersionTempleteAppShareVolume.md) | | +**port_map_list** | [**list[AppsStoreAppVersionTempleteAppPort]**](AppsStoreAppVersionTempleteAppPort.md) | | +**probes** | [**list[AppsStoreAppVersionTempleteAppProbe]**](AppsStoreAppVersionTempleteAppProbe.md) | | +**service_alias** | **str** | | +**service_cname** | **str** | | +**service_connect_info_map_list** | [**list[AppsStoreAppVersionTempleteAppEnv]**](AppsStoreAppVersionTempleteAppEnv.md) | | +**service_env_map_list** | [**list[AppsStoreAppVersionTempleteAppEnv]**](AppsStoreAppVersionTempleteAppEnv.md) | | +**service_id** | **str** | | +**service_image** | [**AppsImageInfo**](AppsImageInfo.md) | | +**service_key** | **str** | | +**service_name** | **str** | | +**service_region** | **str** | | +**service_related_plugin_config** | [**list[AppsStoreAppVersionTempleteAppPluginConfig]**](AppsStoreAppVersionTempleteAppPluginConfig.md) | | [optional] +**service_share_uuid** | **str** | | [optional] +**service_source** | **str** | | +**service_type** | **str** | | +**service_volume_map_list** | [**list[AppsStoreAppVersionTempleteAppVolume]**](AppsStoreAppVersionTempleteAppVolume.md) | | +**share_image** | **str** | | +**share_type** | **str** | | [optional] +**tenant_id** | **str** | | +**version** | **str** | | + +[[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/AppsStoreAppVersionTempleteAppDepService.md b/docs/AppsStoreAppVersionTempleteAppDepService.md new file mode 100644 index 0000000000000000000000000000000000000000..8787239275f59a0e2c8bec28985c66750555d191 --- /dev/null +++ b/docs/AppsStoreAppVersionTempleteAppDepService.md @@ -0,0 +1,10 @@ +# AppsStoreAppVersionTempleteAppDepService + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dep_service_key** | **str** | | + +[[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/AppsStoreAppVersionTempleteAppEnv.md b/docs/AppsStoreAppVersionTempleteAppEnv.md new file mode 100644 index 0000000000000000000000000000000000000000..f59f905847ee42fa9005edb0f669fd8fd77f0458 --- /dev/null +++ b/docs/AppsStoreAppVersionTempleteAppEnv.md @@ -0,0 +1,13 @@ +# AppsStoreAppVersionTempleteAppEnv + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attr_name** | **str** | | +**attr_value** | **str** | | +**is_change** | **bool** | | +**name** | **str** | | + +[[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/AppsStoreAppVersionTempleteAppExtendMethodRule.md b/docs/AppsStoreAppVersionTempleteAppExtendMethodRule.md new file mode 100644 index 0000000000000000000000000000000000000000..d45289e2a2a0d5397592c94298afb5fb95c511ba --- /dev/null +++ b/docs/AppsStoreAppVersionTempleteAppExtendMethodRule.md @@ -0,0 +1,16 @@ +# AppsStoreAppVersionTempleteAppExtendMethodRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_restart** | **int** | | +**max_memory** | **int** | | +**max_node** | **int** | | +**min_memory** | **int** | | +**min_node** | **int** | | +**step_memory** | **int** | | +**step_node** | **int** | | + +[[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/AppsStoreAppVersionTempleteAppPluginConfig.md b/docs/AppsStoreAppVersionTempleteAppPluginConfig.md new file mode 100644 index 0000000000000000000000000000000000000000..d6e46f3023fc3b2552ad10aef517fc32f2a453b7 --- /dev/null +++ b/docs/AppsStoreAppVersionTempleteAppPluginConfig.md @@ -0,0 +1,18 @@ +# AppsStoreAppVersionTempleteAppPluginConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**attr** | **list[object]** | | +**build_version** | **str** | | +**create_time** | **str** | | +**plugin_id** | **str** | | +**plugin_key** | **str** | | +**plugin_status** | **bool** | | +**service_id** | **str** | | +**service_meta_type** | **str** | | + +[[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/AppsStoreAppVersionTempleteAppPort.md b/docs/AppsStoreAppVersionTempleteAppPort.md new file mode 100644 index 0000000000000000000000000000000000000000..e6a5053c3919b65b56ee372713b4b055274e3e89 --- /dev/null +++ b/docs/AppsStoreAppVersionTempleteAppPort.md @@ -0,0 +1,15 @@ +# AppsStoreAppVersionTempleteAppPort + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**container_port** | **int** | | +**is_inner_service** | **bool** | | +**is_outer_service** | **bool** | | +**port_alias** | **str** | | +**protocol** | **str** | | +**tenant_id** | **str** | | + +[[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/AppsStoreAppVersionTempleteAppProbe.md b/docs/AppsStoreAppVersionTempleteAppProbe.md new file mode 100644 index 0000000000000000000000000000000000000000..326e68f40155ecee4807b22279257439c8c0edd6 --- /dev/null +++ b/docs/AppsStoreAppVersionTempleteAppProbe.md @@ -0,0 +1,24 @@ +# AppsStoreAppVersionTempleteAppProbe + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**cmd** | **str** | | +**failure_threshold** | **int** | | +**http_header** | **str** | | +**initial_delay_second** | **int** | | +**is_used** | **bool** | | +**mode** | **str** | | +**path** | **str** | | +**period_second** | **int** | | +**port** | **int** | | +**probe_id** | **str** | | +**scheme** | **str** | | +**service_id** | **str** | | +**success_threshold** | **int** | | +**timeout_second** | **int** | | + +[[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/AppsStoreAppVersionTempleteAppShareVolume.md b/docs/AppsStoreAppVersionTempleteAppShareVolume.md new file mode 100644 index 0000000000000000000000000000000000000000..a700250bec069dc4ffc65bca177e1120bc9a2dc9 --- /dev/null +++ b/docs/AppsStoreAppVersionTempleteAppShareVolume.md @@ -0,0 +1,12 @@ +# AppsStoreAppVersionTempleteAppShareVolume + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mnt_dir** | **str** | | +**mnt_name** | **str** | | +**service_share_uuid** | **str** | | + +[[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/AppsStoreAppVersionTempleteAppVolume.md b/docs/AppsStoreAppVersionTempleteAppVolume.md new file mode 100644 index 0000000000000000000000000000000000000000..70aeaf54985dd3b7aa609f1b05df39dbb557029d --- /dev/null +++ b/docs/AppsStoreAppVersionTempleteAppVolume.md @@ -0,0 +1,15 @@ +# AppsStoreAppVersionTempleteAppVolume + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_mode** | **str** | | +**file_content** | **str** | | +**volume_capacity** | **int** | | +**volume_name** | **str** | | +**volume_path** | **str** | | +**volume_type** | **str** | | + +[[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/AppsStoreAppVersionTempletePlugin.md b/docs/AppsStoreAppVersionTempletePlugin.md new file mode 100644 index 0000000000000000000000000000000000000000..03c7f5a2d0fd5c270f63338a32fdc3ee5c692428 --- /dev/null +++ b/docs/AppsStoreAppVersionTempletePlugin.md @@ -0,0 +1,26 @@ +# AppsStoreAppVersionTempletePlugin + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**build_source** | **str** | | +**build_version** | **str** | | +**category** | **str** | | +**code_repo** | **str** | | +**config_groups** | [**list[AppsStoreAppVersionTempletePluginConfigGroup]**](AppsStoreAppVersionTempletePluginConfigGroup.md) | | [optional] +**create_time** | **str** | | +**desc** | **str** | | +**image** | **str** | | +**origin** | **str** | | +**origin_share_id** | **str** | | +**plugin_alias** | **str** | | +**plugin_id** | **str** | | +**plugin_image** | [**AppsImageInfo**](AppsImageInfo.md) | | +**plugin_key** | **str** | | +**plugin_name** | **str** | | +**share_image** | **str** | | + +[[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/AppsStoreAppVersionTempletePluginConfigGroup.md b/docs/AppsStoreAppVersionTempletePluginConfigGroup.md new file mode 100644 index 0000000000000000000000000000000000000000..0b0d5900bb8ab310759e69f19887296e5a846383 --- /dev/null +++ b/docs/AppsStoreAppVersionTempletePluginConfigGroup.md @@ -0,0 +1,16 @@ +# AppsStoreAppVersionTempletePluginConfigGroup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**build_version** | **str** | | +**config_name** | **str** | | +**injection** | **str** | | +**options** | [**list[AppsStoreAppVersionTempletePluginConfigGroupOption]**](AppsStoreAppVersionTempletePluginConfigGroupOption.md) | | [optional] +**plugin_id** | **str** | | +**service_meta_type** | **str** | | + +[[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/AppsStoreAppVersionTempletePluginConfigGroupOption.md b/docs/AppsStoreAppVersionTempletePluginConfigGroupOption.md new file mode 100644 index 0000000000000000000000000000000000000000..8db22d7cac0b528499160299f15d00ff53a40aeb --- /dev/null +++ b/docs/AppsStoreAppVersionTempletePluginConfigGroupOption.md @@ -0,0 +1,20 @@ +# AppsStoreAppVersionTempletePluginConfigGroupOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**attr_alt_value** | **str** | | +**attr_default_value** | **str** | | +**attr_info** | **str** | | +**attr_name** | **str** | | +**attr_type** | **str** | | +**build_version** | **str** | | +**is_change** | **bool** | | +**plugin_id** | **str** | | +**protocol** | **str** | | +**service_meta_type** | **str** | | + +[[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/MarketOpenapiApi.md b/docs/MarketOpenapiApi.md index ba6826e2fdbc4b5cb8e71cb2091f0b3a31241538..bd11991931d5b04704feca66adaf23449354fc45 100644 --- a/docs/MarketOpenapiApi.md +++ b/docs/MarketOpenapiApi.md @@ -11,7 +11,6 @@ Method | HTTP request | Description [**get_app_plugin_list**](MarketOpenapiApi.md#get_app_plugin_list) | **GET** /app-server/openapi/apps/plugins | 应用插件列表 [**get_app_temp_list**](MarketOpenapiApi.md#get_app_temp_list) | **GET** /app-server/openapi/apps/template | 控制台应用模版列表 [**get_market_info**](MarketOpenapiApi.md#get_market_info) | **GET** /app-server/openapi/info | 获取商店信息 -[**get_orgs**](MarketOpenapiApi.md#get_orgs) | **GET** /app-server/openapi/organizations | 获取组织机构(行业)列表 [**get_user_app_detail**](MarketOpenapiApi.md#get_user_app_detail) | **GET** /app-server/openapi/apps/{appID} | 应用详情 [**get_user_app_list**](MarketOpenapiApi.md#get_user_app_list) | **GET** /app-server/openapi/apps | 应用列表 [**get_user_app_version_detail**](MarketOpenapiApi.md#get_user_app_version_detail) | **GET** /app-server/openapi/apps/{appID}/versions/{version} | 应用版本信息 @@ -581,77 +580,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) -# **get_orgs** -> list[V1Organization] get_orgs() - -获取组织机构(行业)列表 - -### Example - -* Api Key Authentication (api_key): -```python -from __future__ import print_function -import time -import openapi_client -from openapi_client.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:8080 -# See configuration.py for a list of all supported configuration parameters. -configuration = openapi_client.Configuration( - host = "http://127.0.0.1:8080" -) - -# 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 API key authorization: api_key -configuration = openapi_client.Configuration( - host = "http://127.0.0.1:8080", - api_key = { - 'Authorization': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['Authorization'] = 'Bearer' - -# Enter a context with an instance of the API client -with openapi_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openapi_client.MarketOpenapiApi(api_client) - - try: - # 获取组织机构(行业)列表 - api_response = api_instance.get_orgs() - pprint(api_response) - except ApiException as e: - print("Exception when calling MarketOpenapiApi->get_orgs: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**list[V1Organization]**](V1Organization.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | - -[[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_user_app_detail** > V1AppDetailInfoResponse get_user_app_detail(app_id, market_domain) diff --git a/docs/V1AppBaseInfo.md b/docs/V1AppBaseInfo.md index a7940510ba3ed6ed9e564924ede36ab0cf5520b0..f09f4200c362e93c4ef440424b274ba6dfcc325d 100644 --- a/docs/V1AppBaseInfo.md +++ b/docs/V1AppBaseInfo.md @@ -3,12 +3,16 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**app_classifications** | [**list[V1AppClassifications]**](V1AppClassifications.md) | 应用所属分类 | **app_detail_url** | **str** | 应用详情 URL | **app_key_id** | **str** | 应用 ID | **create_time** | **datetime** | 创建时间 | **desc** | **str** | 应用描述 | **dev_status** | **str** | 开发状态 | **download_count** | **int** | 下载次数 | +**effect** | **str** | 应用效果 | +**features** | **str** | 应用特点 | +**functional** | **str** | 应用功能 | **install_count** | **int** | 安装次数 | **introduction** | **str** | 应用介绍 | **introduction_html** | **str** | 应用介绍 | @@ -18,8 +22,11 @@ Name | Type | Description | Notes **market_name** | **str** | 商店名称 | **market_url** | **str** | 商店 URL | **name** | **str** | 应用名称 | +**phone** | **str** | 发布人手机号 | **publish_type** | **str** | 发布类型. private: 私有; public: 公有 | **publish_user** | **str** | 发布人 | +**quote** | **str** | 规格报价 | +**real_name** | **str** | 发布人姓名 | **show_count** | **int** | 访问次数 | **start_count** | **int** | | **status** | **str** | 状态 | diff --git a/docs/V1AppClassifications.md b/docs/V1AppClassifications.md new file mode 100644 index 0000000000000000000000000000000000000000..7dfbe914936128605e193a9be2d30d8473363704 --- /dev/null +++ b/docs/V1AppClassifications.md @@ -0,0 +1,12 @@ +# V1AppClassifications + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**app_classification_id** | **str** | 应用分类 ID | +**app_classification_name** | **str** | 分类名称 | +**parent_app_classification_id** | **str** | 父级分类 ID | + +[[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/V1AppCreateRequest.md b/docs/V1AppCreateRequest.md new file mode 100644 index 0000000000000000000000000000000000000000..e4a9ba7f08ba134378a6d31549b8261d88540496 --- /dev/null +++ b/docs/V1AppCreateRequest.md @@ -0,0 +1,17 @@ +# V1AppCreateRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**app_classification_id** | **str** | | +**desc** | **str** | | +**introduction** | **str** | | +**logo** | **str** | | +**name** | **str** | | +**org_id** | **str** | 组织机构 ID | +**publish_type** | **str** | | +**tags** | **list[str]** | | + +[[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/V1AppDetailInfoResponse.md b/docs/V1AppDetailInfoResponse.md index 8225e5efe7e0c11e64ff203212d2379a56c483b7..bd2e1476e461e5659d4e862e62faf3bea3dd262e 100644 --- a/docs/V1AppDetailInfoResponse.md +++ b/docs/V1AppDetailInfoResponse.md @@ -4,12 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **app_classification_id** | **str** | 类别 ID | +**app_classifications** | [**list[V1AppClassifications]**](V1AppClassifications.md) | 应用所属分类 | **app_detail_url** | **str** | 应用详情 URL | **app_key_id** | **str** | 应用 ID | **create_time** | **datetime** | 创建时间 | **desc** | **str** | 应用描述 | **dev_status** | **str** | 开发状态 | **download_count** | **int** | 下载次数 | +**effect** | **str** | 应用效果 | +**features** | **str** | 应用特点 | +**functional** | **str** | 应用功能 | **install_count** | **int** | 安装次数 | **introduction** | **str** | 应用介绍 | **introduction_html** | **str** | 应用介绍 | @@ -20,8 +24,11 @@ Name | Type | Description | Notes **market_url** | **str** | 商店 URL | **name** | **str** | 应用名称 | **org_id** | **str** | 组织机构 ID | +**phone** | **str** | 发布人手机号 | **publish_type** | **str** | 发布类型. private: 私有; public: 公有 | **publish_user** | **str** | 发布人 | +**quote** | **str** | 规格报价 | +**real_name** | **str** | 发布人姓名 | **show_count** | **int** | 访问次数 | **start_count** | **int** | | **status** | **str** | 状态 | diff --git a/docs/V1AppModelCreateRequest.md b/docs/V1AppModelCreateRequest.md index 30d54dac2d2ef84d84c87535a85a206954b86f20..c91c036b93a90cac949fb47fbcebb8e5e18f5f10 100644 --- a/docs/V1AppModelCreateRequest.md +++ b/docs/V1AppModelCreateRequest.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes **introduction** | **str** | 介绍 | **logo** | **str** | logo | **name** | **str** | 应用名称 | -**org_id** | **str** | | [optional] **publish_type** | **str** | 发布类型. private: 私有; public: 公开. | **tags** | **list[str]** | 标签 | diff --git a/docs/V1AppUpdateRequest.md b/docs/V1AppUpdateRequest.md index 24e2afecc397b079aae5fe99ee79aafc1b665b29..4fda3d46b902e1315f49bf6d670de5ca732297d9 100644 --- a/docs/V1AppUpdateRequest.md +++ b/docs/V1AppUpdateRequest.md @@ -4,10 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **desc** | **str** | | +**effect** | **str** | 应用效果 | +**features** | **str** | 应用特点 | +**functional** | **str** | 应用功能 | **introduction** | **str** | | **logo** | **str** | | **name** | **str** | | **publish_type** | **str** | | +**quote** | **str** | 规格报价 | [[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/V1AppVersionBase.md b/docs/V1AppVersionBase.md index 4487e0674f18b9123b76e6602ca00a6c6e693bcb..dd31d4173db236b5bbd42ce8f9b9bb4f6d45ccfe 100644 --- a/docs/V1AppVersionBase.md +++ b/docs/V1AppVersionBase.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **app_key_id** | **str** | 应用 ID | **app_version** | **str** | 应用版本 | **app_version_alias** | **str** | 版本别名 | +**arch** | **str** | 应用架构 | **create_time** | **datetime** | 创建时间 | **delivery_mode** | **str** | 交付模式 | **desc** | **str** | 描述 | diff --git a/docs/V1AppVersionDetailResponse.md b/docs/V1AppVersionDetailResponse.md index d52e1b80ed6d376d411fc13f745d1f47aba67de3..6b7cd48a42b3ee721e8ece94c42ec1bd5aad3d37 100644 --- a/docs/V1AppVersionDetailResponse.md +++ b/docs/V1AppVersionDetailResponse.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **app_key_id** | **str** | 应用ID | **app_name** | **str** | 应用名称 | +**arch** | **str** | 应用架构 | **create_time** | **datetime** | | **delivery_mode** | **str** | 交付类型 | **description** | **str** | 描述 | diff --git a/docs/V1AppVersionRequest.md b/docs/V1AppVersionRequest.md new file mode 100644 index 0000000000000000000000000000000000000000..22acbcb20ecf5c5bfc23a57b633667265a1c32af --- /dev/null +++ b/docs/V1AppVersionRequest.md @@ -0,0 +1,15 @@ +# V1AppVersionRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**app_version** | **str** | | +**app_version_alias** | **str** | | +**desc** | **str** | | +**rainbond_version** | **str** | | +**templete** | **str** | | +**update_version** | **int** | | + +[[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/V1CreateAppPaaSVersionRequest.md b/docs/V1CreateAppPaaSVersionRequest.md index 7b7af26ee7332898ab90418dd038ddeeedf27fac..ce9ce753d1869a4cc4c4cf1cc70b10380088a1e6 100644 --- a/docs/V1CreateAppPaaSVersionRequest.md +++ b/docs/V1CreateAppPaaSVersionRequest.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**arch** | **str** | | **description** | **str** | | **is_plugin** | **bool** | | **rainbond_version** | **str** | | diff --git a/docs/V1ImageInfo.md b/docs/V1ImageInfo.md new file mode 100644 index 0000000000000000000000000000000000000000..aac55a2d7b92ac15a75b31a87276ee56162fc7d8 --- /dev/null +++ b/docs/V1ImageInfo.md @@ -0,0 +1,14 @@ +# V1ImageInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hub_password** | **str** | | +**hub_url** | **str** | | +**hub_user** | **str** | | +**is_trust** | **bool** | | +**namespace** | **str** | | + +[[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/V1StoreAppVersionTemplate.md b/docs/V1StoreAppVersionTemplate.md new file mode 100644 index 0000000000000000000000000000000000000000..17468397cc674e602c7217f834bfddcd8d6f3b3e --- /dev/null +++ b/docs/V1StoreAppVersionTemplate.md @@ -0,0 +1,15 @@ +# V1StoreAppVersionTemplate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apps** | [**list[V1StoreAppVersionTempleteApp]**](V1StoreAppVersionTempleteApp.md) | | +**group_key** | **str** | | +**group_name** | **str** | | +**group_version** | **str** | | +**plugins** | [**list[V1StoreAppVersionTempletePlugin]**](V1StoreAppVersionTempletePlugin.md) | | [optional] +**template_version** | **str** | | + +[[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/V1StoreAppVersionTemplete.md b/docs/V1StoreAppVersionTemplete.md new file mode 100644 index 0000000000000000000000000000000000000000..f8e2174665ad86749c6b1250f82ca3c031bef2d3 --- /dev/null +++ b/docs/V1StoreAppVersionTemplete.md @@ -0,0 +1,15 @@ +# V1StoreAppVersionTemplete + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apps** | [**list[V1StoreAppVersionTempleteApp]**](V1StoreAppVersionTempleteApp.md) | | +**group_key** | **str** | | +**group_name** | **str** | | +**group_version** | **str** | | +**plugins** | [**list[V1StoreAppVersionTempletePlugin]**](V1StoreAppVersionTempletePlugin.md) | | [optional] +**template_version** | **str** | | + +[[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/V1StoreAppVersionTempleteApp.md b/docs/V1StoreAppVersionTempleteApp.md new file mode 100644 index 0000000000000000000000000000000000000000..434e9d9e0483c68bf95ec0a1379e66e52765bb06 --- /dev/null +++ b/docs/V1StoreAppVersionTempleteApp.md @@ -0,0 +1,39 @@ +# V1StoreAppVersionTempleteApp + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**category** | **str** | | +**cmd** | **str** | | +**dep_service_map_list** | [**list[V1StoreAppVersionTempleteAppDepService]**](V1StoreAppVersionTempleteAppDepService.md) | | +**deploy_version** | **str** | | +**extend_method** | **str** | | +**extend_method_map** | [**V1StoreAppVersionTempleteAppExtendMethodRule**](V1StoreAppVersionTempleteAppExtendMethodRule.md) | | +**image** | **str** | | +**language** | **str** | | +**memory** | **int** | | +**mnt_relation_list** | [**list[V1StoreAppVersionTempleteAppShareVolume]**](V1StoreAppVersionTempleteAppShareVolume.md) | | +**port_map_list** | [**list[V1StoreAppVersionTempleteAppPort]**](V1StoreAppVersionTempleteAppPort.md) | | +**probes** | [**list[V1StoreAppVersionTempleteAppProbe]**](V1StoreAppVersionTempleteAppProbe.md) | | +**service_alias** | **str** | | +**service_cname** | **str** | | +**service_connect_info_map_list** | [**list[V1StoreAppVersionTempleteAppEnv]**](V1StoreAppVersionTempleteAppEnv.md) | | +**service_env_map_list** | [**list[V1StoreAppVersionTempleteAppEnv]**](V1StoreAppVersionTempleteAppEnv.md) | | +**service_id** | **str** | | +**service_image** | [**V1ImageInfo**](V1ImageInfo.md) | | +**service_key** | **str** | | +**service_name** | **str** | | +**service_region** | **str** | | +**service_related_plugin_config** | [**list[V1StoreAppVersionTempleteAppPluginConfig]**](V1StoreAppVersionTempleteAppPluginConfig.md) | | [optional] +**service_share_uuid** | **str** | | [optional] +**service_source** | **str** | | +**service_type** | **str** | | +**service_volume_map_list** | [**list[V1StoreAppVersionTempleteAppVolume]**](V1StoreAppVersionTempleteAppVolume.md) | | +**share_image** | **str** | | +**share_type** | **str** | | [optional] +**tenant_id** | **str** | | +**version** | **str** | | + +[[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/V1StoreAppVersionTempleteAppDepService.md b/docs/V1StoreAppVersionTempleteAppDepService.md new file mode 100644 index 0000000000000000000000000000000000000000..036068e5a34fac6b4392f2b188b6a38d03857760 --- /dev/null +++ b/docs/V1StoreAppVersionTempleteAppDepService.md @@ -0,0 +1,10 @@ +# V1StoreAppVersionTempleteAppDepService + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dep_service_key** | **str** | | + +[[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/V1StoreAppVersionTempleteAppEnv.md b/docs/V1StoreAppVersionTempleteAppEnv.md new file mode 100644 index 0000000000000000000000000000000000000000..6318137f1c029791353b79236bbb8a305000a0dc --- /dev/null +++ b/docs/V1StoreAppVersionTempleteAppEnv.md @@ -0,0 +1,13 @@ +# V1StoreAppVersionTempleteAppEnv + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attr_name** | **str** | | +**attr_value** | **str** | | +**is_change** | **bool** | | +**name** | **str** | | + +[[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/V1StoreAppVersionTempleteAppExtendMethodRule.md b/docs/V1StoreAppVersionTempleteAppExtendMethodRule.md new file mode 100644 index 0000000000000000000000000000000000000000..6da664c6be812af782d7e897bc80a80ea37e23e1 --- /dev/null +++ b/docs/V1StoreAppVersionTempleteAppExtendMethodRule.md @@ -0,0 +1,16 @@ +# V1StoreAppVersionTempleteAppExtendMethodRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_restart** | **int** | | +**max_memory** | **int** | | +**max_node** | **int** | | +**min_memory** | **int** | | +**min_node** | **int** | | +**step_memory** | **int** | | +**step_node** | **int** | | + +[[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/V1StoreAppVersionTempleteAppPluginConfig.md b/docs/V1StoreAppVersionTempleteAppPluginConfig.md new file mode 100644 index 0000000000000000000000000000000000000000..6e3fd833e42a83d28bde9bd8b0c2b2f6e763efa7 --- /dev/null +++ b/docs/V1StoreAppVersionTempleteAppPluginConfig.md @@ -0,0 +1,18 @@ +# V1StoreAppVersionTempleteAppPluginConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**attr** | **list[object]** | | +**build_version** | **str** | | +**create_time** | **str** | | +**plugin_id** | **str** | | +**plugin_key** | **str** | | +**plugin_status** | **bool** | | +**service_id** | **str** | | +**service_meta_type** | **str** | | + +[[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/V1StoreAppVersionTempleteAppPort.md b/docs/V1StoreAppVersionTempleteAppPort.md new file mode 100644 index 0000000000000000000000000000000000000000..2e95e3aac65467d9713c9706069b27bafc309bbe --- /dev/null +++ b/docs/V1StoreAppVersionTempleteAppPort.md @@ -0,0 +1,15 @@ +# V1StoreAppVersionTempleteAppPort + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**container_port** | **int** | | +**is_inner_service** | **bool** | | +**is_outer_service** | **bool** | | +**port_alias** | **str** | | +**protocol** | **str** | | +**tenant_id** | **str** | | + +[[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/V1StoreAppVersionTempleteAppProbe.md b/docs/V1StoreAppVersionTempleteAppProbe.md new file mode 100644 index 0000000000000000000000000000000000000000..1f60f2a45c03d96f09af3b27ff4f1da0f84e6ce1 --- /dev/null +++ b/docs/V1StoreAppVersionTempleteAppProbe.md @@ -0,0 +1,24 @@ +# V1StoreAppVersionTempleteAppProbe + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**cmd** | **str** | | +**failure_threshold** | **int** | | +**http_header** | **str** | | +**initial_delay_second** | **int** | | +**is_used** | **bool** | | +**mode** | **str** | | +**path** | **str** | | +**period_second** | **int** | | +**port** | **int** | | +**probe_id** | **str** | | +**scheme** | **str** | | +**service_id** | **str** | | +**success_threshold** | **int** | | +**timeout_second** | **int** | | + +[[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/V1StoreAppVersionTempleteAppShareVolume.md b/docs/V1StoreAppVersionTempleteAppShareVolume.md new file mode 100644 index 0000000000000000000000000000000000000000..717af8a41d24dfe23b77836d9277971517f93c6b --- /dev/null +++ b/docs/V1StoreAppVersionTempleteAppShareVolume.md @@ -0,0 +1,12 @@ +# V1StoreAppVersionTempleteAppShareVolume + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mnt_dir** | **str** | | +**mnt_name** | **str** | | +**service_share_uuid** | **str** | | + +[[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/V1StoreAppVersionTempleteAppVolume.md b/docs/V1StoreAppVersionTempleteAppVolume.md new file mode 100644 index 0000000000000000000000000000000000000000..586101c18bcb95bf175f767f9fc555630479ea02 --- /dev/null +++ b/docs/V1StoreAppVersionTempleteAppVolume.md @@ -0,0 +1,15 @@ +# V1StoreAppVersionTempleteAppVolume + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_mode** | **str** | | +**file_content** | **str** | | +**volume_capacity** | **int** | | +**volume_name** | **str** | | +**volume_path** | **str** | | +**volume_type** | **str** | | + +[[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/V1StoreAppVersionTempletePlugin.md b/docs/V1StoreAppVersionTempletePlugin.md new file mode 100644 index 0000000000000000000000000000000000000000..7acff9f4a2196666fc48a7ac06345fd5ffc828b2 --- /dev/null +++ b/docs/V1StoreAppVersionTempletePlugin.md @@ -0,0 +1,26 @@ +# V1StoreAppVersionTempletePlugin + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**build_source** | **str** | | +**build_version** | **str** | | +**category** | **str** | | +**code_repo** | **str** | | +**config_groups** | [**list[V1StoreAppVersionTempletePluginConfigGroup]**](V1StoreAppVersionTempletePluginConfigGroup.md) | | [optional] +**create_time** | **str** | | +**desc** | **str** | | +**image** | **str** | | +**origin** | **str** | | +**origin_share_id** | **str** | | +**plugin_alias** | **str** | | +**plugin_id** | **str** | | +**plugin_image** | [**V1ImageInfo**](V1ImageInfo.md) | | +**plugin_key** | **str** | | +**plugin_name** | **str** | | +**share_image** | **str** | | + +[[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/V1StoreAppVersionTempletePluginConfigGroup.md b/docs/V1StoreAppVersionTempletePluginConfigGroup.md new file mode 100644 index 0000000000000000000000000000000000000000..0f4002c74630420b6b628e1a072a1ae2adbf7c71 --- /dev/null +++ b/docs/V1StoreAppVersionTempletePluginConfigGroup.md @@ -0,0 +1,16 @@ +# V1StoreAppVersionTempletePluginConfigGroup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**build_version** | **str** | | +**config_name** | **str** | | +**injection** | **str** | | +**options** | [**list[V1StoreAppVersionTempletePluginConfigGroupOption]**](V1StoreAppVersionTempletePluginConfigGroupOption.md) | | [optional] +**plugin_id** | **str** | | +**service_meta_type** | **str** | | + +[[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/V1StoreAppVersionTempletePluginConfigGroupOption.md b/docs/V1StoreAppVersionTempletePluginConfigGroupOption.md new file mode 100644 index 0000000000000000000000000000000000000000..27c648d0292cac294a4b5623c1bd48d1c28388ae --- /dev/null +++ b/docs/V1StoreAppVersionTempletePluginConfigGroupOption.md @@ -0,0 +1,20 @@ +# V1StoreAppVersionTempletePluginConfigGroupOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**attr_alt_value** | **str** | | +**attr_default_value** | **str** | | +**attr_info** | **str** | | +**attr_name** | **str** | | +**attr_type** | **str** | | +**build_version** | **str** | | +**is_change** | **bool** | | +**plugin_id** | **str** | | +**protocol** | **str** | | +**service_meta_type** | **str** | | + +[[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/V1alpha1AppConfigGroup.md b/docs/V1alpha1AppConfigGroup.md index 8d7d215c94dab173b16a601ce7293bb89aef7e95..f1cdb9c9824db801f93cc0e89bed863db71ca811 100644 --- a/docs/V1alpha1AppConfigGroup.md +++ b/docs/V1alpha1AppConfigGroup.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**component_ids** | **list[str]** | | +**component_keys** | **list[str]** | | **config_items** | **dict(str, str)** | | **injection_type** | **str** | | **name** | **str** | | diff --git a/docs/V1alpha1Component.md b/docs/V1alpha1Component.md index 98a374d60165e9cd25c04a8b84fb1d4f5c5a4036..2130b1ea867c4f8d7df6becb46f1ac3f68b30e5b 100644 --- a/docs/V1alpha1Component.md +++ b/docs/V1alpha1Component.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**arch** | **str** | | **category** | **str** | | **cmd** | **str** | | **component_graphs** | [**list[V1alpha1ComponentGraph]**](V1alpha1ComponentGraph.md) | | +**component_k8s_attributes** | [**list[V1alpha1ComponentK8sAttribute]**](V1alpha1ComponentK8sAttribute.md) | | **component_monitors** | [**list[V1alpha1ComponentMonitor]**](V1alpha1ComponentMonitor.md) | | **cpu** | **int** | | **dep_service_map_list** | [**list[V1alpha1ComponentDep]**](V1alpha1ComponentDep.md) | | @@ -14,6 +16,7 @@ Name | Type | Description | Notes **extend_method** | **str** | | **extend_method_map** | [**V1alpha1ComponentExtendMethodRule**](V1alpha1ComponentExtendMethodRule.md) | | **image** | **str** | | +**k8s_component_name** | **str** | | **labels** | **dict(str, str)** | | [optional] **language** | **str** | | **memory** | **int** | | diff --git a/docs/V1alpha1ComponentK8sAttribute.md b/docs/V1alpha1ComponentK8sAttribute.md new file mode 100644 index 0000000000000000000000000000000000000000..f45fd482d575afa0e2c7c98c45d8fa9c1bc1e251 --- /dev/null +++ b/docs/V1alpha1ComponentK8sAttribute.md @@ -0,0 +1,13 @@ +# V1alpha1ComponentK8sAttribute + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attribute_value** | **str** | | +**component_id** | **str** | | +**name** | **str** | | +**save_type** | **str** | | + +[[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/V1alpha1ComponentPort.md b/docs/V1alpha1ComponentPort.md index acd4c36b5a8f1200e53f52d6824349eeea72975e..92a455356a52d8dec83f27bbed52005336d86be2 100644 --- a/docs/V1alpha1ComponentPort.md +++ b/docs/V1alpha1ComponentPort.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **container_port** | **int** | | **is_inner_service** | **bool** | | **is_outer_service** | **bool** | | +**name** | **str** | | **port_alias** | **str** | | **protocol** | **str** | | **tenant_id** | **str** | | diff --git a/docs/V1alpha1K8sResource.md b/docs/V1alpha1K8sResource.md new file mode 100644 index 0000000000000000000000000000000000000000..d559deb5950a57ee556c900077a1ae77226a82b5 --- /dev/null +++ b/docs/V1alpha1K8sResource.md @@ -0,0 +1,12 @@ +# V1alpha1K8sResource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **str** | | +**kind** | **str** | | +**name** | **str** | | + +[[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/V1alpha1Plugin.md b/docs/V1alpha1Plugin.md index 4ff953cc1981deb8951a0777ebe602574b8f108e..476d42f3cd1d6b3890c5b088912fd6e1b40a705a 100644 --- a/docs/V1alpha1Plugin.md +++ b/docs/V1alpha1Plugin.md @@ -3,7 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | | **build_source** | **str** | | **build_version** | **str** | | **category** | **str** | | diff --git a/docs/V1alpha1PluginConfigGroup.md b/docs/V1alpha1PluginConfigGroup.md index 5555072f00a99b2c6fa07e66c13127f0bf0faef7..1352b5bdf7fc555ac0232d7bc72a2fcbb46d668e 100644 --- a/docs/V1alpha1PluginConfigGroup.md +++ b/docs/V1alpha1PluginConfigGroup.md @@ -3,7 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | | **build_version** | **str** | | **config_name** | **str** | | **injection** | **str** | | diff --git a/docs/V1alpha1PluginConfigGroupOption.md b/docs/V1alpha1PluginConfigGroupOption.md index b961b31b32e027feafef9f61db3a05d7030e7d8c..ee38d63f1e261fa1881e8f441544c633f1a381e8 100644 --- a/docs/V1alpha1PluginConfigGroupOption.md +++ b/docs/V1alpha1PluginConfigGroupOption.md @@ -3,7 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | | **attr_alt_value** | **str** | | **attr_default_value** | **str** | | **attr_info** | **str** | | diff --git a/docs/V1alpha1RainbondApplicationConfig.md b/docs/V1alpha1RainbondApplicationConfig.md index 9b1e6a633aee8878d3011392a44b5d1b18341c90..d5fa6aaa05621cd87812a4a533db16a3ecabd9eb 100644 --- a/docs/V1alpha1RainbondApplicationConfig.md +++ b/docs/V1alpha1RainbondApplicationConfig.md @@ -4,13 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **annotations** | **dict(str, str)** | | [optional] -**app_config_groups** | [**list[V1alpha1AppConfigGroup]**](V1alpha1AppConfigGroup.md) | | +**app_config_groups** | [**list[V1alpha1AppConfigGroup]**](V1alpha1AppConfigGroup.md) | | [optional] **apps** | [**list[V1alpha1Component]**](V1alpha1Component.md) | | +**governance_mode** | **str** | | [default to 'BUILD_IN_SERVICE_MESH'] **group_key** | **str** | | **group_name** | **str** | | **group_version** | **str** | | +**helm_chart** | **dict(str, str)** | | [optional] **ingress_http_routes** | [**list[V1alpha1IngressHTTPRoute]**](V1alpha1IngressHTTPRoute.md) | | [optional] **ingress_stream_routes** | [**list[V1alpha1IngressSreamRoute]**](V1alpha1IngressSreamRoute.md) | | [optional] +**k8s_resources** | [**list[V1alpha1K8sResource]**](V1alpha1K8sResource.md) | | [optional] **plugins** | [**list[V1alpha1Plugin]**](V1alpha1Plugin.md) | | [optional] **template_version** | **str** | | diff --git a/openapi_client/__init__.py b/openapi_client/__init__.py index 821154eba0901d6541e2347f7d78b3c8c24e46d1..a87a2a486af8e41b2bbfcb03d14ac0f150927d6f 100644 --- a/openapi_client/__init__.py +++ b/openapi_client/__init__.py @@ -8,7 +8,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -34,6 +33,7 @@ from openapi_client.exceptions import ApiException from openapi_client.models.controller_result import ControllerResult from openapi_client.models.restfulutil_result import RestfulutilResult from openapi_client.models.v1_app_base_info import V1AppBaseInfo +from openapi_client.models.v1_app_classifications import V1AppClassifications from openapi_client.models.v1_app_detail_info_response import V1AppDetailInfoResponse from openapi_client.models.v1_app_image_hub_info_response import V1AppImageHubInfoResponse from openapi_client.models.v1_app_model_create_request import V1AppModelCreateRequest @@ -45,7 +45,6 @@ from openapi_client.models.v1_bindable_market import V1BindableMarket from openapi_client.models.v1_create_app_paa_s_version_request import V1CreateAppPaaSVersionRequest from openapi_client.models.v1_market_info_response import V1MarketInfoResponse from openapi_client.models.v1_market_ui_app_tags_response import V1MarketUIAppTagsResponse -from openapi_client.models.v1_organization import V1Organization from openapi_client.models.v1_user_app_list_response import V1UserAppListResponse from openapi_client.models.v1alpha1_app_config_group import V1alpha1AppConfigGroup from openapi_client.models.v1alpha1_component import V1alpha1Component @@ -53,6 +52,7 @@ from openapi_client.models.v1alpha1_component_dep import V1alpha1ComponentDep from openapi_client.models.v1alpha1_component_env import V1alpha1ComponentEnv from openapi_client.models.v1alpha1_component_extend_method_rule import V1alpha1ComponentExtendMethodRule from openapi_client.models.v1alpha1_component_graph import V1alpha1ComponentGraph +from openapi_client.models.v1alpha1_component_k8s_attribute import V1alpha1ComponentK8sAttribute from openapi_client.models.v1alpha1_component_monitor import V1alpha1ComponentMonitor from openapi_client.models.v1alpha1_component_plugin_config import V1alpha1ComponentPluginConfig from openapi_client.models.v1alpha1_component_port import V1alpha1ComponentPort @@ -63,6 +63,7 @@ from openapi_client.models.v1alpha1_endpoints import V1alpha1Endpoints from openapi_client.models.v1alpha1_image_info import V1alpha1ImageInfo from openapi_client.models.v1alpha1_ingress_http_route import V1alpha1IngressHTTPRoute from openapi_client.models.v1alpha1_ingress_sream_route import V1alpha1IngressSreamRoute +from openapi_client.models.v1alpha1_k8s_resource import V1alpha1K8sResource from openapi_client.models.v1alpha1_plugin import V1alpha1Plugin from openapi_client.models.v1alpha1_plugin_config_group import V1alpha1PluginConfigGroup from openapi_client.models.v1alpha1_plugin_config_group_option import V1alpha1PluginConfigGroupOption diff --git a/openapi_client/api/market_openapi_api.py b/openapi_client/api/market_openapi_api.py index 2e6125844feeeae152502a4eb39eeb1bfcda4fa6..ab0a09529f526ad637b89b1b27c7a0b7371a1012 100644 --- a/openapi_client/api/market_openapi_api.py +++ b/openapi_client/api/market_openapi_api.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -880,109 +879,6 @@ class MarketOpenapiApi(object): _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def get_orgs(self, **kwargs): # noqa: E501 - """获取组织机构(行业)列表 # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_orgs(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :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: list[V1Organization] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.get_orgs_with_http_info(**kwargs) # noqa: E501 - - def get_orgs_with_http_info(self, **kwargs): # noqa: E501 - """获取组织机构(行业)列表 # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_orgs_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :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(list[V1Organization], status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - ] - 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 get_orgs" % 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 - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['api_key'] # noqa: E501 - - return self.api_client.call_api( - '/app-server/openapi/organizations', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[V1Organization]', # 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_user_app_detail(self, app_id, market_domain, **kwargs): # noqa: E501 """应用详情 # noqa: E501 diff --git a/openapi_client/api/platform_open_api.py b/openapi_client/api/platform_open_api.py index 964a1a1e7cf95a67d4d239d899997b5339e9b3fd..15e9588796a10cf25e721e50c28a29a1edfb9b42 100644 --- a/openapi_client/api/platform_open_api.py +++ b/openapi_client/api/platform_open_api.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/api/registry_api_api.py b/openapi_client/api/registry_api_api.py index 31cbdfaf910f39a13e7f2e2c03e8cf7ad45239b4..9f8ff2cdf9feca16b57f48458b3aae8a380db53b 100644 --- a/openapi_client/api/registry_api_api.py +++ b/openapi_client/api/registry_api_api.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/api_client.py b/openapi_client/api_client.py index 2ed681f73c87a2f50a319d4a8c93bbd36d4c6c22..048f8e5781354654b11422dec372fe00f978e536 100644 --- a/openapi_client/api_client.py +++ b/openapi_client/api_client.py @@ -5,7 +5,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/configuration.py b/openapi_client/configuration.py index 9aff945e9dfabbe9a3117e405d94fee99a4346c9..c3d9fba5b0b20ea28d5edaea10a95979e135b925 100644 --- a/openapi_client/configuration.py +++ b/openapi_client/configuration.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -169,7 +168,7 @@ conf = openapi_client.Configuration( """Adding retries to override urllib3 default value 3 """ # Disable client side validation - self.client_side_validation = True + self.client_side_validation = False def __deepcopy__(self, memo): cls = self.__class__ diff --git a/openapi_client/exceptions.py b/openapi_client/exceptions.py index 62943a101338661e0ddbd71df3a2da367c6defd3..2ef7a8f5fd1d5fc42d90abbf0ac686ab9b859acb 100644 --- a/openapi_client/exceptions.py +++ b/openapi_client/exceptions.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/__init__.py b/openapi_client/models/__init__.py index 358ca207f2b0c8fd44827c1f640b0a393d04c2cf..e0a1719aec218bd307a570ee6f72574ea50abe2c 100644 --- a/openapi_client/models/__init__.py +++ b/openapi_client/models/__init__.py @@ -7,7 +7,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -18,6 +17,7 @@ from __future__ import absolute_import from openapi_client.models.controller_result import ControllerResult from openapi_client.models.restfulutil_result import RestfulutilResult from openapi_client.models.v1_app_base_info import V1AppBaseInfo +from openapi_client.models.v1_app_classifications import V1AppClassifications from openapi_client.models.v1_app_detail_info_response import V1AppDetailInfoResponse from openapi_client.models.v1_app_image_hub_info_response import V1AppImageHubInfoResponse from openapi_client.models.v1_app_model_create_request import V1AppModelCreateRequest @@ -29,7 +29,6 @@ from openapi_client.models.v1_bindable_market import V1BindableMarket from openapi_client.models.v1_create_app_paa_s_version_request import V1CreateAppPaaSVersionRequest from openapi_client.models.v1_market_info_response import V1MarketInfoResponse from openapi_client.models.v1_market_ui_app_tags_response import V1MarketUIAppTagsResponse -from openapi_client.models.v1_organization import V1Organization from openapi_client.models.v1_user_app_list_response import V1UserAppListResponse from openapi_client.models.v1alpha1_app_config_group import V1alpha1AppConfigGroup from openapi_client.models.v1alpha1_component import V1alpha1Component @@ -37,6 +36,7 @@ from openapi_client.models.v1alpha1_component_dep import V1alpha1ComponentDep from openapi_client.models.v1alpha1_component_env import V1alpha1ComponentEnv from openapi_client.models.v1alpha1_component_extend_method_rule import V1alpha1ComponentExtendMethodRule from openapi_client.models.v1alpha1_component_graph import V1alpha1ComponentGraph +from openapi_client.models.v1alpha1_component_k8s_attribute import V1alpha1ComponentK8sAttribute from openapi_client.models.v1alpha1_component_monitor import V1alpha1ComponentMonitor from openapi_client.models.v1alpha1_component_plugin_config import V1alpha1ComponentPluginConfig from openapi_client.models.v1alpha1_component_port import V1alpha1ComponentPort @@ -47,6 +47,7 @@ from openapi_client.models.v1alpha1_endpoints import V1alpha1Endpoints from openapi_client.models.v1alpha1_image_info import V1alpha1ImageInfo from openapi_client.models.v1alpha1_ingress_http_route import V1alpha1IngressHTTPRoute from openapi_client.models.v1alpha1_ingress_sream_route import V1alpha1IngressSreamRoute +from openapi_client.models.v1alpha1_k8s_resource import V1alpha1K8sResource from openapi_client.models.v1alpha1_plugin import V1alpha1Plugin from openapi_client.models.v1alpha1_plugin_config_group import V1alpha1PluginConfigGroup from openapi_client.models.v1alpha1_plugin_config_group_option import V1alpha1PluginConfigGroupOption diff --git a/openapi_client/models/apps_image_info.py b/openapi_client/models/apps_image_info.py new file mode 100644 index 0000000000000000000000000000000000000000..33299f3457461827f6748e62e387b943521b973f --- /dev/null +++ b/openapi_client/models/apps_image_info.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsImageInfo(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 = { + 'hub_password': 'str', + 'hub_url': 'str', + 'hub_user': 'str', + 'is_trust': 'bool', + 'namespace': 'str' + } + + attribute_map = { + 'hub_password': 'hub_password', + 'hub_url': 'hub_url', + 'hub_user': 'hub_user', + 'is_trust': 'is_trust', + 'namespace': 'namespace' + } + + def __init__(self, hub_password=None, hub_url=None, hub_user=None, is_trust=None, namespace=None, local_vars_configuration=None): # noqa: E501 + """AppsImageInfo - 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._hub_password = None + self._hub_url = None + self._hub_user = None + self._is_trust = None + self._namespace = None + self.discriminator = None + + self.hub_password = hub_password + self.hub_url = hub_url + self.hub_user = hub_user + self.is_trust = is_trust + self.namespace = namespace + + @property + def hub_password(self): + """Gets the hub_password of this AppsImageInfo. # noqa: E501 + + + :return: The hub_password of this AppsImageInfo. # noqa: E501 + :rtype: str + """ + return self._hub_password + + @hub_password.setter + def hub_password(self, hub_password): + """Sets the hub_password of this AppsImageInfo. + + + :param hub_password: The hub_password of this AppsImageInfo. # noqa: E501 + :type hub_password: str + """ + if self.local_vars_configuration.client_side_validation and hub_password is None: # noqa: E501 + raise ValueError("Invalid value for `hub_password`, must not be `None`") # noqa: E501 + + self._hub_password = hub_password + + @property + def hub_url(self): + """Gets the hub_url of this AppsImageInfo. # noqa: E501 + + + :return: The hub_url of this AppsImageInfo. # noqa: E501 + :rtype: str + """ + return self._hub_url + + @hub_url.setter + def hub_url(self, hub_url): + """Sets the hub_url of this AppsImageInfo. + + + :param hub_url: The hub_url of this AppsImageInfo. # noqa: E501 + :type hub_url: str + """ + if self.local_vars_configuration.client_side_validation and hub_url is None: # noqa: E501 + raise ValueError("Invalid value for `hub_url`, must not be `None`") # noqa: E501 + + self._hub_url = hub_url + + @property + def hub_user(self): + """Gets the hub_user of this AppsImageInfo. # noqa: E501 + + + :return: The hub_user of this AppsImageInfo. # noqa: E501 + :rtype: str + """ + return self._hub_user + + @hub_user.setter + def hub_user(self, hub_user): + """Sets the hub_user of this AppsImageInfo. + + + :param hub_user: The hub_user of this AppsImageInfo. # noqa: E501 + :type hub_user: str + """ + if self.local_vars_configuration.client_side_validation and hub_user is None: # noqa: E501 + raise ValueError("Invalid value for `hub_user`, must not be `None`") # noqa: E501 + + self._hub_user = hub_user + + @property + def is_trust(self): + """Gets the is_trust of this AppsImageInfo. # noqa: E501 + + + :return: The is_trust of this AppsImageInfo. # noqa: E501 + :rtype: bool + """ + return self._is_trust + + @is_trust.setter + def is_trust(self, is_trust): + """Sets the is_trust of this AppsImageInfo. + + + :param is_trust: The is_trust of this AppsImageInfo. # noqa: E501 + :type is_trust: bool + """ + if self.local_vars_configuration.client_side_validation and is_trust is None: # noqa: E501 + raise ValueError("Invalid value for `is_trust`, must not be `None`") # noqa: E501 + + self._is_trust = is_trust + + @property + def namespace(self): + """Gets the namespace of this AppsImageInfo. # noqa: E501 + + + :return: The namespace of this AppsImageInfo. # noqa: E501 + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this AppsImageInfo. + + + :param namespace: The namespace of this AppsImageInfo. # noqa: E501 + :type namespace: str + """ + if self.local_vars_configuration.client_side_validation and namespace is None: # noqa: E501 + raise ValueError("Invalid value for `namespace`, must not be `None`") # noqa: E501 + + self._namespace = namespace + + 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, AppsImageInfo): + 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, AppsImageInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete.py b/openapi_client/models/apps_store_app_version_templete.py new file mode 100644 index 0000000000000000000000000000000000000000..6facf534c2b4c51b71575e9f9cd5d7c885a377bf --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTemplete(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 = { + 'apps': 'list[AppsStoreAppVersionTempleteApp]', + 'group_key': 'str', + 'group_name': 'str', + 'group_version': 'str', + 'plugins': 'list[AppsStoreAppVersionTempletePlugin]', + 'template_version': 'str' + } + + attribute_map = { + 'apps': 'apps', + 'group_key': 'group_key', + 'group_name': 'group_name', + 'group_version': 'group_version', + 'plugins': 'plugins', + 'template_version': 'template_version' + } + + def __init__(self, apps=None, group_key=None, group_name=None, group_version=None, plugins=None, template_version=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTemplete - 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._apps = None + self._group_key = None + self._group_name = None + self._group_version = None + self._plugins = None + self._template_version = None + self.discriminator = None + + self.apps = apps + self.group_key = group_key + self.group_name = group_name + self.group_version = group_version + if plugins is not None: + self.plugins = plugins + self.template_version = template_version + + @property + def apps(self): + """Gets the apps of this AppsStoreAppVersionTemplete. # noqa: E501 + + + :return: The apps of this AppsStoreAppVersionTemplete. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempleteApp] + """ + return self._apps + + @apps.setter + def apps(self, apps): + """Sets the apps of this AppsStoreAppVersionTemplete. + + + :param apps: The apps of this AppsStoreAppVersionTemplete. # noqa: E501 + :type apps: list[AppsStoreAppVersionTempleteApp] + """ + if self.local_vars_configuration.client_side_validation and apps is None: # noqa: E501 + raise ValueError("Invalid value for `apps`, must not be `None`") # noqa: E501 + + self._apps = apps + + @property + def group_key(self): + """Gets the group_key of this AppsStoreAppVersionTemplete. # noqa: E501 + + + :return: The group_key of this AppsStoreAppVersionTemplete. # noqa: E501 + :rtype: str + """ + return self._group_key + + @group_key.setter + def group_key(self, group_key): + """Sets the group_key of this AppsStoreAppVersionTemplete. + + + :param group_key: The group_key of this AppsStoreAppVersionTemplete. # noqa: E501 + :type group_key: str + """ + if self.local_vars_configuration.client_side_validation and group_key is None: # noqa: E501 + raise ValueError("Invalid value for `group_key`, must not be `None`") # noqa: E501 + + self._group_key = group_key + + @property + def group_name(self): + """Gets the group_name of this AppsStoreAppVersionTemplete. # noqa: E501 + + + :return: The group_name of this AppsStoreAppVersionTemplete. # noqa: E501 + :rtype: str + """ + return self._group_name + + @group_name.setter + def group_name(self, group_name): + """Sets the group_name of this AppsStoreAppVersionTemplete. + + + :param group_name: The group_name of this AppsStoreAppVersionTemplete. # noqa: E501 + :type group_name: str + """ + if self.local_vars_configuration.client_side_validation and group_name is None: # noqa: E501 + raise ValueError("Invalid value for `group_name`, must not be `None`") # noqa: E501 + + self._group_name = group_name + + @property + def group_version(self): + """Gets the group_version of this AppsStoreAppVersionTemplete. # noqa: E501 + + + :return: The group_version of this AppsStoreAppVersionTemplete. # noqa: E501 + :rtype: str + """ + return self._group_version + + @group_version.setter + def group_version(self, group_version): + """Sets the group_version of this AppsStoreAppVersionTemplete. + + + :param group_version: The group_version of this AppsStoreAppVersionTemplete. # noqa: E501 + :type group_version: str + """ + if self.local_vars_configuration.client_side_validation and group_version is None: # noqa: E501 + raise ValueError("Invalid value for `group_version`, must not be `None`") # noqa: E501 + + self._group_version = group_version + + @property + def plugins(self): + """Gets the plugins of this AppsStoreAppVersionTemplete. # noqa: E501 + + + :return: The plugins of this AppsStoreAppVersionTemplete. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempletePlugin] + """ + return self._plugins + + @plugins.setter + def plugins(self, plugins): + """Sets the plugins of this AppsStoreAppVersionTemplete. + + + :param plugins: The plugins of this AppsStoreAppVersionTemplete. # noqa: E501 + :type plugins: list[AppsStoreAppVersionTempletePlugin] + """ + + self._plugins = plugins + + @property + def template_version(self): + """Gets the template_version of this AppsStoreAppVersionTemplete. # noqa: E501 + + + :return: The template_version of this AppsStoreAppVersionTemplete. # noqa: E501 + :rtype: str + """ + return self._template_version + + @template_version.setter + def template_version(self, template_version): + """Sets the template_version of this AppsStoreAppVersionTemplete. + + + :param template_version: The template_version of this AppsStoreAppVersionTemplete. # noqa: E501 + :type template_version: str + """ + if self.local_vars_configuration.client_side_validation and template_version is None: # noqa: E501 + raise ValueError("Invalid value for `template_version`, must not be `None`") # noqa: E501 + + self._template_version = template_version + + 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, AppsStoreAppVersionTemplete): + 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, AppsStoreAppVersionTemplete): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_app.py b/openapi_client/models/apps_store_app_version_templete_app.py new file mode 100644 index 0000000000000000000000000000000000000000..6c3ae7018340499e69b74cba7e045abe252b598b --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_app.py @@ -0,0 +1,902 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempleteApp(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 = { + 'category': 'str', + 'cmd': 'str', + 'dep_service_map_list': 'list[AppsStoreAppVersionTempleteAppDepService]', + 'deploy_version': 'str', + 'extend_method': 'str', + 'extend_method_map': 'AppsStoreAppVersionTempleteAppExtendMethodRule', + 'image': 'str', + 'language': 'str', + 'memory': 'int', + 'mnt_relation_list': 'list[AppsStoreAppVersionTempleteAppShareVolume]', + 'port_map_list': 'list[AppsStoreAppVersionTempleteAppPort]', + 'probes': 'list[AppsStoreAppVersionTempleteAppProbe]', + 'service_alias': 'str', + 'service_cname': 'str', + 'service_connect_info_map_list': 'list[AppsStoreAppVersionTempleteAppEnv]', + 'service_env_map_list': 'list[AppsStoreAppVersionTempleteAppEnv]', + 'service_id': 'str', + 'service_image': 'AppsImageInfo', + 'service_key': 'str', + 'service_name': 'str', + 'service_region': 'str', + 'service_related_plugin_config': 'list[AppsStoreAppVersionTempleteAppPluginConfig]', + 'service_share_uuid': 'str', + 'service_source': 'str', + 'service_type': 'str', + 'service_volume_map_list': 'list[AppsStoreAppVersionTempleteAppVolume]', + 'share_image': 'str', + 'share_type': 'str', + 'tenant_id': 'str', + 'version': 'str' + } + + attribute_map = { + 'category': 'category', + 'cmd': 'cmd', + 'dep_service_map_list': 'dep_service_map_list', + 'deploy_version': 'deploy_version', + 'extend_method': 'extend_method', + 'extend_method_map': 'extend_method_map', + 'image': 'image', + 'language': 'language', + 'memory': 'memory', + 'mnt_relation_list': 'mnt_relation_list', + 'port_map_list': 'port_map_list', + 'probes': 'probes', + 'service_alias': 'service_alias', + 'service_cname': 'service_cname', + 'service_connect_info_map_list': 'service_connect_info_map_list', + 'service_env_map_list': 'service_env_map_list', + 'service_id': 'service_id', + 'service_image': 'service_image', + 'service_key': 'service_key', + 'service_name': 'service_name', + 'service_region': 'service_region', + 'service_related_plugin_config': 'service_related_plugin_config', + 'service_share_uuid': 'service_share_uuid', + 'service_source': 'service_source', + 'service_type': 'service_type', + 'service_volume_map_list': 'service_volume_map_list', + 'share_image': 'share_image', + 'share_type': 'share_type', + 'tenant_id': 'tenant_id', + 'version': 'version' + } + + def __init__(self, category=None, cmd=None, dep_service_map_list=None, deploy_version=None, extend_method=None, extend_method_map=None, image=None, language=None, memory=None, mnt_relation_list=None, port_map_list=None, probes=None, service_alias=None, service_cname=None, service_connect_info_map_list=None, service_env_map_list=None, service_id=None, service_image=None, service_key=None, service_name=None, service_region=None, service_related_plugin_config=None, service_share_uuid=None, service_source=None, service_type=None, service_volume_map_list=None, share_image=None, share_type=None, tenant_id=None, version=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempleteApp - 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._category = None + self._cmd = None + self._dep_service_map_list = None + self._deploy_version = None + self._extend_method = None + self._extend_method_map = None + self._image = None + self._language = None + self._memory = None + self._mnt_relation_list = None + self._port_map_list = None + self._probes = None + self._service_alias = None + self._service_cname = None + self._service_connect_info_map_list = None + self._service_env_map_list = None + self._service_id = None + self._service_image = None + self._service_key = None + self._service_name = None + self._service_region = None + self._service_related_plugin_config = None + self._service_share_uuid = None + self._service_source = None + self._service_type = None + self._service_volume_map_list = None + self._share_image = None + self._share_type = None + self._tenant_id = None + self._version = None + self.discriminator = None + + self.category = category + self.cmd = cmd + self.dep_service_map_list = dep_service_map_list + self.deploy_version = deploy_version + self.extend_method = extend_method + self.extend_method_map = extend_method_map + self.image = image + self.language = language + self.memory = memory + self.mnt_relation_list = mnt_relation_list + self.port_map_list = port_map_list + self.probes = probes + self.service_alias = service_alias + self.service_cname = service_cname + self.service_connect_info_map_list = service_connect_info_map_list + self.service_env_map_list = service_env_map_list + self.service_id = service_id + self.service_image = service_image + self.service_key = service_key + self.service_name = service_name + self.service_region = service_region + if service_related_plugin_config is not None: + self.service_related_plugin_config = service_related_plugin_config + if service_share_uuid is not None: + self.service_share_uuid = service_share_uuid + self.service_source = service_source + self.service_type = service_type + self.service_volume_map_list = service_volume_map_list + self.share_image = share_image + if share_type is not None: + self.share_type = share_type + self.tenant_id = tenant_id + self.version = version + + @property + def category(self): + """Gets the category of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The category of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this AppsStoreAppVersionTempleteApp. + + + :param category: The category of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type category: str + """ + if self.local_vars_configuration.client_side_validation and category is None: # noqa: E501 + raise ValueError("Invalid value for `category`, must not be `None`") # noqa: E501 + + self._category = category + + @property + def cmd(self): + """Gets the cmd of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The cmd of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._cmd + + @cmd.setter + def cmd(self, cmd): + """Sets the cmd of this AppsStoreAppVersionTempleteApp. + + + :param cmd: The cmd of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type cmd: str + """ + if self.local_vars_configuration.client_side_validation and cmd is None: # noqa: E501 + raise ValueError("Invalid value for `cmd`, must not be `None`") # noqa: E501 + + self._cmd = cmd + + @property + def dep_service_map_list(self): + """Gets the dep_service_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The dep_service_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempleteAppDepService] + """ + return self._dep_service_map_list + + @dep_service_map_list.setter + def dep_service_map_list(self, dep_service_map_list): + """Sets the dep_service_map_list of this AppsStoreAppVersionTempleteApp. + + + :param dep_service_map_list: The dep_service_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type dep_service_map_list: list[AppsStoreAppVersionTempleteAppDepService] + """ + if self.local_vars_configuration.client_side_validation and dep_service_map_list is None: # noqa: E501 + raise ValueError("Invalid value for `dep_service_map_list`, must not be `None`") # noqa: E501 + + self._dep_service_map_list = dep_service_map_list + + @property + def deploy_version(self): + """Gets the deploy_version of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The deploy_version of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._deploy_version + + @deploy_version.setter + def deploy_version(self, deploy_version): + """Sets the deploy_version of this AppsStoreAppVersionTempleteApp. + + + :param deploy_version: The deploy_version of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type deploy_version: str + """ + if self.local_vars_configuration.client_side_validation and deploy_version is None: # noqa: E501 + raise ValueError("Invalid value for `deploy_version`, must not be `None`") # noqa: E501 + + self._deploy_version = deploy_version + + @property + def extend_method(self): + """Gets the extend_method of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The extend_method of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._extend_method + + @extend_method.setter + def extend_method(self, extend_method): + """Sets the extend_method of this AppsStoreAppVersionTempleteApp. + + + :param extend_method: The extend_method of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type extend_method: str + """ + if self.local_vars_configuration.client_side_validation and extend_method is None: # noqa: E501 + raise ValueError("Invalid value for `extend_method`, must not be `None`") # noqa: E501 + + self._extend_method = extend_method + + @property + def extend_method_map(self): + """Gets the extend_method_map of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The extend_method_map of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: AppsStoreAppVersionTempleteAppExtendMethodRule + """ + return self._extend_method_map + + @extend_method_map.setter + def extend_method_map(self, extend_method_map): + """Sets the extend_method_map of this AppsStoreAppVersionTempleteApp. + + + :param extend_method_map: The extend_method_map of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type extend_method_map: AppsStoreAppVersionTempleteAppExtendMethodRule + """ + if self.local_vars_configuration.client_side_validation and extend_method_map is None: # noqa: E501 + raise ValueError("Invalid value for `extend_method_map`, must not be `None`") # noqa: E501 + + self._extend_method_map = extend_method_map + + @property + def image(self): + """Gets the image of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The image of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """Sets the image of this AppsStoreAppVersionTempleteApp. + + + :param image: The image of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type image: str + """ + if self.local_vars_configuration.client_side_validation and image is None: # noqa: E501 + raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501 + + self._image = image + + @property + def language(self): + """Gets the language of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The language of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this AppsStoreAppVersionTempleteApp. + + + :param language: The language of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type language: str + """ + if self.local_vars_configuration.client_side_validation and language is None: # noqa: E501 + raise ValueError("Invalid value for `language`, must not be `None`") # noqa: E501 + + self._language = language + + @property + def memory(self): + """Gets the memory of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The memory of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: int + """ + return self._memory + + @memory.setter + def memory(self, memory): + """Sets the memory of this AppsStoreAppVersionTempleteApp. + + + :param memory: The memory of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type memory: int + """ + if self.local_vars_configuration.client_side_validation and memory is None: # noqa: E501 + raise ValueError("Invalid value for `memory`, must not be `None`") # noqa: E501 + + self._memory = memory + + @property + def mnt_relation_list(self): + """Gets the mnt_relation_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The mnt_relation_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempleteAppShareVolume] + """ + return self._mnt_relation_list + + @mnt_relation_list.setter + def mnt_relation_list(self, mnt_relation_list): + """Sets the mnt_relation_list of this AppsStoreAppVersionTempleteApp. + + + :param mnt_relation_list: The mnt_relation_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type mnt_relation_list: list[AppsStoreAppVersionTempleteAppShareVolume] + """ + if self.local_vars_configuration.client_side_validation and mnt_relation_list is None: # noqa: E501 + raise ValueError("Invalid value for `mnt_relation_list`, must not be `None`") # noqa: E501 + + self._mnt_relation_list = mnt_relation_list + + @property + def port_map_list(self): + """Gets the port_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The port_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempleteAppPort] + """ + return self._port_map_list + + @port_map_list.setter + def port_map_list(self, port_map_list): + """Sets the port_map_list of this AppsStoreAppVersionTempleteApp. + + + :param port_map_list: The port_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type port_map_list: list[AppsStoreAppVersionTempleteAppPort] + """ + if self.local_vars_configuration.client_side_validation and port_map_list is None: # noqa: E501 + raise ValueError("Invalid value for `port_map_list`, must not be `None`") # noqa: E501 + + self._port_map_list = port_map_list + + @property + def probes(self): + """Gets the probes of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The probes of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempleteAppProbe] + """ + return self._probes + + @probes.setter + def probes(self, probes): + """Sets the probes of this AppsStoreAppVersionTempleteApp. + + + :param probes: The probes of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type probes: list[AppsStoreAppVersionTempleteAppProbe] + """ + if self.local_vars_configuration.client_side_validation and probes is None: # noqa: E501 + raise ValueError("Invalid value for `probes`, must not be `None`") # noqa: E501 + + self._probes = probes + + @property + def service_alias(self): + """Gets the service_alias of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_alias of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_alias + + @service_alias.setter + def service_alias(self, service_alias): + """Sets the service_alias of this AppsStoreAppVersionTempleteApp. + + + :param service_alias: The service_alias of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_alias: str + """ + if self.local_vars_configuration.client_side_validation and service_alias is None: # noqa: E501 + raise ValueError("Invalid value for `service_alias`, must not be `None`") # noqa: E501 + + self._service_alias = service_alias + + @property + def service_cname(self): + """Gets the service_cname of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_cname of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_cname + + @service_cname.setter + def service_cname(self, service_cname): + """Sets the service_cname of this AppsStoreAppVersionTempleteApp. + + + :param service_cname: The service_cname of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_cname: str + """ + if self.local_vars_configuration.client_side_validation and service_cname is None: # noqa: E501 + raise ValueError("Invalid value for `service_cname`, must not be `None`") # noqa: E501 + + self._service_cname = service_cname + + @property + def service_connect_info_map_list(self): + """Gets the service_connect_info_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_connect_info_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempleteAppEnv] + """ + return self._service_connect_info_map_list + + @service_connect_info_map_list.setter + def service_connect_info_map_list(self, service_connect_info_map_list): + """Sets the service_connect_info_map_list of this AppsStoreAppVersionTempleteApp. + + + :param service_connect_info_map_list: The service_connect_info_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_connect_info_map_list: list[AppsStoreAppVersionTempleteAppEnv] + """ + if self.local_vars_configuration.client_side_validation and service_connect_info_map_list is None: # noqa: E501 + raise ValueError("Invalid value for `service_connect_info_map_list`, must not be `None`") # noqa: E501 + + self._service_connect_info_map_list = service_connect_info_map_list + + @property + def service_env_map_list(self): + """Gets the service_env_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_env_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempleteAppEnv] + """ + return self._service_env_map_list + + @service_env_map_list.setter + def service_env_map_list(self, service_env_map_list): + """Sets the service_env_map_list of this AppsStoreAppVersionTempleteApp. + + + :param service_env_map_list: The service_env_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_env_map_list: list[AppsStoreAppVersionTempleteAppEnv] + """ + if self.local_vars_configuration.client_side_validation and service_env_map_list is None: # noqa: E501 + raise ValueError("Invalid value for `service_env_map_list`, must not be `None`") # noqa: E501 + + self._service_env_map_list = service_env_map_list + + @property + def service_id(self): + """Gets the service_id of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_id of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_id + + @service_id.setter + def service_id(self, service_id): + """Sets the service_id of this AppsStoreAppVersionTempleteApp. + + + :param service_id: The service_id of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_id: str + """ + if self.local_vars_configuration.client_side_validation and service_id is None: # noqa: E501 + raise ValueError("Invalid value for `service_id`, must not be `None`") # noqa: E501 + + self._service_id = service_id + + @property + def service_image(self): + """Gets the service_image of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_image of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: AppsImageInfo + """ + return self._service_image + + @service_image.setter + def service_image(self, service_image): + """Sets the service_image of this AppsStoreAppVersionTempleteApp. + + + :param service_image: The service_image of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_image: AppsImageInfo + """ + if self.local_vars_configuration.client_side_validation and service_image is None: # noqa: E501 + raise ValueError("Invalid value for `service_image`, must not be `None`") # noqa: E501 + + self._service_image = service_image + + @property + def service_key(self): + """Gets the service_key of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_key of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_key + + @service_key.setter + def service_key(self, service_key): + """Sets the service_key of this AppsStoreAppVersionTempleteApp. + + + :param service_key: The service_key of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_key: str + """ + if self.local_vars_configuration.client_side_validation and service_key is None: # noqa: E501 + raise ValueError("Invalid value for `service_key`, must not be `None`") # noqa: E501 + + self._service_key = service_key + + @property + def service_name(self): + """Gets the service_name of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_name of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_name + + @service_name.setter + def service_name(self, service_name): + """Sets the service_name of this AppsStoreAppVersionTempleteApp. + + + :param service_name: The service_name of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_name: str + """ + if self.local_vars_configuration.client_side_validation and service_name is None: # noqa: E501 + raise ValueError("Invalid value for `service_name`, must not be `None`") # noqa: E501 + + self._service_name = service_name + + @property + def service_region(self): + """Gets the service_region of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_region of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_region + + @service_region.setter + def service_region(self, service_region): + """Sets the service_region of this AppsStoreAppVersionTempleteApp. + + + :param service_region: The service_region of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_region: str + """ + if self.local_vars_configuration.client_side_validation and service_region is None: # noqa: E501 + raise ValueError("Invalid value for `service_region`, must not be `None`") # noqa: E501 + + self._service_region = service_region + + @property + def service_related_plugin_config(self): + """Gets the service_related_plugin_config of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_related_plugin_config of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempleteAppPluginConfig] + """ + return self._service_related_plugin_config + + @service_related_plugin_config.setter + def service_related_plugin_config(self, service_related_plugin_config): + """Sets the service_related_plugin_config of this AppsStoreAppVersionTempleteApp. + + + :param service_related_plugin_config: The service_related_plugin_config of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_related_plugin_config: list[AppsStoreAppVersionTempleteAppPluginConfig] + """ + + self._service_related_plugin_config = service_related_plugin_config + + @property + def service_share_uuid(self): + """Gets the service_share_uuid of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_share_uuid of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_share_uuid + + @service_share_uuid.setter + def service_share_uuid(self, service_share_uuid): + """Sets the service_share_uuid of this AppsStoreAppVersionTempleteApp. + + + :param service_share_uuid: The service_share_uuid of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_share_uuid: str + """ + + self._service_share_uuid = service_share_uuid + + @property + def service_source(self): + """Gets the service_source of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_source of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_source + + @service_source.setter + def service_source(self, service_source): + """Sets the service_source of this AppsStoreAppVersionTempleteApp. + + + :param service_source: The service_source of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_source: str + """ + if self.local_vars_configuration.client_side_validation and service_source is None: # noqa: E501 + raise ValueError("Invalid value for `service_source`, must not be `None`") # noqa: E501 + + self._service_source = service_source + + @property + def service_type(self): + """Gets the service_type of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_type of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_type + + @service_type.setter + def service_type(self, service_type): + """Sets the service_type of this AppsStoreAppVersionTempleteApp. + + + :param service_type: The service_type of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_type: str + """ + if self.local_vars_configuration.client_side_validation and service_type is None: # noqa: E501 + raise ValueError("Invalid value for `service_type`, must not be `None`") # noqa: E501 + + self._service_type = service_type + + @property + def service_volume_map_list(self): + """Gets the service_volume_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_volume_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempleteAppVolume] + """ + return self._service_volume_map_list + + @service_volume_map_list.setter + def service_volume_map_list(self, service_volume_map_list): + """Sets the service_volume_map_list of this AppsStoreAppVersionTempleteApp. + + + :param service_volume_map_list: The service_volume_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_volume_map_list: list[AppsStoreAppVersionTempleteAppVolume] + """ + if self.local_vars_configuration.client_side_validation and service_volume_map_list is None: # noqa: E501 + raise ValueError("Invalid value for `service_volume_map_list`, must not be `None`") # noqa: E501 + + self._service_volume_map_list = service_volume_map_list + + @property + def share_image(self): + """Gets the share_image of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The share_image of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._share_image + + @share_image.setter + def share_image(self, share_image): + """Sets the share_image of this AppsStoreAppVersionTempleteApp. + + + :param share_image: The share_image of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type share_image: str + """ + if self.local_vars_configuration.client_side_validation and share_image is None: # noqa: E501 + raise ValueError("Invalid value for `share_image`, must not be `None`") # noqa: E501 + + self._share_image = share_image + + @property + def share_type(self): + """Gets the share_type of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The share_type of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._share_type + + @share_type.setter + def share_type(self, share_type): + """Sets the share_type of this AppsStoreAppVersionTempleteApp. + + + :param share_type: The share_type of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type share_type: str + """ + + self._share_type = share_type + + @property + def tenant_id(self): + """Gets the tenant_id of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The tenant_id of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._tenant_id + + @tenant_id.setter + def tenant_id(self, tenant_id): + """Sets the tenant_id of this AppsStoreAppVersionTempleteApp. + + + :param tenant_id: The tenant_id of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type tenant_id: str + """ + if self.local_vars_configuration.client_side_validation and tenant_id is None: # noqa: E501 + raise ValueError("Invalid value for `tenant_id`, must not be `None`") # noqa: E501 + + self._tenant_id = tenant_id + + @property + def version(self): + """Gets the version of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The version of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this AppsStoreAppVersionTempleteApp. + + + :param version: The version of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type version: str + """ + if self.local_vars_configuration.client_side_validation and version is None: # noqa: E501 + raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 + + self._version = version + + 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, AppsStoreAppVersionTempleteApp): + 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, AppsStoreAppVersionTempleteApp): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_app_dep_service.py b/openapi_client/models/apps_store_app_version_templete_app_dep_service.py new file mode 100644 index 0000000000000000000000000000000000000000..1a08bfc64ce6bd47d09d2d11f3eb543039bd0cb0 --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_app_dep_service.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempleteAppDepService(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 = { + 'dep_service_key': 'str' + } + + attribute_map = { + 'dep_service_key': 'dep_service_key' + } + + def __init__(self, dep_service_key=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempleteAppDepService - 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._dep_service_key = None + self.discriminator = None + + self.dep_service_key = dep_service_key + + @property + def dep_service_key(self): + """Gets the dep_service_key of this AppsStoreAppVersionTempleteAppDepService. # noqa: E501 + + + :return: The dep_service_key of this AppsStoreAppVersionTempleteAppDepService. # noqa: E501 + :rtype: str + """ + return self._dep_service_key + + @dep_service_key.setter + def dep_service_key(self, dep_service_key): + """Sets the dep_service_key of this AppsStoreAppVersionTempleteAppDepService. + + + :param dep_service_key: The dep_service_key of this AppsStoreAppVersionTempleteAppDepService. # noqa: E501 + :type dep_service_key: str + """ + if self.local_vars_configuration.client_side_validation and dep_service_key is None: # noqa: E501 + raise ValueError("Invalid value for `dep_service_key`, must not be `None`") # noqa: E501 + + self._dep_service_key = dep_service_key + + 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, AppsStoreAppVersionTempleteAppDepService): + 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, AppsStoreAppVersionTempleteAppDepService): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_app_env.py b/openapi_client/models/apps_store_app_version_templete_app_env.py new file mode 100644 index 0000000000000000000000000000000000000000..16f1418f0f361d518252b97ad7bff21b56da3e8b --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_app_env.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempleteAppEnv(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 = { + 'attr_name': 'str', + 'attr_value': 'str', + 'is_change': 'bool', + 'name': 'str' + } + + attribute_map = { + 'attr_name': 'attr_name', + 'attr_value': 'attr_value', + 'is_change': 'is_change', + 'name': 'name' + } + + def __init__(self, attr_name=None, attr_value=None, is_change=None, name=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempleteAppEnv - 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._attr_name = None + self._attr_value = None + self._is_change = None + self._name = None + self.discriminator = None + + self.attr_name = attr_name + self.attr_value = attr_value + self.is_change = is_change + self.name = name + + @property + def attr_name(self): + """Gets the attr_name of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + + + :return: The attr_name of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + :rtype: str + """ + return self._attr_name + + @attr_name.setter + def attr_name(self, attr_name): + """Sets the attr_name of this AppsStoreAppVersionTempleteAppEnv. + + + :param attr_name: The attr_name of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + :type attr_name: str + """ + if self.local_vars_configuration.client_side_validation and attr_name is None: # noqa: E501 + raise ValueError("Invalid value for `attr_name`, must not be `None`") # noqa: E501 + + self._attr_name = attr_name + + @property + def attr_value(self): + """Gets the attr_value of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + + + :return: The attr_value of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + :rtype: str + """ + return self._attr_value + + @attr_value.setter + def attr_value(self, attr_value): + """Sets the attr_value of this AppsStoreAppVersionTempleteAppEnv. + + + :param attr_value: The attr_value of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + :type attr_value: str + """ + if self.local_vars_configuration.client_side_validation and attr_value is None: # noqa: E501 + raise ValueError("Invalid value for `attr_value`, must not be `None`") # noqa: E501 + + self._attr_value = attr_value + + @property + def is_change(self): + """Gets the is_change of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + + + :return: The is_change of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + :rtype: bool + """ + return self._is_change + + @is_change.setter + def is_change(self, is_change): + """Sets the is_change of this AppsStoreAppVersionTempleteAppEnv. + + + :param is_change: The is_change of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + :type is_change: bool + """ + if self.local_vars_configuration.client_side_validation and is_change is None: # noqa: E501 + raise ValueError("Invalid value for `is_change`, must not be `None`") # noqa: E501 + + self._is_change = is_change + + @property + def name(self): + """Gets the name of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + + + :return: The name of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AppsStoreAppVersionTempleteAppEnv. + + + :param name: The name of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + 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, AppsStoreAppVersionTempleteAppEnv): + 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, AppsStoreAppVersionTempleteAppEnv): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_app_extend_method_rule.py b/openapi_client/models/apps_store_app_version_templete_app_extend_method_rule.py new file mode 100644 index 0000000000000000000000000000000000000000..b0afd3bbd579909fe3a961de347b4b359512748f --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_app_extend_method_rule.py @@ -0,0 +1,284 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempleteAppExtendMethodRule(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 = { + 'is_restart': 'int', + 'max_memory': 'int', + 'max_node': 'int', + 'min_memory': 'int', + 'min_node': 'int', + 'step_memory': 'int', + 'step_node': 'int' + } + + attribute_map = { + 'is_restart': 'is_restart', + 'max_memory': 'max_memory', + 'max_node': 'max_node', + 'min_memory': 'min_memory', + 'min_node': 'min_node', + 'step_memory': 'step_memory', + 'step_node': 'step_node' + } + + def __init__(self, is_restart=None, max_memory=None, max_node=None, min_memory=None, min_node=None, step_memory=None, step_node=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempleteAppExtendMethodRule - 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._is_restart = None + self._max_memory = None + self._max_node = None + self._min_memory = None + self._min_node = None + self._step_memory = None + self._step_node = None + self.discriminator = None + + self.is_restart = is_restart + self.max_memory = max_memory + self.max_node = max_node + self.min_memory = min_memory + self.min_node = min_node + self.step_memory = step_memory + self.step_node = step_node + + @property + def is_restart(self): + """Gets the is_restart of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The is_restart of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._is_restart + + @is_restart.setter + def is_restart(self, is_restart): + """Sets the is_restart of this AppsStoreAppVersionTempleteAppExtendMethodRule. + + + :param is_restart: The is_restart of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type is_restart: int + """ + if self.local_vars_configuration.client_side_validation and is_restart is None: # noqa: E501 + raise ValueError("Invalid value for `is_restart`, must not be `None`") # noqa: E501 + + self._is_restart = is_restart + + @property + def max_memory(self): + """Gets the max_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The max_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._max_memory + + @max_memory.setter + def max_memory(self, max_memory): + """Sets the max_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. + + + :param max_memory: The max_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type max_memory: int + """ + if self.local_vars_configuration.client_side_validation and max_memory is None: # noqa: E501 + raise ValueError("Invalid value for `max_memory`, must not be `None`") # noqa: E501 + + self._max_memory = max_memory + + @property + def max_node(self): + """Gets the max_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The max_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._max_node + + @max_node.setter + def max_node(self, max_node): + """Sets the max_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. + + + :param max_node: The max_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type max_node: int + """ + if self.local_vars_configuration.client_side_validation and max_node is None: # noqa: E501 + raise ValueError("Invalid value for `max_node`, must not be `None`") # noqa: E501 + + self._max_node = max_node + + @property + def min_memory(self): + """Gets the min_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The min_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._min_memory + + @min_memory.setter + def min_memory(self, min_memory): + """Sets the min_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. + + + :param min_memory: The min_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type min_memory: int + """ + if self.local_vars_configuration.client_side_validation and min_memory is None: # noqa: E501 + raise ValueError("Invalid value for `min_memory`, must not be `None`") # noqa: E501 + + self._min_memory = min_memory + + @property + def min_node(self): + """Gets the min_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The min_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._min_node + + @min_node.setter + def min_node(self, min_node): + """Sets the min_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. + + + :param min_node: The min_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type min_node: int + """ + if self.local_vars_configuration.client_side_validation and min_node is None: # noqa: E501 + raise ValueError("Invalid value for `min_node`, must not be `None`") # noqa: E501 + + self._min_node = min_node + + @property + def step_memory(self): + """Gets the step_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The step_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._step_memory + + @step_memory.setter + def step_memory(self, step_memory): + """Sets the step_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. + + + :param step_memory: The step_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type step_memory: int + """ + if self.local_vars_configuration.client_side_validation and step_memory is None: # noqa: E501 + raise ValueError("Invalid value for `step_memory`, must not be `None`") # noqa: E501 + + self._step_memory = step_memory + + @property + def step_node(self): + """Gets the step_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The step_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._step_node + + @step_node.setter + def step_node(self, step_node): + """Sets the step_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. + + + :param step_node: The step_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type step_node: int + """ + if self.local_vars_configuration.client_side_validation and step_node is None: # noqa: E501 + raise ValueError("Invalid value for `step_node`, must not be `None`") # noqa: E501 + + self._step_node = step_node + + 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, AppsStoreAppVersionTempleteAppExtendMethodRule): + 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, AppsStoreAppVersionTempleteAppExtendMethodRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_app_plugin_config.py b/openapi_client/models/apps_store_app_version_templete_app_plugin_config.py new file mode 100644 index 0000000000000000000000000000000000000000..72f74c320255e92c3ee38cba10949d80d39774d9 --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_app_plugin_config.py @@ -0,0 +1,338 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempleteAppPluginConfig(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 = { + 'id': 'int', + 'attr': 'list[object]', + 'build_version': 'str', + 'create_time': 'str', + 'plugin_id': 'str', + 'plugin_key': 'str', + 'plugin_status': 'bool', + 'service_id': 'str', + 'service_meta_type': 'str' + } + + attribute_map = { + 'id': 'ID', + 'attr': 'attr', + 'build_version': 'build_version', + 'create_time': 'create_time', + 'plugin_id': 'plugin_id', + 'plugin_key': 'plugin_key', + 'plugin_status': 'plugin_status', + 'service_id': 'service_id', + 'service_meta_type': 'service_meta_type' + } + + def __init__(self, id=None, attr=None, build_version=None, create_time=None, plugin_id=None, plugin_key=None, plugin_status=None, service_id=None, service_meta_type=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempleteAppPluginConfig - 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._id = None + self._attr = None + self._build_version = None + self._create_time = None + self._plugin_id = None + self._plugin_key = None + self._plugin_status = None + self._service_id = None + self._service_meta_type = None + self.discriminator = None + + self.id = id + self.attr = attr + self.build_version = build_version + self.create_time = create_time + self.plugin_id = plugin_id + self.plugin_key = plugin_key + self.plugin_status = plugin_status + self.service_id = service_id + self.service_meta_type = service_meta_type + + @property + def id(self): + """Gets the id of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The id of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AppsStoreAppVersionTempleteAppPluginConfig. + + + :param id: The id of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type id: int + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def attr(self): + """Gets the attr of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The attr of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: list[object] + """ + return self._attr + + @attr.setter + def attr(self, attr): + """Sets the attr of this AppsStoreAppVersionTempleteAppPluginConfig. + + + :param attr: The attr of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type attr: list[object] + """ + if self.local_vars_configuration.client_side_validation and attr is None: # noqa: E501 + raise ValueError("Invalid value for `attr`, must not be `None`") # noqa: E501 + + self._attr = attr + + @property + def build_version(self): + """Gets the build_version of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The build_version of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._build_version + + @build_version.setter + def build_version(self, build_version): + """Sets the build_version of this AppsStoreAppVersionTempleteAppPluginConfig. + + + :param build_version: The build_version of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type build_version: str + """ + if self.local_vars_configuration.client_side_validation and build_version is None: # noqa: E501 + raise ValueError("Invalid value for `build_version`, must not be `None`") # noqa: E501 + + self._build_version = build_version + + @property + def create_time(self): + """Gets the create_time of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The create_time of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this AppsStoreAppVersionTempleteAppPluginConfig. + + + :param create_time: The create_time of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type create_time: str + """ + if self.local_vars_configuration.client_side_validation and create_time is None: # noqa: E501 + raise ValueError("Invalid value for `create_time`, must not be `None`") # noqa: E501 + + self._create_time = create_time + + @property + def plugin_id(self): + """Gets the plugin_id of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The plugin_id of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._plugin_id + + @plugin_id.setter + def plugin_id(self, plugin_id): + """Sets the plugin_id of this AppsStoreAppVersionTempleteAppPluginConfig. + + + :param plugin_id: The plugin_id of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type plugin_id: str + """ + if self.local_vars_configuration.client_side_validation and plugin_id is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_id`, must not be `None`") # noqa: E501 + + self._plugin_id = plugin_id + + @property + def plugin_key(self): + """Gets the plugin_key of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The plugin_key of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._plugin_key + + @plugin_key.setter + def plugin_key(self, plugin_key): + """Sets the plugin_key of this AppsStoreAppVersionTempleteAppPluginConfig. + + + :param plugin_key: The plugin_key of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type plugin_key: str + """ + if self.local_vars_configuration.client_side_validation and plugin_key is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_key`, must not be `None`") # noqa: E501 + + self._plugin_key = plugin_key + + @property + def plugin_status(self): + """Gets the plugin_status of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The plugin_status of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: bool + """ + return self._plugin_status + + @plugin_status.setter + def plugin_status(self, plugin_status): + """Sets the plugin_status of this AppsStoreAppVersionTempleteAppPluginConfig. + + + :param plugin_status: The plugin_status of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type plugin_status: bool + """ + if self.local_vars_configuration.client_side_validation and plugin_status is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_status`, must not be `None`") # noqa: E501 + + self._plugin_status = plugin_status + + @property + def service_id(self): + """Gets the service_id of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The service_id of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._service_id + + @service_id.setter + def service_id(self, service_id): + """Sets the service_id of this AppsStoreAppVersionTempleteAppPluginConfig. + + + :param service_id: The service_id of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type service_id: str + """ + if self.local_vars_configuration.client_side_validation and service_id is None: # noqa: E501 + raise ValueError("Invalid value for `service_id`, must not be `None`") # noqa: E501 + + self._service_id = service_id + + @property + def service_meta_type(self): + """Gets the service_meta_type of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The service_meta_type of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._service_meta_type + + @service_meta_type.setter + def service_meta_type(self, service_meta_type): + """Sets the service_meta_type of this AppsStoreAppVersionTempleteAppPluginConfig. + + + :param service_meta_type: The service_meta_type of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type service_meta_type: str + """ + if self.local_vars_configuration.client_side_validation and service_meta_type is None: # noqa: E501 + raise ValueError("Invalid value for `service_meta_type`, must not be `None`") # noqa: E501 + + self._service_meta_type = service_meta_type + + 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, AppsStoreAppVersionTempleteAppPluginConfig): + 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, AppsStoreAppVersionTempleteAppPluginConfig): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_app_port.py b/openapi_client/models/apps_store_app_version_templete_app_port.py new file mode 100644 index 0000000000000000000000000000000000000000..d1f8c48342cc6154142b069bf19573f5329e8ff4 --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_app_port.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempleteAppPort(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 = { + 'container_port': 'int', + 'is_inner_service': 'bool', + 'is_outer_service': 'bool', + 'port_alias': 'str', + 'protocol': 'str', + 'tenant_id': 'str' + } + + attribute_map = { + 'container_port': 'container_port', + 'is_inner_service': 'is_inner_service', + 'is_outer_service': 'is_outer_service', + 'port_alias': 'port_alias', + 'protocol': 'protocol', + 'tenant_id': 'tenant_id' + } + + def __init__(self, container_port=None, is_inner_service=None, is_outer_service=None, port_alias=None, protocol=None, tenant_id=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempleteAppPort - 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._container_port = None + self._is_inner_service = None + self._is_outer_service = None + self._port_alias = None + self._protocol = None + self._tenant_id = None + self.discriminator = None + + self.container_port = container_port + self.is_inner_service = is_inner_service + self.is_outer_service = is_outer_service + self.port_alias = port_alias + self.protocol = protocol + self.tenant_id = tenant_id + + @property + def container_port(self): + """Gets the container_port of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The container_port of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: int + """ + return self._container_port + + @container_port.setter + def container_port(self, container_port): + """Sets the container_port of this AppsStoreAppVersionTempleteAppPort. + + + :param container_port: The container_port of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :type container_port: int + """ + if self.local_vars_configuration.client_side_validation and container_port is None: # noqa: E501 + raise ValueError("Invalid value for `container_port`, must not be `None`") # noqa: E501 + + self._container_port = container_port + + @property + def is_inner_service(self): + """Gets the is_inner_service of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The is_inner_service of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: bool + """ + return self._is_inner_service + + @is_inner_service.setter + def is_inner_service(self, is_inner_service): + """Sets the is_inner_service of this AppsStoreAppVersionTempleteAppPort. + + + :param is_inner_service: The is_inner_service of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :type is_inner_service: bool + """ + if self.local_vars_configuration.client_side_validation and is_inner_service is None: # noqa: E501 + raise ValueError("Invalid value for `is_inner_service`, must not be `None`") # noqa: E501 + + self._is_inner_service = is_inner_service + + @property + def is_outer_service(self): + """Gets the is_outer_service of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The is_outer_service of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: bool + """ + return self._is_outer_service + + @is_outer_service.setter + def is_outer_service(self, is_outer_service): + """Sets the is_outer_service of this AppsStoreAppVersionTempleteAppPort. + + + :param is_outer_service: The is_outer_service of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :type is_outer_service: bool + """ + if self.local_vars_configuration.client_side_validation and is_outer_service is None: # noqa: E501 + raise ValueError("Invalid value for `is_outer_service`, must not be `None`") # noqa: E501 + + self._is_outer_service = is_outer_service + + @property + def port_alias(self): + """Gets the port_alias of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The port_alias of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: str + """ + return self._port_alias + + @port_alias.setter + def port_alias(self, port_alias): + """Sets the port_alias of this AppsStoreAppVersionTempleteAppPort. + + + :param port_alias: The port_alias of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :type port_alias: str + """ + if self.local_vars_configuration.client_side_validation and port_alias is None: # noqa: E501 + raise ValueError("Invalid value for `port_alias`, must not be `None`") # noqa: E501 + + self._port_alias = port_alias + + @property + def protocol(self): + """Gets the protocol of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The protocol of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this AppsStoreAppVersionTempleteAppPort. + + + :param protocol: The protocol of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :type protocol: str + """ + if self.local_vars_configuration.client_side_validation and protocol is None: # noqa: E501 + raise ValueError("Invalid value for `protocol`, must not be `None`") # noqa: E501 + + self._protocol = protocol + + @property + def tenant_id(self): + """Gets the tenant_id of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The tenant_id of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: str + """ + return self._tenant_id + + @tenant_id.setter + def tenant_id(self, tenant_id): + """Sets the tenant_id of this AppsStoreAppVersionTempleteAppPort. + + + :param tenant_id: The tenant_id of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :type tenant_id: str + """ + if self.local_vars_configuration.client_side_validation and tenant_id is None: # noqa: E501 + raise ValueError("Invalid value for `tenant_id`, must not be `None`") # noqa: E501 + + self._tenant_id = tenant_id + + 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, AppsStoreAppVersionTempleteAppPort): + 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, AppsStoreAppVersionTempleteAppPort): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_app_probe.py b/openapi_client/models/apps_store_app_version_templete_app_probe.py new file mode 100644 index 0000000000000000000000000000000000000000..b62ca7b735da56afae719b4688a4d6dba8557a6c --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_app_probe.py @@ -0,0 +1,500 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempleteAppProbe(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 = { + 'id': 'int', + 'cmd': 'str', + 'failure_threshold': 'int', + 'http_header': 'str', + 'initial_delay_second': 'int', + 'is_used': 'bool', + 'mode': 'str', + 'path': 'str', + 'period_second': 'int', + 'port': 'int', + 'probe_id': 'str', + 'scheme': 'str', + 'service_id': 'str', + 'success_threshold': 'int', + 'timeout_second': 'int' + } + + attribute_map = { + 'id': 'ID', + 'cmd': 'cmd', + 'failure_threshold': 'failure_threshold', + 'http_header': 'http_header', + 'initial_delay_second': 'initial_delay_second', + 'is_used': 'is_used', + 'mode': 'mode', + 'path': 'path', + 'period_second': 'period_second', + 'port': 'port', + 'probe_id': 'probe_id', + 'scheme': 'scheme', + 'service_id': 'service_id', + 'success_threshold': 'success_threshold', + 'timeout_second': 'timeout_second' + } + + def __init__(self, id=None, cmd=None, failure_threshold=None, http_header=None, initial_delay_second=None, is_used=None, mode=None, path=None, period_second=None, port=None, probe_id=None, scheme=None, service_id=None, success_threshold=None, timeout_second=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempleteAppProbe - 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._id = None + self._cmd = None + self._failure_threshold = None + self._http_header = None + self._initial_delay_second = None + self._is_used = None + self._mode = None + self._path = None + self._period_second = None + self._port = None + self._probe_id = None + self._scheme = None + self._service_id = None + self._success_threshold = None + self._timeout_second = None + self.discriminator = None + + self.id = id + self.cmd = cmd + self.failure_threshold = failure_threshold + self.http_header = http_header + self.initial_delay_second = initial_delay_second + self.is_used = is_used + self.mode = mode + self.path = path + self.period_second = period_second + self.port = port + self.probe_id = probe_id + self.scheme = scheme + self.service_id = service_id + self.success_threshold = success_threshold + self.timeout_second = timeout_second + + @property + def id(self): + """Gets the id of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The id of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AppsStoreAppVersionTempleteAppProbe. + + + :param id: The id of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type id: int + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def cmd(self): + """Gets the cmd of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The cmd of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._cmd + + @cmd.setter + def cmd(self, cmd): + """Sets the cmd of this AppsStoreAppVersionTempleteAppProbe. + + + :param cmd: The cmd of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type cmd: str + """ + if self.local_vars_configuration.client_side_validation and cmd is None: # noqa: E501 + raise ValueError("Invalid value for `cmd`, must not be `None`") # noqa: E501 + + self._cmd = cmd + + @property + def failure_threshold(self): + """Gets the failure_threshold of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The failure_threshold of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._failure_threshold + + @failure_threshold.setter + def failure_threshold(self, failure_threshold): + """Sets the failure_threshold of this AppsStoreAppVersionTempleteAppProbe. + + + :param failure_threshold: The failure_threshold of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type failure_threshold: int + """ + if self.local_vars_configuration.client_side_validation and failure_threshold is None: # noqa: E501 + raise ValueError("Invalid value for `failure_threshold`, must not be `None`") # noqa: E501 + + self._failure_threshold = failure_threshold + + @property + def http_header(self): + """Gets the http_header of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The http_header of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._http_header + + @http_header.setter + def http_header(self, http_header): + """Sets the http_header of this AppsStoreAppVersionTempleteAppProbe. + + + :param http_header: The http_header of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type http_header: str + """ + if self.local_vars_configuration.client_side_validation and http_header is None: # noqa: E501 + raise ValueError("Invalid value for `http_header`, must not be `None`") # noqa: E501 + + self._http_header = http_header + + @property + def initial_delay_second(self): + """Gets the initial_delay_second of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The initial_delay_second of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._initial_delay_second + + @initial_delay_second.setter + def initial_delay_second(self, initial_delay_second): + """Sets the initial_delay_second of this AppsStoreAppVersionTempleteAppProbe. + + + :param initial_delay_second: The initial_delay_second of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type initial_delay_second: int + """ + if self.local_vars_configuration.client_side_validation and initial_delay_second is None: # noqa: E501 + raise ValueError("Invalid value for `initial_delay_second`, must not be `None`") # noqa: E501 + + self._initial_delay_second = initial_delay_second + + @property + def is_used(self): + """Gets the is_used of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The is_used of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: bool + """ + return self._is_used + + @is_used.setter + def is_used(self, is_used): + """Sets the is_used of this AppsStoreAppVersionTempleteAppProbe. + + + :param is_used: The is_used of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type is_used: bool + """ + if self.local_vars_configuration.client_side_validation and is_used is None: # noqa: E501 + raise ValueError("Invalid value for `is_used`, must not be `None`") # noqa: E501 + + self._is_used = is_used + + @property + def mode(self): + """Gets the mode of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The mode of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this AppsStoreAppVersionTempleteAppProbe. + + + :param mode: The mode of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type mode: str + """ + if self.local_vars_configuration.client_side_validation and mode is None: # noqa: E501 + raise ValueError("Invalid value for `mode`, must not be `None`") # noqa: E501 + + self._mode = mode + + @property + def path(self): + """Gets the path of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The path of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this AppsStoreAppVersionTempleteAppProbe. + + + :param path: The path of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type path: str + """ + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 + + self._path = path + + @property + def period_second(self): + """Gets the period_second of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The period_second of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._period_second + + @period_second.setter + def period_second(self, period_second): + """Sets the period_second of this AppsStoreAppVersionTempleteAppProbe. + + + :param period_second: The period_second of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type period_second: int + """ + if self.local_vars_configuration.client_side_validation and period_second is None: # noqa: E501 + raise ValueError("Invalid value for `period_second`, must not be `None`") # noqa: E501 + + self._period_second = period_second + + @property + def port(self): + """Gets the port of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The port of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this AppsStoreAppVersionTempleteAppProbe. + + + :param port: The port of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type port: int + """ + if self.local_vars_configuration.client_side_validation and port is None: # noqa: E501 + raise ValueError("Invalid value for `port`, must not be `None`") # noqa: E501 + + self._port = port + + @property + def probe_id(self): + """Gets the probe_id of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The probe_id of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._probe_id + + @probe_id.setter + def probe_id(self, probe_id): + """Sets the probe_id of this AppsStoreAppVersionTempleteAppProbe. + + + :param probe_id: The probe_id of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type probe_id: str + """ + if self.local_vars_configuration.client_side_validation and probe_id is None: # noqa: E501 + raise ValueError("Invalid value for `probe_id`, must not be `None`") # noqa: E501 + + self._probe_id = probe_id + + @property + def scheme(self): + """Gets the scheme of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The scheme of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._scheme + + @scheme.setter + def scheme(self, scheme): + """Sets the scheme of this AppsStoreAppVersionTempleteAppProbe. + + + :param scheme: The scheme of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type scheme: str + """ + if self.local_vars_configuration.client_side_validation and scheme is None: # noqa: E501 + raise ValueError("Invalid value for `scheme`, must not be `None`") # noqa: E501 + + self._scheme = scheme + + @property + def service_id(self): + """Gets the service_id of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The service_id of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._service_id + + @service_id.setter + def service_id(self, service_id): + """Sets the service_id of this AppsStoreAppVersionTempleteAppProbe. + + + :param service_id: The service_id of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type service_id: str + """ + if self.local_vars_configuration.client_side_validation and service_id is None: # noqa: E501 + raise ValueError("Invalid value for `service_id`, must not be `None`") # noqa: E501 + + self._service_id = service_id + + @property + def success_threshold(self): + """Gets the success_threshold of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The success_threshold of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._success_threshold + + @success_threshold.setter + def success_threshold(self, success_threshold): + """Sets the success_threshold of this AppsStoreAppVersionTempleteAppProbe. + + + :param success_threshold: The success_threshold of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type success_threshold: int + """ + if self.local_vars_configuration.client_side_validation and success_threshold is None: # noqa: E501 + raise ValueError("Invalid value for `success_threshold`, must not be `None`") # noqa: E501 + + self._success_threshold = success_threshold + + @property + def timeout_second(self): + """Gets the timeout_second of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The timeout_second of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._timeout_second + + @timeout_second.setter + def timeout_second(self, timeout_second): + """Sets the timeout_second of this AppsStoreAppVersionTempleteAppProbe. + + + :param timeout_second: The timeout_second of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type timeout_second: int + """ + if self.local_vars_configuration.client_side_validation and timeout_second is None: # noqa: E501 + raise ValueError("Invalid value for `timeout_second`, must not be `None`") # noqa: E501 + + self._timeout_second = timeout_second + + 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, AppsStoreAppVersionTempleteAppProbe): + 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, AppsStoreAppVersionTempleteAppProbe): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_app_share_volume.py b/openapi_client/models/apps_store_app_version_templete_app_share_volume.py new file mode 100644 index 0000000000000000000000000000000000000000..54825a9cbf755ed1c53b8cf7f1e7c42e595e8673 --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_app_share_volume.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempleteAppShareVolume(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 = { + 'mnt_dir': 'str', + 'mnt_name': 'str', + 'service_share_uuid': 'str' + } + + attribute_map = { + 'mnt_dir': 'mnt_dir', + 'mnt_name': 'mnt_name', + 'service_share_uuid': 'service_share_uuid' + } + + def __init__(self, mnt_dir=None, mnt_name=None, service_share_uuid=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempleteAppShareVolume - 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._mnt_dir = None + self._mnt_name = None + self._service_share_uuid = None + self.discriminator = None + + self.mnt_dir = mnt_dir + self.mnt_name = mnt_name + self.service_share_uuid = service_share_uuid + + @property + def mnt_dir(self): + """Gets the mnt_dir of this AppsStoreAppVersionTempleteAppShareVolume. # noqa: E501 + + + :return: The mnt_dir of this AppsStoreAppVersionTempleteAppShareVolume. # noqa: E501 + :rtype: str + """ + return self._mnt_dir + + @mnt_dir.setter + def mnt_dir(self, mnt_dir): + """Sets the mnt_dir of this AppsStoreAppVersionTempleteAppShareVolume. + + + :param mnt_dir: The mnt_dir of this AppsStoreAppVersionTempleteAppShareVolume. # noqa: E501 + :type mnt_dir: str + """ + if self.local_vars_configuration.client_side_validation and mnt_dir is None: # noqa: E501 + raise ValueError("Invalid value for `mnt_dir`, must not be `None`") # noqa: E501 + + self._mnt_dir = mnt_dir + + @property + def mnt_name(self): + """Gets the mnt_name of this AppsStoreAppVersionTempleteAppShareVolume. # noqa: E501 + + + :return: The mnt_name of this AppsStoreAppVersionTempleteAppShareVolume. # noqa: E501 + :rtype: str + """ + return self._mnt_name + + @mnt_name.setter + def mnt_name(self, mnt_name): + """Sets the mnt_name of this AppsStoreAppVersionTempleteAppShareVolume. + + + :param mnt_name: The mnt_name of this AppsStoreAppVersionTempleteAppShareVolume. # noqa: E501 + :type mnt_name: str + """ + if self.local_vars_configuration.client_side_validation and mnt_name is None: # noqa: E501 + raise ValueError("Invalid value for `mnt_name`, must not be `None`") # noqa: E501 + + self._mnt_name = mnt_name + + @property + def service_share_uuid(self): + """Gets the service_share_uuid of this AppsStoreAppVersionTempleteAppShareVolume. # noqa: E501 + + + :return: The service_share_uuid of this AppsStoreAppVersionTempleteAppShareVolume. # noqa: E501 + :rtype: str + """ + return self._service_share_uuid + + @service_share_uuid.setter + def service_share_uuid(self, service_share_uuid): + """Sets the service_share_uuid of this AppsStoreAppVersionTempleteAppShareVolume. + + + :param service_share_uuid: The service_share_uuid of this AppsStoreAppVersionTempleteAppShareVolume. # noqa: E501 + :type service_share_uuid: str + """ + if self.local_vars_configuration.client_side_validation and service_share_uuid is None: # noqa: E501 + raise ValueError("Invalid value for `service_share_uuid`, must not be `None`") # noqa: E501 + + self._service_share_uuid = service_share_uuid + + 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, AppsStoreAppVersionTempleteAppShareVolume): + 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, AppsStoreAppVersionTempleteAppShareVolume): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_app_volume.py b/openapi_client/models/apps_store_app_version_templete_app_volume.py new file mode 100644 index 0000000000000000000000000000000000000000..0545f01060967199d31988005fdef58bef6e347f --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_app_volume.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempleteAppVolume(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 = { + 'access_mode': 'str', + 'file_content': 'str', + 'volume_capacity': 'int', + 'volume_name': 'str', + 'volume_path': 'str', + 'volume_type': 'str' + } + + attribute_map = { + 'access_mode': 'access_mode', + 'file_content': 'file_content', + 'volume_capacity': 'volume_capacity', + 'volume_name': 'volume_name', + 'volume_path': 'volume_path', + 'volume_type': 'volume_type' + } + + def __init__(self, access_mode=None, file_content=None, volume_capacity=None, volume_name=None, volume_path=None, volume_type=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempleteAppVolume - 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._access_mode = None + self._file_content = None + self._volume_capacity = None + self._volume_name = None + self._volume_path = None + self._volume_type = None + self.discriminator = None + + self.access_mode = access_mode + self.file_content = file_content + self.volume_capacity = volume_capacity + self.volume_name = volume_name + self.volume_path = volume_path + self.volume_type = volume_type + + @property + def access_mode(self): + """Gets the access_mode of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The access_mode of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: str + """ + return self._access_mode + + @access_mode.setter + def access_mode(self, access_mode): + """Sets the access_mode of this AppsStoreAppVersionTempleteAppVolume. + + + :param access_mode: The access_mode of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :type access_mode: str + """ + if self.local_vars_configuration.client_side_validation and access_mode is None: # noqa: E501 + raise ValueError("Invalid value for `access_mode`, must not be `None`") # noqa: E501 + + self._access_mode = access_mode + + @property + def file_content(self): + """Gets the file_content of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The file_content of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: str + """ + return self._file_content + + @file_content.setter + def file_content(self, file_content): + """Sets the file_content of this AppsStoreAppVersionTempleteAppVolume. + + + :param file_content: The file_content of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :type file_content: str + """ + if self.local_vars_configuration.client_side_validation and file_content is None: # noqa: E501 + raise ValueError("Invalid value for `file_content`, must not be `None`") # noqa: E501 + + self._file_content = file_content + + @property + def volume_capacity(self): + """Gets the volume_capacity of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The volume_capacity of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: int + """ + return self._volume_capacity + + @volume_capacity.setter + def volume_capacity(self, volume_capacity): + """Sets the volume_capacity of this AppsStoreAppVersionTempleteAppVolume. + + + :param volume_capacity: The volume_capacity of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :type volume_capacity: int + """ + if self.local_vars_configuration.client_side_validation and volume_capacity is None: # noqa: E501 + raise ValueError("Invalid value for `volume_capacity`, must not be `None`") # noqa: E501 + + self._volume_capacity = volume_capacity + + @property + def volume_name(self): + """Gets the volume_name of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The volume_name of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """Sets the volume_name of this AppsStoreAppVersionTempleteAppVolume. + + + :param volume_name: The volume_name of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :type volume_name: str + """ + if self.local_vars_configuration.client_side_validation and volume_name is None: # noqa: E501 + raise ValueError("Invalid value for `volume_name`, must not be `None`") # noqa: E501 + + self._volume_name = volume_name + + @property + def volume_path(self): + """Gets the volume_path of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The volume_path of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: str + """ + return self._volume_path + + @volume_path.setter + def volume_path(self, volume_path): + """Sets the volume_path of this AppsStoreAppVersionTempleteAppVolume. + + + :param volume_path: The volume_path of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :type volume_path: str + """ + if self.local_vars_configuration.client_side_validation and volume_path is None: # noqa: E501 + raise ValueError("Invalid value for `volume_path`, must not be `None`") # noqa: E501 + + self._volume_path = volume_path + + @property + def volume_type(self): + """Gets the volume_type of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The volume_type of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: str + """ + return self._volume_type + + @volume_type.setter + def volume_type(self, volume_type): + """Sets the volume_type of this AppsStoreAppVersionTempleteAppVolume. + + + :param volume_type: The volume_type of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :type volume_type: str + """ + if self.local_vars_configuration.client_side_validation and volume_type is None: # noqa: E501 + raise ValueError("Invalid value for `volume_type`, must not be `None`") # noqa: E501 + + self._volume_type = volume_type + + 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, AppsStoreAppVersionTempleteAppVolume): + 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, AppsStoreAppVersionTempleteAppVolume): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_plugin.py b/openapi_client/models/apps_store_app_version_templete_plugin.py new file mode 100644 index 0000000000000000000000000000000000000000..1c43847a436d151cb2ea829bfa1b1c98459a8f4d --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_plugin.py @@ -0,0 +1,553 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempletePlugin(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 = { + 'id': 'int', + 'build_source': 'str', + 'build_version': 'str', + 'category': 'str', + 'code_repo': 'str', + 'config_groups': 'list[AppsStoreAppVersionTempletePluginConfigGroup]', + 'create_time': 'str', + 'desc': 'str', + 'image': 'str', + 'origin': 'str', + 'origin_share_id': 'str', + 'plugin_alias': 'str', + 'plugin_id': 'str', + 'plugin_image': 'AppsImageInfo', + 'plugin_key': 'str', + 'plugin_name': 'str', + 'share_image': 'str' + } + + attribute_map = { + 'id': 'ID', + 'build_source': 'build_source', + 'build_version': 'build_version', + 'category': 'category', + 'code_repo': 'code_repo', + 'config_groups': 'config_groups', + 'create_time': 'create_time', + 'desc': 'desc', + 'image': 'image', + 'origin': 'origin', + 'origin_share_id': 'origin_share_id', + 'plugin_alias': 'plugin_alias', + 'plugin_id': 'plugin_id', + 'plugin_image': 'plugin_image', + 'plugin_key': 'plugin_key', + 'plugin_name': 'plugin_name', + 'share_image': 'share_image' + } + + def __init__(self, id=None, build_source=None, build_version=None, category=None, code_repo=None, config_groups=None, create_time=None, desc=None, image=None, origin=None, origin_share_id=None, plugin_alias=None, plugin_id=None, plugin_image=None, plugin_key=None, plugin_name=None, share_image=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempletePlugin - 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._id = None + self._build_source = None + self._build_version = None + self._category = None + self._code_repo = None + self._config_groups = None + self._create_time = None + self._desc = None + self._image = None + self._origin = None + self._origin_share_id = None + self._plugin_alias = None + self._plugin_id = None + self._plugin_image = None + self._plugin_key = None + self._plugin_name = None + self._share_image = None + self.discriminator = None + + self.id = id + self.build_source = build_source + self.build_version = build_version + self.category = category + self.code_repo = code_repo + if config_groups is not None: + self.config_groups = config_groups + self.create_time = create_time + self.desc = desc + self.image = image + self.origin = origin + self.origin_share_id = origin_share_id + self.plugin_alias = plugin_alias + self.plugin_id = plugin_id + self.plugin_image = plugin_image + self.plugin_key = plugin_key + self.plugin_name = plugin_name + self.share_image = share_image + + @property + def id(self): + """Gets the id of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The id of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AppsStoreAppVersionTempletePlugin. + + + :param id: The id of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type id: int + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def build_source(self): + """Gets the build_source of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The build_source of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._build_source + + @build_source.setter + def build_source(self, build_source): + """Sets the build_source of this AppsStoreAppVersionTempletePlugin. + + + :param build_source: The build_source of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type build_source: str + """ + if self.local_vars_configuration.client_side_validation and build_source is None: # noqa: E501 + raise ValueError("Invalid value for `build_source`, must not be `None`") # noqa: E501 + + self._build_source = build_source + + @property + def build_version(self): + """Gets the build_version of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The build_version of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._build_version + + @build_version.setter + def build_version(self, build_version): + """Sets the build_version of this AppsStoreAppVersionTempletePlugin. + + + :param build_version: The build_version of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type build_version: str + """ + if self.local_vars_configuration.client_side_validation and build_version is None: # noqa: E501 + raise ValueError("Invalid value for `build_version`, must not be `None`") # noqa: E501 + + self._build_version = build_version + + @property + def category(self): + """Gets the category of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The category of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this AppsStoreAppVersionTempletePlugin. + + + :param category: The category of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type category: str + """ + if self.local_vars_configuration.client_side_validation and category is None: # noqa: E501 + raise ValueError("Invalid value for `category`, must not be `None`") # noqa: E501 + + self._category = category + + @property + def code_repo(self): + """Gets the code_repo of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The code_repo of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._code_repo + + @code_repo.setter + def code_repo(self, code_repo): + """Sets the code_repo of this AppsStoreAppVersionTempletePlugin. + + + :param code_repo: The code_repo of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type code_repo: str + """ + if self.local_vars_configuration.client_side_validation and code_repo is None: # noqa: E501 + raise ValueError("Invalid value for `code_repo`, must not be `None`") # noqa: E501 + + self._code_repo = code_repo + + @property + def config_groups(self): + """Gets the config_groups of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The config_groups of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempletePluginConfigGroup] + """ + return self._config_groups + + @config_groups.setter + def config_groups(self, config_groups): + """Sets the config_groups of this AppsStoreAppVersionTempletePlugin. + + + :param config_groups: The config_groups of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type config_groups: list[AppsStoreAppVersionTempletePluginConfigGroup] + """ + + self._config_groups = config_groups + + @property + def create_time(self): + """Gets the create_time of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The create_time of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this AppsStoreAppVersionTempletePlugin. + + + :param create_time: The create_time of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type create_time: str + """ + if self.local_vars_configuration.client_side_validation and create_time is None: # noqa: E501 + raise ValueError("Invalid value for `create_time`, must not be `None`") # noqa: E501 + + self._create_time = create_time + + @property + def desc(self): + """Gets the desc of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The desc of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._desc + + @desc.setter + def desc(self, desc): + """Sets the desc of this AppsStoreAppVersionTempletePlugin. + + + :param desc: The desc of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type desc: str + """ + if self.local_vars_configuration.client_side_validation and desc is None: # noqa: E501 + raise ValueError("Invalid value for `desc`, must not be `None`") # noqa: E501 + + self._desc = desc + + @property + def image(self): + """Gets the image of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The image of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """Sets the image of this AppsStoreAppVersionTempletePlugin. + + + :param image: The image of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type image: str + """ + if self.local_vars_configuration.client_side_validation and image is None: # noqa: E501 + raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501 + + self._image = image + + @property + def origin(self): + """Gets the origin of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The origin of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._origin + + @origin.setter + def origin(self, origin): + """Sets the origin of this AppsStoreAppVersionTempletePlugin. + + + :param origin: The origin of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type origin: str + """ + if self.local_vars_configuration.client_side_validation and origin is None: # noqa: E501 + raise ValueError("Invalid value for `origin`, must not be `None`") # noqa: E501 + + self._origin = origin + + @property + def origin_share_id(self): + """Gets the origin_share_id of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The origin_share_id of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._origin_share_id + + @origin_share_id.setter + def origin_share_id(self, origin_share_id): + """Sets the origin_share_id of this AppsStoreAppVersionTempletePlugin. + + + :param origin_share_id: The origin_share_id of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type origin_share_id: str + """ + if self.local_vars_configuration.client_side_validation and origin_share_id is None: # noqa: E501 + raise ValueError("Invalid value for `origin_share_id`, must not be `None`") # noqa: E501 + + self._origin_share_id = origin_share_id + + @property + def plugin_alias(self): + """Gets the plugin_alias of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The plugin_alias of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._plugin_alias + + @plugin_alias.setter + def plugin_alias(self, plugin_alias): + """Sets the plugin_alias of this AppsStoreAppVersionTempletePlugin. + + + :param plugin_alias: The plugin_alias of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type plugin_alias: str + """ + if self.local_vars_configuration.client_side_validation and plugin_alias is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_alias`, must not be `None`") # noqa: E501 + + self._plugin_alias = plugin_alias + + @property + def plugin_id(self): + """Gets the plugin_id of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The plugin_id of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._plugin_id + + @plugin_id.setter + def plugin_id(self, plugin_id): + """Sets the plugin_id of this AppsStoreAppVersionTempletePlugin. + + + :param plugin_id: The plugin_id of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type plugin_id: str + """ + if self.local_vars_configuration.client_side_validation and plugin_id is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_id`, must not be `None`") # noqa: E501 + + self._plugin_id = plugin_id + + @property + def plugin_image(self): + """Gets the plugin_image of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The plugin_image of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: AppsImageInfo + """ + return self._plugin_image + + @plugin_image.setter + def plugin_image(self, plugin_image): + """Sets the plugin_image of this AppsStoreAppVersionTempletePlugin. + + + :param plugin_image: The plugin_image of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type plugin_image: AppsImageInfo + """ + if self.local_vars_configuration.client_side_validation and plugin_image is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_image`, must not be `None`") # noqa: E501 + + self._plugin_image = plugin_image + + @property + def plugin_key(self): + """Gets the plugin_key of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The plugin_key of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._plugin_key + + @plugin_key.setter + def plugin_key(self, plugin_key): + """Sets the plugin_key of this AppsStoreAppVersionTempletePlugin. + + + :param plugin_key: The plugin_key of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type plugin_key: str + """ + if self.local_vars_configuration.client_side_validation and plugin_key is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_key`, must not be `None`") # noqa: E501 + + self._plugin_key = plugin_key + + @property + def plugin_name(self): + """Gets the plugin_name of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The plugin_name of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._plugin_name + + @plugin_name.setter + def plugin_name(self, plugin_name): + """Sets the plugin_name of this AppsStoreAppVersionTempletePlugin. + + + :param plugin_name: The plugin_name of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type plugin_name: str + """ + if self.local_vars_configuration.client_side_validation and plugin_name is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_name`, must not be `None`") # noqa: E501 + + self._plugin_name = plugin_name + + @property + def share_image(self): + """Gets the share_image of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The share_image of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._share_image + + @share_image.setter + def share_image(self, share_image): + """Sets the share_image of this AppsStoreAppVersionTempletePlugin. + + + :param share_image: The share_image of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type share_image: str + """ + if self.local_vars_configuration.client_side_validation and share_image is None: # noqa: E501 + raise ValueError("Invalid value for `share_image`, must not be `None`") # noqa: E501 + + self._share_image = share_image + + 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, AppsStoreAppVersionTempletePlugin): + 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, AppsStoreAppVersionTempletePlugin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_plugin_config_group.py b/openapi_client/models/apps_store_app_version_templete_plugin_config_group.py new file mode 100644 index 0000000000000000000000000000000000000000..36008a2c387f4dbe1ef45f29f50486b23ceaa878 --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_plugin_config_group.py @@ -0,0 +1,283 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempletePluginConfigGroup(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 = { + 'id': 'int', + 'build_version': 'str', + 'config_name': 'str', + 'injection': 'str', + 'options': 'list[AppsStoreAppVersionTempletePluginConfigGroupOption]', + 'plugin_id': 'str', + 'service_meta_type': 'str' + } + + attribute_map = { + 'id': 'ID', + 'build_version': 'build_version', + 'config_name': 'config_name', + 'injection': 'injection', + 'options': 'options', + 'plugin_id': 'plugin_id', + 'service_meta_type': 'service_meta_type' + } + + def __init__(self, id=None, build_version=None, config_name=None, injection=None, options=None, plugin_id=None, service_meta_type=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempletePluginConfigGroup - 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._id = None + self._build_version = None + self._config_name = None + self._injection = None + self._options = None + self._plugin_id = None + self._service_meta_type = None + self.discriminator = None + + self.id = id + self.build_version = build_version + self.config_name = config_name + self.injection = injection + if options is not None: + self.options = options + self.plugin_id = plugin_id + self.service_meta_type = service_meta_type + + @property + def id(self): + """Gets the id of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The id of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AppsStoreAppVersionTempletePluginConfigGroup. + + + :param id: The id of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type id: int + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def build_version(self): + """Gets the build_version of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The build_version of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: str + """ + return self._build_version + + @build_version.setter + def build_version(self, build_version): + """Sets the build_version of this AppsStoreAppVersionTempletePluginConfigGroup. + + + :param build_version: The build_version of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type build_version: str + """ + if self.local_vars_configuration.client_side_validation and build_version is None: # noqa: E501 + raise ValueError("Invalid value for `build_version`, must not be `None`") # noqa: E501 + + self._build_version = build_version + + @property + def config_name(self): + """Gets the config_name of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The config_name of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: str + """ + return self._config_name + + @config_name.setter + def config_name(self, config_name): + """Sets the config_name of this AppsStoreAppVersionTempletePluginConfigGroup. + + + :param config_name: The config_name of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type config_name: str + """ + if self.local_vars_configuration.client_side_validation and config_name is None: # noqa: E501 + raise ValueError("Invalid value for `config_name`, must not be `None`") # noqa: E501 + + self._config_name = config_name + + @property + def injection(self): + """Gets the injection of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The injection of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: str + """ + return self._injection + + @injection.setter + def injection(self, injection): + """Sets the injection of this AppsStoreAppVersionTempletePluginConfigGroup. + + + :param injection: The injection of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type injection: str + """ + if self.local_vars_configuration.client_side_validation and injection is None: # noqa: E501 + raise ValueError("Invalid value for `injection`, must not be `None`") # noqa: E501 + + self._injection = injection + + @property + def options(self): + """Gets the options of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The options of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempletePluginConfigGroupOption] + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this AppsStoreAppVersionTempletePluginConfigGroup. + + + :param options: The options of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type options: list[AppsStoreAppVersionTempletePluginConfigGroupOption] + """ + + self._options = options + + @property + def plugin_id(self): + """Gets the plugin_id of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The plugin_id of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: str + """ + return self._plugin_id + + @plugin_id.setter + def plugin_id(self, plugin_id): + """Sets the plugin_id of this AppsStoreAppVersionTempletePluginConfigGroup. + + + :param plugin_id: The plugin_id of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type plugin_id: str + """ + if self.local_vars_configuration.client_side_validation and plugin_id is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_id`, must not be `None`") # noqa: E501 + + self._plugin_id = plugin_id + + @property + def service_meta_type(self): + """Gets the service_meta_type of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The service_meta_type of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: str + """ + return self._service_meta_type + + @service_meta_type.setter + def service_meta_type(self, service_meta_type): + """Sets the service_meta_type of this AppsStoreAppVersionTempletePluginConfigGroup. + + + :param service_meta_type: The service_meta_type of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type service_meta_type: str + """ + if self.local_vars_configuration.client_side_validation and service_meta_type is None: # noqa: E501 + raise ValueError("Invalid value for `service_meta_type`, must not be `None`") # noqa: E501 + + self._service_meta_type = service_meta_type + + 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, AppsStoreAppVersionTempletePluginConfigGroup): + 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, AppsStoreAppVersionTempletePluginConfigGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_plugin_config_group_option.py b/openapi_client/models/apps_store_app_version_templete_plugin_config_group_option.py new file mode 100644 index 0000000000000000000000000000000000000000..5e1fd52ef0f071e61bd42623070b04514efa68c7 --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_plugin_config_group_option.py @@ -0,0 +1,392 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempletePluginConfigGroupOption(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 = { + 'id': 'int', + 'attr_alt_value': 'str', + 'attr_default_value': 'str', + 'attr_info': 'str', + 'attr_name': 'str', + 'attr_type': 'str', + 'build_version': 'str', + 'is_change': 'bool', + 'plugin_id': 'str', + 'protocol': 'str', + 'service_meta_type': 'str' + } + + attribute_map = { + 'id': 'ID', + 'attr_alt_value': 'attr_alt_value', + 'attr_default_value': 'attr_default_value', + 'attr_info': 'attr_info', + 'attr_name': 'attr_name', + 'attr_type': 'attr_type', + 'build_version': 'build_version', + 'is_change': 'is_change', + 'plugin_id': 'plugin_id', + 'protocol': 'protocol', + 'service_meta_type': 'service_meta_type' + } + + def __init__(self, id=None, attr_alt_value=None, attr_default_value=None, attr_info=None, attr_name=None, attr_type=None, build_version=None, is_change=None, plugin_id=None, protocol=None, service_meta_type=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempletePluginConfigGroupOption - 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._id = None + self._attr_alt_value = None + self._attr_default_value = None + self._attr_info = None + self._attr_name = None + self._attr_type = None + self._build_version = None + self._is_change = None + self._plugin_id = None + self._protocol = None + self._service_meta_type = None + self.discriminator = None + + self.id = id + self.attr_alt_value = attr_alt_value + self.attr_default_value = attr_default_value + self.attr_info = attr_info + self.attr_name = attr_name + self.attr_type = attr_type + self.build_version = build_version + self.is_change = is_change + self.plugin_id = plugin_id + self.protocol = protocol + self.service_meta_type = service_meta_type + + @property + def id(self): + """Gets the id of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The id of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AppsStoreAppVersionTempletePluginConfigGroupOption. + + + :param id: The id of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type id: int + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def attr_alt_value(self): + """Gets the attr_alt_value of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The attr_alt_value of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._attr_alt_value + + @attr_alt_value.setter + def attr_alt_value(self, attr_alt_value): + """Sets the attr_alt_value of this AppsStoreAppVersionTempletePluginConfigGroupOption. + + + :param attr_alt_value: The attr_alt_value of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type attr_alt_value: str + """ + if self.local_vars_configuration.client_side_validation and attr_alt_value is None: # noqa: E501 + raise ValueError("Invalid value for `attr_alt_value`, must not be `None`") # noqa: E501 + + self._attr_alt_value = attr_alt_value + + @property + def attr_default_value(self): + """Gets the attr_default_value of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The attr_default_value of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._attr_default_value + + @attr_default_value.setter + def attr_default_value(self, attr_default_value): + """Sets the attr_default_value of this AppsStoreAppVersionTempletePluginConfigGroupOption. + + + :param attr_default_value: The attr_default_value of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type attr_default_value: str + """ + if self.local_vars_configuration.client_side_validation and attr_default_value is None: # noqa: E501 + raise ValueError("Invalid value for `attr_default_value`, must not be `None`") # noqa: E501 + + self._attr_default_value = attr_default_value + + @property + def attr_info(self): + """Gets the attr_info of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The attr_info of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._attr_info + + @attr_info.setter + def attr_info(self, attr_info): + """Sets the attr_info of this AppsStoreAppVersionTempletePluginConfigGroupOption. + + + :param attr_info: The attr_info of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type attr_info: str + """ + if self.local_vars_configuration.client_side_validation and attr_info is None: # noqa: E501 + raise ValueError("Invalid value for `attr_info`, must not be `None`") # noqa: E501 + + self._attr_info = attr_info + + @property + def attr_name(self): + """Gets the attr_name of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The attr_name of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._attr_name + + @attr_name.setter + def attr_name(self, attr_name): + """Sets the attr_name of this AppsStoreAppVersionTempletePluginConfigGroupOption. + + + :param attr_name: The attr_name of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type attr_name: str + """ + if self.local_vars_configuration.client_side_validation and attr_name is None: # noqa: E501 + raise ValueError("Invalid value for `attr_name`, must not be `None`") # noqa: E501 + + self._attr_name = attr_name + + @property + def attr_type(self): + """Gets the attr_type of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The attr_type of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._attr_type + + @attr_type.setter + def attr_type(self, attr_type): + """Sets the attr_type of this AppsStoreAppVersionTempletePluginConfigGroupOption. + + + :param attr_type: The attr_type of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type attr_type: str + """ + if self.local_vars_configuration.client_side_validation and attr_type is None: # noqa: E501 + raise ValueError("Invalid value for `attr_type`, must not be `None`") # noqa: E501 + + self._attr_type = attr_type + + @property + def build_version(self): + """Gets the build_version of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The build_version of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._build_version + + @build_version.setter + def build_version(self, build_version): + """Sets the build_version of this AppsStoreAppVersionTempletePluginConfigGroupOption. + + + :param build_version: The build_version of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type build_version: str + """ + if self.local_vars_configuration.client_side_validation and build_version is None: # noqa: E501 + raise ValueError("Invalid value for `build_version`, must not be `None`") # noqa: E501 + + self._build_version = build_version + + @property + def is_change(self): + """Gets the is_change of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The is_change of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: bool + """ + return self._is_change + + @is_change.setter + def is_change(self, is_change): + """Sets the is_change of this AppsStoreAppVersionTempletePluginConfigGroupOption. + + + :param is_change: The is_change of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type is_change: bool + """ + if self.local_vars_configuration.client_side_validation and is_change is None: # noqa: E501 + raise ValueError("Invalid value for `is_change`, must not be `None`") # noqa: E501 + + self._is_change = is_change + + @property + def plugin_id(self): + """Gets the plugin_id of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The plugin_id of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._plugin_id + + @plugin_id.setter + def plugin_id(self, plugin_id): + """Sets the plugin_id of this AppsStoreAppVersionTempletePluginConfigGroupOption. + + + :param plugin_id: The plugin_id of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type plugin_id: str + """ + if self.local_vars_configuration.client_side_validation and plugin_id is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_id`, must not be `None`") # noqa: E501 + + self._plugin_id = plugin_id + + @property + def protocol(self): + """Gets the protocol of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The protocol of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this AppsStoreAppVersionTempletePluginConfigGroupOption. + + + :param protocol: The protocol of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type protocol: str + """ + if self.local_vars_configuration.client_side_validation and protocol is None: # noqa: E501 + raise ValueError("Invalid value for `protocol`, must not be `None`") # noqa: E501 + + self._protocol = protocol + + @property + def service_meta_type(self): + """Gets the service_meta_type of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The service_meta_type of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._service_meta_type + + @service_meta_type.setter + def service_meta_type(self, service_meta_type): + """Sets the service_meta_type of this AppsStoreAppVersionTempletePluginConfigGroupOption. + + + :param service_meta_type: The service_meta_type of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type service_meta_type: str + """ + if self.local_vars_configuration.client_side_validation and service_meta_type is None: # noqa: E501 + raise ValueError("Invalid value for `service_meta_type`, must not be `None`") # noqa: E501 + + self._service_meta_type = service_meta_type + + 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, AppsStoreAppVersionTempletePluginConfigGroupOption): + 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, AppsStoreAppVersionTempletePluginConfigGroupOption): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/controller_result.py b/openapi_client/models/controller_result.py index 889ffa4b8df066261dbbba748f389b46ff57dfc2..450e388f79d8073b7d1605cdeb3f880985378e4e 100644 --- a/openapi_client/models/controller_result.py +++ b/openapi_client/models/controller_result.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/restfulutil_result.py b/openapi_client/models/restfulutil_result.py index 7519f4be1c07d29870988f8ddc0ba5546ed8624b..70f3e7cc9ba68cb7e8ab567bf41d75f0cced0c03 100644 --- a/openapi_client/models/restfulutil_result.py +++ b/openapi_client/models/restfulutil_result.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1_app_base_info.py b/openapi_client/models/v1_app_base_info.py index 9b06f0aea003b08f2b38f13c9b8e453d22b082c8..766400cea285038c9d5008733f3459d5c85f84e1 100644 --- a/openapi_client/models/v1_app_base_info.py +++ b/openapi_client/models/v1_app_base_info.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -34,12 +33,16 @@ class V1AppBaseInfo(object): and the value is json key in definition. """ openapi_types = { + 'app_classifications': 'list[V1AppClassifications]', 'app_detail_url': 'str', 'app_key_id': 'str', 'create_time': 'datetime', 'desc': 'str', 'dev_status': 'str', 'download_count': 'int', + 'effect': 'str', + 'features': 'str', + 'functional': 'str', 'install_count': 'int', 'introduction': 'str', 'introduction_html': 'str', @@ -49,8 +52,11 @@ class V1AppBaseInfo(object): 'market_name': 'str', 'market_url': 'str', 'name': 'str', + 'phone': 'str', 'publish_type': 'str', 'publish_user': 'str', + 'quote': 'str', + 'real_name': 'str', 'show_count': 'int', 'start_count': 'int', 'status': 'str', @@ -60,12 +66,16 @@ class V1AppBaseInfo(object): } attribute_map = { + 'app_classifications': 'appClassifications', 'app_detail_url': 'appDetailURL', 'app_key_id': 'appKeyID', 'create_time': 'createTime', 'desc': 'desc', 'dev_status': 'devStatus', 'download_count': 'downloadCount', + 'effect': 'effect', + 'features': 'features', + 'functional': 'functional', 'install_count': 'installCount', 'introduction': 'introduction', 'introduction_html': 'introductionHTML', @@ -75,8 +85,11 @@ class V1AppBaseInfo(object): 'market_name': 'marketName', 'market_url': 'marketURL', 'name': 'name', + 'phone': 'phone', 'publish_type': 'publishType', 'publish_user': 'publishUser', + 'quote': 'quote', + 'real_name': 'real_name', 'show_count': 'showCount', 'start_count': 'startCount', 'status': 'status', @@ -85,18 +98,22 @@ class V1AppBaseInfo(object): 'versions': 'versions' } - def __init__(self, app_detail_url=None, app_key_id=None, create_time=None, desc=None, dev_status=None, download_count=None, install_count=None, introduction=None, introduction_html=None, is_official=None, logo=None, market_id=None, market_name=None, market_url=None, name=None, publish_type=None, publish_user=None, show_count=None, start_count=None, status=None, tags=None, update_time=None, versions=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, app_classifications=None, app_detail_url=None, app_key_id=None, create_time=None, desc=None, dev_status=None, download_count=None, effect=None, features=None, functional=None, install_count=None, introduction=None, introduction_html=None, is_official=None, logo=None, market_id=None, market_name=None, market_url=None, name=None, phone=None, publish_type=None, publish_user=None, quote=None, real_name=None, show_count=None, start_count=None, status=None, tags=None, update_time=None, versions=None, local_vars_configuration=None): # noqa: E501 """V1AppBaseInfo - 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._app_classifications = None self._app_detail_url = None self._app_key_id = None self._create_time = None self._desc = None self._dev_status = None self._download_count = None + self._effect = None + self._features = None + self._functional = None self._install_count = None self._introduction = None self._introduction_html = None @@ -106,8 +123,11 @@ class V1AppBaseInfo(object): self._market_name = None self._market_url = None self._name = None + self._phone = None self._publish_type = None self._publish_user = None + self._quote = None + self._real_name = None self._show_count = None self._start_count = None self._status = None @@ -116,12 +136,16 @@ class V1AppBaseInfo(object): self._versions = None self.discriminator = None + self.app_classifications = app_classifications self.app_detail_url = app_detail_url self.app_key_id = app_key_id self.create_time = create_time self.desc = desc self.dev_status = dev_status self.download_count = download_count + self.effect = effect + self.features = features + self.functional = functional self.install_count = install_count self.introduction = introduction self.introduction_html = introduction_html @@ -131,8 +155,11 @@ class V1AppBaseInfo(object): self.market_name = market_name self.market_url = market_url self.name = name + self.phone = phone self.publish_type = publish_type self.publish_user = publish_user + self.quote = quote + self.real_name = real_name self.show_count = show_count self.start_count = start_count self.status = status @@ -140,6 +167,31 @@ class V1AppBaseInfo(object): self.update_time = update_time self.versions = versions + @property + def app_classifications(self): + """Gets the app_classifications of this V1AppBaseInfo. # noqa: E501 + + 应用所属分类 # noqa: E501 + + :return: The app_classifications of this V1AppBaseInfo. # noqa: E501 + :rtype: list[V1AppClassifications] + """ + return self._app_classifications + + @app_classifications.setter + def app_classifications(self, app_classifications): + """Sets the app_classifications of this V1AppBaseInfo. + + 应用所属分类 # noqa: E501 + + :param app_classifications: The app_classifications of this V1AppBaseInfo. # noqa: E501 + :type: list[V1AppClassifications] + """ + if self.local_vars_configuration.client_side_validation and app_classifications is None: # noqa: E501 + raise ValueError("Invalid value for `app_classifications`, must not be `None`") # noqa: E501 + + self._app_classifications = app_classifications + @property def app_detail_url(self): """Gets the app_detail_url of this V1AppBaseInfo. # noqa: E501 @@ -290,6 +342,81 @@ class V1AppBaseInfo(object): self._download_count = download_count + @property + def effect(self): + """Gets the effect of this V1AppBaseInfo. # noqa: E501 + + 应用效果 # noqa: E501 + + :return: The effect of this V1AppBaseInfo. # noqa: E501 + :rtype: str + """ + return self._effect + + @effect.setter + def effect(self, effect): + """Sets the effect of this V1AppBaseInfo. + + 应用效果 # noqa: E501 + + :param effect: The effect of this V1AppBaseInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and effect is None: # noqa: E501 + raise ValueError("Invalid value for `effect`, must not be `None`") # noqa: E501 + + self._effect = effect + + @property + def features(self): + """Gets the features of this V1AppBaseInfo. # noqa: E501 + + 应用特点 # noqa: E501 + + :return: The features of this V1AppBaseInfo. # noqa: E501 + :rtype: str + """ + return self._features + + @features.setter + def features(self, features): + """Sets the features of this V1AppBaseInfo. + + 应用特点 # noqa: E501 + + :param features: The features of this V1AppBaseInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and features is None: # noqa: E501 + raise ValueError("Invalid value for `features`, must not be `None`") # noqa: E501 + + self._features = features + + @property + def functional(self): + """Gets the functional of this V1AppBaseInfo. # noqa: E501 + + 应用功能 # noqa: E501 + + :return: The functional of this V1AppBaseInfo. # noqa: E501 + :rtype: str + """ + return self._functional + + @functional.setter + def functional(self, functional): + """Sets the functional of this V1AppBaseInfo. + + 应用功能 # noqa: E501 + + :param functional: The functional of this V1AppBaseInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and functional is None: # noqa: E501 + raise ValueError("Invalid value for `functional`, must not be `None`") # noqa: E501 + + self._functional = functional + @property def install_count(self): """Gets the install_count of this V1AppBaseInfo. # noqa: E501 @@ -515,6 +642,31 @@ class V1AppBaseInfo(object): self._name = name + @property + def phone(self): + """Gets the phone of this V1AppBaseInfo. # noqa: E501 + + 发布人手机号 # noqa: E501 + + :return: The phone of this V1AppBaseInfo. # noqa: E501 + :rtype: str + """ + return self._phone + + @phone.setter + def phone(self, phone): + """Sets the phone of this V1AppBaseInfo. + + 发布人手机号 # noqa: E501 + + :param phone: The phone of this V1AppBaseInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and phone is None: # noqa: E501 + raise ValueError("Invalid value for `phone`, must not be `None`") # noqa: E501 + + self._phone = phone + @property def publish_type(self): """Gets the publish_type of this V1AppBaseInfo. # noqa: E501 @@ -565,6 +717,56 @@ class V1AppBaseInfo(object): self._publish_user = publish_user + @property + def quote(self): + """Gets the quote of this V1AppBaseInfo. # noqa: E501 + + 规格报价 # noqa: E501 + + :return: The quote of this V1AppBaseInfo. # noqa: E501 + :rtype: str + """ + return self._quote + + @quote.setter + def quote(self, quote): + """Sets the quote of this V1AppBaseInfo. + + 规格报价 # noqa: E501 + + :param quote: The quote of this V1AppBaseInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and quote is None: # noqa: E501 + raise ValueError("Invalid value for `quote`, must not be `None`") # noqa: E501 + + self._quote = quote + + @property + def real_name(self): + """Gets the real_name of this V1AppBaseInfo. # noqa: E501 + + 发布人姓名 # noqa: E501 + + :return: The real_name of this V1AppBaseInfo. # noqa: E501 + :rtype: str + """ + return self._real_name + + @real_name.setter + def real_name(self, real_name): + """Sets the real_name of this V1AppBaseInfo. + + 发布人姓名 # noqa: E501 + + :param real_name: The real_name of this V1AppBaseInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and real_name is None: # noqa: E501 + raise ValueError("Invalid value for `real_name`, must not be `None`") # noqa: E501 + + self._real_name = real_name + @property def show_count(self): """Gets the show_count of this V1AppBaseInfo. # noqa: E501 diff --git a/openapi_client/models/v1_app_classifications.py b/openapi_client/models/v1_app_classifications.py new file mode 100644 index 0000000000000000000000000000000000000000..7d322456e9d44077cf08aaa2eed405604510b308 --- /dev/null +++ b/openapi_client/models/v1_app_classifications.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1AppClassifications(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 = { + 'app_classification_id': 'str', + 'app_classification_name': 'str', + 'parent_app_classification_id': 'str' + } + + attribute_map = { + 'app_classification_id': 'appClassificationID', + 'app_classification_name': 'appClassificationName', + 'parent_app_classification_id': 'parentAppClassificationID' + } + + def __init__(self, app_classification_id=None, app_classification_name=None, parent_app_classification_id=None, local_vars_configuration=None): # noqa: E501 + """V1AppClassifications - 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._app_classification_id = None + self._app_classification_name = None + self._parent_app_classification_id = None + self.discriminator = None + + self.app_classification_id = app_classification_id + self.app_classification_name = app_classification_name + self.parent_app_classification_id = parent_app_classification_id + + @property + def app_classification_id(self): + """Gets the app_classification_id of this V1AppClassifications. # noqa: E501 + + 应用分类 ID # noqa: E501 + + :return: The app_classification_id of this V1AppClassifications. # noqa: E501 + :rtype: str + """ + return self._app_classification_id + + @app_classification_id.setter + def app_classification_id(self, app_classification_id): + """Sets the app_classification_id of this V1AppClassifications. + + 应用分类 ID # noqa: E501 + + :param app_classification_id: The app_classification_id of this V1AppClassifications. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and app_classification_id is None: # noqa: E501 + raise ValueError("Invalid value for `app_classification_id`, must not be `None`") # noqa: E501 + + self._app_classification_id = app_classification_id + + @property + def app_classification_name(self): + """Gets the app_classification_name of this V1AppClassifications. # noqa: E501 + + 分类名称 # noqa: E501 + + :return: The app_classification_name of this V1AppClassifications. # noqa: E501 + :rtype: str + """ + return self._app_classification_name + + @app_classification_name.setter + def app_classification_name(self, app_classification_name): + """Sets the app_classification_name of this V1AppClassifications. + + 分类名称 # noqa: E501 + + :param app_classification_name: The app_classification_name of this V1AppClassifications. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and app_classification_name is None: # noqa: E501 + raise ValueError("Invalid value for `app_classification_name`, must not be `None`") # noqa: E501 + + self._app_classification_name = app_classification_name + + @property + def parent_app_classification_id(self): + """Gets the parent_app_classification_id of this V1AppClassifications. # noqa: E501 + + 父级分类 ID # noqa: E501 + + :return: The parent_app_classification_id of this V1AppClassifications. # noqa: E501 + :rtype: str + """ + return self._parent_app_classification_id + + @parent_app_classification_id.setter + def parent_app_classification_id(self, parent_app_classification_id): + """Sets the parent_app_classification_id of this V1AppClassifications. + + 父级分类 ID # noqa: E501 + + :param parent_app_classification_id: The parent_app_classification_id of this V1AppClassifications. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and parent_app_classification_id is None: # noqa: E501 + raise ValueError("Invalid value for `parent_app_classification_id`, must not be `None`") # noqa: E501 + + self._parent_app_classification_id = parent_app_classification_id + + 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, V1AppClassifications): + 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, V1AppClassifications): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_app_create_request.py b/openapi_client/models/v1_app_create_request.py new file mode 100644 index 0000000000000000000000000000000000000000..6d23d2c12f91f59c2052820eb4fbb4daba7fec26 --- /dev/null +++ b/openapi_client/models/v1_app_create_request.py @@ -0,0 +1,313 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1AppCreateRequest(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 = { + 'app_classification_id': 'str', + 'desc': 'str', + 'introduction': 'str', + 'logo': 'str', + 'name': 'str', + 'org_id': 'str', + 'publish_type': 'str', + 'tags': 'list[str]' + } + + attribute_map = { + 'app_classification_id': 'appClassificationID', + 'desc': 'desc', + 'introduction': 'introduction', + 'logo': 'logo', + 'name': 'name', + 'org_id': 'orgID', + 'publish_type': 'publishType', + 'tags': 'tags' + } + + def __init__(self, app_classification_id=None, desc=None, introduction=None, logo=None, name=None, org_id=None, publish_type=None, tags=None, local_vars_configuration=None): # noqa: E501 + """V1AppCreateRequest - 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._app_classification_id = None + self._desc = None + self._introduction = None + self._logo = None + self._name = None + self._org_id = None + self._publish_type = None + self._tags = None + self.discriminator = None + + self.app_classification_id = app_classification_id + self.desc = desc + self.introduction = introduction + self.logo = logo + self.name = name + self.org_id = org_id + self.publish_type = publish_type + self.tags = tags + + @property + def app_classification_id(self): + """Gets the app_classification_id of this V1AppCreateRequest. # noqa: E501 + + + :return: The app_classification_id of this V1AppCreateRequest. # noqa: E501 + :rtype: str + """ + return self._app_classification_id + + @app_classification_id.setter + def app_classification_id(self, app_classification_id): + """Sets the app_classification_id of this V1AppCreateRequest. + + + :param app_classification_id: The app_classification_id of this V1AppCreateRequest. # noqa: E501 + :type app_classification_id: str + """ + if self.local_vars_configuration.client_side_validation and app_classification_id is None: # noqa: E501 + raise ValueError("Invalid value for `app_classification_id`, must not be `None`") # noqa: E501 + + self._app_classification_id = app_classification_id + + @property + def desc(self): + """Gets the desc of this V1AppCreateRequest. # noqa: E501 + + + :return: The desc of this V1AppCreateRequest. # noqa: E501 + :rtype: str + """ + return self._desc + + @desc.setter + def desc(self, desc): + """Sets the desc of this V1AppCreateRequest. + + + :param desc: The desc of this V1AppCreateRequest. # noqa: E501 + :type desc: str + """ + if self.local_vars_configuration.client_side_validation and desc is None: # noqa: E501 + raise ValueError("Invalid value for `desc`, must not be `None`") # noqa: E501 + + self._desc = desc + + @property + def introduction(self): + """Gets the introduction of this V1AppCreateRequest. # noqa: E501 + + + :return: The introduction of this V1AppCreateRequest. # noqa: E501 + :rtype: str + """ + return self._introduction + + @introduction.setter + def introduction(self, introduction): + """Sets the introduction of this V1AppCreateRequest. + + + :param introduction: The introduction of this V1AppCreateRequest. # noqa: E501 + :type introduction: str + """ + if self.local_vars_configuration.client_side_validation and introduction is None: # noqa: E501 + raise ValueError("Invalid value for `introduction`, must not be `None`") # noqa: E501 + + self._introduction = introduction + + @property + def logo(self): + """Gets the logo of this V1AppCreateRequest. # noqa: E501 + + + :return: The logo of this V1AppCreateRequest. # noqa: E501 + :rtype: str + """ + return self._logo + + @logo.setter + def logo(self, logo): + """Sets the logo of this V1AppCreateRequest. + + + :param logo: The logo of this V1AppCreateRequest. # noqa: E501 + :type logo: str + """ + if self.local_vars_configuration.client_side_validation and logo is None: # noqa: E501 + raise ValueError("Invalid value for `logo`, must not be `None`") # noqa: E501 + + self._logo = logo + + @property + def name(self): + """Gets the name of this V1AppCreateRequest. # noqa: E501 + + + :return: The name of this V1AppCreateRequest. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1AppCreateRequest. + + + :param name: The name of this V1AppCreateRequest. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def org_id(self): + """Gets the org_id of this V1AppCreateRequest. # noqa: E501 + + 组织机构 ID # noqa: E501 + + :return: The org_id of this V1AppCreateRequest. # noqa: E501 + :rtype: str + """ + return self._org_id + + @org_id.setter + def org_id(self, org_id): + """Sets the org_id of this V1AppCreateRequest. + + 组织机构 ID # noqa: E501 + + :param org_id: The org_id of this V1AppCreateRequest. # noqa: E501 + :type org_id: str + """ + if self.local_vars_configuration.client_side_validation and org_id is None: # noqa: E501 + raise ValueError("Invalid value for `org_id`, must not be `None`") # noqa: E501 + + self._org_id = org_id + + @property + def publish_type(self): + """Gets the publish_type of this V1AppCreateRequest. # noqa: E501 + + + :return: The publish_type of this V1AppCreateRequest. # noqa: E501 + :rtype: str + """ + return self._publish_type + + @publish_type.setter + def publish_type(self, publish_type): + """Sets the publish_type of this V1AppCreateRequest. + + + :param publish_type: The publish_type of this V1AppCreateRequest. # noqa: E501 + :type publish_type: str + """ + if self.local_vars_configuration.client_side_validation and publish_type is None: # noqa: E501 + raise ValueError("Invalid value for `publish_type`, must not be `None`") # noqa: E501 + + self._publish_type = publish_type + + @property + def tags(self): + """Gets the tags of this V1AppCreateRequest. # noqa: E501 + + + :return: The tags of this V1AppCreateRequest. # noqa: E501 + :rtype: list[str] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this V1AppCreateRequest. + + + :param tags: The tags of this V1AppCreateRequest. # noqa: E501 + :type tags: list[str] + """ + if self.local_vars_configuration.client_side_validation and tags is None: # noqa: E501 + raise ValueError("Invalid value for `tags`, must not be `None`") # noqa: E501 + + self._tags = tags + + 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, V1AppCreateRequest): + 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, V1AppCreateRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_app_detail_info_response.py b/openapi_client/models/v1_app_detail_info_response.py index 4cdc39985332b1eae04db818a00f2a806da4b7b6..65434363df7a2d575e8e16b9fe5f5a1bec916e13 100644 --- a/openapi_client/models/v1_app_detail_info_response.py +++ b/openapi_client/models/v1_app_detail_info_response.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -35,12 +34,16 @@ class V1AppDetailInfoResponse(object): """ openapi_types = { 'app_classification_id': 'str', + 'app_classifications': 'list[V1AppClassifications]', 'app_detail_url': 'str', 'app_key_id': 'str', 'create_time': 'datetime', 'desc': 'str', 'dev_status': 'str', 'download_count': 'int', + 'effect': 'str', + 'features': 'str', + 'functional': 'str', 'install_count': 'int', 'introduction': 'str', 'introduction_html': 'str', @@ -51,8 +54,11 @@ class V1AppDetailInfoResponse(object): 'market_url': 'str', 'name': 'str', 'org_id': 'str', + 'phone': 'str', 'publish_type': 'str', 'publish_user': 'str', + 'quote': 'str', + 'real_name': 'str', 'show_count': 'int', 'start_count': 'int', 'status': 'str', @@ -63,12 +69,16 @@ class V1AppDetailInfoResponse(object): attribute_map = { 'app_classification_id': 'appClassificationID', + 'app_classifications': 'appClassifications', 'app_detail_url': 'appDetailURL', 'app_key_id': 'appKeyID', 'create_time': 'createTime', 'desc': 'desc', 'dev_status': 'devStatus', 'download_count': 'downloadCount', + 'effect': 'effect', + 'features': 'features', + 'functional': 'functional', 'install_count': 'installCount', 'introduction': 'introduction', 'introduction_html': 'introductionHTML', @@ -79,8 +89,11 @@ class V1AppDetailInfoResponse(object): 'market_url': 'marketURL', 'name': 'name', 'org_id': 'orgID', + 'phone': 'phone', 'publish_type': 'publishType', 'publish_user': 'publishUser', + 'quote': 'quote', + 'real_name': 'real_name', 'show_count': 'showCount', 'start_count': 'startCount', 'status': 'status', @@ -89,19 +102,23 @@ class V1AppDetailInfoResponse(object): 'versions': 'versions' } - def __init__(self, app_classification_id=None, app_detail_url=None, app_key_id=None, create_time=None, desc=None, dev_status=None, download_count=None, install_count=None, introduction=None, introduction_html=None, is_official=None, logo=None, market_id=None, market_name=None, market_url=None, name=None, org_id=None, publish_type=None, publish_user=None, show_count=None, start_count=None, status=None, tags=None, update_time=None, versions=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, app_classification_id=None, app_classifications=None, app_detail_url=None, app_key_id=None, create_time=None, desc=None, dev_status=None, download_count=None, effect=None, features=None, functional=None, install_count=None, introduction=None, introduction_html=None, is_official=None, logo=None, market_id=None, market_name=None, market_url=None, name=None, org_id=None, phone=None, publish_type=None, publish_user=None, quote=None, real_name=None, show_count=None, start_count=None, status=None, tags=None, update_time=None, versions=None, local_vars_configuration=None): # noqa: E501 """V1AppDetailInfoResponse - 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._app_classification_id = None + self._app_classifications = None self._app_detail_url = None self._app_key_id = None self._create_time = None self._desc = None self._dev_status = None self._download_count = None + self._effect = None + self._features = None + self._functional = None self._install_count = None self._introduction = None self._introduction_html = None @@ -112,8 +129,11 @@ class V1AppDetailInfoResponse(object): self._market_url = None self._name = None self._org_id = None + self._phone = None self._publish_type = None self._publish_user = None + self._quote = None + self._real_name = None self._show_count = None self._start_count = None self._status = None @@ -123,12 +143,16 @@ class V1AppDetailInfoResponse(object): self.discriminator = None self.app_classification_id = app_classification_id + self.app_classifications = app_classifications self.app_detail_url = app_detail_url self.app_key_id = app_key_id self.create_time = create_time self.desc = desc self.dev_status = dev_status self.download_count = download_count + self.effect = effect + self.features = features + self.functional = functional self.install_count = install_count self.introduction = introduction self.introduction_html = introduction_html @@ -139,8 +163,11 @@ class V1AppDetailInfoResponse(object): self.market_url = market_url self.name = name self.org_id = org_id + self.phone = phone self.publish_type = publish_type self.publish_user = publish_user + self.quote = quote + self.real_name = real_name self.show_count = show_count self.start_count = start_count self.status = status @@ -173,6 +200,31 @@ class V1AppDetailInfoResponse(object): self._app_classification_id = app_classification_id + @property + def app_classifications(self): + """Gets the app_classifications of this V1AppDetailInfoResponse. # noqa: E501 + + 应用所属分类 # noqa: E501 + + :return: The app_classifications of this V1AppDetailInfoResponse. # noqa: E501 + :rtype: list[V1AppClassifications] + """ + return self._app_classifications + + @app_classifications.setter + def app_classifications(self, app_classifications): + """Sets the app_classifications of this V1AppDetailInfoResponse. + + 应用所属分类 # noqa: E501 + + :param app_classifications: The app_classifications of this V1AppDetailInfoResponse. # noqa: E501 + :type: list[V1AppClassifications] + """ + if self.local_vars_configuration.client_side_validation and app_classifications is None: # noqa: E501 + raise ValueError("Invalid value for `app_classifications`, must not be `None`") # noqa: E501 + + self._app_classifications = app_classifications + @property def app_detail_url(self): """Gets the app_detail_url of this V1AppDetailInfoResponse. # noqa: E501 @@ -323,6 +375,81 @@ class V1AppDetailInfoResponse(object): self._download_count = download_count + @property + def effect(self): + """Gets the effect of this V1AppDetailInfoResponse. # noqa: E501 + + 应用效果 # noqa: E501 + + :return: The effect of this V1AppDetailInfoResponse. # noqa: E501 + :rtype: str + """ + return self._effect + + @effect.setter + def effect(self, effect): + """Sets the effect of this V1AppDetailInfoResponse. + + 应用效果 # noqa: E501 + + :param effect: The effect of this V1AppDetailInfoResponse. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and effect is None: # noqa: E501 + raise ValueError("Invalid value for `effect`, must not be `None`") # noqa: E501 + + self._effect = effect + + @property + def features(self): + """Gets the features of this V1AppDetailInfoResponse. # noqa: E501 + + 应用特点 # noqa: E501 + + :return: The features of this V1AppDetailInfoResponse. # noqa: E501 + :rtype: str + """ + return self._features + + @features.setter + def features(self, features): + """Sets the features of this V1AppDetailInfoResponse. + + 应用特点 # noqa: E501 + + :param features: The features of this V1AppDetailInfoResponse. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and features is None: # noqa: E501 + raise ValueError("Invalid value for `features`, must not be `None`") # noqa: E501 + + self._features = features + + @property + def functional(self): + """Gets the functional of this V1AppDetailInfoResponse. # noqa: E501 + + 应用功能 # noqa: E501 + + :return: The functional of this V1AppDetailInfoResponse. # noqa: E501 + :rtype: str + """ + return self._functional + + @functional.setter + def functional(self, functional): + """Sets the functional of this V1AppDetailInfoResponse. + + 应用功能 # noqa: E501 + + :param functional: The functional of this V1AppDetailInfoResponse. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and functional is None: # noqa: E501 + raise ValueError("Invalid value for `functional`, must not be `None`") # noqa: E501 + + self._functional = functional + @property def install_count(self): """Gets the install_count of this V1AppDetailInfoResponse. # noqa: E501 @@ -573,6 +700,31 @@ class V1AppDetailInfoResponse(object): self._org_id = org_id + @property + def phone(self): + """Gets the phone of this V1AppDetailInfoResponse. # noqa: E501 + + 发布人手机号 # noqa: E501 + + :return: The phone of this V1AppDetailInfoResponse. # noqa: E501 + :rtype: str + """ + return self._phone + + @phone.setter + def phone(self, phone): + """Sets the phone of this V1AppDetailInfoResponse. + + 发布人手机号 # noqa: E501 + + :param phone: The phone of this V1AppDetailInfoResponse. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and phone is None: # noqa: E501 + raise ValueError("Invalid value for `phone`, must not be `None`") # noqa: E501 + + self._phone = phone + @property def publish_type(self): """Gets the publish_type of this V1AppDetailInfoResponse. # noqa: E501 @@ -623,6 +775,56 @@ class V1AppDetailInfoResponse(object): self._publish_user = publish_user + @property + def quote(self): + """Gets the quote of this V1AppDetailInfoResponse. # noqa: E501 + + 规格报价 # noqa: E501 + + :return: The quote of this V1AppDetailInfoResponse. # noqa: E501 + :rtype: str + """ + return self._quote + + @quote.setter + def quote(self, quote): + """Sets the quote of this V1AppDetailInfoResponse. + + 规格报价 # noqa: E501 + + :param quote: The quote of this V1AppDetailInfoResponse. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and quote is None: # noqa: E501 + raise ValueError("Invalid value for `quote`, must not be `None`") # noqa: E501 + + self._quote = quote + + @property + def real_name(self): + """Gets the real_name of this V1AppDetailInfoResponse. # noqa: E501 + + 发布人姓名 # noqa: E501 + + :return: The real_name of this V1AppDetailInfoResponse. # noqa: E501 + :rtype: str + """ + return self._real_name + + @real_name.setter + def real_name(self, real_name): + """Sets the real_name of this V1AppDetailInfoResponse. + + 发布人姓名 # noqa: E501 + + :param real_name: The real_name of this V1AppDetailInfoResponse. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and real_name is None: # noqa: E501 + raise ValueError("Invalid value for `real_name`, must not be `None`") # noqa: E501 + + self._real_name = real_name + @property def show_count(self): """Gets the show_count of this V1AppDetailInfoResponse. # noqa: E501 diff --git a/openapi_client/models/v1_app_image_hub_info_response.py b/openapi_client/models/v1_app_image_hub_info_response.py index 990e3f042e0508f188944873aceed5b7b93b7c2b..fe8209b55f2af7ececa289bb77874c1bb0a281fc 100644 --- a/openapi_client/models/v1_app_image_hub_info_response.py +++ b/openapi_client/models/v1_app_image_hub_info_response.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1_app_model_create_request.py b/openapi_client/models/v1_app_model_create_request.py index 841602d3265e85b3ab5c28f6fb87661fb2a71a6c..e0ec495258831daadb6c327a82fa8b92c2d5a09d 100644 --- a/openapi_client/models/v1_app_model_create_request.py +++ b/openapi_client/models/v1_app_model_create_request.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -38,7 +37,6 @@ class V1AppModelCreateRequest(object): 'introduction': 'str', 'logo': 'str', 'name': 'str', - 'org_id': 'str', 'publish_type': 'str', 'tags': 'list[str]' } @@ -48,12 +46,11 @@ class V1AppModelCreateRequest(object): 'introduction': 'introduction', 'logo': 'logo', 'name': 'name', - 'org_id': 'orgID', 'publish_type': 'publishType', 'tags': 'tags' } - def __init__(self, desc=None, introduction=None, logo=None, name=None, org_id=None, publish_type=None, tags=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, desc=None, introduction=None, logo=None, name=None, publish_type=None, tags=None, local_vars_configuration=None): # noqa: E501 """V1AppModelCreateRequest - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -63,7 +60,6 @@ class V1AppModelCreateRequest(object): self._introduction = None self._logo = None self._name = None - self._org_id = None self._publish_type = None self._tags = None self.discriminator = None @@ -72,8 +68,6 @@ class V1AppModelCreateRequest(object): self.introduction = introduction self.logo = logo self.name = name - if org_id is not None: - self.org_id = org_id self.publish_type = publish_type self.tags = tags @@ -177,27 +171,6 @@ class V1AppModelCreateRequest(object): self._name = name - @property - def org_id(self): - """Gets the org_id of this V1AppModelCreateRequest. # noqa: E501 - - - :return: The org_id of this V1AppModelCreateRequest. # noqa: E501 - :rtype: str - """ - return self._org_id - - @org_id.setter - def org_id(self, org_id): - """Sets the org_id of this V1AppModelCreateRequest. - - - :param org_id: The org_id of this V1AppModelCreateRequest. # noqa: E501 - :type: str - """ - - self._org_id = org_id - @property def publish_type(self): """Gets the publish_type of this V1AppModelCreateRequest. # noqa: E501 diff --git a/openapi_client/models/v1_app_update_request.py b/openapi_client/models/v1_app_update_request.py index 0e946a09a46e0f0bacc9a3893bcd7f82507e8e4c..255c058d85ecff3dc959e68525a4fabd329ad550 100644 --- a/openapi_client/models/v1_app_update_request.py +++ b/openapi_client/models/v1_app_update_request.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -35,38 +34,54 @@ class V1AppUpdateRequest(object): """ openapi_types = { 'desc': 'str', + 'effect': 'str', + 'features': 'str', + 'functional': 'str', 'introduction': 'str', 'logo': 'str', 'name': 'str', - 'publish_type': 'str' + 'publish_type': 'str', + 'quote': 'str' } attribute_map = { 'desc': 'desc', + 'effect': 'effect', + 'features': 'features', + 'functional': 'functional', 'introduction': 'introduction', 'logo': 'logo', 'name': 'name', - 'publish_type': 'publishType' + 'publish_type': 'publishType', + 'quote': 'quote' } - def __init__(self, desc=None, introduction=None, logo=None, name=None, publish_type=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, desc=None, effect=None, features=None, functional=None, introduction=None, logo=None, name=None, publish_type=None, quote=None, local_vars_configuration=None): # noqa: E501 """V1AppUpdateRequest - 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._desc = None + self._effect = None + self._features = None + self._functional = None self._introduction = None self._logo = None self._name = None self._publish_type = None + self._quote = None self.discriminator = None self.desc = desc + self.effect = effect + self.features = features + self.functional = functional self.introduction = introduction self.logo = logo self.name = name self.publish_type = publish_type + self.quote = quote @property def desc(self): @@ -91,6 +106,81 @@ class V1AppUpdateRequest(object): self._desc = desc + @property + def effect(self): + """Gets the effect of this V1AppUpdateRequest. # noqa: E501 + + 应用效果 # noqa: E501 + + :return: The effect of this V1AppUpdateRequest. # noqa: E501 + :rtype: str + """ + return self._effect + + @effect.setter + def effect(self, effect): + """Sets the effect of this V1AppUpdateRequest. + + 应用效果 # noqa: E501 + + :param effect: The effect of this V1AppUpdateRequest. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and effect is None: # noqa: E501 + raise ValueError("Invalid value for `effect`, must not be `None`") # noqa: E501 + + self._effect = effect + + @property + def features(self): + """Gets the features of this V1AppUpdateRequest. # noqa: E501 + + 应用特点 # noqa: E501 + + :return: The features of this V1AppUpdateRequest. # noqa: E501 + :rtype: str + """ + return self._features + + @features.setter + def features(self, features): + """Sets the features of this V1AppUpdateRequest. + + 应用特点 # noqa: E501 + + :param features: The features of this V1AppUpdateRequest. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and features is None: # noqa: E501 + raise ValueError("Invalid value for `features`, must not be `None`") # noqa: E501 + + self._features = features + + @property + def functional(self): + """Gets the functional of this V1AppUpdateRequest. # noqa: E501 + + 应用功能 # noqa: E501 + + :return: The functional of this V1AppUpdateRequest. # noqa: E501 + :rtype: str + """ + return self._functional + + @functional.setter + def functional(self, functional): + """Sets the functional of this V1AppUpdateRequest. + + 应用功能 # noqa: E501 + + :param functional: The functional of this V1AppUpdateRequest. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and functional is None: # noqa: E501 + raise ValueError("Invalid value for `functional`, must not be `None`") # noqa: E501 + + self._functional = functional + @property def introduction(self): """Gets the introduction of this V1AppUpdateRequest. # noqa: E501 @@ -183,6 +273,31 @@ class V1AppUpdateRequest(object): self._publish_type = publish_type + @property + def quote(self): + """Gets the quote of this V1AppUpdateRequest. # noqa: E501 + + 规格报价 # noqa: E501 + + :return: The quote of this V1AppUpdateRequest. # noqa: E501 + :rtype: str + """ + return self._quote + + @quote.setter + def quote(self, quote): + """Sets the quote of this V1AppUpdateRequest. + + 规格报价 # noqa: E501 + + :param quote: The quote of this V1AppUpdateRequest. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and quote is None: # noqa: E501 + raise ValueError("Invalid value for `quote`, must not be `None`") # noqa: E501 + + self._quote = quote + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/openapi_client/models/v1_app_version_base.py b/openapi_client/models/v1_app_version_base.py index 4a3b314baaac1d906b6f26b29f9da17074b17301..13b2b4f5c72059092530840117f81e429ae21684 100644 --- a/openapi_client/models/v1_app_version_base.py +++ b/openapi_client/models/v1_app_version_base.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -37,6 +36,7 @@ class V1AppVersionBase(object): 'app_key_id': 'str', 'app_version': 'str', 'app_version_alias': 'str', + 'arch': 'str', 'create_time': 'datetime', 'delivery_mode': 'str', 'desc': 'str', @@ -51,6 +51,7 @@ class V1AppVersionBase(object): 'app_key_id': 'appKeyID', 'app_version': 'appVersion', 'app_version_alias': 'appVersionAlias', + 'arch': 'arch', 'create_time': 'createTime', 'delivery_mode': 'deliveryMode', 'desc': 'desc', @@ -61,7 +62,7 @@ class V1AppVersionBase(object): 'update_version': 'updateVersion' } - def __init__(self, app_key_id=None, app_version=None, app_version_alias=None, create_time=None, delivery_mode=None, desc=None, enable=None, is_plugin=None, rainbond_version=None, update_time=None, update_version=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, app_key_id=None, app_version=None, app_version_alias=None, arch=None, create_time=None, delivery_mode=None, desc=None, enable=None, is_plugin=None, rainbond_version=None, update_time=None, update_version=None, local_vars_configuration=None): # noqa: E501 """V1AppVersionBase - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -70,6 +71,7 @@ class V1AppVersionBase(object): self._app_key_id = None self._app_version = None self._app_version_alias = None + self._arch = None self._create_time = None self._delivery_mode = None self._desc = None @@ -83,6 +85,7 @@ class V1AppVersionBase(object): self.app_key_id = app_key_id self.app_version = app_version self.app_version_alias = app_version_alias + self.arch = arch self.create_time = create_time self.delivery_mode = delivery_mode self.desc = desc @@ -167,6 +170,31 @@ class V1AppVersionBase(object): self._app_version_alias = app_version_alias + @property + def arch(self): + """Gets the arch of this V1AppVersionBase. # noqa: E501 + + 应用架构 # noqa: E501 + + :return: The arch of this V1AppVersionBase. # noqa: E501 + :rtype: str + """ + return self._arch + + @arch.setter + def arch(self, arch): + """Sets the arch of this V1AppVersionBase. + + 应用架构 # noqa: E501 + + :param arch: The arch of this V1AppVersionBase. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and arch is None: # noqa: E501 + raise ValueError("Invalid value for `arch`, must not be `None`") # noqa: E501 + + self._arch = arch + @property def create_time(self): """Gets the create_time of this V1AppVersionBase. # noqa: E501 diff --git a/openapi_client/models/v1_app_version_detail_response.py b/openapi_client/models/v1_app_version_detail_response.py index f41c9b8a714ee82ebbc898e7d3610d444c1a996e..b5cc9866f1eef589c983c92f47c61eae3624351a 100644 --- a/openapi_client/models/v1_app_version_detail_response.py +++ b/openapi_client/models/v1_app_version_detail_response.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -36,6 +35,7 @@ class V1AppVersionDetailResponse(object): openapi_types = { 'app_key_id': 'str', 'app_name': 'str', + 'arch': 'str', 'create_time': 'datetime', 'delivery_mode': 'str', 'description': 'str', @@ -54,6 +54,7 @@ class V1AppVersionDetailResponse(object): attribute_map = { 'app_key_id': 'appKeyID', 'app_name': 'appName', + 'arch': 'arch', 'create_time': 'createTime', 'delivery_mode': 'deliveryMode', 'description': 'description', @@ -69,7 +70,7 @@ class V1AppVersionDetailResponse(object): 'version_alias': 'versionAlias' } - def __init__(self, app_key_id=None, app_name=None, create_time=None, delivery_mode=None, description=None, enable=None, is_plugin=None, market_id=None, rainbond_version=None, template=None, template_type=None, update_time=None, update_version=None, version=None, version_alias=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, app_key_id=None, app_name=None, arch=None, create_time=None, delivery_mode=None, description=None, enable=None, is_plugin=None, market_id=None, rainbond_version=None, template=None, template_type=None, update_time=None, update_version=None, version=None, version_alias=None, local_vars_configuration=None): # noqa: E501 """V1AppVersionDetailResponse - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -77,6 +78,7 @@ class V1AppVersionDetailResponse(object): self._app_key_id = None self._app_name = None + self._arch = None self._create_time = None self._delivery_mode = None self._description = None @@ -94,6 +96,7 @@ class V1AppVersionDetailResponse(object): self.app_key_id = app_key_id self.app_name = app_name + self.arch = arch self.create_time = create_time self.delivery_mode = delivery_mode self.description = description @@ -158,6 +161,31 @@ class V1AppVersionDetailResponse(object): self._app_name = app_name + @property + def arch(self): + """Gets the arch of this V1AppVersionDetailResponse. # noqa: E501 + + 应用架构 # noqa: E501 + + :return: The arch of this V1AppVersionDetailResponse. # noqa: E501 + :rtype: str + """ + return self._arch + + @arch.setter + def arch(self, arch): + """Sets the arch of this V1AppVersionDetailResponse. + + 应用架构 # noqa: E501 + + :param arch: The arch of this V1AppVersionDetailResponse. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and arch is None: # noqa: E501 + raise ValueError("Invalid value for `arch`, must not be `None`") # noqa: E501 + + self._arch = arch + @property def create_time(self): """Gets the create_time of this V1AppVersionDetailResponse. # noqa: E501 diff --git a/openapi_client/models/v1_app_version_list_response.py b/openapi_client/models/v1_app_version_list_response.py index e97c6131f403fca2884916a9eeca11f3a2634f9c..1f536cdb8040f021e79156f027e38d1c98dca293 100644 --- a/openapi_client/models/v1_app_version_list_response.py +++ b/openapi_client/models/v1_app_version_list_response.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1_app_version_request.py b/openapi_client/models/v1_app_version_request.py new file mode 100644 index 0000000000000000000000000000000000000000..5315dc83dab31a96267e7dd15c3adcae8c35cb68 --- /dev/null +++ b/openapi_client/models/v1_app_version_request.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1AppVersionRequest(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 = { + 'app_version': 'str', + 'app_version_alias': 'str', + 'desc': 'str', + 'rainbond_version': 'str', + 'templete': 'str', + 'update_version': 'int' + } + + attribute_map = { + 'app_version': 'appVersion', + 'app_version_alias': 'appVersionAlias', + 'desc': 'desc', + 'rainbond_version': 'rainbondVersion', + 'templete': 'templete', + 'update_version': 'updateVersion' + } + + def __init__(self, app_version=None, app_version_alias=None, desc=None, rainbond_version=None, templete=None, update_version=None, local_vars_configuration=None): # noqa: E501 + """V1AppVersionRequest - 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._app_version = None + self._app_version_alias = None + self._desc = None + self._rainbond_version = None + self._templete = None + self._update_version = None + self.discriminator = None + + self.app_version = app_version + self.app_version_alias = app_version_alias + self.desc = desc + self.rainbond_version = rainbond_version + self.templete = templete + self.update_version = update_version + + @property + def app_version(self): + """Gets the app_version of this V1AppVersionRequest. # noqa: E501 + + + :return: The app_version of this V1AppVersionRequest. # noqa: E501 + :rtype: str + """ + return self._app_version + + @app_version.setter + def app_version(self, app_version): + """Sets the app_version of this V1AppVersionRequest. + + + :param app_version: The app_version of this V1AppVersionRequest. # noqa: E501 + :type app_version: str + """ + if self.local_vars_configuration.client_side_validation and app_version is None: # noqa: E501 + raise ValueError("Invalid value for `app_version`, must not be `None`") # noqa: E501 + + self._app_version = app_version + + @property + def app_version_alias(self): + """Gets the app_version_alias of this V1AppVersionRequest. # noqa: E501 + + + :return: The app_version_alias of this V1AppVersionRequest. # noqa: E501 + :rtype: str + """ + return self._app_version_alias + + @app_version_alias.setter + def app_version_alias(self, app_version_alias): + """Sets the app_version_alias of this V1AppVersionRequest. + + + :param app_version_alias: The app_version_alias of this V1AppVersionRequest. # noqa: E501 + :type app_version_alias: str + """ + if self.local_vars_configuration.client_side_validation and app_version_alias is None: # noqa: E501 + raise ValueError("Invalid value for `app_version_alias`, must not be `None`") # noqa: E501 + + self._app_version_alias = app_version_alias + + @property + def desc(self): + """Gets the desc of this V1AppVersionRequest. # noqa: E501 + + + :return: The desc of this V1AppVersionRequest. # noqa: E501 + :rtype: str + """ + return self._desc + + @desc.setter + def desc(self, desc): + """Sets the desc of this V1AppVersionRequest. + + + :param desc: The desc of this V1AppVersionRequest. # noqa: E501 + :type desc: str + """ + if self.local_vars_configuration.client_side_validation and desc is None: # noqa: E501 + raise ValueError("Invalid value for `desc`, must not be `None`") # noqa: E501 + + self._desc = desc + + @property + def rainbond_version(self): + """Gets the rainbond_version of this V1AppVersionRequest. # noqa: E501 + + + :return: The rainbond_version of this V1AppVersionRequest. # noqa: E501 + :rtype: str + """ + return self._rainbond_version + + @rainbond_version.setter + def rainbond_version(self, rainbond_version): + """Sets the rainbond_version of this V1AppVersionRequest. + + + :param rainbond_version: The rainbond_version of this V1AppVersionRequest. # noqa: E501 + :type rainbond_version: str + """ + if self.local_vars_configuration.client_side_validation and rainbond_version is None: # noqa: E501 + raise ValueError("Invalid value for `rainbond_version`, must not be `None`") # noqa: E501 + + self._rainbond_version = rainbond_version + + @property + def templete(self): + """Gets the templete of this V1AppVersionRequest. # noqa: E501 + + + :return: The templete of this V1AppVersionRequest. # noqa: E501 + :rtype: str + """ + return self._templete + + @templete.setter + def templete(self, templete): + """Sets the templete of this V1AppVersionRequest. + + + :param templete: The templete of this V1AppVersionRequest. # noqa: E501 + :type templete: str + """ + if self.local_vars_configuration.client_side_validation and templete is None: # noqa: E501 + raise ValueError("Invalid value for `templete`, must not be `None`") # noqa: E501 + + self._templete = templete + + @property + def update_version(self): + """Gets the update_version of this V1AppVersionRequest. # noqa: E501 + + + :return: The update_version of this V1AppVersionRequest. # noqa: E501 + :rtype: int + """ + return self._update_version + + @update_version.setter + def update_version(self, update_version): + """Sets the update_version of this V1AppVersionRequest. + + + :param update_version: The update_version of this V1AppVersionRequest. # noqa: E501 + :type update_version: int + """ + if self.local_vars_configuration.client_side_validation and update_version is None: # noqa: E501 + raise ValueError("Invalid value for `update_version`, must not be `None`") # noqa: E501 + + self._update_version = update_version + + 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, V1AppVersionRequest): + 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, V1AppVersionRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_bindable_market.py b/openapi_client/models/v1_bindable_market.py index a1b0cdeb52b0ef2a3b285ef1ed5c1f2c9ecb3727..d13f256e16128899a87880db42501c11227d4e04 100644 --- a/openapi_client/models/v1_bindable_market.py +++ b/openapi_client/models/v1_bindable_market.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1_create_app_paa_s_version_request.py b/openapi_client/models/v1_create_app_paa_s_version_request.py index ecd6e5f03daab627ced7b7af4925b2013668aab0..3ac8bdc816c829b5700bd080f4afa5a71091a16c 100644 --- a/openapi_client/models/v1_create_app_paa_s_version_request.py +++ b/openapi_client/models/v1_create_app_paa_s_version_request.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -34,6 +33,7 @@ class V1CreateAppPaaSVersionRequest(object): and the value is json key in definition. """ openapi_types = { + 'arch': 'str', 'description': 'str', 'is_plugin': 'bool', 'rainbond_version': 'str', @@ -44,6 +44,7 @@ class V1CreateAppPaaSVersionRequest(object): } attribute_map = { + 'arch': 'arch', 'description': 'description', 'is_plugin': 'is_plugin', 'rainbond_version': 'rainbondVersion', @@ -53,12 +54,13 @@ class V1CreateAppPaaSVersionRequest(object): 'version_alias': 'versionAlias' } - def __init__(self, description=None, is_plugin=None, rainbond_version=None, template=None, template_type=None, version=None, version_alias=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, arch=None, description=None, is_plugin=None, rainbond_version=None, template=None, template_type=None, version=None, version_alias=None, local_vars_configuration=None): # noqa: E501 """V1CreateAppPaaSVersionRequest - 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._arch = None self._description = None self._is_plugin = None self._rainbond_version = None @@ -68,6 +70,7 @@ class V1CreateAppPaaSVersionRequest(object): self._version_alias = None self.discriminator = None + self.arch = arch self.description = description self.is_plugin = is_plugin self.rainbond_version = rainbond_version @@ -76,6 +79,29 @@ class V1CreateAppPaaSVersionRequest(object): self.version = version self.version_alias = version_alias + @property + def arch(self): + """Gets the arch of this V1CreateAppPaaSVersionRequest. # noqa: E501 + + + :return: The arch of this V1CreateAppPaaSVersionRequest. # noqa: E501 + :rtype: str + """ + return self._arch + + @arch.setter + def arch(self, arch): + """Sets the arch of this V1CreateAppPaaSVersionRequest. + + + :param arch: The arch of this V1CreateAppPaaSVersionRequest. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and arch is None: # noqa: E501 + raise ValueError("Invalid value for `arch`, must not be `None`") # noqa: E501 + + self._arch = arch + @property def description(self): """Gets the description of this V1CreateAppPaaSVersionRequest. # noqa: E501 diff --git a/openapi_client/models/v1_image_info.py b/openapi_client/models/v1_image_info.py new file mode 100644 index 0000000000000000000000000000000000000000..6630eb9355d9fe9945063e455536c385de8112f6 --- /dev/null +++ b/openapi_client/models/v1_image_info.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1ImageInfo(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 = { + 'hub_password': 'str', + 'hub_url': 'str', + 'hub_user': 'str', + 'is_trust': 'bool', + 'namespace': 'str' + } + + attribute_map = { + 'hub_password': 'hub_password', + 'hub_url': 'hub_url', + 'hub_user': 'hub_user', + 'is_trust': 'is_trust', + 'namespace': 'namespace' + } + + def __init__(self, hub_password=None, hub_url=None, hub_user=None, is_trust=None, namespace=None, local_vars_configuration=None): # noqa: E501 + """V1ImageInfo - 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._hub_password = None + self._hub_url = None + self._hub_user = None + self._is_trust = None + self._namespace = None + self.discriminator = None + + self.hub_password = hub_password + self.hub_url = hub_url + self.hub_user = hub_user + self.is_trust = is_trust + self.namespace = namespace + + @property + def hub_password(self): + """Gets the hub_password of this V1ImageInfo. # noqa: E501 + + + :return: The hub_password of this V1ImageInfo. # noqa: E501 + :rtype: str + """ + return self._hub_password + + @hub_password.setter + def hub_password(self, hub_password): + """Sets the hub_password of this V1ImageInfo. + + + :param hub_password: The hub_password of this V1ImageInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and hub_password is None: # noqa: E501 + raise ValueError("Invalid value for `hub_password`, must not be `None`") # noqa: E501 + + self._hub_password = hub_password + + @property + def hub_url(self): + """Gets the hub_url of this V1ImageInfo. # noqa: E501 + + + :return: The hub_url of this V1ImageInfo. # noqa: E501 + :rtype: str + """ + return self._hub_url + + @hub_url.setter + def hub_url(self, hub_url): + """Sets the hub_url of this V1ImageInfo. + + + :param hub_url: The hub_url of this V1ImageInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and hub_url is None: # noqa: E501 + raise ValueError("Invalid value for `hub_url`, must not be `None`") # noqa: E501 + + self._hub_url = hub_url + + @property + def hub_user(self): + """Gets the hub_user of this V1ImageInfo. # noqa: E501 + + + :return: The hub_user of this V1ImageInfo. # noqa: E501 + :rtype: str + """ + return self._hub_user + + @hub_user.setter + def hub_user(self, hub_user): + """Sets the hub_user of this V1ImageInfo. + + + :param hub_user: The hub_user of this V1ImageInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and hub_user is None: # noqa: E501 + raise ValueError("Invalid value for `hub_user`, must not be `None`") # noqa: E501 + + self._hub_user = hub_user + + @property + def is_trust(self): + """Gets the is_trust of this V1ImageInfo. # noqa: E501 + + + :return: The is_trust of this V1ImageInfo. # noqa: E501 + :rtype: bool + """ + return self._is_trust + + @is_trust.setter + def is_trust(self, is_trust): + """Sets the is_trust of this V1ImageInfo. + + + :param is_trust: The is_trust of this V1ImageInfo. # noqa: E501 + :type: bool + """ + if self.local_vars_configuration.client_side_validation and is_trust is None: # noqa: E501 + raise ValueError("Invalid value for `is_trust`, must not be `None`") # noqa: E501 + + self._is_trust = is_trust + + @property + def namespace(self): + """Gets the namespace of this V1ImageInfo. # noqa: E501 + + + :return: The namespace of this V1ImageInfo. # noqa: E501 + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this V1ImageInfo. + + + :param namespace: The namespace of this V1ImageInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and namespace is None: # noqa: E501 + raise ValueError("Invalid value for `namespace`, must not be `None`") # noqa: E501 + + self._namespace = namespace + + 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, V1ImageInfo): + 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, V1ImageInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_market_info_response.py b/openapi_client/models/v1_market_info_response.py index b2a4d6c980e13ffd25341af205b0a31946820a6e..57014da8519a0648683952ce9504a50654781320 100644 --- a/openapi_client/models/v1_market_info_response.py +++ b/openapi_client/models/v1_market_info_response.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1_market_ui_app_tags_response.py b/openapi_client/models/v1_market_ui_app_tags_response.py index 80a0cae226293ecb79a5f26b92628b0065748329..ef00869ba6a69a0b8e8e7183d6a9d05c68d23e5b 100644 --- a/openapi_client/models/v1_market_ui_app_tags_response.py +++ b/openapi_client/models/v1_market_ui_app_tags_response.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1_store_app_version_template.py b/openapi_client/models/v1_store_app_version_template.py new file mode 100644 index 0000000000000000000000000000000000000000..ddfc22f6a99a77a248e832cbed9e47a9dbc70d63 --- /dev/null +++ b/openapi_client/models/v1_store_app_version_template.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTemplate(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 = { + 'apps': 'list[V1StoreAppVersionTempleteApp]', + 'group_key': 'str', + 'group_name': 'str', + 'group_version': 'str', + 'plugins': 'list[V1StoreAppVersionTempletePlugin]', + 'template_version': 'str' + } + + attribute_map = { + 'apps': 'apps', + 'group_key': 'group_key', + 'group_name': 'group_name', + 'group_version': 'group_version', + 'plugins': 'plugins', + 'template_version': 'template_version' + } + + def __init__(self, apps=None, group_key=None, group_name=None, group_version=None, plugins=None, template_version=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTemplate - 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._apps = None + self._group_key = None + self._group_name = None + self._group_version = None + self._plugins = None + self._template_version = None + self.discriminator = None + + self.apps = apps + self.group_key = group_key + self.group_name = group_name + self.group_version = group_version + if plugins is not None: + self.plugins = plugins + self.template_version = template_version + + @property + def apps(self): + """Gets the apps of this V1StoreAppVersionTemplate. # noqa: E501 + + + :return: The apps of this V1StoreAppVersionTemplate. # noqa: E501 + :rtype: list[V1StoreAppVersionTempleteApp] + """ + return self._apps + + @apps.setter + def apps(self, apps): + """Sets the apps of this V1StoreAppVersionTemplate. + + + :param apps: The apps of this V1StoreAppVersionTemplate. # noqa: E501 + :type: list[V1StoreAppVersionTempleteApp] + """ + if self.local_vars_configuration.client_side_validation and apps is None: # noqa: E501 + raise ValueError("Invalid value for `apps`, must not be `None`") # noqa: E501 + + self._apps = apps + + @property + def group_key(self): + """Gets the group_key of this V1StoreAppVersionTemplate. # noqa: E501 + + + :return: The group_key of this V1StoreAppVersionTemplate. # noqa: E501 + :rtype: str + """ + return self._group_key + + @group_key.setter + def group_key(self, group_key): + """Sets the group_key of this V1StoreAppVersionTemplate. + + + :param group_key: The group_key of this V1StoreAppVersionTemplate. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and group_key is None: # noqa: E501 + raise ValueError("Invalid value for `group_key`, must not be `None`") # noqa: E501 + + self._group_key = group_key + + @property + def group_name(self): + """Gets the group_name of this V1StoreAppVersionTemplate. # noqa: E501 + + + :return: The group_name of this V1StoreAppVersionTemplate. # noqa: E501 + :rtype: str + """ + return self._group_name + + @group_name.setter + def group_name(self, group_name): + """Sets the group_name of this V1StoreAppVersionTemplate. + + + :param group_name: The group_name of this V1StoreAppVersionTemplate. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and group_name is None: # noqa: E501 + raise ValueError("Invalid value for `group_name`, must not be `None`") # noqa: E501 + + self._group_name = group_name + + @property + def group_version(self): + """Gets the group_version of this V1StoreAppVersionTemplate. # noqa: E501 + + + :return: The group_version of this V1StoreAppVersionTemplate. # noqa: E501 + :rtype: str + """ + return self._group_version + + @group_version.setter + def group_version(self, group_version): + """Sets the group_version of this V1StoreAppVersionTemplate. + + + :param group_version: The group_version of this V1StoreAppVersionTemplate. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and group_version is None: # noqa: E501 + raise ValueError("Invalid value for `group_version`, must not be `None`") # noqa: E501 + + self._group_version = group_version + + @property + def plugins(self): + """Gets the plugins of this V1StoreAppVersionTemplate. # noqa: E501 + + + :return: The plugins of this V1StoreAppVersionTemplate. # noqa: E501 + :rtype: list[V1StoreAppVersionTempletePlugin] + """ + return self._plugins + + @plugins.setter + def plugins(self, plugins): + """Sets the plugins of this V1StoreAppVersionTemplate. + + + :param plugins: The plugins of this V1StoreAppVersionTemplate. # noqa: E501 + :type: list[V1StoreAppVersionTempletePlugin] + """ + + self._plugins = plugins + + @property + def template_version(self): + """Gets the template_version of this V1StoreAppVersionTemplate. # noqa: E501 + + + :return: The template_version of this V1StoreAppVersionTemplate. # noqa: E501 + :rtype: str + """ + return self._template_version + + @template_version.setter + def template_version(self, template_version): + """Sets the template_version of this V1StoreAppVersionTemplate. + + + :param template_version: The template_version of this V1StoreAppVersionTemplate. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and template_version is None: # noqa: E501 + raise ValueError("Invalid value for `template_version`, must not be `None`") # noqa: E501 + + self._template_version = template_version + + 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, V1StoreAppVersionTemplate): + 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, V1StoreAppVersionTemplate): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete.py b/openapi_client/models/v1_store_app_version_templete.py new file mode 100644 index 0000000000000000000000000000000000000000..0f48a0be98f8d00b306ed3e1d7070d09c296a889 --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTemplete(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 = { + 'apps': 'list[V1StoreAppVersionTempleteApp]', + 'group_key': 'str', + 'group_name': 'str', + 'group_version': 'str', + 'plugins': 'list[V1StoreAppVersionTempletePlugin]', + 'template_version': 'str' + } + + attribute_map = { + 'apps': 'apps', + 'group_key': 'group_key', + 'group_name': 'group_name', + 'group_version': 'group_version', + 'plugins': 'plugins', + 'template_version': 'template_version' + } + + def __init__(self, apps=None, group_key=None, group_name=None, group_version=None, plugins=None, template_version=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTemplete - 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._apps = None + self._group_key = None + self._group_name = None + self._group_version = None + self._plugins = None + self._template_version = None + self.discriminator = None + + self.apps = apps + self.group_key = group_key + self.group_name = group_name + self.group_version = group_version + if plugins is not None: + self.plugins = plugins + self.template_version = template_version + + @property + def apps(self): + """Gets the apps of this V1StoreAppVersionTemplete. # noqa: E501 + + + :return: The apps of this V1StoreAppVersionTemplete. # noqa: E501 + :rtype: list[V1StoreAppVersionTempleteApp] + """ + return self._apps + + @apps.setter + def apps(self, apps): + """Sets the apps of this V1StoreAppVersionTemplete. + + + :param apps: The apps of this V1StoreAppVersionTemplete. # noqa: E501 + :type apps: list[V1StoreAppVersionTempleteApp] + """ + if self.local_vars_configuration.client_side_validation and apps is None: # noqa: E501 + raise ValueError("Invalid value for `apps`, must not be `None`") # noqa: E501 + + self._apps = apps + + @property + def group_key(self): + """Gets the group_key of this V1StoreAppVersionTemplete. # noqa: E501 + + + :return: The group_key of this V1StoreAppVersionTemplete. # noqa: E501 + :rtype: str + """ + return self._group_key + + @group_key.setter + def group_key(self, group_key): + """Sets the group_key of this V1StoreAppVersionTemplete. + + + :param group_key: The group_key of this V1StoreAppVersionTemplete. # noqa: E501 + :type group_key: str + """ + if self.local_vars_configuration.client_side_validation and group_key is None: # noqa: E501 + raise ValueError("Invalid value for `group_key`, must not be `None`") # noqa: E501 + + self._group_key = group_key + + @property + def group_name(self): + """Gets the group_name of this V1StoreAppVersionTemplete. # noqa: E501 + + + :return: The group_name of this V1StoreAppVersionTemplete. # noqa: E501 + :rtype: str + """ + return self._group_name + + @group_name.setter + def group_name(self, group_name): + """Sets the group_name of this V1StoreAppVersionTemplete. + + + :param group_name: The group_name of this V1StoreAppVersionTemplete. # noqa: E501 + :type group_name: str + """ + if self.local_vars_configuration.client_side_validation and group_name is None: # noqa: E501 + raise ValueError("Invalid value for `group_name`, must not be `None`") # noqa: E501 + + self._group_name = group_name + + @property + def group_version(self): + """Gets the group_version of this V1StoreAppVersionTemplete. # noqa: E501 + + + :return: The group_version of this V1StoreAppVersionTemplete. # noqa: E501 + :rtype: str + """ + return self._group_version + + @group_version.setter + def group_version(self, group_version): + """Sets the group_version of this V1StoreAppVersionTemplete. + + + :param group_version: The group_version of this V1StoreAppVersionTemplete. # noqa: E501 + :type group_version: str + """ + if self.local_vars_configuration.client_side_validation and group_version is None: # noqa: E501 + raise ValueError("Invalid value for `group_version`, must not be `None`") # noqa: E501 + + self._group_version = group_version + + @property + def plugins(self): + """Gets the plugins of this V1StoreAppVersionTemplete. # noqa: E501 + + + :return: The plugins of this V1StoreAppVersionTemplete. # noqa: E501 + :rtype: list[V1StoreAppVersionTempletePlugin] + """ + return self._plugins + + @plugins.setter + def plugins(self, plugins): + """Sets the plugins of this V1StoreAppVersionTemplete. + + + :param plugins: The plugins of this V1StoreAppVersionTemplete. # noqa: E501 + :type plugins: list[V1StoreAppVersionTempletePlugin] + """ + + self._plugins = plugins + + @property + def template_version(self): + """Gets the template_version of this V1StoreAppVersionTemplete. # noqa: E501 + + + :return: The template_version of this V1StoreAppVersionTemplete. # noqa: E501 + :rtype: str + """ + return self._template_version + + @template_version.setter + def template_version(self, template_version): + """Sets the template_version of this V1StoreAppVersionTemplete. + + + :param template_version: The template_version of this V1StoreAppVersionTemplete. # noqa: E501 + :type template_version: str + """ + if self.local_vars_configuration.client_side_validation and template_version is None: # noqa: E501 + raise ValueError("Invalid value for `template_version`, must not be `None`") # noqa: E501 + + self._template_version = template_version + + 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, V1StoreAppVersionTemplete): + 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, V1StoreAppVersionTemplete): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_app.py b/openapi_client/models/v1_store_app_version_templete_app.py new file mode 100644 index 0000000000000000000000000000000000000000..89ba7172bdb3e2b4ebe42867b33edc61b8b26c4b --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_app.py @@ -0,0 +1,902 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempleteApp(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 = { + 'category': 'str', + 'cmd': 'str', + 'dep_service_map_list': 'list[V1StoreAppVersionTempleteAppDepService]', + 'deploy_version': 'str', + 'extend_method': 'str', + 'extend_method_map': 'V1StoreAppVersionTempleteAppExtendMethodRule', + 'image': 'str', + 'language': 'str', + 'memory': 'int', + 'mnt_relation_list': 'list[V1StoreAppVersionTempleteAppShareVolume]', + 'port_map_list': 'list[V1StoreAppVersionTempleteAppPort]', + 'probes': 'list[V1StoreAppVersionTempleteAppProbe]', + 'service_alias': 'str', + 'service_cname': 'str', + 'service_connect_info_map_list': 'list[V1StoreAppVersionTempleteAppEnv]', + 'service_env_map_list': 'list[V1StoreAppVersionTempleteAppEnv]', + 'service_id': 'str', + 'service_image': 'V1ImageInfo', + 'service_key': 'str', + 'service_name': 'str', + 'service_region': 'str', + 'service_related_plugin_config': 'list[V1StoreAppVersionTempleteAppPluginConfig]', + 'service_share_uuid': 'str', + 'service_source': 'str', + 'service_type': 'str', + 'service_volume_map_list': 'list[V1StoreAppVersionTempleteAppVolume]', + 'share_image': 'str', + 'share_type': 'str', + 'tenant_id': 'str', + 'version': 'str' + } + + attribute_map = { + 'category': 'category', + 'cmd': 'cmd', + 'dep_service_map_list': 'dep_service_map_list', + 'deploy_version': 'deploy_version', + 'extend_method': 'extend_method', + 'extend_method_map': 'extend_method_map', + 'image': 'image', + 'language': 'language', + 'memory': 'memory', + 'mnt_relation_list': 'mnt_relation_list', + 'port_map_list': 'port_map_list', + 'probes': 'probes', + 'service_alias': 'service_alias', + 'service_cname': 'service_cname', + 'service_connect_info_map_list': 'service_connect_info_map_list', + 'service_env_map_list': 'service_env_map_list', + 'service_id': 'service_id', + 'service_image': 'service_image', + 'service_key': 'service_key', + 'service_name': 'service_name', + 'service_region': 'service_region', + 'service_related_plugin_config': 'service_related_plugin_config', + 'service_share_uuid': 'service_share_uuid', + 'service_source': 'service_source', + 'service_type': 'service_type', + 'service_volume_map_list': 'service_volume_map_list', + 'share_image': 'share_image', + 'share_type': 'share_type', + 'tenant_id': 'tenant_id', + 'version': 'version' + } + + def __init__(self, category=None, cmd=None, dep_service_map_list=None, deploy_version=None, extend_method=None, extend_method_map=None, image=None, language=None, memory=None, mnt_relation_list=None, port_map_list=None, probes=None, service_alias=None, service_cname=None, service_connect_info_map_list=None, service_env_map_list=None, service_id=None, service_image=None, service_key=None, service_name=None, service_region=None, service_related_plugin_config=None, service_share_uuid=None, service_source=None, service_type=None, service_volume_map_list=None, share_image=None, share_type=None, tenant_id=None, version=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempleteApp - 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._category = None + self._cmd = None + self._dep_service_map_list = None + self._deploy_version = None + self._extend_method = None + self._extend_method_map = None + self._image = None + self._language = None + self._memory = None + self._mnt_relation_list = None + self._port_map_list = None + self._probes = None + self._service_alias = None + self._service_cname = None + self._service_connect_info_map_list = None + self._service_env_map_list = None + self._service_id = None + self._service_image = None + self._service_key = None + self._service_name = None + self._service_region = None + self._service_related_plugin_config = None + self._service_share_uuid = None + self._service_source = None + self._service_type = None + self._service_volume_map_list = None + self._share_image = None + self._share_type = None + self._tenant_id = None + self._version = None + self.discriminator = None + + self.category = category + self.cmd = cmd + self.dep_service_map_list = dep_service_map_list + self.deploy_version = deploy_version + self.extend_method = extend_method + self.extend_method_map = extend_method_map + self.image = image + self.language = language + self.memory = memory + self.mnt_relation_list = mnt_relation_list + self.port_map_list = port_map_list + self.probes = probes + self.service_alias = service_alias + self.service_cname = service_cname + self.service_connect_info_map_list = service_connect_info_map_list + self.service_env_map_list = service_env_map_list + self.service_id = service_id + self.service_image = service_image + self.service_key = service_key + self.service_name = service_name + self.service_region = service_region + if service_related_plugin_config is not None: + self.service_related_plugin_config = service_related_plugin_config + if service_share_uuid is not None: + self.service_share_uuid = service_share_uuid + self.service_source = service_source + self.service_type = service_type + self.service_volume_map_list = service_volume_map_list + self.share_image = share_image + if share_type is not None: + self.share_type = share_type + self.tenant_id = tenant_id + self.version = version + + @property + def category(self): + """Gets the category of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The category of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this V1StoreAppVersionTempleteApp. + + + :param category: The category of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and category is None: # noqa: E501 + raise ValueError("Invalid value for `category`, must not be `None`") # noqa: E501 + + self._category = category + + @property + def cmd(self): + """Gets the cmd of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The cmd of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._cmd + + @cmd.setter + def cmd(self, cmd): + """Sets the cmd of this V1StoreAppVersionTempleteApp. + + + :param cmd: The cmd of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and cmd is None: # noqa: E501 + raise ValueError("Invalid value for `cmd`, must not be `None`") # noqa: E501 + + self._cmd = cmd + + @property + def dep_service_map_list(self): + """Gets the dep_service_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The dep_service_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[V1StoreAppVersionTempleteAppDepService] + """ + return self._dep_service_map_list + + @dep_service_map_list.setter + def dep_service_map_list(self, dep_service_map_list): + """Sets the dep_service_map_list of this V1StoreAppVersionTempleteApp. + + + :param dep_service_map_list: The dep_service_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: list[V1StoreAppVersionTempleteAppDepService] + """ + if self.local_vars_configuration.client_side_validation and dep_service_map_list is None: # noqa: E501 + raise ValueError("Invalid value for `dep_service_map_list`, must not be `None`") # noqa: E501 + + self._dep_service_map_list = dep_service_map_list + + @property + def deploy_version(self): + """Gets the deploy_version of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The deploy_version of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._deploy_version + + @deploy_version.setter + def deploy_version(self, deploy_version): + """Sets the deploy_version of this V1StoreAppVersionTempleteApp. + + + :param deploy_version: The deploy_version of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and deploy_version is None: # noqa: E501 + raise ValueError("Invalid value for `deploy_version`, must not be `None`") # noqa: E501 + + self._deploy_version = deploy_version + + @property + def extend_method(self): + """Gets the extend_method of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The extend_method of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._extend_method + + @extend_method.setter + def extend_method(self, extend_method): + """Sets the extend_method of this V1StoreAppVersionTempleteApp. + + + :param extend_method: The extend_method of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and extend_method is None: # noqa: E501 + raise ValueError("Invalid value for `extend_method`, must not be `None`") # noqa: E501 + + self._extend_method = extend_method + + @property + def extend_method_map(self): + """Gets the extend_method_map of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The extend_method_map of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: V1StoreAppVersionTempleteAppExtendMethodRule + """ + return self._extend_method_map + + @extend_method_map.setter + def extend_method_map(self, extend_method_map): + """Sets the extend_method_map of this V1StoreAppVersionTempleteApp. + + + :param extend_method_map: The extend_method_map of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: V1StoreAppVersionTempleteAppExtendMethodRule + """ + if self.local_vars_configuration.client_side_validation and extend_method_map is None: # noqa: E501 + raise ValueError("Invalid value for `extend_method_map`, must not be `None`") # noqa: E501 + + self._extend_method_map = extend_method_map + + @property + def image(self): + """Gets the image of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The image of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """Sets the image of this V1StoreAppVersionTempleteApp. + + + :param image: The image of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and image is None: # noqa: E501 + raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501 + + self._image = image + + @property + def language(self): + """Gets the language of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The language of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this V1StoreAppVersionTempleteApp. + + + :param language: The language of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and language is None: # noqa: E501 + raise ValueError("Invalid value for `language`, must not be `None`") # noqa: E501 + + self._language = language + + @property + def memory(self): + """Gets the memory of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The memory of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: int + """ + return self._memory + + @memory.setter + def memory(self, memory): + """Sets the memory of this V1StoreAppVersionTempleteApp. + + + :param memory: The memory of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and memory is None: # noqa: E501 + raise ValueError("Invalid value for `memory`, must not be `None`") # noqa: E501 + + self._memory = memory + + @property + def mnt_relation_list(self): + """Gets the mnt_relation_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The mnt_relation_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[V1StoreAppVersionTempleteAppShareVolume] + """ + return self._mnt_relation_list + + @mnt_relation_list.setter + def mnt_relation_list(self, mnt_relation_list): + """Sets the mnt_relation_list of this V1StoreAppVersionTempleteApp. + + + :param mnt_relation_list: The mnt_relation_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: list[V1StoreAppVersionTempleteAppShareVolume] + """ + if self.local_vars_configuration.client_side_validation and mnt_relation_list is None: # noqa: E501 + raise ValueError("Invalid value for `mnt_relation_list`, must not be `None`") # noqa: E501 + + self._mnt_relation_list = mnt_relation_list + + @property + def port_map_list(self): + """Gets the port_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The port_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[V1StoreAppVersionTempleteAppPort] + """ + return self._port_map_list + + @port_map_list.setter + def port_map_list(self, port_map_list): + """Sets the port_map_list of this V1StoreAppVersionTempleteApp. + + + :param port_map_list: The port_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: list[V1StoreAppVersionTempleteAppPort] + """ + if self.local_vars_configuration.client_side_validation and port_map_list is None: # noqa: E501 + raise ValueError("Invalid value for `port_map_list`, must not be `None`") # noqa: E501 + + self._port_map_list = port_map_list + + @property + def probes(self): + """Gets the probes of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The probes of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[V1StoreAppVersionTempleteAppProbe] + """ + return self._probes + + @probes.setter + def probes(self, probes): + """Sets the probes of this V1StoreAppVersionTempleteApp. + + + :param probes: The probes of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: list[V1StoreAppVersionTempleteAppProbe] + """ + if self.local_vars_configuration.client_side_validation and probes is None: # noqa: E501 + raise ValueError("Invalid value for `probes`, must not be `None`") # noqa: E501 + + self._probes = probes + + @property + def service_alias(self): + """Gets the service_alias of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_alias of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_alias + + @service_alias.setter + def service_alias(self, service_alias): + """Sets the service_alias of this V1StoreAppVersionTempleteApp. + + + :param service_alias: The service_alias of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_alias is None: # noqa: E501 + raise ValueError("Invalid value for `service_alias`, must not be `None`") # noqa: E501 + + self._service_alias = service_alias + + @property + def service_cname(self): + """Gets the service_cname of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_cname of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_cname + + @service_cname.setter + def service_cname(self, service_cname): + """Sets the service_cname of this V1StoreAppVersionTempleteApp. + + + :param service_cname: The service_cname of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_cname is None: # noqa: E501 + raise ValueError("Invalid value for `service_cname`, must not be `None`") # noqa: E501 + + self._service_cname = service_cname + + @property + def service_connect_info_map_list(self): + """Gets the service_connect_info_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_connect_info_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[V1StoreAppVersionTempleteAppEnv] + """ + return self._service_connect_info_map_list + + @service_connect_info_map_list.setter + def service_connect_info_map_list(self, service_connect_info_map_list): + """Sets the service_connect_info_map_list of this V1StoreAppVersionTempleteApp. + + + :param service_connect_info_map_list: The service_connect_info_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: list[V1StoreAppVersionTempleteAppEnv] + """ + if self.local_vars_configuration.client_side_validation and service_connect_info_map_list is None: # noqa: E501 + raise ValueError("Invalid value for `service_connect_info_map_list`, must not be `None`") # noqa: E501 + + self._service_connect_info_map_list = service_connect_info_map_list + + @property + def service_env_map_list(self): + """Gets the service_env_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_env_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[V1StoreAppVersionTempleteAppEnv] + """ + return self._service_env_map_list + + @service_env_map_list.setter + def service_env_map_list(self, service_env_map_list): + """Sets the service_env_map_list of this V1StoreAppVersionTempleteApp. + + + :param service_env_map_list: The service_env_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: list[V1StoreAppVersionTempleteAppEnv] + """ + if self.local_vars_configuration.client_side_validation and service_env_map_list is None: # noqa: E501 + raise ValueError("Invalid value for `service_env_map_list`, must not be `None`") # noqa: E501 + + self._service_env_map_list = service_env_map_list + + @property + def service_id(self): + """Gets the service_id of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_id of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_id + + @service_id.setter + def service_id(self, service_id): + """Sets the service_id of this V1StoreAppVersionTempleteApp. + + + :param service_id: The service_id of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_id is None: # noqa: E501 + raise ValueError("Invalid value for `service_id`, must not be `None`") # noqa: E501 + + self._service_id = service_id + + @property + def service_image(self): + """Gets the service_image of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_image of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: V1ImageInfo + """ + return self._service_image + + @service_image.setter + def service_image(self, service_image): + """Sets the service_image of this V1StoreAppVersionTempleteApp. + + + :param service_image: The service_image of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: V1ImageInfo + """ + if self.local_vars_configuration.client_side_validation and service_image is None: # noqa: E501 + raise ValueError("Invalid value for `service_image`, must not be `None`") # noqa: E501 + + self._service_image = service_image + + @property + def service_key(self): + """Gets the service_key of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_key of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_key + + @service_key.setter + def service_key(self, service_key): + """Sets the service_key of this V1StoreAppVersionTempleteApp. + + + :param service_key: The service_key of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_key is None: # noqa: E501 + raise ValueError("Invalid value for `service_key`, must not be `None`") # noqa: E501 + + self._service_key = service_key + + @property + def service_name(self): + """Gets the service_name of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_name of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_name + + @service_name.setter + def service_name(self, service_name): + """Sets the service_name of this V1StoreAppVersionTempleteApp. + + + :param service_name: The service_name of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_name is None: # noqa: E501 + raise ValueError("Invalid value for `service_name`, must not be `None`") # noqa: E501 + + self._service_name = service_name + + @property + def service_region(self): + """Gets the service_region of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_region of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_region + + @service_region.setter + def service_region(self, service_region): + """Sets the service_region of this V1StoreAppVersionTempleteApp. + + + :param service_region: The service_region of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_region is None: # noqa: E501 + raise ValueError("Invalid value for `service_region`, must not be `None`") # noqa: E501 + + self._service_region = service_region + + @property + def service_related_plugin_config(self): + """Gets the service_related_plugin_config of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_related_plugin_config of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[V1StoreAppVersionTempleteAppPluginConfig] + """ + return self._service_related_plugin_config + + @service_related_plugin_config.setter + def service_related_plugin_config(self, service_related_plugin_config): + """Sets the service_related_plugin_config of this V1StoreAppVersionTempleteApp. + + + :param service_related_plugin_config: The service_related_plugin_config of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: list[V1StoreAppVersionTempleteAppPluginConfig] + """ + + self._service_related_plugin_config = service_related_plugin_config + + @property + def service_share_uuid(self): + """Gets the service_share_uuid of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_share_uuid of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_share_uuid + + @service_share_uuid.setter + def service_share_uuid(self, service_share_uuid): + """Sets the service_share_uuid of this V1StoreAppVersionTempleteApp. + + + :param service_share_uuid: The service_share_uuid of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + + self._service_share_uuid = service_share_uuid + + @property + def service_source(self): + """Gets the service_source of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_source of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_source + + @service_source.setter + def service_source(self, service_source): + """Sets the service_source of this V1StoreAppVersionTempleteApp. + + + :param service_source: The service_source of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_source is None: # noqa: E501 + raise ValueError("Invalid value for `service_source`, must not be `None`") # noqa: E501 + + self._service_source = service_source + + @property + def service_type(self): + """Gets the service_type of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_type of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_type + + @service_type.setter + def service_type(self, service_type): + """Sets the service_type of this V1StoreAppVersionTempleteApp. + + + :param service_type: The service_type of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_type is None: # noqa: E501 + raise ValueError("Invalid value for `service_type`, must not be `None`") # noqa: E501 + + self._service_type = service_type + + @property + def service_volume_map_list(self): + """Gets the service_volume_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_volume_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[V1StoreAppVersionTempleteAppVolume] + """ + return self._service_volume_map_list + + @service_volume_map_list.setter + def service_volume_map_list(self, service_volume_map_list): + """Sets the service_volume_map_list of this V1StoreAppVersionTempleteApp. + + + :param service_volume_map_list: The service_volume_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: list[V1StoreAppVersionTempleteAppVolume] + """ + if self.local_vars_configuration.client_side_validation and service_volume_map_list is None: # noqa: E501 + raise ValueError("Invalid value for `service_volume_map_list`, must not be `None`") # noqa: E501 + + self._service_volume_map_list = service_volume_map_list + + @property + def share_image(self): + """Gets the share_image of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The share_image of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._share_image + + @share_image.setter + def share_image(self, share_image): + """Sets the share_image of this V1StoreAppVersionTempleteApp. + + + :param share_image: The share_image of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and share_image is None: # noqa: E501 + raise ValueError("Invalid value for `share_image`, must not be `None`") # noqa: E501 + + self._share_image = share_image + + @property + def share_type(self): + """Gets the share_type of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The share_type of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._share_type + + @share_type.setter + def share_type(self, share_type): + """Sets the share_type of this V1StoreAppVersionTempleteApp. + + + :param share_type: The share_type of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + + self._share_type = share_type + + @property + def tenant_id(self): + """Gets the tenant_id of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The tenant_id of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._tenant_id + + @tenant_id.setter + def tenant_id(self, tenant_id): + """Sets the tenant_id of this V1StoreAppVersionTempleteApp. + + + :param tenant_id: The tenant_id of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and tenant_id is None: # noqa: E501 + raise ValueError("Invalid value for `tenant_id`, must not be `None`") # noqa: E501 + + self._tenant_id = tenant_id + + @property + def version(self): + """Gets the version of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The version of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this V1StoreAppVersionTempleteApp. + + + :param version: The version of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and version is None: # noqa: E501 + raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 + + self._version = version + + 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, V1StoreAppVersionTempleteApp): + 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, V1StoreAppVersionTempleteApp): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_app_dep_service.py b/openapi_client/models/v1_store_app_version_templete_app_dep_service.py new file mode 100644 index 0000000000000000000000000000000000000000..fce1b11ba7da96074470543c597388935b01edfe --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_app_dep_service.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempleteAppDepService(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 = { + 'dep_service_key': 'str' + } + + attribute_map = { + 'dep_service_key': 'dep_service_key' + } + + def __init__(self, dep_service_key=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempleteAppDepService - 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._dep_service_key = None + self.discriminator = None + + self.dep_service_key = dep_service_key + + @property + def dep_service_key(self): + """Gets the dep_service_key of this V1StoreAppVersionTempleteAppDepService. # noqa: E501 + + + :return: The dep_service_key of this V1StoreAppVersionTempleteAppDepService. # noqa: E501 + :rtype: str + """ + return self._dep_service_key + + @dep_service_key.setter + def dep_service_key(self, dep_service_key): + """Sets the dep_service_key of this V1StoreAppVersionTempleteAppDepService. + + + :param dep_service_key: The dep_service_key of this V1StoreAppVersionTempleteAppDepService. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and dep_service_key is None: # noqa: E501 + raise ValueError("Invalid value for `dep_service_key`, must not be `None`") # noqa: E501 + + self._dep_service_key = dep_service_key + + 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, V1StoreAppVersionTempleteAppDepService): + 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, V1StoreAppVersionTempleteAppDepService): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_app_env.py b/openapi_client/models/v1_store_app_version_templete_app_env.py new file mode 100644 index 0000000000000000000000000000000000000000..21201bb421306ab1690be4f8816327d0ba17631b --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_app_env.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempleteAppEnv(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 = { + 'attr_name': 'str', + 'attr_value': 'str', + 'is_change': 'bool', + 'name': 'str' + } + + attribute_map = { + 'attr_name': 'attr_name', + 'attr_value': 'attr_value', + 'is_change': 'is_change', + 'name': 'name' + } + + def __init__(self, attr_name=None, attr_value=None, is_change=None, name=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempleteAppEnv - 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._attr_name = None + self._attr_value = None + self._is_change = None + self._name = None + self.discriminator = None + + self.attr_name = attr_name + self.attr_value = attr_value + self.is_change = is_change + self.name = name + + @property + def attr_name(self): + """Gets the attr_name of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + + + :return: The attr_name of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + :rtype: str + """ + return self._attr_name + + @attr_name.setter + def attr_name(self, attr_name): + """Sets the attr_name of this V1StoreAppVersionTempleteAppEnv. + + + :param attr_name: The attr_name of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and attr_name is None: # noqa: E501 + raise ValueError("Invalid value for `attr_name`, must not be `None`") # noqa: E501 + + self._attr_name = attr_name + + @property + def attr_value(self): + """Gets the attr_value of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + + + :return: The attr_value of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + :rtype: str + """ + return self._attr_value + + @attr_value.setter + def attr_value(self, attr_value): + """Sets the attr_value of this V1StoreAppVersionTempleteAppEnv. + + + :param attr_value: The attr_value of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and attr_value is None: # noqa: E501 + raise ValueError("Invalid value for `attr_value`, must not be `None`") # noqa: E501 + + self._attr_value = attr_value + + @property + def is_change(self): + """Gets the is_change of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + + + :return: The is_change of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + :rtype: bool + """ + return self._is_change + + @is_change.setter + def is_change(self, is_change): + """Sets the is_change of this V1StoreAppVersionTempleteAppEnv. + + + :param is_change: The is_change of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + :type: bool + """ + if self.local_vars_configuration.client_side_validation and is_change is None: # noqa: E501 + raise ValueError("Invalid value for `is_change`, must not be `None`") # noqa: E501 + + self._is_change = is_change + + @property + def name(self): + """Gets the name of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + + + :return: The name of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1StoreAppVersionTempleteAppEnv. + + + :param name: The name of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + 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, V1StoreAppVersionTempleteAppEnv): + 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, V1StoreAppVersionTempleteAppEnv): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_app_extend_method_rule.py b/openapi_client/models/v1_store_app_version_templete_app_extend_method_rule.py new file mode 100644 index 0000000000000000000000000000000000000000..20238b0675d41240b3312799b8edcf5de25a32ce --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_app_extend_method_rule.py @@ -0,0 +1,284 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempleteAppExtendMethodRule(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 = { + 'is_restart': 'int', + 'max_memory': 'int', + 'max_node': 'int', + 'min_memory': 'int', + 'min_node': 'int', + 'step_memory': 'int', + 'step_node': 'int' + } + + attribute_map = { + 'is_restart': 'is_restart', + 'max_memory': 'max_memory', + 'max_node': 'max_node', + 'min_memory': 'min_memory', + 'min_node': 'min_node', + 'step_memory': 'step_memory', + 'step_node': 'step_node' + } + + def __init__(self, is_restart=None, max_memory=None, max_node=None, min_memory=None, min_node=None, step_memory=None, step_node=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempleteAppExtendMethodRule - 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._is_restart = None + self._max_memory = None + self._max_node = None + self._min_memory = None + self._min_node = None + self._step_memory = None + self._step_node = None + self.discriminator = None + + self.is_restart = is_restart + self.max_memory = max_memory + self.max_node = max_node + self.min_memory = min_memory + self.min_node = min_node + self.step_memory = step_memory + self.step_node = step_node + + @property + def is_restart(self): + """Gets the is_restart of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The is_restart of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._is_restart + + @is_restart.setter + def is_restart(self, is_restart): + """Sets the is_restart of this V1StoreAppVersionTempleteAppExtendMethodRule. + + + :param is_restart: The is_restart of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and is_restart is None: # noqa: E501 + raise ValueError("Invalid value for `is_restart`, must not be `None`") # noqa: E501 + + self._is_restart = is_restart + + @property + def max_memory(self): + """Gets the max_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The max_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._max_memory + + @max_memory.setter + def max_memory(self, max_memory): + """Sets the max_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. + + + :param max_memory: The max_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and max_memory is None: # noqa: E501 + raise ValueError("Invalid value for `max_memory`, must not be `None`") # noqa: E501 + + self._max_memory = max_memory + + @property + def max_node(self): + """Gets the max_node of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The max_node of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._max_node + + @max_node.setter + def max_node(self, max_node): + """Sets the max_node of this V1StoreAppVersionTempleteAppExtendMethodRule. + + + :param max_node: The max_node of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and max_node is None: # noqa: E501 + raise ValueError("Invalid value for `max_node`, must not be `None`") # noqa: E501 + + self._max_node = max_node + + @property + def min_memory(self): + """Gets the min_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The min_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._min_memory + + @min_memory.setter + def min_memory(self, min_memory): + """Sets the min_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. + + + :param min_memory: The min_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and min_memory is None: # noqa: E501 + raise ValueError("Invalid value for `min_memory`, must not be `None`") # noqa: E501 + + self._min_memory = min_memory + + @property + def min_node(self): + """Gets the min_node of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The min_node of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._min_node + + @min_node.setter + def min_node(self, min_node): + """Sets the min_node of this V1StoreAppVersionTempleteAppExtendMethodRule. + + + :param min_node: The min_node of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and min_node is None: # noqa: E501 + raise ValueError("Invalid value for `min_node`, must not be `None`") # noqa: E501 + + self._min_node = min_node + + @property + def step_memory(self): + """Gets the step_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The step_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._step_memory + + @step_memory.setter + def step_memory(self, step_memory): + """Sets the step_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. + + + :param step_memory: The step_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and step_memory is None: # noqa: E501 + raise ValueError("Invalid value for `step_memory`, must not be `None`") # noqa: E501 + + self._step_memory = step_memory + + @property + def step_node(self): + """Gets the step_node of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The step_node of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._step_node + + @step_node.setter + def step_node(self, step_node): + """Sets the step_node of this V1StoreAppVersionTempleteAppExtendMethodRule. + + + :param step_node: The step_node of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and step_node is None: # noqa: E501 + raise ValueError("Invalid value for `step_node`, must not be `None`") # noqa: E501 + + self._step_node = step_node + + 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, V1StoreAppVersionTempleteAppExtendMethodRule): + 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, V1StoreAppVersionTempleteAppExtendMethodRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_app_plugin_config.py b/openapi_client/models/v1_store_app_version_templete_app_plugin_config.py new file mode 100644 index 0000000000000000000000000000000000000000..84b89c10aaadbfc6ac3ef46b1b1bd3404515a634 --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_app_plugin_config.py @@ -0,0 +1,338 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempleteAppPluginConfig(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 = { + 'id': 'int', + 'attr': 'list[object]', + 'build_version': 'str', + 'create_time': 'str', + 'plugin_id': 'str', + 'plugin_key': 'str', + 'plugin_status': 'bool', + 'service_id': 'str', + 'service_meta_type': 'str' + } + + attribute_map = { + 'id': 'ID', + 'attr': 'attr', + 'build_version': 'build_version', + 'create_time': 'create_time', + 'plugin_id': 'plugin_id', + 'plugin_key': 'plugin_key', + 'plugin_status': 'plugin_status', + 'service_id': 'service_id', + 'service_meta_type': 'service_meta_type' + } + + def __init__(self, id=None, attr=None, build_version=None, create_time=None, plugin_id=None, plugin_key=None, plugin_status=None, service_id=None, service_meta_type=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempleteAppPluginConfig - 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._id = None + self._attr = None + self._build_version = None + self._create_time = None + self._plugin_id = None + self._plugin_key = None + self._plugin_status = None + self._service_id = None + self._service_meta_type = None + self.discriminator = None + + self.id = id + self.attr = attr + self.build_version = build_version + self.create_time = create_time + self.plugin_id = plugin_id + self.plugin_key = plugin_key + self.plugin_status = plugin_status + self.service_id = service_id + self.service_meta_type = service_meta_type + + @property + def id(self): + """Gets the id of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The id of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this V1StoreAppVersionTempleteAppPluginConfig. + + + :param id: The id of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def attr(self): + """Gets the attr of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The attr of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: list[object] + """ + return self._attr + + @attr.setter + def attr(self, attr): + """Sets the attr of this V1StoreAppVersionTempleteAppPluginConfig. + + + :param attr: The attr of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type: list[object] + """ + if self.local_vars_configuration.client_side_validation and attr is None: # noqa: E501 + raise ValueError("Invalid value for `attr`, must not be `None`") # noqa: E501 + + self._attr = attr + + @property + def build_version(self): + """Gets the build_version of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The build_version of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._build_version + + @build_version.setter + def build_version(self, build_version): + """Sets the build_version of this V1StoreAppVersionTempleteAppPluginConfig. + + + :param build_version: The build_version of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and build_version is None: # noqa: E501 + raise ValueError("Invalid value for `build_version`, must not be `None`") # noqa: E501 + + self._build_version = build_version + + @property + def create_time(self): + """Gets the create_time of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The create_time of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this V1StoreAppVersionTempleteAppPluginConfig. + + + :param create_time: The create_time of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and create_time is None: # noqa: E501 + raise ValueError("Invalid value for `create_time`, must not be `None`") # noqa: E501 + + self._create_time = create_time + + @property + def plugin_id(self): + """Gets the plugin_id of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The plugin_id of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._plugin_id + + @plugin_id.setter + def plugin_id(self, plugin_id): + """Sets the plugin_id of this V1StoreAppVersionTempleteAppPluginConfig. + + + :param plugin_id: The plugin_id of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and plugin_id is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_id`, must not be `None`") # noqa: E501 + + self._plugin_id = plugin_id + + @property + def plugin_key(self): + """Gets the plugin_key of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The plugin_key of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._plugin_key + + @plugin_key.setter + def plugin_key(self, plugin_key): + """Sets the plugin_key of this V1StoreAppVersionTempleteAppPluginConfig. + + + :param plugin_key: The plugin_key of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and plugin_key is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_key`, must not be `None`") # noqa: E501 + + self._plugin_key = plugin_key + + @property + def plugin_status(self): + """Gets the plugin_status of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The plugin_status of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: bool + """ + return self._plugin_status + + @plugin_status.setter + def plugin_status(self, plugin_status): + """Sets the plugin_status of this V1StoreAppVersionTempleteAppPluginConfig. + + + :param plugin_status: The plugin_status of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type: bool + """ + if self.local_vars_configuration.client_side_validation and plugin_status is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_status`, must not be `None`") # noqa: E501 + + self._plugin_status = plugin_status + + @property + def service_id(self): + """Gets the service_id of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The service_id of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._service_id + + @service_id.setter + def service_id(self, service_id): + """Sets the service_id of this V1StoreAppVersionTempleteAppPluginConfig. + + + :param service_id: The service_id of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_id is None: # noqa: E501 + raise ValueError("Invalid value for `service_id`, must not be `None`") # noqa: E501 + + self._service_id = service_id + + @property + def service_meta_type(self): + """Gets the service_meta_type of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The service_meta_type of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._service_meta_type + + @service_meta_type.setter + def service_meta_type(self, service_meta_type): + """Sets the service_meta_type of this V1StoreAppVersionTempleteAppPluginConfig. + + + :param service_meta_type: The service_meta_type of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_meta_type is None: # noqa: E501 + raise ValueError("Invalid value for `service_meta_type`, must not be `None`") # noqa: E501 + + self._service_meta_type = service_meta_type + + 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, V1StoreAppVersionTempleteAppPluginConfig): + 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, V1StoreAppVersionTempleteAppPluginConfig): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_app_port.py b/openapi_client/models/v1_store_app_version_templete_app_port.py new file mode 100644 index 0000000000000000000000000000000000000000..febb0c94e01a3795f6be0b25d21397963f2417c9 --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_app_port.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempleteAppPort(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 = { + 'container_port': 'int', + 'is_inner_service': 'bool', + 'is_outer_service': 'bool', + 'port_alias': 'str', + 'protocol': 'str', + 'tenant_id': 'str' + } + + attribute_map = { + 'container_port': 'container_port', + 'is_inner_service': 'is_inner_service', + 'is_outer_service': 'is_outer_service', + 'port_alias': 'port_alias', + 'protocol': 'protocol', + 'tenant_id': 'tenant_id' + } + + def __init__(self, container_port=None, is_inner_service=None, is_outer_service=None, port_alias=None, protocol=None, tenant_id=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempleteAppPort - 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._container_port = None + self._is_inner_service = None + self._is_outer_service = None + self._port_alias = None + self._protocol = None + self._tenant_id = None + self.discriminator = None + + self.container_port = container_port + self.is_inner_service = is_inner_service + self.is_outer_service = is_outer_service + self.port_alias = port_alias + self.protocol = protocol + self.tenant_id = tenant_id + + @property + def container_port(self): + """Gets the container_port of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The container_port of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: int + """ + return self._container_port + + @container_port.setter + def container_port(self, container_port): + """Sets the container_port of this V1StoreAppVersionTempleteAppPort. + + + :param container_port: The container_port of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and container_port is None: # noqa: E501 + raise ValueError("Invalid value for `container_port`, must not be `None`") # noqa: E501 + + self._container_port = container_port + + @property + def is_inner_service(self): + """Gets the is_inner_service of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The is_inner_service of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: bool + """ + return self._is_inner_service + + @is_inner_service.setter + def is_inner_service(self, is_inner_service): + """Sets the is_inner_service of this V1StoreAppVersionTempleteAppPort. + + + :param is_inner_service: The is_inner_service of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :type: bool + """ + if self.local_vars_configuration.client_side_validation and is_inner_service is None: # noqa: E501 + raise ValueError("Invalid value for `is_inner_service`, must not be `None`") # noqa: E501 + + self._is_inner_service = is_inner_service + + @property + def is_outer_service(self): + """Gets the is_outer_service of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The is_outer_service of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: bool + """ + return self._is_outer_service + + @is_outer_service.setter + def is_outer_service(self, is_outer_service): + """Sets the is_outer_service of this V1StoreAppVersionTempleteAppPort. + + + :param is_outer_service: The is_outer_service of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :type: bool + """ + if self.local_vars_configuration.client_side_validation and is_outer_service is None: # noqa: E501 + raise ValueError("Invalid value for `is_outer_service`, must not be `None`") # noqa: E501 + + self._is_outer_service = is_outer_service + + @property + def port_alias(self): + """Gets the port_alias of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The port_alias of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: str + """ + return self._port_alias + + @port_alias.setter + def port_alias(self, port_alias): + """Sets the port_alias of this V1StoreAppVersionTempleteAppPort. + + + :param port_alias: The port_alias of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and port_alias is None: # noqa: E501 + raise ValueError("Invalid value for `port_alias`, must not be `None`") # noqa: E501 + + self._port_alias = port_alias + + @property + def protocol(self): + """Gets the protocol of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The protocol of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this V1StoreAppVersionTempleteAppPort. + + + :param protocol: The protocol of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and protocol is None: # noqa: E501 + raise ValueError("Invalid value for `protocol`, must not be `None`") # noqa: E501 + + self._protocol = protocol + + @property + def tenant_id(self): + """Gets the tenant_id of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The tenant_id of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: str + """ + return self._tenant_id + + @tenant_id.setter + def tenant_id(self, tenant_id): + """Sets the tenant_id of this V1StoreAppVersionTempleteAppPort. + + + :param tenant_id: The tenant_id of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and tenant_id is None: # noqa: E501 + raise ValueError("Invalid value for `tenant_id`, must not be `None`") # noqa: E501 + + self._tenant_id = tenant_id + + 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, V1StoreAppVersionTempleteAppPort): + 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, V1StoreAppVersionTempleteAppPort): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_app_probe.py b/openapi_client/models/v1_store_app_version_templete_app_probe.py new file mode 100644 index 0000000000000000000000000000000000000000..2b7c5080c8c952160a92611d749466fa05765b0a --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_app_probe.py @@ -0,0 +1,500 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempleteAppProbe(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 = { + 'id': 'int', + 'cmd': 'str', + 'failure_threshold': 'int', + 'http_header': 'str', + 'initial_delay_second': 'int', + 'is_used': 'bool', + 'mode': 'str', + 'path': 'str', + 'period_second': 'int', + 'port': 'int', + 'probe_id': 'str', + 'scheme': 'str', + 'service_id': 'str', + 'success_threshold': 'int', + 'timeout_second': 'int' + } + + attribute_map = { + 'id': 'ID', + 'cmd': 'cmd', + 'failure_threshold': 'failure_threshold', + 'http_header': 'http_header', + 'initial_delay_second': 'initial_delay_second', + 'is_used': 'is_used', + 'mode': 'mode', + 'path': 'path', + 'period_second': 'period_second', + 'port': 'port', + 'probe_id': 'probe_id', + 'scheme': 'scheme', + 'service_id': 'service_id', + 'success_threshold': 'success_threshold', + 'timeout_second': 'timeout_second' + } + + def __init__(self, id=None, cmd=None, failure_threshold=None, http_header=None, initial_delay_second=None, is_used=None, mode=None, path=None, period_second=None, port=None, probe_id=None, scheme=None, service_id=None, success_threshold=None, timeout_second=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempleteAppProbe - 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._id = None + self._cmd = None + self._failure_threshold = None + self._http_header = None + self._initial_delay_second = None + self._is_used = None + self._mode = None + self._path = None + self._period_second = None + self._port = None + self._probe_id = None + self._scheme = None + self._service_id = None + self._success_threshold = None + self._timeout_second = None + self.discriminator = None + + self.id = id + self.cmd = cmd + self.failure_threshold = failure_threshold + self.http_header = http_header + self.initial_delay_second = initial_delay_second + self.is_used = is_used + self.mode = mode + self.path = path + self.period_second = period_second + self.port = port + self.probe_id = probe_id + self.scheme = scheme + self.service_id = service_id + self.success_threshold = success_threshold + self.timeout_second = timeout_second + + @property + def id(self): + """Gets the id of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The id of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this V1StoreAppVersionTempleteAppProbe. + + + :param id: The id of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def cmd(self): + """Gets the cmd of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The cmd of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._cmd + + @cmd.setter + def cmd(self, cmd): + """Sets the cmd of this V1StoreAppVersionTempleteAppProbe. + + + :param cmd: The cmd of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and cmd is None: # noqa: E501 + raise ValueError("Invalid value for `cmd`, must not be `None`") # noqa: E501 + + self._cmd = cmd + + @property + def failure_threshold(self): + """Gets the failure_threshold of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The failure_threshold of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._failure_threshold + + @failure_threshold.setter + def failure_threshold(self, failure_threshold): + """Sets the failure_threshold of this V1StoreAppVersionTempleteAppProbe. + + + :param failure_threshold: The failure_threshold of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and failure_threshold is None: # noqa: E501 + raise ValueError("Invalid value for `failure_threshold`, must not be `None`") # noqa: E501 + + self._failure_threshold = failure_threshold + + @property + def http_header(self): + """Gets the http_header of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The http_header of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._http_header + + @http_header.setter + def http_header(self, http_header): + """Sets the http_header of this V1StoreAppVersionTempleteAppProbe. + + + :param http_header: The http_header of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and http_header is None: # noqa: E501 + raise ValueError("Invalid value for `http_header`, must not be `None`") # noqa: E501 + + self._http_header = http_header + + @property + def initial_delay_second(self): + """Gets the initial_delay_second of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The initial_delay_second of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._initial_delay_second + + @initial_delay_second.setter + def initial_delay_second(self, initial_delay_second): + """Sets the initial_delay_second of this V1StoreAppVersionTempleteAppProbe. + + + :param initial_delay_second: The initial_delay_second of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and initial_delay_second is None: # noqa: E501 + raise ValueError("Invalid value for `initial_delay_second`, must not be `None`") # noqa: E501 + + self._initial_delay_second = initial_delay_second + + @property + def is_used(self): + """Gets the is_used of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The is_used of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: bool + """ + return self._is_used + + @is_used.setter + def is_used(self, is_used): + """Sets the is_used of this V1StoreAppVersionTempleteAppProbe. + + + :param is_used: The is_used of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: bool + """ + if self.local_vars_configuration.client_side_validation and is_used is None: # noqa: E501 + raise ValueError("Invalid value for `is_used`, must not be `None`") # noqa: E501 + + self._is_used = is_used + + @property + def mode(self): + """Gets the mode of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The mode of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this V1StoreAppVersionTempleteAppProbe. + + + :param mode: The mode of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and mode is None: # noqa: E501 + raise ValueError("Invalid value for `mode`, must not be `None`") # noqa: E501 + + self._mode = mode + + @property + def path(self): + """Gets the path of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The path of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this V1StoreAppVersionTempleteAppProbe. + + + :param path: The path of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 + + self._path = path + + @property + def period_second(self): + """Gets the period_second of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The period_second of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._period_second + + @period_second.setter + def period_second(self, period_second): + """Sets the period_second of this V1StoreAppVersionTempleteAppProbe. + + + :param period_second: The period_second of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and period_second is None: # noqa: E501 + raise ValueError("Invalid value for `period_second`, must not be `None`") # noqa: E501 + + self._period_second = period_second + + @property + def port(self): + """Gets the port of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The port of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this V1StoreAppVersionTempleteAppProbe. + + + :param port: The port of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and port is None: # noqa: E501 + raise ValueError("Invalid value for `port`, must not be `None`") # noqa: E501 + + self._port = port + + @property + def probe_id(self): + """Gets the probe_id of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The probe_id of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._probe_id + + @probe_id.setter + def probe_id(self, probe_id): + """Sets the probe_id of this V1StoreAppVersionTempleteAppProbe. + + + :param probe_id: The probe_id of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and probe_id is None: # noqa: E501 + raise ValueError("Invalid value for `probe_id`, must not be `None`") # noqa: E501 + + self._probe_id = probe_id + + @property + def scheme(self): + """Gets the scheme of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The scheme of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._scheme + + @scheme.setter + def scheme(self, scheme): + """Sets the scheme of this V1StoreAppVersionTempleteAppProbe. + + + :param scheme: The scheme of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and scheme is None: # noqa: E501 + raise ValueError("Invalid value for `scheme`, must not be `None`") # noqa: E501 + + self._scheme = scheme + + @property + def service_id(self): + """Gets the service_id of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The service_id of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._service_id + + @service_id.setter + def service_id(self, service_id): + """Sets the service_id of this V1StoreAppVersionTempleteAppProbe. + + + :param service_id: The service_id of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_id is None: # noqa: E501 + raise ValueError("Invalid value for `service_id`, must not be `None`") # noqa: E501 + + self._service_id = service_id + + @property + def success_threshold(self): + """Gets the success_threshold of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The success_threshold of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._success_threshold + + @success_threshold.setter + def success_threshold(self, success_threshold): + """Sets the success_threshold of this V1StoreAppVersionTempleteAppProbe. + + + :param success_threshold: The success_threshold of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and success_threshold is None: # noqa: E501 + raise ValueError("Invalid value for `success_threshold`, must not be `None`") # noqa: E501 + + self._success_threshold = success_threshold + + @property + def timeout_second(self): + """Gets the timeout_second of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The timeout_second of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._timeout_second + + @timeout_second.setter + def timeout_second(self, timeout_second): + """Sets the timeout_second of this V1StoreAppVersionTempleteAppProbe. + + + :param timeout_second: The timeout_second of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and timeout_second is None: # noqa: E501 + raise ValueError("Invalid value for `timeout_second`, must not be `None`") # noqa: E501 + + self._timeout_second = timeout_second + + 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, V1StoreAppVersionTempleteAppProbe): + 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, V1StoreAppVersionTempleteAppProbe): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_app_share_volume.py b/openapi_client/models/v1_store_app_version_templete_app_share_volume.py new file mode 100644 index 0000000000000000000000000000000000000000..cd54eeca9af1a70a8f984e1624b9782326012169 --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_app_share_volume.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempleteAppShareVolume(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 = { + 'mnt_dir': 'str', + 'mnt_name': 'str', + 'service_share_uuid': 'str' + } + + attribute_map = { + 'mnt_dir': 'mnt_dir', + 'mnt_name': 'mnt_name', + 'service_share_uuid': 'service_share_uuid' + } + + def __init__(self, mnt_dir=None, mnt_name=None, service_share_uuid=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempleteAppShareVolume - 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._mnt_dir = None + self._mnt_name = None + self._service_share_uuid = None + self.discriminator = None + + self.mnt_dir = mnt_dir + self.mnt_name = mnt_name + self.service_share_uuid = service_share_uuid + + @property + def mnt_dir(self): + """Gets the mnt_dir of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + + + :return: The mnt_dir of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + :rtype: str + """ + return self._mnt_dir + + @mnt_dir.setter + def mnt_dir(self, mnt_dir): + """Sets the mnt_dir of this V1StoreAppVersionTempleteAppShareVolume. + + + :param mnt_dir: The mnt_dir of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and mnt_dir is None: # noqa: E501 + raise ValueError("Invalid value for `mnt_dir`, must not be `None`") # noqa: E501 + + self._mnt_dir = mnt_dir + + @property + def mnt_name(self): + """Gets the mnt_name of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + + + :return: The mnt_name of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + :rtype: str + """ + return self._mnt_name + + @mnt_name.setter + def mnt_name(self, mnt_name): + """Sets the mnt_name of this V1StoreAppVersionTempleteAppShareVolume. + + + :param mnt_name: The mnt_name of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and mnt_name is None: # noqa: E501 + raise ValueError("Invalid value for `mnt_name`, must not be `None`") # noqa: E501 + + self._mnt_name = mnt_name + + @property + def service_share_uuid(self): + """Gets the service_share_uuid of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + + + :return: The service_share_uuid of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + :rtype: str + """ + return self._service_share_uuid + + @service_share_uuid.setter + def service_share_uuid(self, service_share_uuid): + """Sets the service_share_uuid of this V1StoreAppVersionTempleteAppShareVolume. + + + :param service_share_uuid: The service_share_uuid of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_share_uuid is None: # noqa: E501 + raise ValueError("Invalid value for `service_share_uuid`, must not be `None`") # noqa: E501 + + self._service_share_uuid = service_share_uuid + + 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, V1StoreAppVersionTempleteAppShareVolume): + 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, V1StoreAppVersionTempleteAppShareVolume): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_app_volume.py b/openapi_client/models/v1_store_app_version_templete_app_volume.py new file mode 100644 index 0000000000000000000000000000000000000000..20ccf4019bf8ba57b2ab42c760744087eea84435 --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_app_volume.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempleteAppVolume(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 = { + 'access_mode': 'str', + 'file_content': 'str', + 'volume_capacity': 'int', + 'volume_name': 'str', + 'volume_path': 'str', + 'volume_type': 'str' + } + + attribute_map = { + 'access_mode': 'access_mode', + 'file_content': 'file_content', + 'volume_capacity': 'volume_capacity', + 'volume_name': 'volume_name', + 'volume_path': 'volume_path', + 'volume_type': 'volume_type' + } + + def __init__(self, access_mode=None, file_content=None, volume_capacity=None, volume_name=None, volume_path=None, volume_type=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempleteAppVolume - 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._access_mode = None + self._file_content = None + self._volume_capacity = None + self._volume_name = None + self._volume_path = None + self._volume_type = None + self.discriminator = None + + self.access_mode = access_mode + self.file_content = file_content + self.volume_capacity = volume_capacity + self.volume_name = volume_name + self.volume_path = volume_path + self.volume_type = volume_type + + @property + def access_mode(self): + """Gets the access_mode of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The access_mode of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: str + """ + return self._access_mode + + @access_mode.setter + def access_mode(self, access_mode): + """Sets the access_mode of this V1StoreAppVersionTempleteAppVolume. + + + :param access_mode: The access_mode of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and access_mode is None: # noqa: E501 + raise ValueError("Invalid value for `access_mode`, must not be `None`") # noqa: E501 + + self._access_mode = access_mode + + @property + def file_content(self): + """Gets the file_content of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The file_content of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: str + """ + return self._file_content + + @file_content.setter + def file_content(self, file_content): + """Sets the file_content of this V1StoreAppVersionTempleteAppVolume. + + + :param file_content: The file_content of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and file_content is None: # noqa: E501 + raise ValueError("Invalid value for `file_content`, must not be `None`") # noqa: E501 + + self._file_content = file_content + + @property + def volume_capacity(self): + """Gets the volume_capacity of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The volume_capacity of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: int + """ + return self._volume_capacity + + @volume_capacity.setter + def volume_capacity(self, volume_capacity): + """Sets the volume_capacity of this V1StoreAppVersionTempleteAppVolume. + + + :param volume_capacity: The volume_capacity of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and volume_capacity is None: # noqa: E501 + raise ValueError("Invalid value for `volume_capacity`, must not be `None`") # noqa: E501 + + self._volume_capacity = volume_capacity + + @property + def volume_name(self): + """Gets the volume_name of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The volume_name of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """Sets the volume_name of this V1StoreAppVersionTempleteAppVolume. + + + :param volume_name: The volume_name of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and volume_name is None: # noqa: E501 + raise ValueError("Invalid value for `volume_name`, must not be `None`") # noqa: E501 + + self._volume_name = volume_name + + @property + def volume_path(self): + """Gets the volume_path of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The volume_path of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: str + """ + return self._volume_path + + @volume_path.setter + def volume_path(self, volume_path): + """Sets the volume_path of this V1StoreAppVersionTempleteAppVolume. + + + :param volume_path: The volume_path of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and volume_path is None: # noqa: E501 + raise ValueError("Invalid value for `volume_path`, must not be `None`") # noqa: E501 + + self._volume_path = volume_path + + @property + def volume_type(self): + """Gets the volume_type of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The volume_type of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: str + """ + return self._volume_type + + @volume_type.setter + def volume_type(self, volume_type): + """Sets the volume_type of this V1StoreAppVersionTempleteAppVolume. + + + :param volume_type: The volume_type of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and volume_type is None: # noqa: E501 + raise ValueError("Invalid value for `volume_type`, must not be `None`") # noqa: E501 + + self._volume_type = volume_type + + 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, V1StoreAppVersionTempleteAppVolume): + 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, V1StoreAppVersionTempleteAppVolume): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_plugin.py b/openapi_client/models/v1_store_app_version_templete_plugin.py new file mode 100644 index 0000000000000000000000000000000000000000..70f8f98f2afe0618a0918014cc775b74ece84c1a --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_plugin.py @@ -0,0 +1,553 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempletePlugin(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 = { + 'id': 'int', + 'build_source': 'str', + 'build_version': 'str', + 'category': 'str', + 'code_repo': 'str', + 'config_groups': 'list[V1StoreAppVersionTempletePluginConfigGroup]', + 'create_time': 'str', + 'desc': 'str', + 'image': 'str', + 'origin': 'str', + 'origin_share_id': 'str', + 'plugin_alias': 'str', + 'plugin_id': 'str', + 'plugin_image': 'V1ImageInfo', + 'plugin_key': 'str', + 'plugin_name': 'str', + 'share_image': 'str' + } + + attribute_map = { + 'id': 'ID', + 'build_source': 'build_source', + 'build_version': 'build_version', + 'category': 'category', + 'code_repo': 'code_repo', + 'config_groups': 'config_groups', + 'create_time': 'create_time', + 'desc': 'desc', + 'image': 'image', + 'origin': 'origin', + 'origin_share_id': 'origin_share_id', + 'plugin_alias': 'plugin_alias', + 'plugin_id': 'plugin_id', + 'plugin_image': 'plugin_image', + 'plugin_key': 'plugin_key', + 'plugin_name': 'plugin_name', + 'share_image': 'share_image' + } + + def __init__(self, id=None, build_source=None, build_version=None, category=None, code_repo=None, config_groups=None, create_time=None, desc=None, image=None, origin=None, origin_share_id=None, plugin_alias=None, plugin_id=None, plugin_image=None, plugin_key=None, plugin_name=None, share_image=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempletePlugin - 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._id = None + self._build_source = None + self._build_version = None + self._category = None + self._code_repo = None + self._config_groups = None + self._create_time = None + self._desc = None + self._image = None + self._origin = None + self._origin_share_id = None + self._plugin_alias = None + self._plugin_id = None + self._plugin_image = None + self._plugin_key = None + self._plugin_name = None + self._share_image = None + self.discriminator = None + + self.id = id + self.build_source = build_source + self.build_version = build_version + self.category = category + self.code_repo = code_repo + if config_groups is not None: + self.config_groups = config_groups + self.create_time = create_time + self.desc = desc + self.image = image + self.origin = origin + self.origin_share_id = origin_share_id + self.plugin_alias = plugin_alias + self.plugin_id = plugin_id + self.plugin_image = plugin_image + self.plugin_key = plugin_key + self.plugin_name = plugin_name + self.share_image = share_image + + @property + def id(self): + """Gets the id of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The id of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this V1StoreAppVersionTempletePlugin. + + + :param id: The id of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def build_source(self): + """Gets the build_source of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The build_source of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._build_source + + @build_source.setter + def build_source(self, build_source): + """Sets the build_source of this V1StoreAppVersionTempletePlugin. + + + :param build_source: The build_source of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and build_source is None: # noqa: E501 + raise ValueError("Invalid value for `build_source`, must not be `None`") # noqa: E501 + + self._build_source = build_source + + @property + def build_version(self): + """Gets the build_version of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The build_version of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._build_version + + @build_version.setter + def build_version(self, build_version): + """Sets the build_version of this V1StoreAppVersionTempletePlugin. + + + :param build_version: The build_version of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and build_version is None: # noqa: E501 + raise ValueError("Invalid value for `build_version`, must not be `None`") # noqa: E501 + + self._build_version = build_version + + @property + def category(self): + """Gets the category of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The category of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this V1StoreAppVersionTempletePlugin. + + + :param category: The category of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and category is None: # noqa: E501 + raise ValueError("Invalid value for `category`, must not be `None`") # noqa: E501 + + self._category = category + + @property + def code_repo(self): + """Gets the code_repo of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The code_repo of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._code_repo + + @code_repo.setter + def code_repo(self, code_repo): + """Sets the code_repo of this V1StoreAppVersionTempletePlugin. + + + :param code_repo: The code_repo of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and code_repo is None: # noqa: E501 + raise ValueError("Invalid value for `code_repo`, must not be `None`") # noqa: E501 + + self._code_repo = code_repo + + @property + def config_groups(self): + """Gets the config_groups of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The config_groups of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: list[V1StoreAppVersionTempletePluginConfigGroup] + """ + return self._config_groups + + @config_groups.setter + def config_groups(self, config_groups): + """Sets the config_groups of this V1StoreAppVersionTempletePlugin. + + + :param config_groups: The config_groups of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: list[V1StoreAppVersionTempletePluginConfigGroup] + """ + + self._config_groups = config_groups + + @property + def create_time(self): + """Gets the create_time of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The create_time of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this V1StoreAppVersionTempletePlugin. + + + :param create_time: The create_time of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and create_time is None: # noqa: E501 + raise ValueError("Invalid value for `create_time`, must not be `None`") # noqa: E501 + + self._create_time = create_time + + @property + def desc(self): + """Gets the desc of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The desc of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._desc + + @desc.setter + def desc(self, desc): + """Sets the desc of this V1StoreAppVersionTempletePlugin. + + + :param desc: The desc of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and desc is None: # noqa: E501 + raise ValueError("Invalid value for `desc`, must not be `None`") # noqa: E501 + + self._desc = desc + + @property + def image(self): + """Gets the image of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The image of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """Sets the image of this V1StoreAppVersionTempletePlugin. + + + :param image: The image of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and image is None: # noqa: E501 + raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501 + + self._image = image + + @property + def origin(self): + """Gets the origin of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The origin of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._origin + + @origin.setter + def origin(self, origin): + """Sets the origin of this V1StoreAppVersionTempletePlugin. + + + :param origin: The origin of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and origin is None: # noqa: E501 + raise ValueError("Invalid value for `origin`, must not be `None`") # noqa: E501 + + self._origin = origin + + @property + def origin_share_id(self): + """Gets the origin_share_id of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The origin_share_id of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._origin_share_id + + @origin_share_id.setter + def origin_share_id(self, origin_share_id): + """Sets the origin_share_id of this V1StoreAppVersionTempletePlugin. + + + :param origin_share_id: The origin_share_id of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and origin_share_id is None: # noqa: E501 + raise ValueError("Invalid value for `origin_share_id`, must not be `None`") # noqa: E501 + + self._origin_share_id = origin_share_id + + @property + def plugin_alias(self): + """Gets the plugin_alias of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The plugin_alias of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._plugin_alias + + @plugin_alias.setter + def plugin_alias(self, plugin_alias): + """Sets the plugin_alias of this V1StoreAppVersionTempletePlugin. + + + :param plugin_alias: The plugin_alias of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and plugin_alias is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_alias`, must not be `None`") # noqa: E501 + + self._plugin_alias = plugin_alias + + @property + def plugin_id(self): + """Gets the plugin_id of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The plugin_id of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._plugin_id + + @plugin_id.setter + def plugin_id(self, plugin_id): + """Sets the plugin_id of this V1StoreAppVersionTempletePlugin. + + + :param plugin_id: The plugin_id of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and plugin_id is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_id`, must not be `None`") # noqa: E501 + + self._plugin_id = plugin_id + + @property + def plugin_image(self): + """Gets the plugin_image of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The plugin_image of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: V1ImageInfo + """ + return self._plugin_image + + @plugin_image.setter + def plugin_image(self, plugin_image): + """Sets the plugin_image of this V1StoreAppVersionTempletePlugin. + + + :param plugin_image: The plugin_image of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: V1ImageInfo + """ + if self.local_vars_configuration.client_side_validation and plugin_image is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_image`, must not be `None`") # noqa: E501 + + self._plugin_image = plugin_image + + @property + def plugin_key(self): + """Gets the plugin_key of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The plugin_key of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._plugin_key + + @plugin_key.setter + def plugin_key(self, plugin_key): + """Sets the plugin_key of this V1StoreAppVersionTempletePlugin. + + + :param plugin_key: The plugin_key of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and plugin_key is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_key`, must not be `None`") # noqa: E501 + + self._plugin_key = plugin_key + + @property + def plugin_name(self): + """Gets the plugin_name of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The plugin_name of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._plugin_name + + @plugin_name.setter + def plugin_name(self, plugin_name): + """Sets the plugin_name of this V1StoreAppVersionTempletePlugin. + + + :param plugin_name: The plugin_name of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and plugin_name is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_name`, must not be `None`") # noqa: E501 + + self._plugin_name = plugin_name + + @property + def share_image(self): + """Gets the share_image of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The share_image of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._share_image + + @share_image.setter + def share_image(self, share_image): + """Sets the share_image of this V1StoreAppVersionTempletePlugin. + + + :param share_image: The share_image of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and share_image is None: # noqa: E501 + raise ValueError("Invalid value for `share_image`, must not be `None`") # noqa: E501 + + self._share_image = share_image + + 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, V1StoreAppVersionTempletePlugin): + 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, V1StoreAppVersionTempletePlugin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_plugin_config_group.py b/openapi_client/models/v1_store_app_version_templete_plugin_config_group.py new file mode 100644 index 0000000000000000000000000000000000000000..b99e2dbf119fc9c360a37548c379b9434f80c4b3 --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_plugin_config_group.py @@ -0,0 +1,283 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempletePluginConfigGroup(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 = { + 'id': 'int', + 'build_version': 'str', + 'config_name': 'str', + 'injection': 'str', + 'options': 'list[V1StoreAppVersionTempletePluginConfigGroupOption]', + 'plugin_id': 'str', + 'service_meta_type': 'str' + } + + attribute_map = { + 'id': 'ID', + 'build_version': 'build_version', + 'config_name': 'config_name', + 'injection': 'injection', + 'options': 'options', + 'plugin_id': 'plugin_id', + 'service_meta_type': 'service_meta_type' + } + + def __init__(self, id=None, build_version=None, config_name=None, injection=None, options=None, plugin_id=None, service_meta_type=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempletePluginConfigGroup - 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._id = None + self._build_version = None + self._config_name = None + self._injection = None + self._options = None + self._plugin_id = None + self._service_meta_type = None + self.discriminator = None + + self.id = id + self.build_version = build_version + self.config_name = config_name + self.injection = injection + if options is not None: + self.options = options + self.plugin_id = plugin_id + self.service_meta_type = service_meta_type + + @property + def id(self): + """Gets the id of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The id of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this V1StoreAppVersionTempletePluginConfigGroup. + + + :param id: The id of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def build_version(self): + """Gets the build_version of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The build_version of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: str + """ + return self._build_version + + @build_version.setter + def build_version(self, build_version): + """Sets the build_version of this V1StoreAppVersionTempletePluginConfigGroup. + + + :param build_version: The build_version of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and build_version is None: # noqa: E501 + raise ValueError("Invalid value for `build_version`, must not be `None`") # noqa: E501 + + self._build_version = build_version + + @property + def config_name(self): + """Gets the config_name of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The config_name of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: str + """ + return self._config_name + + @config_name.setter + def config_name(self, config_name): + """Sets the config_name of this V1StoreAppVersionTempletePluginConfigGroup. + + + :param config_name: The config_name of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and config_name is None: # noqa: E501 + raise ValueError("Invalid value for `config_name`, must not be `None`") # noqa: E501 + + self._config_name = config_name + + @property + def injection(self): + """Gets the injection of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The injection of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: str + """ + return self._injection + + @injection.setter + def injection(self, injection): + """Sets the injection of this V1StoreAppVersionTempletePluginConfigGroup. + + + :param injection: The injection of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and injection is None: # noqa: E501 + raise ValueError("Invalid value for `injection`, must not be `None`") # noqa: E501 + + self._injection = injection + + @property + def options(self): + """Gets the options of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The options of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: list[V1StoreAppVersionTempletePluginConfigGroupOption] + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this V1StoreAppVersionTempletePluginConfigGroup. + + + :param options: The options of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type: list[V1StoreAppVersionTempletePluginConfigGroupOption] + """ + + self._options = options + + @property + def plugin_id(self): + """Gets the plugin_id of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The plugin_id of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: str + """ + return self._plugin_id + + @plugin_id.setter + def plugin_id(self, plugin_id): + """Sets the plugin_id of this V1StoreAppVersionTempletePluginConfigGroup. + + + :param plugin_id: The plugin_id of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and plugin_id is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_id`, must not be `None`") # noqa: E501 + + self._plugin_id = plugin_id + + @property + def service_meta_type(self): + """Gets the service_meta_type of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The service_meta_type of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: str + """ + return self._service_meta_type + + @service_meta_type.setter + def service_meta_type(self, service_meta_type): + """Sets the service_meta_type of this V1StoreAppVersionTempletePluginConfigGroup. + + + :param service_meta_type: The service_meta_type of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_meta_type is None: # noqa: E501 + raise ValueError("Invalid value for `service_meta_type`, must not be `None`") # noqa: E501 + + self._service_meta_type = service_meta_type + + 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, V1StoreAppVersionTempletePluginConfigGroup): + 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, V1StoreAppVersionTempletePluginConfigGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_plugin_config_group_option.py b/openapi_client/models/v1_store_app_version_templete_plugin_config_group_option.py new file mode 100644 index 0000000000000000000000000000000000000000..26ae5005eac9a4ce6f99eb10262c0ccbd2ed8ab3 --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_plugin_config_group_option.py @@ -0,0 +1,392 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempletePluginConfigGroupOption(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 = { + 'id': 'int', + 'attr_alt_value': 'str', + 'attr_default_value': 'str', + 'attr_info': 'str', + 'attr_name': 'str', + 'attr_type': 'str', + 'build_version': 'str', + 'is_change': 'bool', + 'plugin_id': 'str', + 'protocol': 'str', + 'service_meta_type': 'str' + } + + attribute_map = { + 'id': 'ID', + 'attr_alt_value': 'attr_alt_value', + 'attr_default_value': 'attr_default_value', + 'attr_info': 'attr_info', + 'attr_name': 'attr_name', + 'attr_type': 'attr_type', + 'build_version': 'build_version', + 'is_change': 'is_change', + 'plugin_id': 'plugin_id', + 'protocol': 'protocol', + 'service_meta_type': 'service_meta_type' + } + + def __init__(self, id=None, attr_alt_value=None, attr_default_value=None, attr_info=None, attr_name=None, attr_type=None, build_version=None, is_change=None, plugin_id=None, protocol=None, service_meta_type=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempletePluginConfigGroupOption - 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._id = None + self._attr_alt_value = None + self._attr_default_value = None + self._attr_info = None + self._attr_name = None + self._attr_type = None + self._build_version = None + self._is_change = None + self._plugin_id = None + self._protocol = None + self._service_meta_type = None + self.discriminator = None + + self.id = id + self.attr_alt_value = attr_alt_value + self.attr_default_value = attr_default_value + self.attr_info = attr_info + self.attr_name = attr_name + self.attr_type = attr_type + self.build_version = build_version + self.is_change = is_change + self.plugin_id = plugin_id + self.protocol = protocol + self.service_meta_type = service_meta_type + + @property + def id(self): + """Gets the id of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The id of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this V1StoreAppVersionTempletePluginConfigGroupOption. + + + :param id: The id of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def attr_alt_value(self): + """Gets the attr_alt_value of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The attr_alt_value of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._attr_alt_value + + @attr_alt_value.setter + def attr_alt_value(self, attr_alt_value): + """Sets the attr_alt_value of this V1StoreAppVersionTempletePluginConfigGroupOption. + + + :param attr_alt_value: The attr_alt_value of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and attr_alt_value is None: # noqa: E501 + raise ValueError("Invalid value for `attr_alt_value`, must not be `None`") # noqa: E501 + + self._attr_alt_value = attr_alt_value + + @property + def attr_default_value(self): + """Gets the attr_default_value of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The attr_default_value of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._attr_default_value + + @attr_default_value.setter + def attr_default_value(self, attr_default_value): + """Sets the attr_default_value of this V1StoreAppVersionTempletePluginConfigGroupOption. + + + :param attr_default_value: The attr_default_value of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and attr_default_value is None: # noqa: E501 + raise ValueError("Invalid value for `attr_default_value`, must not be `None`") # noqa: E501 + + self._attr_default_value = attr_default_value + + @property + def attr_info(self): + """Gets the attr_info of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The attr_info of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._attr_info + + @attr_info.setter + def attr_info(self, attr_info): + """Sets the attr_info of this V1StoreAppVersionTempletePluginConfigGroupOption. + + + :param attr_info: The attr_info of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and attr_info is None: # noqa: E501 + raise ValueError("Invalid value for `attr_info`, must not be `None`") # noqa: E501 + + self._attr_info = attr_info + + @property + def attr_name(self): + """Gets the attr_name of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The attr_name of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._attr_name + + @attr_name.setter + def attr_name(self, attr_name): + """Sets the attr_name of this V1StoreAppVersionTempletePluginConfigGroupOption. + + + :param attr_name: The attr_name of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and attr_name is None: # noqa: E501 + raise ValueError("Invalid value for `attr_name`, must not be `None`") # noqa: E501 + + self._attr_name = attr_name + + @property + def attr_type(self): + """Gets the attr_type of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The attr_type of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._attr_type + + @attr_type.setter + def attr_type(self, attr_type): + """Sets the attr_type of this V1StoreAppVersionTempletePluginConfigGroupOption. + + + :param attr_type: The attr_type of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and attr_type is None: # noqa: E501 + raise ValueError("Invalid value for `attr_type`, must not be `None`") # noqa: E501 + + self._attr_type = attr_type + + @property + def build_version(self): + """Gets the build_version of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The build_version of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._build_version + + @build_version.setter + def build_version(self, build_version): + """Sets the build_version of this V1StoreAppVersionTempletePluginConfigGroupOption. + + + :param build_version: The build_version of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and build_version is None: # noqa: E501 + raise ValueError("Invalid value for `build_version`, must not be `None`") # noqa: E501 + + self._build_version = build_version + + @property + def is_change(self): + """Gets the is_change of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The is_change of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: bool + """ + return self._is_change + + @is_change.setter + def is_change(self, is_change): + """Sets the is_change of this V1StoreAppVersionTempletePluginConfigGroupOption. + + + :param is_change: The is_change of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type: bool + """ + if self.local_vars_configuration.client_side_validation and is_change is None: # noqa: E501 + raise ValueError("Invalid value for `is_change`, must not be `None`") # noqa: E501 + + self._is_change = is_change + + @property + def plugin_id(self): + """Gets the plugin_id of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The plugin_id of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._plugin_id + + @plugin_id.setter + def plugin_id(self, plugin_id): + """Sets the plugin_id of this V1StoreAppVersionTempletePluginConfigGroupOption. + + + :param plugin_id: The plugin_id of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and plugin_id is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_id`, must not be `None`") # noqa: E501 + + self._plugin_id = plugin_id + + @property + def protocol(self): + """Gets the protocol of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The protocol of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this V1StoreAppVersionTempletePluginConfigGroupOption. + + + :param protocol: The protocol of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and protocol is None: # noqa: E501 + raise ValueError("Invalid value for `protocol`, must not be `None`") # noqa: E501 + + self._protocol = protocol + + @property + def service_meta_type(self): + """Gets the service_meta_type of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The service_meta_type of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._service_meta_type + + @service_meta_type.setter + def service_meta_type(self, service_meta_type): + """Sets the service_meta_type of this V1StoreAppVersionTempletePluginConfigGroupOption. + + + :param service_meta_type: The service_meta_type of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_meta_type is None: # noqa: E501 + raise ValueError("Invalid value for `service_meta_type`, must not be `None`") # noqa: E501 + + self._service_meta_type = service_meta_type + + 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, V1StoreAppVersionTempletePluginConfigGroupOption): + 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, V1StoreAppVersionTempletePluginConfigGroupOption): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_user_app_list_response.py b/openapi_client/models/v1_user_app_list_response.py index 626682748930fb34f7da4700b3b1559bca71fdfa..b39ca72f5f5761a2a921b0ea2f5183327a938e3d 100644 --- a/openapi_client/models/v1_user_app_list_response.py +++ b/openapi_client/models/v1_user_app_list_response.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_app_config_group.py b/openapi_client/models/v1alpha1_app_config_group.py index 4ab0d37a224eb972de58ebcdf96d2c979cd1d06c..78efea366fd63b20211f75cdaa92c86e54ce0d11 100644 --- a/openapi_client/models/v1alpha1_app_config_group.py +++ b/openapi_client/models/v1alpha1_app_config_group.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -34,58 +33,58 @@ class V1alpha1AppConfigGroup(object): and the value is json key in definition. """ openapi_types = { - 'component_ids': 'list[str]', + 'component_keys': 'list[str]', 'config_items': 'dict(str, str)', 'injection_type': 'str', 'name': 'str' } attribute_map = { - 'component_ids': 'component_ids', + 'component_keys': 'component_keys', 'config_items': 'config_items', 'injection_type': 'injection_type', 'name': 'name' } - def __init__(self, component_ids=None, config_items=None, injection_type=None, name=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, component_keys=None, config_items=None, injection_type=None, name=None, local_vars_configuration=None): # noqa: E501 """V1alpha1AppConfigGroup - 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._component_ids = None + self._component_keys = None self._config_items = None self._injection_type = None self._name = None self.discriminator = None - self.component_ids = component_ids + self.component_keys = component_keys self.config_items = config_items self.injection_type = injection_type self.name = name @property - def component_ids(self): - """Gets the component_ids of this V1alpha1AppConfigGroup. # noqa: E501 + def component_keys(self): + """Gets the component_keys of this V1alpha1AppConfigGroup. # noqa: E501 - :return: The component_ids of this V1alpha1AppConfigGroup. # noqa: E501 + :return: The component_keys of this V1alpha1AppConfigGroup. # noqa: E501 :rtype: list[str] """ - return self._component_ids + return self._component_keys - @component_ids.setter - def component_ids(self, component_ids): - """Sets the component_ids of this V1alpha1AppConfigGroup. + @component_keys.setter + def component_keys(self, component_keys): + """Sets the component_keys of this V1alpha1AppConfigGroup. - :param component_ids: The component_ids of this V1alpha1AppConfigGroup. # noqa: E501 + :param component_keys: The component_keys of this V1alpha1AppConfigGroup. # noqa: E501 :type: list[str] """ - if self.local_vars_configuration.client_side_validation and component_ids is None: # noqa: E501 - raise ValueError("Invalid value for `component_ids`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and component_keys is None: # noqa: E501 + raise ValueError("Invalid value for `component_keys`, must not be `None`") # noqa: E501 - self._component_ids = component_ids + self._component_keys = component_keys @property def config_items(self): diff --git a/openapi_client/models/v1alpha1_component.py b/openapi_client/models/v1alpha1_component.py index b4d866f737c50138d9af74072e91561ea727d372..0447751719b632a7c8939d55bbf65443e55b6145 100644 --- a/openapi_client/models/v1alpha1_component.py +++ b/openapi_client/models/v1alpha1_component.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -34,9 +33,11 @@ class V1alpha1Component(object): and the value is json key in definition. """ openapi_types = { + 'arch': 'str', 'category': 'str', 'cmd': 'str', 'component_graphs': 'list[V1alpha1ComponentGraph]', + 'component_k8s_attributes': 'list[V1alpha1ComponentK8sAttribute]', 'component_monitors': 'list[V1alpha1ComponentMonitor]', 'cpu': 'int', 'dep_service_map_list': 'list[V1alpha1ComponentDep]', @@ -45,6 +46,7 @@ class V1alpha1Component(object): 'extend_method': 'str', 'extend_method_map': 'V1alpha1ComponentExtendMethodRule', 'image': 'str', + 'k8s_component_name': 'str', 'labels': 'dict(str, str)', 'language': 'str', 'memory': 'int', @@ -70,9 +72,11 @@ class V1alpha1Component(object): } attribute_map = { + 'arch': 'arch', 'category': 'category', 'cmd': 'cmd', 'component_graphs': 'component_graphs', + 'component_k8s_attributes': 'component_k8s_attributes', 'component_monitors': 'component_monitors', 'cpu': 'cpu', 'dep_service_map_list': 'dep_service_map_list', @@ -81,6 +85,7 @@ class V1alpha1Component(object): 'extend_method': 'extend_method', 'extend_method_map': 'extend_method_map', 'image': 'image', + 'k8s_component_name': 'k8s_component_name', 'labels': 'labels', 'language': 'language', 'memory': 'memory', @@ -105,15 +110,17 @@ class V1alpha1Component(object): 'version': 'version' } - def __init__(self, category=None, cmd=None, component_graphs=None, component_monitors=None, cpu=None, dep_service_map_list=None, deploy_version=None, endpoints=None, extend_method=None, extend_method_map=None, image=None, labels=None, language=None, memory=None, mnt_relation_list=None, port_map_list=None, probes=None, service_alias=None, service_cname=None, service_connect_info_map_list=None, service_env_map_list=None, service_id=None, service_image=None, service_key=None, service_name=None, service_related_plugin_config=None, service_share_uuid=None, service_source=None, service_type=None, service_volume_map_list=None, share_image=None, share_type=None, version=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, arch=None, category=None, cmd=None, component_graphs=None, component_k8s_attributes=None, component_monitors=None, cpu=None, dep_service_map_list=None, deploy_version=None, endpoints=None, extend_method=None, extend_method_map=None, image=None, k8s_component_name=None, labels=None, language=None, memory=None, mnt_relation_list=None, port_map_list=None, probes=None, service_alias=None, service_cname=None, service_connect_info_map_list=None, service_env_map_list=None, service_id=None, service_image=None, service_key=None, service_name=None, service_related_plugin_config=None, service_share_uuid=None, service_source=None, service_type=None, service_volume_map_list=None, share_image=None, share_type=None, version=None, local_vars_configuration=None): # noqa: E501 """V1alpha1Component - 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._arch = None self._category = None self._cmd = None self._component_graphs = None + self._component_k8s_attributes = None self._component_monitors = None self._cpu = None self._dep_service_map_list = None @@ -122,6 +129,7 @@ class V1alpha1Component(object): self._extend_method = None self._extend_method_map = None self._image = None + self._k8s_component_name = None self._labels = None self._language = None self._memory = None @@ -146,9 +154,11 @@ class V1alpha1Component(object): self._version = None self.discriminator = None + self.arch = arch self.category = category self.cmd = cmd self.component_graphs = component_graphs + self.component_k8s_attributes = component_k8s_attributes self.component_monitors = component_monitors self.cpu = cpu self.dep_service_map_list = dep_service_map_list @@ -158,6 +168,7 @@ class V1alpha1Component(object): self.extend_method = extend_method self.extend_method_map = extend_method_map self.image = image + self.k8s_component_name = k8s_component_name if labels is not None: self.labels = labels self.language = language @@ -185,6 +196,29 @@ class V1alpha1Component(object): self.share_type = share_type self.version = version + @property + def arch(self): + """Gets the arch of this V1alpha1Component. # noqa: E501 + + + :return: The arch of this V1alpha1Component. # noqa: E501 + :rtype: str + """ + return self._arch + + @arch.setter + def arch(self, arch): + """Sets the arch of this V1alpha1Component. + + + :param arch: The arch of this V1alpha1Component. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and arch is None: # noqa: E501 + raise ValueError("Invalid value for `arch`, must not be `None`") # noqa: E501 + + self._arch = arch + @property def category(self): """Gets the category of this V1alpha1Component. # noqa: E501 @@ -254,6 +288,29 @@ class V1alpha1Component(object): self._component_graphs = component_graphs + @property + def component_k8s_attributes(self): + """Gets the component_k8s_attributes of this V1alpha1Component. # noqa: E501 + + + :return: The component_k8s_attributes of this V1alpha1Component. # noqa: E501 + :rtype: list[V1alpha1ComponentK8sAttribute] + """ + return self._component_k8s_attributes + + @component_k8s_attributes.setter + def component_k8s_attributes(self, component_k8s_attributes): + """Sets the component_k8s_attributes of this V1alpha1Component. + + + :param component_k8s_attributes: The component_k8s_attributes of this V1alpha1Component. # noqa: E501 + :type: list[V1alpha1ComponentK8sAttribute] + """ + if self.local_vars_configuration.client_side_validation and component_k8s_attributes is None: # noqa: E501 + raise ValueError("Invalid value for `component_k8s_attributes`, must not be `None`") # noqa: E501 + + self._component_k8s_attributes = component_k8s_attributes + @property def component_monitors(self): """Gets the component_monitors of this V1alpha1Component. # noqa: E501 @@ -436,6 +493,29 @@ class V1alpha1Component(object): self._image = image + @property + def k8s_component_name(self): + """Gets the k8s_component_name of this V1alpha1Component. # noqa: E501 + + + :return: The k8s_component_name of this V1alpha1Component. # noqa: E501 + :rtype: str + """ + return self._k8s_component_name + + @k8s_component_name.setter + def k8s_component_name(self, k8s_component_name): + """Sets the k8s_component_name of this V1alpha1Component. + + + :param k8s_component_name: The k8s_component_name of this V1alpha1Component. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and k8s_component_name is None: # noqa: E501 + raise ValueError("Invalid value for `k8s_component_name`, must not be `None`") # noqa: E501 + + self._k8s_component_name = k8s_component_name + @property def labels(self): """Gets the labels of this V1alpha1Component. # noqa: E501 diff --git a/openapi_client/models/v1alpha1_component_dep.py b/openapi_client/models/v1alpha1_component_dep.py index d3d789a68494350aa1d8ebb0591f54d5ecf0fd0d..50e781ce35a53ac687bb3076173460796980ac15 100644 --- a/openapi_client/models/v1alpha1_component_dep.py +++ b/openapi_client/models/v1alpha1_component_dep.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_component_env.py b/openapi_client/models/v1alpha1_component_env.py index 3de094ed96aff99d84a6ae1af290ae86e3b7d9d1..a29c10cb53ef89e2c5ebb005470840d9c50e1ceb 100644 --- a/openapi_client/models/v1alpha1_component_env.py +++ b/openapi_client/models/v1alpha1_component_env.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_component_extend_method_rule.py b/openapi_client/models/v1alpha1_component_extend_method_rule.py index 57b8b87330b39b229e5fbab1359a6616d7d3aff0..5acf8344859c0f2e7f4ac26b0394e61f8e1a499a 100644 --- a/openapi_client/models/v1alpha1_component_extend_method_rule.py +++ b/openapi_client/models/v1alpha1_component_extend_method_rule.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_component_graph.py b/openapi_client/models/v1alpha1_component_graph.py index 3c61dc2f8b1d9713c8fd1d62c5cff19c038328c3..7e5fadd4568338c35fdd0007d987504d0927eadc 100644 --- a/openapi_client/models/v1alpha1_component_graph.py +++ b/openapi_client/models/v1alpha1_component_graph.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_component_k8s_attribute.py b/openapi_client/models/v1alpha1_component_k8s_attribute.py new file mode 100644 index 0000000000000000000000000000000000000000..8af1d1bbec32f8ed2c4557088f40c9020851514c --- /dev/null +++ b/openapi_client/models/v1alpha1_component_k8s_attribute.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1alpha1ComponentK8sAttribute(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 = { + 'attribute_value': 'str', + 'component_id': 'str', + 'name': 'str', + 'save_type': 'str' + } + + attribute_map = { + 'attribute_value': 'attribute_value', + 'component_id': 'component_id', + 'name': 'name', + 'save_type': 'save_type' + } + + def __init__(self, attribute_value=None, component_id=None, name=None, save_type=None, local_vars_configuration=None): # noqa: E501 + """V1alpha1ComponentK8sAttribute - 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._attribute_value = None + self._component_id = None + self._name = None + self._save_type = None + self.discriminator = None + + self.attribute_value = attribute_value + self.component_id = component_id + self.name = name + self.save_type = save_type + + @property + def attribute_value(self): + """Gets the attribute_value of this V1alpha1ComponentK8sAttribute. # noqa: E501 + + + :return: The attribute_value of this V1alpha1ComponentK8sAttribute. # noqa: E501 + :rtype: str + """ + return self._attribute_value + + @attribute_value.setter + def attribute_value(self, attribute_value): + """Sets the attribute_value of this V1alpha1ComponentK8sAttribute. + + + :param attribute_value: The attribute_value of this V1alpha1ComponentK8sAttribute. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and attribute_value is None: # noqa: E501 + raise ValueError("Invalid value for `attribute_value`, must not be `None`") # noqa: E501 + + self._attribute_value = attribute_value + + @property + def component_id(self): + """Gets the component_id of this V1alpha1ComponentK8sAttribute. # noqa: E501 + + + :return: The component_id of this V1alpha1ComponentK8sAttribute. # noqa: E501 + :rtype: str + """ + return self._component_id + + @component_id.setter + def component_id(self, component_id): + """Sets the component_id of this V1alpha1ComponentK8sAttribute. + + + :param component_id: The component_id of this V1alpha1ComponentK8sAttribute. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and component_id is None: # noqa: E501 + raise ValueError("Invalid value for `component_id`, must not be `None`") # noqa: E501 + + self._component_id = component_id + + @property + def name(self): + """Gets the name of this V1alpha1ComponentK8sAttribute. # noqa: E501 + + + :return: The name of this V1alpha1ComponentK8sAttribute. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1alpha1ComponentK8sAttribute. + + + :param name: The name of this V1alpha1ComponentK8sAttribute. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def save_type(self): + """Gets the save_type of this V1alpha1ComponentK8sAttribute. # noqa: E501 + + + :return: The save_type of this V1alpha1ComponentK8sAttribute. # noqa: E501 + :rtype: str + """ + return self._save_type + + @save_type.setter + def save_type(self, save_type): + """Sets the save_type of this V1alpha1ComponentK8sAttribute. + + + :param save_type: The save_type of this V1alpha1ComponentK8sAttribute. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and save_type is None: # noqa: E501 + raise ValueError("Invalid value for `save_type`, must not be `None`") # noqa: E501 + + self._save_type = save_type + + 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, V1alpha1ComponentK8sAttribute): + 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, V1alpha1ComponentK8sAttribute): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1alpha1_component_monitor.py b/openapi_client/models/v1alpha1_component_monitor.py index 9ce3be54bbc5c89d7a166a92802c9db514842e8d..2972cc1728e9a94eb72f2e09df846d86ecb30d37 100644 --- a/openapi_client/models/v1alpha1_component_monitor.py +++ b/openapi_client/models/v1alpha1_component_monitor.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_component_plugin_config.py b/openapi_client/models/v1alpha1_component_plugin_config.py index 7d7364b84e49ef781d3627d6ecb31c2464986cb1..606fdd87c527f93a50251665657a84b85fcd3796 100644 --- a/openapi_client/models/v1alpha1_component_plugin_config.py +++ b/openapi_client/models/v1alpha1_component_plugin_config.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_component_port.py b/openapi_client/models/v1alpha1_component_port.py index 7bcc5a7e498be75e5e83a12718476beae1ff46f8..9fbf609a21714e2a32f746f4706cb34071a1843e 100644 --- a/openapi_client/models/v1alpha1_component_port.py +++ b/openapi_client/models/v1alpha1_component_port.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -37,6 +36,7 @@ class V1alpha1ComponentPort(object): 'container_port': 'int', 'is_inner_service': 'bool', 'is_outer_service': 'bool', + 'name': 'str', 'port_alias': 'str', 'protocol': 'str', 'tenant_id': 'str' @@ -46,12 +46,13 @@ class V1alpha1ComponentPort(object): 'container_port': 'container_port', 'is_inner_service': 'is_inner_service', 'is_outer_service': 'is_outer_service', + 'name': 'name', 'port_alias': 'port_alias', 'protocol': 'protocol', 'tenant_id': 'tenant_id' } - def __init__(self, container_port=None, is_inner_service=None, is_outer_service=None, port_alias=None, protocol=None, tenant_id=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, container_port=None, is_inner_service=None, is_outer_service=None, name=None, port_alias=None, protocol=None, tenant_id=None, local_vars_configuration=None): # noqa: E501 """V1alpha1ComponentPort - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -60,6 +61,7 @@ class V1alpha1ComponentPort(object): self._container_port = None self._is_inner_service = None self._is_outer_service = None + self._name = None self._port_alias = None self._protocol = None self._tenant_id = None @@ -68,6 +70,7 @@ class V1alpha1ComponentPort(object): self.container_port = container_port self.is_inner_service = is_inner_service self.is_outer_service = is_outer_service + self.name = name self.port_alias = port_alias self.protocol = protocol self.tenant_id = tenant_id @@ -141,6 +144,29 @@ class V1alpha1ComponentPort(object): self._is_outer_service = is_outer_service + @property + def name(self): + """Gets the name of this V1alpha1ComponentPort. # noqa: E501 + + + :return: The name of this V1alpha1ComponentPort. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1alpha1ComponentPort. + + + :param name: The name of this V1alpha1ComponentPort. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + @property def port_alias(self): """Gets the port_alias of this V1alpha1ComponentPort. # noqa: E501 diff --git a/openapi_client/models/v1alpha1_component_probe.py b/openapi_client/models/v1alpha1_component_probe.py index e67e9bf3740e74ca2cc7222f4cb2fe74c516952a..0fe86a84b3b7bf030bbef611662c74e3e61c8c37 100644 --- a/openapi_client/models/v1alpha1_component_probe.py +++ b/openapi_client/models/v1alpha1_component_probe.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_component_share_volume.py b/openapi_client/models/v1alpha1_component_share_volume.py index d314e20b98b75feccb18a2e190b1387d17a140ba..72e8e196fcb0091f57e9da36698f29918e0d8f6c 100644 --- a/openapi_client/models/v1alpha1_component_share_volume.py +++ b/openapi_client/models/v1alpha1_component_share_volume.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_component_volume.py b/openapi_client/models/v1alpha1_component_volume.py index 478173e0ad124aa642cf50749dc22c6541c9b6d6..0806d906b622d10d5948b6f6a9d52418a5d71967 100644 --- a/openapi_client/models/v1alpha1_component_volume.py +++ b/openapi_client/models/v1alpha1_component_volume.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_endpoints.py b/openapi_client/models/v1alpha1_endpoints.py index 00e4e6416306d8315e7e682f9f250f876ca3a16b..324be5965ba6e346f4b5649944c05fabea85b7eb 100644 --- a/openapi_client/models/v1alpha1_endpoints.py +++ b/openapi_client/models/v1alpha1_endpoints.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_image_info.py b/openapi_client/models/v1alpha1_image_info.py index 9f1b3fc18fa5097c11ed4d195181092576f88eba..773fe5e99ce377ab74f448b9a497e321c1d30160 100644 --- a/openapi_client/models/v1alpha1_image_info.py +++ b/openapi_client/models/v1alpha1_image_info.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_ingress_http_route.py b/openapi_client/models/v1alpha1_ingress_http_route.py index 8bfb679231058a16de37397663b7d226126f53ee..5d19d4f0c5ba710897e8a9f7787359d3085834dc 100644 --- a/openapi_client/models/v1alpha1_ingress_http_route.py +++ b/openapi_client/models/v1alpha1_ingress_http_route.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_ingress_sream_route.py b/openapi_client/models/v1alpha1_ingress_sream_route.py index 49819b7babac2dbd41f12b6826de99d6e50ff70e..62b8a3a5ebd979c45bc2510b931d7d8e99e08f8d 100644 --- a/openapi_client/models/v1alpha1_ingress_sream_route.py +++ b/openapi_client/models/v1alpha1_ingress_sream_route.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_k8s_resource.py b/openapi_client/models/v1alpha1_k8s_resource.py new file mode 100644 index 0000000000000000000000000000000000000000..ee08b0b35e8b4a020f17cd82ab6241c2e7dd1712 --- /dev/null +++ b/openapi_client/models/v1alpha1_k8s_resource.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1alpha1K8sResource(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 = { + 'content': 'str', + 'kind': 'str', + 'name': 'str' + } + + attribute_map = { + 'content': 'content', + 'kind': 'kind', + 'name': 'name' + } + + def __init__(self, content=None, kind=None, name=None, local_vars_configuration=None): # noqa: E501 + """V1alpha1K8sResource - 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._content = None + self._kind = None + self._name = None + self.discriminator = None + + self.content = content + self.kind = kind + self.name = name + + @property + def content(self): + """Gets the content of this V1alpha1K8sResource. # noqa: E501 + + + :return: The content of this V1alpha1K8sResource. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this V1alpha1K8sResource. + + + :param content: The content of this V1alpha1K8sResource. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and content is None: # noqa: E501 + raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501 + + self._content = content + + @property + def kind(self): + """Gets the kind of this V1alpha1K8sResource. # noqa: E501 + + + :return: The kind of this V1alpha1K8sResource. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1alpha1K8sResource. + + + :param kind: The kind of this V1alpha1K8sResource. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501 + raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 + + self._kind = kind + + @property + def name(self): + """Gets the name of this V1alpha1K8sResource. # noqa: E501 + + + :return: The name of this V1alpha1K8sResource. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1alpha1K8sResource. + + + :param name: The name of this V1alpha1K8sResource. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + 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, V1alpha1K8sResource): + 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, V1alpha1K8sResource): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1alpha1_plugin.py b/openapi_client/models/v1alpha1_plugin.py index 09c2e5fc872a102b6abd0b248324ff8c62c7f7e7..0a71b4c88412f136bf4ed145eb5de74097c15d81 100644 --- a/openapi_client/models/v1alpha1_plugin.py +++ b/openapi_client/models/v1alpha1_plugin.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -34,7 +33,6 @@ class V1alpha1Plugin(object): and the value is json key in definition. """ openapi_types = { - 'id': 'int', 'build_source': 'str', 'build_version': 'str', 'category': 'str', @@ -54,7 +52,6 @@ class V1alpha1Plugin(object): } attribute_map = { - 'id': 'ID', 'build_source': 'build_source', 'build_version': 'build_version', 'category': 'category', @@ -73,13 +70,12 @@ class V1alpha1Plugin(object): 'share_image': 'share_image' } - def __init__(self, id=None, build_source=None, build_version=None, category=None, code_repo=None, config_groups=None, create_time=None, desc=None, image=None, origin=None, origin_share_id=None, plugin_alias=None, plugin_id=None, plugin_image=None, plugin_key=None, plugin_name=None, share_image=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, build_source=None, build_version=None, category=None, code_repo=None, config_groups=None, create_time=None, desc=None, image=None, origin=None, origin_share_id=None, plugin_alias=None, plugin_id=None, plugin_image=None, plugin_key=None, plugin_name=None, share_image=None, local_vars_configuration=None): # noqa: E501 """V1alpha1Plugin - 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._id = None self._build_source = None self._build_version = None self._category = None @@ -98,7 +94,6 @@ class V1alpha1Plugin(object): self._share_image = None self.discriminator = None - self.id = id self.build_source = build_source self.build_version = build_version self.category = category @@ -117,29 +112,6 @@ class V1alpha1Plugin(object): self.plugin_name = plugin_name self.share_image = share_image - @property - def id(self): - """Gets the id of this V1alpha1Plugin. # noqa: E501 - - - :return: The id of this V1alpha1Plugin. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this V1alpha1Plugin. - - - :param id: The id of this V1alpha1Plugin. # noqa: E501 - :type: int - """ - if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - @property def build_source(self): """Gets the build_source of this V1alpha1Plugin. # noqa: E501 diff --git a/openapi_client/models/v1alpha1_plugin_config_group.py b/openapi_client/models/v1alpha1_plugin_config_group.py index 527e2f7b18d1fb32529a013b752f53deade95705..7ca37967952299b03fd6eae7b4ba5d871235a7c8 100644 --- a/openapi_client/models/v1alpha1_plugin_config_group.py +++ b/openapi_client/models/v1alpha1_plugin_config_group.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -34,7 +33,6 @@ class V1alpha1PluginConfigGroup(object): and the value is json key in definition. """ openapi_types = { - 'id': 'int', 'build_version': 'str', 'config_name': 'str', 'injection': 'str', @@ -44,7 +42,6 @@ class V1alpha1PluginConfigGroup(object): } attribute_map = { - 'id': 'ID', 'build_version': 'build_version', 'config_name': 'config_name', 'injection': 'injection', @@ -53,13 +50,12 @@ class V1alpha1PluginConfigGroup(object): 'service_meta_type': 'service_meta_type' } - def __init__(self, id=None, build_version=None, config_name=None, injection=None, options=None, plugin_id=None, service_meta_type=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, build_version=None, config_name=None, injection=None, options=None, plugin_id=None, service_meta_type=None, local_vars_configuration=None): # noqa: E501 """V1alpha1PluginConfigGroup - 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._id = None self._build_version = None self._config_name = None self._injection = None @@ -68,7 +64,6 @@ class V1alpha1PluginConfigGroup(object): self._service_meta_type = None self.discriminator = None - self.id = id self.build_version = build_version self.config_name = config_name self.injection = injection @@ -77,29 +72,6 @@ class V1alpha1PluginConfigGroup(object): self.plugin_id = plugin_id self.service_meta_type = service_meta_type - @property - def id(self): - """Gets the id of this V1alpha1PluginConfigGroup. # noqa: E501 - - - :return: The id of this V1alpha1PluginConfigGroup. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this V1alpha1PluginConfigGroup. - - - :param id: The id of this V1alpha1PluginConfigGroup. # noqa: E501 - :type: int - """ - if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - @property def build_version(self): """Gets the build_version of this V1alpha1PluginConfigGroup. # noqa: E501 diff --git a/openapi_client/models/v1alpha1_plugin_config_group_option.py b/openapi_client/models/v1alpha1_plugin_config_group_option.py index 721f9459389e1bde7464fe14629c7fbc172364c9..fef6c7d8f037e10a307c670e8f0503e1fa71e58c 100644 --- a/openapi_client/models/v1alpha1_plugin_config_group_option.py +++ b/openapi_client/models/v1alpha1_plugin_config_group_option.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -34,7 +33,6 @@ class V1alpha1PluginConfigGroupOption(object): and the value is json key in definition. """ openapi_types = { - 'id': 'int', 'attr_alt_value': 'str', 'attr_default_value': 'str', 'attr_info': 'str', @@ -48,7 +46,6 @@ class V1alpha1PluginConfigGroupOption(object): } attribute_map = { - 'id': 'ID', 'attr_alt_value': 'attr_alt_value', 'attr_default_value': 'attr_default_value', 'attr_info': 'attr_info', @@ -61,13 +58,12 @@ class V1alpha1PluginConfigGroupOption(object): 'service_meta_type': 'service_meta_type' } - def __init__(self, id=None, attr_alt_value=None, attr_default_value=None, attr_info=None, attr_name=None, attr_type=None, build_version=None, is_change=None, plugin_id=None, protocol=None, service_meta_type=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, attr_alt_value=None, attr_default_value=None, attr_info=None, attr_name=None, attr_type=None, build_version=None, is_change=None, plugin_id=None, protocol=None, service_meta_type=None, local_vars_configuration=None): # noqa: E501 """V1alpha1PluginConfigGroupOption - 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._id = None self._attr_alt_value = None self._attr_default_value = None self._attr_info = None @@ -80,7 +76,6 @@ class V1alpha1PluginConfigGroupOption(object): self._service_meta_type = None self.discriminator = None - self.id = id self.attr_alt_value = attr_alt_value self.attr_default_value = attr_default_value self.attr_info = attr_info @@ -92,29 +87,6 @@ class V1alpha1PluginConfigGroupOption(object): self.protocol = protocol self.service_meta_type = service_meta_type - @property - def id(self): - """Gets the id of this V1alpha1PluginConfigGroupOption. # noqa: E501 - - - :return: The id of this V1alpha1PluginConfigGroupOption. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this V1alpha1PluginConfigGroupOption. - - - :param id: The id of this V1alpha1PluginConfigGroupOption. # noqa: E501 - :type: int - """ - if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - @property def attr_alt_value(self): """Gets the attr_alt_value of this V1alpha1PluginConfigGroupOption. # noqa: E501 diff --git a/openapi_client/models/v1alpha1_rainbond_application_config.py b/openapi_client/models/v1alpha1_rainbond_application_config.py index bb58ea29cdfc1a3924cc5ed8d7b57533d3033f74..e84b1370917debd9b15d6aa5512d57d9fcc6e8dc 100644 --- a/openapi_client/models/v1alpha1_rainbond_application_config.py +++ b/openapi_client/models/v1alpha1_rainbond_application_config.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -37,11 +36,14 @@ class V1alpha1RainbondApplicationConfig(object): 'annotations': 'dict(str, str)', 'app_config_groups': 'list[V1alpha1AppConfigGroup]', 'apps': 'list[V1alpha1Component]', + 'governance_mode': 'str', 'group_key': 'str', 'group_name': 'str', 'group_version': 'str', + 'helm_chart': 'dict(str, str)', 'ingress_http_routes': 'list[V1alpha1IngressHTTPRoute]', 'ingress_stream_routes': 'list[V1alpha1IngressSreamRoute]', + 'k8s_resources': 'list[V1alpha1K8sResource]', 'plugins': 'list[V1alpha1Plugin]', 'template_version': 'str' } @@ -50,16 +52,19 @@ class V1alpha1RainbondApplicationConfig(object): 'annotations': 'annotations', 'app_config_groups': 'app_config_groups', 'apps': 'apps', + 'governance_mode': 'governance_mode', 'group_key': 'group_key', 'group_name': 'group_name', 'group_version': 'group_version', + 'helm_chart': 'helm_chart', 'ingress_http_routes': 'ingress_http_routes', 'ingress_stream_routes': 'ingress_stream_routes', + 'k8s_resources': 'k8s_resources', 'plugins': 'plugins', 'template_version': 'template_version' } - def __init__(self, annotations=None, app_config_groups=None, apps=None, group_key=None, group_name=None, group_version=None, ingress_http_routes=None, ingress_stream_routes=None, plugins=None, template_version=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, annotations=None, app_config_groups=None, apps=None, governance_mode='BUILD_IN_SERVICE_MESH', group_key=None, group_name=None, group_version=None, helm_chart=None, ingress_http_routes=None, ingress_stream_routes=None, k8s_resources=None, plugins=None, template_version=None, local_vars_configuration=None): # noqa: E501 """V1alpha1RainbondApplicationConfig - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -68,26 +73,35 @@ class V1alpha1RainbondApplicationConfig(object): self._annotations = None self._app_config_groups = None self._apps = None + self._governance_mode = None self._group_key = None self._group_name = None self._group_version = None + self._helm_chart = None self._ingress_http_routes = None self._ingress_stream_routes = None + self._k8s_resources = None self._plugins = None self._template_version = None self.discriminator = None if annotations is not None: self.annotations = annotations - self.app_config_groups = app_config_groups + if app_config_groups is not None: + self.app_config_groups = app_config_groups self.apps = apps + self.governance_mode = governance_mode self.group_key = group_key self.group_name = group_name self.group_version = group_version + if helm_chart is not None: + self.helm_chart = helm_chart if ingress_http_routes is not None: self.ingress_http_routes = ingress_http_routes if ingress_stream_routes is not None: self.ingress_stream_routes = ingress_stream_routes + if k8s_resources is not None: + self.k8s_resources = k8s_resources if plugins is not None: self.plugins = plugins self.template_version = template_version @@ -131,8 +145,6 @@ class V1alpha1RainbondApplicationConfig(object): :param app_config_groups: The app_config_groups of this V1alpha1RainbondApplicationConfig. # noqa: E501 :type: list[V1alpha1AppConfigGroup] """ - if self.local_vars_configuration.client_side_validation and app_config_groups is None: # noqa: E501 - raise ValueError("Invalid value for `app_config_groups`, must not be `None`") # noqa: E501 self._app_config_groups = app_config_groups @@ -159,6 +171,29 @@ class V1alpha1RainbondApplicationConfig(object): self._apps = apps + @property + def governance_mode(self): + """Gets the governance_mode of this V1alpha1RainbondApplicationConfig. # noqa: E501 + + + :return: The governance_mode of this V1alpha1RainbondApplicationConfig. # noqa: E501 + :rtype: str + """ + return self._governance_mode + + @governance_mode.setter + def governance_mode(self, governance_mode): + """Sets the governance_mode of this V1alpha1RainbondApplicationConfig. + + + :param governance_mode: The governance_mode of this V1alpha1RainbondApplicationConfig. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and governance_mode is None: # noqa: E501 + raise ValueError("Invalid value for `governance_mode`, must not be `None`") # noqa: E501 + + self._governance_mode = governance_mode + @property def group_key(self): """Gets the group_key of this V1alpha1RainbondApplicationConfig. # noqa: E501 @@ -228,6 +263,27 @@ class V1alpha1RainbondApplicationConfig(object): self._group_version = group_version + @property + def helm_chart(self): + """Gets the helm_chart of this V1alpha1RainbondApplicationConfig. # noqa: E501 + + + :return: The helm_chart of this V1alpha1RainbondApplicationConfig. # noqa: E501 + :rtype: dict(str, str) + """ + return self._helm_chart + + @helm_chart.setter + def helm_chart(self, helm_chart): + """Sets the helm_chart of this V1alpha1RainbondApplicationConfig. + + + :param helm_chart: The helm_chart of this V1alpha1RainbondApplicationConfig. # noqa: E501 + :type: dict(str, str) + """ + + self._helm_chart = helm_chart + @property def ingress_http_routes(self): """Gets the ingress_http_routes of this V1alpha1RainbondApplicationConfig. # noqa: E501 @@ -270,6 +326,27 @@ class V1alpha1RainbondApplicationConfig(object): self._ingress_stream_routes = ingress_stream_routes + @property + def k8s_resources(self): + """Gets the k8s_resources of this V1alpha1RainbondApplicationConfig. # noqa: E501 + + + :return: The k8s_resources of this V1alpha1RainbondApplicationConfig. # noqa: E501 + :rtype: list[V1alpha1K8sResource] + """ + return self._k8s_resources + + @k8s_resources.setter + def k8s_resources(self, k8s_resources): + """Sets the k8s_resources of this V1alpha1RainbondApplicationConfig. + + + :param k8s_resources: The k8s_resources of this V1alpha1RainbondApplicationConfig. # noqa: E501 + :type: list[V1alpha1K8sResource] + """ + + self._k8s_resources = k8s_resources + @property def plugins(self): """Gets the plugins of this V1alpha1RainbondApplicationConfig. # noqa: E501 diff --git a/openapi_client/rest.py b/openapi_client/rest.py index 571de10b7b2118cc35117203346bf8d167cfae85..18918ec9f4f0976e26592329ac9b22009dab6a42 100644 --- a/openapi_client/rest.py +++ b/openapi_client/rest.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/setup.py b/setup.py index 8b420e5844796866963b11230b777422f6ff12a3..2c339250b09cc565561c64cfad2591fd94a61616 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -28,14 +27,13 @@ setup( name=NAME, version=VERSION, description="app-server", - author="huangrh", - author_email="huangrh@goodrain.com", + author="OpenAPI Generator community", + author_email="team@openapitools.org", url="", keywords=["OpenAPI", "OpenAPI-Generator", "app-server"], install_requires=REQUIRES, packages=find_packages(exclude=["test", "tests"]), include_package_data=True, - license="GNU", long_description="""\ Resource for managing app-server # noqa: E501 """ diff --git a/test/test_apps_image_info.py b/test/test_apps_image_info.py new file mode 100644 index 0000000000000000000000000000000000000000..4421d8966129649945b82944bb2ce97d0189feb3 --- /dev/null +++ b/test/test_apps_image_info.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_image_info import AppsImageInfo # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsImageInfo(unittest.TestCase): + """AppsImageInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsImageInfo + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_image_info.AppsImageInfo() # noqa: E501 + if include_optional : + return AppsImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0' + ) + else : + return AppsImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', + ) + + def testAppsImageInfo(self): + """Test AppsImageInfo""" + 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_apps_store_app_version_templete.py b/test/test_apps_store_app_version_templete.py new file mode 100644 index 0000000000000000000000000000000000000000..f21ffd07546a9b40a0748d97b3379d8e3edd34f3 --- /dev/null +++ b/test/test_apps_store_app_version_templete.py @@ -0,0 +1,329 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete import AppsStoreAppVersionTemplete # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTemplete(unittest.TestCase): + """AppsStoreAppVersionTemplete unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTemplete + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete.AppsStoreAppVersionTemplete() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTemplete( + apps = [ + openapi_client.models.apps/store_app_version_templete_app.apps.StoreAppVersionTempleteApp( + category = '0', + cmd = '0', + dep_service_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_dep_service.apps.StoreAppVersionTempleteAppDepService( + dep_service_key = '0', ) + ], + deploy_version = '0', + extend_method = '0', + extend_method_map = openapi_client.models.apps/store_app_version_templete_app_extend_method_rule.apps.StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, ), + image = '0', + language = '0', + memory = 56, + mnt_relation_list = [ + openapi_client.models.apps/store_app_version_templete_app_share_volume.apps.StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', ) + ], + port_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_port.apps.StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', ) + ], + probes = [ + openapi_client.models.apps/store_app_version_templete_app_probe.apps.StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, ) + ], + service_alias = '0', + service_cname = '0', + service_connect_info_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_env.apps.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_env_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_env.apps.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_id = '0', + service_image = openapi_client.models.apps/image_info.apps.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + service_key = '0', + service_name = '0', + service_region = '0', + service_related_plugin_config = [ + openapi_client.models.apps/store_app_version_templete_app_plugin_config.apps.StoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.apps/store_app_version_templete_app_plugin_config/attr.apps.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0', ) + ], + service_share_uuid = '0', + service_source = '0', + service_type = '0', + service_volume_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_volume.apps.StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', ) + ], + share_image = '0', + share_type = '0', + tenant_id = '0', + version = '0', ) + ], + group_key = '0', + group_name = '0', + group_version = '0', + plugins = [ + openapi_client.models.apps/store_app_version_templete_plugin.apps.StoreAppVersionTempletePlugin( + id = 56, + build_source = '0', + build_version = '0', + category = '0', + code_repo = '0', + config_groups = [ + openapi_client.models.apps/store_app_version_templete_plugin_config_group.apps.StoreAppVersionTempletePluginConfigGroup( + id = 56, + build_version = '0', + config_name = '0', + injection = '0', + options = [ + openapi_client.models.apps/store_app_version_templete_plugin_config_group_option.apps.StoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0', ) + ], + plugin_id = '0', + service_meta_type = '0', ) + ], + create_time = '0', + desc = '0', + image = '0', + origin = '0', + origin_share_id = '0', + plugin_alias = '0', + plugin_id = '0', + plugin_image = openapi_client.models.apps/image_info.apps.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + plugin_key = '0', + plugin_name = '0', + share_image = '0', ) + ], + template_version = '0' + ) + else : + return AppsStoreAppVersionTemplete( + apps = [ + openapi_client.models.apps/store_app_version_templete_app.apps.StoreAppVersionTempleteApp( + category = '0', + cmd = '0', + dep_service_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_dep_service.apps.StoreAppVersionTempleteAppDepService( + dep_service_key = '0', ) + ], + deploy_version = '0', + extend_method = '0', + extend_method_map = openapi_client.models.apps/store_app_version_templete_app_extend_method_rule.apps.StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, ), + image = '0', + language = '0', + memory = 56, + mnt_relation_list = [ + openapi_client.models.apps/store_app_version_templete_app_share_volume.apps.StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', ) + ], + port_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_port.apps.StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', ) + ], + probes = [ + openapi_client.models.apps/store_app_version_templete_app_probe.apps.StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, ) + ], + service_alias = '0', + service_cname = '0', + service_connect_info_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_env.apps.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_env_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_env.apps.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_id = '0', + service_image = openapi_client.models.apps/image_info.apps.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + service_key = '0', + service_name = '0', + service_region = '0', + service_related_plugin_config = [ + openapi_client.models.apps/store_app_version_templete_app_plugin_config.apps.StoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.apps/store_app_version_templete_app_plugin_config/attr.apps.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0', ) + ], + service_share_uuid = '0', + service_source = '0', + service_type = '0', + service_volume_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_volume.apps.StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', ) + ], + share_image = '0', + share_type = '0', + tenant_id = '0', + version = '0', ) + ], + group_key = '0', + group_name = '0', + group_version = '0', + template_version = '0', + ) + + def testAppsStoreAppVersionTemplete(self): + """Test AppsStoreAppVersionTemplete""" + 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_apps_store_app_version_templete_app.py b/test/test_apps_store_app_version_templete_app.py new file mode 100644 index 0000000000000000000000000000000000000000..4acccde873aef74446fbf4553e745bfc40eef7a8 --- /dev/null +++ b/test/test_apps_store_app_version_templete_app.py @@ -0,0 +1,252 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_app import AppsStoreAppVersionTempleteApp # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempleteApp(unittest.TestCase): + """AppsStoreAppVersionTempleteApp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempleteApp + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_app.AppsStoreAppVersionTempleteApp() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempleteApp( + category = '0', + cmd = '0', + dep_service_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_dep_service.apps.StoreAppVersionTempleteAppDepService( + dep_service_key = '0', ) + ], + deploy_version = '0', + extend_method = '0', + extend_method_map = openapi_client.models.apps/store_app_version_templete_app_extend_method_rule.apps.StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, ), + image = '0', + language = '0', + memory = 56, + mnt_relation_list = [ + openapi_client.models.apps/store_app_version_templete_app_share_volume.apps.StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', ) + ], + port_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_port.apps.StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', ) + ], + probes = [ + openapi_client.models.apps/store_app_version_templete_app_probe.apps.StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, ) + ], + service_alias = '0', + service_cname = '0', + service_connect_info_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_env.apps.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_env_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_env.apps.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_id = '0', + service_image = openapi_client.models.apps/image_info.apps.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + service_key = '0', + service_name = '0', + service_region = '0', + service_related_plugin_config = [ + openapi_client.models.apps/store_app_version_templete_app_plugin_config.apps.StoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.apps/store_app_version_templete_app_plugin_config/attr.apps.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0', ) + ], + service_share_uuid = '0', + service_source = '0', + service_type = '0', + service_volume_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_volume.apps.StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', ) + ], + share_image = '0', + share_type = '0', + tenant_id = '0', + version = '0' + ) + else : + return AppsStoreAppVersionTempleteApp( + category = '0', + cmd = '0', + dep_service_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_dep_service.apps.StoreAppVersionTempleteAppDepService( + dep_service_key = '0', ) + ], + deploy_version = '0', + extend_method = '0', + extend_method_map = openapi_client.models.apps/store_app_version_templete_app_extend_method_rule.apps.StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, ), + image = '0', + language = '0', + memory = 56, + mnt_relation_list = [ + openapi_client.models.apps/store_app_version_templete_app_share_volume.apps.StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', ) + ], + port_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_port.apps.StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', ) + ], + probes = [ + openapi_client.models.apps/store_app_version_templete_app_probe.apps.StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, ) + ], + service_alias = '0', + service_cname = '0', + service_connect_info_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_env.apps.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_env_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_env.apps.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_id = '0', + service_image = openapi_client.models.apps/image_info.apps.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + service_key = '0', + service_name = '0', + service_region = '0', + service_source = '0', + service_type = '0', + service_volume_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_volume.apps.StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', ) + ], + share_image = '0', + tenant_id = '0', + version = '0', + ) + + def testAppsStoreAppVersionTempleteApp(self): + """Test AppsStoreAppVersionTempleteApp""" + 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_apps_store_app_version_templete_app_dep_service.py b/test/test_apps_store_app_version_templete_app_dep_service.py new file mode 100644 index 0000000000000000000000000000000000000000..b00463a452845a4c0830786bf84ce8e6791923c6 --- /dev/null +++ b/test/test_apps_store_app_version_templete_app_dep_service.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_app_dep_service import AppsStoreAppVersionTempleteAppDepService # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempleteAppDepService(unittest.TestCase): + """AppsStoreAppVersionTempleteAppDepService unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempleteAppDepService + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_app_dep_service.AppsStoreAppVersionTempleteAppDepService() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempleteAppDepService( + dep_service_key = '0' + ) + else : + return AppsStoreAppVersionTempleteAppDepService( + dep_service_key = '0', + ) + + def testAppsStoreAppVersionTempleteAppDepService(self): + """Test AppsStoreAppVersionTempleteAppDepService""" + 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_apps_store_app_version_templete_app_env.py b/test/test_apps_store_app_version_templete_app_env.py new file mode 100644 index 0000000000000000000000000000000000000000..0445031617f3355f94bb909fca4ba9fef11c7fa9 --- /dev/null +++ b/test/test_apps_store_app_version_templete_app_env.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_app_env import AppsStoreAppVersionTempleteAppEnv # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempleteAppEnv(unittest.TestCase): + """AppsStoreAppVersionTempleteAppEnv unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempleteAppEnv + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_app_env.AppsStoreAppVersionTempleteAppEnv() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0' + ) + else : + return AppsStoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', + ) + + def testAppsStoreAppVersionTempleteAppEnv(self): + """Test AppsStoreAppVersionTempleteAppEnv""" + 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_apps_store_app_version_templete_app_extend_method_rule.py b/test/test_apps_store_app_version_templete_app_extend_method_rule.py new file mode 100644 index 0000000000000000000000000000000000000000..7455db81f0ad917ab2f662a242e664507d0f84ed --- /dev/null +++ b/test/test_apps_store_app_version_templete_app_extend_method_rule.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_app_extend_method_rule import AppsStoreAppVersionTempleteAppExtendMethodRule # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempleteAppExtendMethodRule(unittest.TestCase): + """AppsStoreAppVersionTempleteAppExtendMethodRule unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempleteAppExtendMethodRule + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_app_extend_method_rule.AppsStoreAppVersionTempleteAppExtendMethodRule() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56 + ) + else : + return AppsStoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, + ) + + def testAppsStoreAppVersionTempleteAppExtendMethodRule(self): + """Test AppsStoreAppVersionTempleteAppExtendMethodRule""" + 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_apps_store_app_version_templete_app_plugin_config.py b/test/test_apps_store_app_version_templete_app_plugin_config.py new file mode 100644 index 0000000000000000000000000000000000000000..990c82ea4f4b9c9c9d73f17fbcd67894ad9b2556 --- /dev/null +++ b/test/test_apps_store_app_version_templete_app_plugin_config.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_app_plugin_config import AppsStoreAppVersionTempleteAppPluginConfig # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempleteAppPluginConfig(unittest.TestCase): + """AppsStoreAppVersionTempleteAppPluginConfig unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempleteAppPluginConfig + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_app_plugin_config.AppsStoreAppVersionTempleteAppPluginConfig() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.apps/store_app_version_templete_app_plugin_config/attr.apps.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0' + ) + else : + return AppsStoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.apps/store_app_version_templete_app_plugin_config/attr.apps.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0', + ) + + def testAppsStoreAppVersionTempleteAppPluginConfig(self): + """Test AppsStoreAppVersionTempleteAppPluginConfig""" + 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_apps_store_app_version_templete_app_port.py b/test/test_apps_store_app_version_templete_app_port.py new file mode 100644 index 0000000000000000000000000000000000000000..163abe322853c315ff787a368e127133c56b2482 --- /dev/null +++ b/test/test_apps_store_app_version_templete_app_port.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_app_port import AppsStoreAppVersionTempleteAppPort # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempleteAppPort(unittest.TestCase): + """AppsStoreAppVersionTempleteAppPort unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempleteAppPort + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_app_port.AppsStoreAppVersionTempleteAppPort() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0' + ) + else : + return AppsStoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', + ) + + def testAppsStoreAppVersionTempleteAppPort(self): + """Test AppsStoreAppVersionTempleteAppPort""" + 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_apps_store_app_version_templete_app_probe.py b/test/test_apps_store_app_version_templete_app_probe.py new file mode 100644 index 0000000000000000000000000000000000000000..4c91375639bacbf584569323b882b11a8d39c45e --- /dev/null +++ b/test/test_apps_store_app_version_templete_app_probe.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_app_probe import AppsStoreAppVersionTempleteAppProbe # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempleteAppProbe(unittest.TestCase): + """AppsStoreAppVersionTempleteAppProbe unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempleteAppProbe + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_app_probe.AppsStoreAppVersionTempleteAppProbe() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56 + ) + else : + return AppsStoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, + ) + + def testAppsStoreAppVersionTempleteAppProbe(self): + """Test AppsStoreAppVersionTempleteAppProbe""" + 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_apps_store_app_version_templete_app_share_volume.py b/test/test_apps_store_app_version_templete_app_share_volume.py new file mode 100644 index 0000000000000000000000000000000000000000..428a80847e977a42ae45eeb5d8d12387ea980640 --- /dev/null +++ b/test/test_apps_store_app_version_templete_app_share_volume.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_app_share_volume import AppsStoreAppVersionTempleteAppShareVolume # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempleteAppShareVolume(unittest.TestCase): + """AppsStoreAppVersionTempleteAppShareVolume unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempleteAppShareVolume + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_app_share_volume.AppsStoreAppVersionTempleteAppShareVolume() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0' + ) + else : + return AppsStoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', + ) + + def testAppsStoreAppVersionTempleteAppShareVolume(self): + """Test AppsStoreAppVersionTempleteAppShareVolume""" + 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_apps_store_app_version_templete_app_volume.py b/test/test_apps_store_app_version_templete_app_volume.py new file mode 100644 index 0000000000000000000000000000000000000000..c46716b0b236cd5f957dbbf0536cd082b4b8fb69 --- /dev/null +++ b/test/test_apps_store_app_version_templete_app_volume.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_app_volume import AppsStoreAppVersionTempleteAppVolume # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempleteAppVolume(unittest.TestCase): + """AppsStoreAppVersionTempleteAppVolume unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempleteAppVolume + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_app_volume.AppsStoreAppVersionTempleteAppVolume() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0' + ) + else : + return AppsStoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', + ) + + def testAppsStoreAppVersionTempleteAppVolume(self): + """Test AppsStoreAppVersionTempleteAppVolume""" + 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_apps_store_app_version_templete_plugin.py b/test/test_apps_store_app_version_templete_plugin.py new file mode 100644 index 0000000000000000000000000000000000000000..f4da1d6b7cf52bd08ab4d654bcc8daca23e66113 --- /dev/null +++ b/test/test_apps_store_app_version_templete_plugin.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_plugin import AppsStoreAppVersionTempletePlugin # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempletePlugin(unittest.TestCase): + """AppsStoreAppVersionTempletePlugin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempletePlugin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_plugin.AppsStoreAppVersionTempletePlugin() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempletePlugin( + id = 56, + build_source = '0', + build_version = '0', + category = '0', + code_repo = '0', + config_groups = [ + openapi_client.models.apps/store_app_version_templete_plugin_config_group.apps.StoreAppVersionTempletePluginConfigGroup( + id = 56, + build_version = '0', + config_name = '0', + injection = '0', + options = [ + openapi_client.models.apps/store_app_version_templete_plugin_config_group_option.apps.StoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0', ) + ], + plugin_id = '0', + service_meta_type = '0', ) + ], + create_time = '0', + desc = '0', + image = '0', + origin = '0', + origin_share_id = '0', + plugin_alias = '0', + plugin_id = '0', + plugin_image = openapi_client.models.apps/image_info.apps.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + plugin_key = '0', + plugin_name = '0', + share_image = '0' + ) + else : + return AppsStoreAppVersionTempletePlugin( + id = 56, + build_source = '0', + build_version = '0', + category = '0', + code_repo = '0', + create_time = '0', + desc = '0', + image = '0', + origin = '0', + origin_share_id = '0', + plugin_alias = '0', + plugin_id = '0', + plugin_image = openapi_client.models.apps/image_info.apps.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + plugin_key = '0', + plugin_name = '0', + share_image = '0', + ) + + def testAppsStoreAppVersionTempletePlugin(self): + """Test AppsStoreAppVersionTempletePlugin""" + 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_apps_store_app_version_templete_plugin_config_group.py b/test/test_apps_store_app_version_templete_plugin_config_group.py new file mode 100644 index 0000000000000000000000000000000000000000..c2f73420cc2241feda1cc5cd9e1c356a11e0c783 --- /dev/null +++ b/test/test_apps_store_app_version_templete_plugin_config_group.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_plugin_config_group import AppsStoreAppVersionTempletePluginConfigGroup # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempletePluginConfigGroup(unittest.TestCase): + """AppsStoreAppVersionTempletePluginConfigGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempletePluginConfigGroup + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_plugin_config_group.AppsStoreAppVersionTempletePluginConfigGroup() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempletePluginConfigGroup( + id = 56, + build_version = '0', + config_name = '0', + injection = '0', + options = [ + openapi_client.models.apps/store_app_version_templete_plugin_config_group_option.apps.StoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0', ) + ], + plugin_id = '0', + service_meta_type = '0' + ) + else : + return AppsStoreAppVersionTempletePluginConfigGroup( + id = 56, + build_version = '0', + config_name = '0', + injection = '0', + plugin_id = '0', + service_meta_type = '0', + ) + + def testAppsStoreAppVersionTempletePluginConfigGroup(self): + """Test AppsStoreAppVersionTempletePluginConfigGroup""" + 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_apps_store_app_version_templete_plugin_config_group_option.py b/test/test_apps_store_app_version_templete_plugin_config_group_option.py new file mode 100644 index 0000000000000000000000000000000000000000..a9fbb2d442006ca1cd47a863ae63c35728e4ec2c --- /dev/null +++ b/test/test_apps_store_app_version_templete_plugin_config_group_option.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_plugin_config_group_option import AppsStoreAppVersionTempletePluginConfigGroupOption # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempletePluginConfigGroupOption(unittest.TestCase): + """AppsStoreAppVersionTempletePluginConfigGroupOption unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempletePluginConfigGroupOption + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_plugin_config_group_option.AppsStoreAppVersionTempletePluginConfigGroupOption() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0' + ) + else : + return AppsStoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0', + ) + + def testAppsStoreAppVersionTempletePluginConfigGroupOption(self): + """Test AppsStoreAppVersionTempletePluginConfigGroupOption""" + 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_market_openapi_api.py b/test/test_market_openapi_api.py index 0d3f4c9433b62ac50f4bb21f6a1b5d23895f4271..20221694d56d8923c787249acae0c363dcb8614d 100644 --- a/test/test_market_openapi_api.py +++ b/test/test_market_openapi_api.py @@ -29,94 +29,66 @@ class TestMarketOpenapiApi(unittest.TestCase): def tearDown(self): pass - def test_bindable_markets(self): - """Test case for bindable_markets - - 可绑定的商店列表 # noqa: E501 - """ - pass - def test_create_app(self): """Test case for create_app - 应用列表 # noqa: E501 + create an app model # noqa: E501 """ pass def test_create_app_version(self): """Test case for create_app_version - 创建应用版本 # noqa: E501 + post an app version # noqa: E501 """ pass def test_get_app_hub_info(self): """Test case for get_app_hub_info - 获取镜像仓库信息 # noqa: E501 - """ - pass - - def test_get_app_plugin_list(self): - """Test case for get_app_plugin_list - - 应用插件列表 # noqa: E501 - """ - pass - - def test_get_app_temp_list(self): - """Test case for get_app_temp_list - - 控制台应用模版列表 # noqa: E501 + get app image save info # noqa: E501 """ pass def test_get_market_info(self): """Test case for get_market_info - 获取商店信息 # noqa: E501 - """ - pass - - def test_get_orgs(self): - """Test case for get_orgs - - 获取组织机构(行业)列表 # noqa: E501 + get mrket info # noqa: E501 """ pass def test_get_user_app_detail(self): """Test case for get_user_app_detail - 应用详情 # noqa: E501 + Query the specified application details # noqa: E501 """ pass def test_get_user_app_list(self): """Test case for get_user_app_list - 应用列表 # noqa: E501 + A list of installable applications # noqa: E501 """ pass def test_get_user_app_version_detail(self): """Test case for get_user_app_version_detail - 应用版本信息 # noqa: E501 + Query the specified version details of the specified application # noqa: E501 """ pass def test_get_user_app_versions(self): """Test case for get_user_app_versions - 应用版本列表 # noqa: E501 + Query the specified application version list # noqa: E501 """ pass def test_update_app(self): """Test case for update_app - 更新应用信息 # noqa: E501 + update app model base info # noqa: E501 """ pass diff --git a/test/test_platform_open_api.py b/test/test_platform_open_api.py index 23e64344365dac217f2c7eb925a5e2c3282e308a..115bd8552ec37fe928f977b560778e6989107c45 100644 --- a/test/test_platform_open_api.py +++ b/test/test_platform_open_api.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1_app_base_info.py b/test/test_v1_app_base_info.py index 3ddc83fd82d126459a8d1324606aac8dcca7b17a..54169a2c86c7f61f6dd6662cdaa719edebc303ad 100644 --- a/test/test_v1_app_base_info.py +++ b/test/test_v1_app_base_info.py @@ -53,28 +53,8 @@ class TestV1AppBaseInfo(unittest.TestCase): market_url = '0', name = '0', publish_type = '0', - publish_user = '0', - show_count = 56, start_count = 56, - status = '0', - tags = [ - '0' - ], - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - versions = [ - openapi_client.models.v1/app_version_base.v1.AppVersionBase( - app_key_id = '0', - app_version = '0', - app_version_alias = '0', - create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', - desc = '0', - enable = True, - is_plugin = True, - rainbond_version = '0', - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - update_version = 56, ) - ] + update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') ) else : return V1AppBaseInfo( @@ -94,28 +74,8 @@ class TestV1AppBaseInfo(unittest.TestCase): market_url = '0', name = '0', publish_type = '0', - publish_user = '0', - show_count = 56, start_count = 56, - status = '0', - tags = [ - '0' - ], update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - versions = [ - openapi_client.models.v1/app_version_base.v1.AppVersionBase( - app_key_id = '0', - app_version = '0', - app_version_alias = '0', - create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', - desc = '0', - enable = True, - is_plugin = True, - rainbond_version = '0', - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - update_version = 56, ) - ], ) def testV1AppBaseInfo(self): diff --git a/test/test_v1_app_classifications.py b/test/test_v1_app_classifications.py new file mode 100644 index 0000000000000000000000000000000000000000..f65dd7228234e47f6cdc60052ea98df35a061dcd --- /dev/null +++ b/test/test_v1_app_classifications.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_app_classifications import V1AppClassifications # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1AppClassifications(unittest.TestCase): + """V1AppClassifications unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1AppClassifications + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_app_classifications.V1AppClassifications() # noqa: E501 + if include_optional : + return V1AppClassifications( + app_classification_id = '0', + app_classification_name = '0', + parent_app_classification_id = '0' + ) + else : + return V1AppClassifications( + app_classification_id = '0', + app_classification_name = '0', + parent_app_classification_id = '0', + ) + + def testV1AppClassifications(self): + """Test V1AppClassifications""" + 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_v1_app_create_request.py b/test/test_v1_app_create_request.py new file mode 100644 index 0000000000000000000000000000000000000000..50b1ef111cad71ebb056c75407901dede4510435 --- /dev/null +++ b/test/test_v1_app_create_request.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_app_create_request import V1AppCreateRequest # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1AppCreateRequest(unittest.TestCase): + """V1AppCreateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1AppCreateRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_app_create_request.V1AppCreateRequest() # noqa: E501 + if include_optional : + return V1AppCreateRequest( + desc = '0', + introduction = '0', + logo = '0', + market_id = '0', + name = '0', + publish_type = '0' + ) + else : + return V1AppCreateRequest( + desc = '0', + introduction = '0', + logo = '0', + market_id = '0', + name = '0', + publish_type = '0', + ) + + def testV1AppCreateRequest(self): + """Test V1AppCreateRequest""" + 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_v1_app_detail_info_response.py b/test/test_v1_app_detail_info_response.py index 57d16e29467021689f3ce6f8b519c206ad431c54..a5f44fa0fe91ef2eeb469797ff11c980e46d5c35 100644 --- a/test/test_v1_app_detail_info_response.py +++ b/test/test_v1_app_detail_info_response.py @@ -37,7 +37,6 @@ class TestV1AppDetailInfoResponse(unittest.TestCase): # model = openapi_client.models.v1_app_detail_info_response.V1AppDetailInfoResponse() # noqa: E501 if include_optional : return V1AppDetailInfoResponse( - app_classification_id = '0', app_detail_url = '0', app_key_id = '0', create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -53,12 +52,8 @@ class TestV1AppDetailInfoResponse(unittest.TestCase): market_name = '0', market_url = '0', name = '0', - org_id = '0', publish_type = '0', - publish_user = '0', - show_count = 56, start_count = 56, - status = '0', tags = [ '0' ], @@ -69,10 +64,7 @@ class TestV1AppDetailInfoResponse(unittest.TestCase): app_version = '0', app_version_alias = '0', create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', desc = '0', - enable = True, - is_plugin = True, rainbond_version = '0', update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), update_version = 56, ) @@ -80,7 +72,6 @@ class TestV1AppDetailInfoResponse(unittest.TestCase): ) else : return V1AppDetailInfoResponse( - app_classification_id = '0', app_detail_url = '0', app_key_id = '0', create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -96,12 +87,8 @@ class TestV1AppDetailInfoResponse(unittest.TestCase): market_name = '0', market_url = '0', name = '0', - org_id = '0', publish_type = '0', - publish_user = '0', - show_count = 56, start_count = 56, - status = '0', tags = [ '0' ], @@ -112,10 +99,7 @@ class TestV1AppDetailInfoResponse(unittest.TestCase): app_version = '0', app_version_alias = '0', create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', desc = '0', - enable = True, - is_plugin = True, rainbond_version = '0', update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), update_version = 56, ) diff --git a/test/test_v1_app_model_create_request.py b/test/test_v1_app_model_create_request.py index 041edf18d80c907b8902fc908b438ea1028fd841..2f66187dd0c3ec6283fe013e25b62ac79edb26d5 100644 --- a/test/test_v1_app_model_create_request.py +++ b/test/test_v1_app_model_create_request.py @@ -41,7 +41,6 @@ class TestV1AppModelCreateRequest(unittest.TestCase): introduction = '0', logo = '0', name = '0', - org_id = '0', publish_type = '0', tags = [ '0' diff --git a/test/test_v1_app_update_request.py b/test/test_v1_app_update_request.py index e54aa4ad68184827999bdff0124f93f56531731c..ce50366da3c2744a35a8ff7f56a438f439017fa0 100644 --- a/test/test_v1_app_update_request.py +++ b/test/test_v1_app_update_request.py @@ -37,17 +37,21 @@ class TestV1AppUpdateRequest(unittest.TestCase): # model = openapi_client.models.v1_app_update_request.V1AppUpdateRequest() # noqa: E501 if include_optional : return V1AppUpdateRequest( + app_key_id = '0', desc = '0', introduction = '0', logo = '0', + market_id = '0', name = '0', publish_type = '0' ) else : return V1AppUpdateRequest( + app_key_id = '0', desc = '0', introduction = '0', logo = '0', + market_id = '0', name = '0', publish_type = '0', ) diff --git a/test/test_v1_app_version_base.py b/test/test_v1_app_version_base.py index 96d728ff765a0d060532f08b08461e4df7ddb214..4b8e886e3bfc0186ed51c4b440709556793a04a3 100644 --- a/test/test_v1_app_version_base.py +++ b/test/test_v1_app_version_base.py @@ -41,10 +41,7 @@ class TestV1AppVersionBase(unittest.TestCase): app_version = '0', app_version_alias = '0', create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', desc = '0', - enable = True, - is_plugin = True, rainbond_version = '0', update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), update_version = 56 @@ -55,10 +52,7 @@ class TestV1AppVersionBase(unittest.TestCase): app_version = '0', app_version_alias = '0', create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', desc = '0', - enable = True, - is_plugin = True, rainbond_version = '0', update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), update_version = 56, diff --git a/test/test_v1_app_version_detail_response.py b/test/test_v1_app_version_detail_response.py index e972c04a4d17d497548d05159998cf0692ea6f6d..a0a6b76852085f3e14e32847e9e6b18e6bed7468 100644 --- a/test/test_v1_app_version_detail_response.py +++ b/test/test_v1_app_version_detail_response.py @@ -38,38 +38,187 @@ class TestV1AppVersionDetailResponse(unittest.TestCase): if include_optional : return V1AppVersionDetailResponse( app_key_id = '0', - app_name = '0', + app_version = '0', + app_version_alias = '0', create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', - description = '0', - enable = True, - is_plugin = True, - market_id = '0', + desc = '0', rainbond_version = '0', - template = '0', - template_type = '0', + templete = openapi_client.models.apps/store_app_version_templete.apps.StoreAppVersionTemplete( + apps = [ + openapi_client.models.apps/store_app_version_templete_app.apps.StoreAppVersionTempleteApp( + category = '0', + cmd = '0', + dep_service_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_dep_service.apps.StoreAppVersionTempleteAppDepService( + dep_service_key = '0', ) + ], + deploy_version = '0', + extend_method = '0', + extend_method_map = openapi_client.models.apps/store_app_version_templete_app_extend_method_rule.apps.StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, ), + image = '0', + language = '0', + memory = 56, + mnt_relation_list = [ + openapi_client.models.apps/store_app_version_templete_app_share_volume.apps.StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', ) + ], + port_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_port.apps.StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', ) + ], + probes = [ + openapi_client.models.apps/store_app_version_templete_app_probe.apps.StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, ) + ], + service_alias = '0', + service_cname = '0', + service_connect_info_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_env.apps.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_env_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_env.apps.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_id = '0', + service_image = openapi_client.models.apps/image_info.apps.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + service_key = '0', + service_name = '0', + service_region = '0', + service_related_plugin_config = [ + openapi_client.models.apps/store_app_version_templete_app_plugin_config.apps.StoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.apps/store_app_version_templete_app_plugin_config/attr.apps.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0', ) + ], + service_share_uuid = '0', + service_source = '0', + service_type = '0', + service_volume_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_volume.apps.StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', ) + ], + share_image = '0', + share_type = '0', + tenant_id = '0', + version = '0', ) + ], + group_key = '0', + group_name = '0', + group_version = '0', + plugins = [ + openapi_client.models.apps/store_app_version_templete_plugin.apps.StoreAppVersionTempletePlugin( + id = 56, + build_source = '0', + build_version = '0', + category = '0', + code_repo = '0', + config_groups = [ + openapi_client.models.apps/store_app_version_templete_plugin_config_group.apps.StoreAppVersionTempletePluginConfigGroup( + id = 56, + build_version = '0', + config_name = '0', + injection = '0', + options = [ + openapi_client.models.apps/store_app_version_templete_plugin_config_group_option.apps.StoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0', ) + ], + plugin_id = '0', + service_meta_type = '0', ) + ], + create_time = '0', + desc = '0', + image = '0', + origin = '0', + origin_share_id = '0', + plugin_alias = '0', + plugin_id = '0', + plugin_image = openapi_client.models.apps/image_info.apps.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + plugin_key = '0', + plugin_name = '0', + share_image = '0', ) + ], + template_version = '0', ), update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - update_version = 56, - version = '0', - version_alias = '0' + update_version = 56 ) else : return V1AppVersionDetailResponse( app_key_id = '0', - app_name = '0', + app_version = '0', + app_version_alias = '0', create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', - description = '0', - enable = True, - is_plugin = True, - market_id = '0', + desc = '0', rainbond_version = '0', - template = '0', - template_type = '0', update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), update_version = 56, - version = '0', - version_alias = '0', ) def testV1AppVersionDetailResponse(self): diff --git a/test/test_v1_app_version_list_response.py b/test/test_v1_app_version_list_response.py index 75b35b58d56ad1a28ccbb0ff9db7d6e2907ec81c..c5f25f403cebb0b3fd7f76a36f1795df1708f239 100644 --- a/test/test_v1_app_version_list_response.py +++ b/test/test_v1_app_version_list_response.py @@ -37,37 +37,25 @@ class TestV1AppVersionListResponse(unittest.TestCase): # model = openapi_client.models.v1_app_version_list_response.V1AppVersionListResponse() # noqa: E501 if include_optional : return V1AppVersionListResponse( - versions = [ - openapi_client.models.v1/app_version_base.v1.AppVersionBase( - app_key_id = '0', - app_version = '0', - app_version_alias = '0', - create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', - desc = '0', - enable = True, - is_plugin = True, - rainbond_version = '0', - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - update_version = 56, ) - ] + app_key_id = '0', + app_version = '0', + app_version_alias = '0', + create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + desc = '0', + rainbond_version = '0', + update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + update_version = 56 ) else : return V1AppVersionListResponse( - versions = [ - openapi_client.models.v1/app_version_base.v1.AppVersionBase( - app_key_id = '0', - app_version = '0', - app_version_alias = '0', - create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', - desc = '0', - enable = True, - is_plugin = True, - rainbond_version = '0', - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - update_version = 56, ) - ], + app_key_id = '0', + app_version = '0', + app_version_alias = '0', + create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + desc = '0', + rainbond_version = '0', + update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + update_version = 56, ) def testV1AppVersionListResponse(self): diff --git a/test/test_v1_app_version_request.py b/test/test_v1_app_version_request.py new file mode 100644 index 0000000000000000000000000000000000000000..b7afe76045be3096c4eea8b34f3d0cc30889964e --- /dev/null +++ b/test/test_v1_app_version_request.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_app_version_request import V1AppVersionRequest # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1AppVersionRequest(unittest.TestCase): + """V1AppVersionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1AppVersionRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_app_version_request.V1AppVersionRequest() # noqa: E501 + if include_optional : + return V1AppVersionRequest( + app_version = '0', + app_version_alias = '0', + desc = '0', + rainbond_version = '0', + templete = '0', + update_version = 56 + ) + else : + return V1AppVersionRequest( + app_version = '0', + app_version_alias = '0', + desc = '0', + rainbond_version = '0', + templete = '0', + update_version = 56, + ) + + def testV1AppVersionRequest(self): + """Test V1AppVersionRequest""" + 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_v1_bindable_market.py b/test/test_v1_bindable_market.py index 81f9f3cb4572e11b5e08f3840e24f94f0961b57b..2afa3441cbd302f02c5ee090b52e48ad2ad6c06e 100644 --- a/test/test_v1_bindable_market.py +++ b/test/test_v1_bindable_market.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1_create_app_paa_s_version_request.py b/test/test_v1_create_app_paa_s_version_request.py index 4b5a293207bf0cc996879a7a742fefabf889a534..2231388082c5893ed328e5ebc8622e0be9bd0d0d 100644 --- a/test/test_v1_create_app_paa_s_version_request.py +++ b/test/test_v1_create_app_paa_s_version_request.py @@ -38,56 +38,18 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): if include_optional : return V1CreateAppPaaSVersionRequest( description = '0', - is_plugin = True, - rainbond_version = '0', - template = openapi_client.models.v1alpha1/rainbond_application_config.v1alpha1.RainbondApplicationConfig( - annotations = { - 'key' : '0' - }, - app_config_groups = [ - openapi_client.models.v1alpha1/app_config_group.v1alpha1.AppConfigGroup( - component_ids = [ - '0' - ], - config_items = { - 'key' : '0' - }, - injection_type = '0', - name = '0', ) - ], + templete = openapi_client.models.v1/store_app_version_templete.v1.StoreAppVersionTemplete( apps = [ - openapi_client.models.v1alpha1/component.v1alpha1.Component( + openapi_client.models.v1/store_app_version_templete_app.v1.StoreAppVersionTempleteApp( category = '0', cmd = '0', - component_graphs = [ - openapi_client.models.v1alpha1/component_graph.v1alpha1.ComponentGraph( - component_id = '0', - graph_id = '0', - promql = '0', - sequence = 56, - title = '0', ) - ], - component_monitors = [ - openapi_client.models.v1alpha1/component_monitor.v1alpha1.ComponentMonitor( - interval = '0', - name = '0', - path = '0', - port = 56, - service_show_name = '0', ) - ], - cpu = 56, dep_service_map_list = [ - openapi_client.models.v1alpha1/component_dep.v1alpha1.ComponentDep( + openapi_client.models.v1/store_app_version_templete_app_dep_service.v1.StoreAppVersionTempleteAppDepService( dep_service_key = '0', ) ], deploy_version = '0', - endpoints = openapi_client.models.v1alpha1/endpoints.v1alpha1.Endpoints( - endpoints_info = '0', - endpoints_type = '0', - service_cname = '0', ), extend_method = '0', - extend_method_map = openapi_client.models.v1alpha1/component_extend_method_rule.v1alpha1.ComponentExtendMethodRule( - init_memory = 56, + extend_method_map = openapi_client.models.v1/store_app_version_templete_app_extend_method_rule.v1.StoreAppVersionTempleteAppExtendMethodRule( is_restart = 56, max_memory = 56, max_node = 56, @@ -96,19 +58,16 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): step_memory = 56, step_node = 56, ), image = '0', - labels = { - 'key' : '0' - }, language = '0', memory = 56, mnt_relation_list = [ - openapi_client.models.v1alpha1/component_share_volume.v1alpha1.ComponentShareVolume( + openapi_client.models.v1/store_app_version_templete_app_share_volume.v1.StoreAppVersionTempleteAppShareVolume( mnt_dir = '0', mnt_name = '0', service_share_uuid = '0', ) ], port_map_list = [ - openapi_client.models.v1alpha1/component_port.v1alpha1.ComponentPort( + openapi_client.models.v1/store_app_version_templete_app_port.v1.StoreAppVersionTempleteAppPort( container_port = 56, is_inner_service = True, is_outer_service = True, @@ -117,7 +76,7 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): tenant_id = '0', ) ], probes = [ - openapi_client.models.v1alpha1/component_probe.v1alpha1.ComponentProbe( + openapi_client.models.v1/store_app_version_templete_app_probe.v1.StoreAppVersionTempleteAppProbe( id = 56, cmd = '0', failure_threshold = 56, @@ -137,23 +96,21 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): service_alias = '0', service_cname = '0', service_connect_info_map_list = [ - openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], service_env_map_list = [ - openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], service_id = '0', - service_image = openapi_client.models.v1alpha1/image_info.v1alpha1.ImageInfo( + service_image = openapi_client.models.v1/image_info.v1.ImageInfo( hub_password = '0', hub_url = '0', hub_user = '0', @@ -161,15 +118,15 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): namespace = '0', ), service_key = '0', service_name = '0', + service_region = '0', service_related_plugin_config = [ - openapi_client.models.v1alpha1/component_plugin_config.v1alpha1.ComponentPluginConfig( + openapi_client.models.v1/store_app_version_templete_app_plugin_config.v1.StoreAppVersionTempleteAppPluginConfig( + id = 56, attr = [ - openapi_client.models.v1alpha1/component_plugin_config/attr.v1alpha1.ComponentPluginConfig.attr() + openapi_client.models.v1/store_app_version_templete_app_plugin_config/attr.v1.StoreAppVersionTempleteAppPluginConfig.attr() ], build_version = '0', - cpu_required = 56, create_time = '0', - memory_required = 56, plugin_id = '0', plugin_key = '0', plugin_status = True, @@ -180,11 +137,9 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): service_source = '0', service_type = '0', service_volume_map_list = [ - openapi_client.models.v1alpha1/component_volume.v1alpha1.ComponentVolume( + openapi_client.models.v1/store_app_version_templete_app_volume.v1.StoreAppVersionTempleteAppVolume( access_mode = '0', file_content = '0', - mode = 56, - share_policy = '0', volume_capacity = 56, volume_name = '0', volume_path = '0', @@ -192,59 +147,27 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): ], share_image = '0', share_type = '0', + tenant_id = '0', version = '0', ) ], group_key = '0', group_name = '0', group_version = '0', - ingress_http_routes = [ - openapi_client.models.v1alpha1/ingress_http_route.v1alpha1.IngressHTTPRoute( - component_key = '0', - connection_timeout = 56, - cookies = { - 'key' : '0' - }, - default_domain = True, - headers = { - 'key' : '0' - }, - load_balancing = '0', - location = '0', - port = 56, - proxy_buffer = True, - proxy_buffer_numbers = 56, - proxy_buffer_size = 56, - proxy_header = { - 'key' : '0' - }, - request_body_size_limit = 56, - request_timeout = 56, - response_timeout = 56, - ssl = True, - websocket = True, ) - ], - ingress_stream_routes = [ - openapi_client.models.v1alpha1/ingress_sream_route.v1alpha1.IngressSreamRoute( - component_key = '0', - connection_timeout = 56, - port = 56, - protocol = '0', ) - ], plugins = [ - openapi_client.models.v1alpha1/plugin.v1alpha1.Plugin( + openapi_client.models.v1/store_app_version_templete_plugin.v1.StoreAppVersionTempletePlugin( id = 56, build_source = '0', build_version = '0', category = '0', code_repo = '0', config_groups = [ - openapi_client.models.v1alpha1/plugin_config_group.v1alpha1.PluginConfigGroup( + openapi_client.models.v1/store_app_version_templete_plugin_config_group.v1.StoreAppVersionTempletePluginConfigGroup( id = 56, build_version = '0', config_name = '0', injection = '0', options = [ - openapi_client.models.v1alpha1/plugin_config_group_option.v1alpha1.PluginConfigGroupOption( + openapi_client.models.v1/store_app_version_templete_plugin_config_group_option.v1.StoreAppVersionTempletePluginConfigGroupOption( id = 56, attr_alt_value = '0', attr_default_value = '0', @@ -267,7 +190,7 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): origin_share_id = '0', plugin_alias = '0', plugin_id = '0', - plugin_image = openapi_client.models.v1alpha1/image_info.v1alpha1.ImageInfo( + plugin_image = openapi_client.models.v1/image_info.v1.ImageInfo( hub_password = '0', hub_url = '0', hub_user = '0', @@ -278,63 +201,25 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): share_image = '0', ) ], template_version = '0', ), - template_type = '0', + templete_type = '0', version = '0', version_alias = '0' ) else : return V1CreateAppPaaSVersionRequest( description = '0', - is_plugin = True, - rainbond_version = '0', - template = openapi_client.models.v1alpha1/rainbond_application_config.v1alpha1.RainbondApplicationConfig( - annotations = { - 'key' : '0' - }, - app_config_groups = [ - openapi_client.models.v1alpha1/app_config_group.v1alpha1.AppConfigGroup( - component_ids = [ - '0' - ], - config_items = { - 'key' : '0' - }, - injection_type = '0', - name = '0', ) - ], + templete = openapi_client.models.v1/store_app_version_templete.v1.StoreAppVersionTemplete( apps = [ - openapi_client.models.v1alpha1/component.v1alpha1.Component( + openapi_client.models.v1/store_app_version_templete_app.v1.StoreAppVersionTempleteApp( category = '0', cmd = '0', - component_graphs = [ - openapi_client.models.v1alpha1/component_graph.v1alpha1.ComponentGraph( - component_id = '0', - graph_id = '0', - promql = '0', - sequence = 56, - title = '0', ) - ], - component_monitors = [ - openapi_client.models.v1alpha1/component_monitor.v1alpha1.ComponentMonitor( - interval = '0', - name = '0', - path = '0', - port = 56, - service_show_name = '0', ) - ], - cpu = 56, dep_service_map_list = [ - openapi_client.models.v1alpha1/component_dep.v1alpha1.ComponentDep( + openapi_client.models.v1/store_app_version_templete_app_dep_service.v1.StoreAppVersionTempleteAppDepService( dep_service_key = '0', ) ], deploy_version = '0', - endpoints = openapi_client.models.v1alpha1/endpoints.v1alpha1.Endpoints( - endpoints_info = '0', - endpoints_type = '0', - service_cname = '0', ), extend_method = '0', - extend_method_map = openapi_client.models.v1alpha1/component_extend_method_rule.v1alpha1.ComponentExtendMethodRule( - init_memory = 56, + extend_method_map = openapi_client.models.v1/store_app_version_templete_app_extend_method_rule.v1.StoreAppVersionTempleteAppExtendMethodRule( is_restart = 56, max_memory = 56, max_node = 56, @@ -343,19 +228,16 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): step_memory = 56, step_node = 56, ), image = '0', - labels = { - 'key' : '0' - }, language = '0', memory = 56, mnt_relation_list = [ - openapi_client.models.v1alpha1/component_share_volume.v1alpha1.ComponentShareVolume( + openapi_client.models.v1/store_app_version_templete_app_share_volume.v1.StoreAppVersionTempleteAppShareVolume( mnt_dir = '0', mnt_name = '0', service_share_uuid = '0', ) ], port_map_list = [ - openapi_client.models.v1alpha1/component_port.v1alpha1.ComponentPort( + openapi_client.models.v1/store_app_version_templete_app_port.v1.StoreAppVersionTempleteAppPort( container_port = 56, is_inner_service = True, is_outer_service = True, @@ -364,7 +246,7 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): tenant_id = '0', ) ], probes = [ - openapi_client.models.v1alpha1/component_probe.v1alpha1.ComponentProbe( + openapi_client.models.v1/store_app_version_templete_app_probe.v1.StoreAppVersionTempleteAppProbe( id = 56, cmd = '0', failure_threshold = 56, @@ -384,23 +266,21 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): service_alias = '0', service_cname = '0', service_connect_info_map_list = [ - openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], service_env_map_list = [ - openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], service_id = '0', - service_image = openapi_client.models.v1alpha1/image_info.v1alpha1.ImageInfo( + service_image = openapi_client.models.v1/image_info.v1.ImageInfo( hub_password = '0', hub_url = '0', hub_user = '0', @@ -408,15 +288,15 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): namespace = '0', ), service_key = '0', service_name = '0', + service_region = '0', service_related_plugin_config = [ - openapi_client.models.v1alpha1/component_plugin_config.v1alpha1.ComponentPluginConfig( + openapi_client.models.v1/store_app_version_templete_app_plugin_config.v1.StoreAppVersionTempleteAppPluginConfig( + id = 56, attr = [ - openapi_client.models.v1alpha1/component_plugin_config/attr.v1alpha1.ComponentPluginConfig.attr() + openapi_client.models.v1/store_app_version_templete_app_plugin_config/attr.v1.StoreAppVersionTempleteAppPluginConfig.attr() ], build_version = '0', - cpu_required = 56, create_time = '0', - memory_required = 56, plugin_id = '0', plugin_key = '0', plugin_status = True, @@ -427,11 +307,9 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): service_source = '0', service_type = '0', service_volume_map_list = [ - openapi_client.models.v1alpha1/component_volume.v1alpha1.ComponentVolume( + openapi_client.models.v1/store_app_version_templete_app_volume.v1.StoreAppVersionTempleteAppVolume( access_mode = '0', file_content = '0', - mode = 56, - share_policy = '0', volume_capacity = 56, volume_name = '0', volume_path = '0', @@ -439,59 +317,27 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): ], share_image = '0', share_type = '0', + tenant_id = '0', version = '0', ) ], group_key = '0', group_name = '0', group_version = '0', - ingress_http_routes = [ - openapi_client.models.v1alpha1/ingress_http_route.v1alpha1.IngressHTTPRoute( - component_key = '0', - connection_timeout = 56, - cookies = { - 'key' : '0' - }, - default_domain = True, - headers = { - 'key' : '0' - }, - load_balancing = '0', - location = '0', - port = 56, - proxy_buffer = True, - proxy_buffer_numbers = 56, - proxy_buffer_size = 56, - proxy_header = { - 'key' : '0' - }, - request_body_size_limit = 56, - request_timeout = 56, - response_timeout = 56, - ssl = True, - websocket = True, ) - ], - ingress_stream_routes = [ - openapi_client.models.v1alpha1/ingress_sream_route.v1alpha1.IngressSreamRoute( - component_key = '0', - connection_timeout = 56, - port = 56, - protocol = '0', ) - ], plugins = [ - openapi_client.models.v1alpha1/plugin.v1alpha1.Plugin( + openapi_client.models.v1/store_app_version_templete_plugin.v1.StoreAppVersionTempletePlugin( id = 56, build_source = '0', build_version = '0', category = '0', code_repo = '0', config_groups = [ - openapi_client.models.v1alpha1/plugin_config_group.v1alpha1.PluginConfigGroup( + openapi_client.models.v1/store_app_version_templete_plugin_config_group.v1.StoreAppVersionTempletePluginConfigGroup( id = 56, build_version = '0', config_name = '0', injection = '0', options = [ - openapi_client.models.v1alpha1/plugin_config_group_option.v1alpha1.PluginConfigGroupOption( + openapi_client.models.v1/store_app_version_templete_plugin_config_group_option.v1.StoreAppVersionTempletePluginConfigGroupOption( id = 56, attr_alt_value = '0', attr_default_value = '0', @@ -514,7 +360,7 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): origin_share_id = '0', plugin_alias = '0', plugin_id = '0', - plugin_image = openapi_client.models.v1alpha1/image_info.v1alpha1.ImageInfo( + plugin_image = openapi_client.models.v1/image_info.v1.ImageInfo( hub_password = '0', hub_url = '0', hub_user = '0', @@ -525,7 +371,7 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): share_image = '0', ) ], template_version = '0', ), - template_type = '0', + templete_type = '0', version = '0', version_alias = '0', ) diff --git a/test/test_v1_image_info.py b/test/test_v1_image_info.py new file mode 100644 index 0000000000000000000000000000000000000000..04754154b2ed7f27e4fd82d04730ff6b14c9d4dd --- /dev/null +++ b/test/test_v1_image_info.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_image_info import V1ImageInfo # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1ImageInfo(unittest.TestCase): + """V1ImageInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1ImageInfo + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_image_info.V1ImageInfo() # noqa: E501 + if include_optional : + return V1ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0' + ) + else : + return V1ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', + ) + + def testV1ImageInfo(self): + """Test V1ImageInfo""" + 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_v1_market_info_response.py b/test/test_v1_market_info_response.py index 5c19ccaf1f989a7fee1253b0aaf1ecaf74c0cf1a..da9eaebb2cd8927786e99fae523212a8db74a6c0 100644 --- a/test/test_v1_market_info_response.py +++ b/test/test_v1_market_info_response.py @@ -37,25 +37,17 @@ class TestV1MarketInfoResponse(unittest.TestCase): # model = openapi_client.models.v1_market_info_response.V1MarketInfoResponse() # noqa: E501 if include_optional : return V1MarketInfoResponse( - access_actions = [ - '0' - ], - create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), description = '0', + enterprise_name = '0', name = '0', - status = 56, - version = '0' + status = '0' ) else : return V1MarketInfoResponse( - access_actions = [ - '0' - ], - create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), description = '0', + enterprise_name = '0', name = '0', - status = 56, - version = '0', + status = '0', ) def testV1MarketInfoResponse(self): diff --git a/test/test_v1_store_app_version_template.py b/test/test_v1_store_app_version_template.py new file mode 100644 index 0000000000000000000000000000000000000000..779782009dc72f84a4ba2932fd63fb12892e1c04 --- /dev/null +++ b/test/test_v1_store_app_version_template.py @@ -0,0 +1,329 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_template import V1StoreAppVersionTemplate # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTemplate(unittest.TestCase): + """V1StoreAppVersionTemplate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTemplate + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_template.V1StoreAppVersionTemplate() # noqa: E501 + if include_optional : + return V1StoreAppVersionTemplate( + apps = [ + openapi_client.models.v1/store_app_version_templete_app.v1.StoreAppVersionTempleteApp( + category = '0', + cmd = '0', + dep_service_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_dep_service.v1.StoreAppVersionTempleteAppDepService( + dep_service_key = '0', ) + ], + deploy_version = '0', + extend_method = '0', + extend_method_map = openapi_client.models.v1/store_app_version_templete_app_extend_method_rule.v1.StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, ), + image = '0', + language = '0', + memory = 56, + mnt_relation_list = [ + openapi_client.models.v1/store_app_version_templete_app_share_volume.v1.StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', ) + ], + port_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_port.v1.StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', ) + ], + probes = [ + openapi_client.models.v1/store_app_version_templete_app_probe.v1.StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, ) + ], + service_alias = '0', + service_cname = '0', + service_connect_info_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_env_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_id = '0', + service_image = openapi_client.models.v1/image_info.v1.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + service_key = '0', + service_name = '0', + service_region = '0', + service_related_plugin_config = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config.v1.StoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config/attr.v1.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0', ) + ], + service_share_uuid = '0', + service_source = '0', + service_type = '0', + service_volume_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_volume.v1.StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', ) + ], + share_image = '0', + share_type = '0', + tenant_id = '0', + version = '0', ) + ], + group_key = '0', + group_name = '0', + group_version = '0', + plugins = [ + openapi_client.models.v1/store_app_version_templete_plugin.v1.StoreAppVersionTempletePlugin( + id = 56, + build_source = '0', + build_version = '0', + category = '0', + code_repo = '0', + config_groups = [ + openapi_client.models.v1/store_app_version_templete_plugin_config_group.v1.StoreAppVersionTempletePluginConfigGroup( + id = 56, + build_version = '0', + config_name = '0', + injection = '0', + options = [ + openapi_client.models.v1/store_app_version_templete_plugin_config_group_option.v1.StoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0', ) + ], + plugin_id = '0', + service_meta_type = '0', ) + ], + create_time = '0', + desc = '0', + image = '0', + origin = '0', + origin_share_id = '0', + plugin_alias = '0', + plugin_id = '0', + plugin_image = openapi_client.models.v1/image_info.v1.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + plugin_key = '0', + plugin_name = '0', + share_image = '0', ) + ], + template_version = '0' + ) + else : + return V1StoreAppVersionTemplate( + apps = [ + openapi_client.models.v1/store_app_version_templete_app.v1.StoreAppVersionTempleteApp( + category = '0', + cmd = '0', + dep_service_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_dep_service.v1.StoreAppVersionTempleteAppDepService( + dep_service_key = '0', ) + ], + deploy_version = '0', + extend_method = '0', + extend_method_map = openapi_client.models.v1/store_app_version_templete_app_extend_method_rule.v1.StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, ), + image = '0', + language = '0', + memory = 56, + mnt_relation_list = [ + openapi_client.models.v1/store_app_version_templete_app_share_volume.v1.StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', ) + ], + port_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_port.v1.StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', ) + ], + probes = [ + openapi_client.models.v1/store_app_version_templete_app_probe.v1.StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, ) + ], + service_alias = '0', + service_cname = '0', + service_connect_info_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_env_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_id = '0', + service_image = openapi_client.models.v1/image_info.v1.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + service_key = '0', + service_name = '0', + service_region = '0', + service_related_plugin_config = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config.v1.StoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config/attr.v1.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0', ) + ], + service_share_uuid = '0', + service_source = '0', + service_type = '0', + service_volume_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_volume.v1.StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', ) + ], + share_image = '0', + share_type = '0', + tenant_id = '0', + version = '0', ) + ], + group_key = '0', + group_name = '0', + group_version = '0', + template_version = '0', + ) + + def testV1StoreAppVersionTemplate(self): + """Test V1StoreAppVersionTemplate""" + 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_v1_store_app_version_templete.py b/test/test_v1_store_app_version_templete.py new file mode 100644 index 0000000000000000000000000000000000000000..86b7265668424083cb7bb9c313caeb66056c1c33 --- /dev/null +++ b/test/test_v1_store_app_version_templete.py @@ -0,0 +1,329 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete import V1StoreAppVersionTemplete # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTemplete(unittest.TestCase): + """V1StoreAppVersionTemplete unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTemplete + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete.V1StoreAppVersionTemplete() # noqa: E501 + if include_optional : + return V1StoreAppVersionTemplete( + apps = [ + openapi_client.models.v1/store_app_version_templete_app.v1.StoreAppVersionTempleteApp( + category = '0', + cmd = '0', + dep_service_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_dep_service.v1.StoreAppVersionTempleteAppDepService( + dep_service_key = '0', ) + ], + deploy_version = '0', + extend_method = '0', + extend_method_map = openapi_client.models.v1/store_app_version_templete_app_extend_method_rule.v1.StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, ), + image = '0', + language = '0', + memory = 56, + mnt_relation_list = [ + openapi_client.models.v1/store_app_version_templete_app_share_volume.v1.StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', ) + ], + port_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_port.v1.StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', ) + ], + probes = [ + openapi_client.models.v1/store_app_version_templete_app_probe.v1.StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, ) + ], + service_alias = '0', + service_cname = '0', + service_connect_info_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_env_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_id = '0', + service_image = openapi_client.models.v1/image_info.v1.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + service_key = '0', + service_name = '0', + service_region = '0', + service_related_plugin_config = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config.v1.StoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config/attr.v1.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0', ) + ], + service_share_uuid = '0', + service_source = '0', + service_type = '0', + service_volume_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_volume.v1.StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', ) + ], + share_image = '0', + share_type = '0', + tenant_id = '0', + version = '0', ) + ], + group_key = '0', + group_name = '0', + group_version = '0', + plugins = [ + openapi_client.models.v1/store_app_version_templete_plugin.v1.StoreAppVersionTempletePlugin( + id = 56, + build_source = '0', + build_version = '0', + category = '0', + code_repo = '0', + config_groups = [ + openapi_client.models.v1/store_app_version_templete_plugin_config_group.v1.StoreAppVersionTempletePluginConfigGroup( + id = 56, + build_version = '0', + config_name = '0', + injection = '0', + options = [ + openapi_client.models.v1/store_app_version_templete_plugin_config_group_option.v1.StoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0', ) + ], + plugin_id = '0', + service_meta_type = '0', ) + ], + create_time = '0', + desc = '0', + image = '0', + origin = '0', + origin_share_id = '0', + plugin_alias = '0', + plugin_id = '0', + plugin_image = openapi_client.models.v1/image_info.v1.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + plugin_key = '0', + plugin_name = '0', + share_image = '0', ) + ], + template_version = '0' + ) + else : + return V1StoreAppVersionTemplete( + apps = [ + openapi_client.models.v1/store_app_version_templete_app.v1.StoreAppVersionTempleteApp( + category = '0', + cmd = '0', + dep_service_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_dep_service.v1.StoreAppVersionTempleteAppDepService( + dep_service_key = '0', ) + ], + deploy_version = '0', + extend_method = '0', + extend_method_map = openapi_client.models.v1/store_app_version_templete_app_extend_method_rule.v1.StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, ), + image = '0', + language = '0', + memory = 56, + mnt_relation_list = [ + openapi_client.models.v1/store_app_version_templete_app_share_volume.v1.StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', ) + ], + port_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_port.v1.StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', ) + ], + probes = [ + openapi_client.models.v1/store_app_version_templete_app_probe.v1.StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, ) + ], + service_alias = '0', + service_cname = '0', + service_connect_info_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_env_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_id = '0', + service_image = openapi_client.models.v1/image_info.v1.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + service_key = '0', + service_name = '0', + service_region = '0', + service_related_plugin_config = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config.v1.StoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config/attr.v1.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0', ) + ], + service_share_uuid = '0', + service_source = '0', + service_type = '0', + service_volume_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_volume.v1.StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', ) + ], + share_image = '0', + share_type = '0', + tenant_id = '0', + version = '0', ) + ], + group_key = '0', + group_name = '0', + group_version = '0', + template_version = '0', + ) + + def testV1StoreAppVersionTemplete(self): + """Test V1StoreAppVersionTemplete""" + 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_v1_store_app_version_templete_app.py b/test/test_v1_store_app_version_templete_app.py new file mode 100644 index 0000000000000000000000000000000000000000..200172228bde563d5797a21cebe2f142641fe056 --- /dev/null +++ b/test/test_v1_store_app_version_templete_app.py @@ -0,0 +1,252 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_app import V1StoreAppVersionTempleteApp # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempleteApp(unittest.TestCase): + """V1StoreAppVersionTempleteApp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempleteApp + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_app.V1StoreAppVersionTempleteApp() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempleteApp( + category = '0', + cmd = '0', + dep_service_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_dep_service.v1.StoreAppVersionTempleteAppDepService( + dep_service_key = '0', ) + ], + deploy_version = '0', + extend_method = '0', + extend_method_map = openapi_client.models.v1/store_app_version_templete_app_extend_method_rule.v1.StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, ), + image = '0', + language = '0', + memory = 56, + mnt_relation_list = [ + openapi_client.models.v1/store_app_version_templete_app_share_volume.v1.StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', ) + ], + port_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_port.v1.StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', ) + ], + probes = [ + openapi_client.models.v1/store_app_version_templete_app_probe.v1.StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, ) + ], + service_alias = '0', + service_cname = '0', + service_connect_info_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_env_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_id = '0', + service_image = openapi_client.models.v1/image_info.v1.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + service_key = '0', + service_name = '0', + service_region = '0', + service_related_plugin_config = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config.v1.StoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config/attr.v1.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0', ) + ], + service_share_uuid = '0', + service_source = '0', + service_type = '0', + service_volume_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_volume.v1.StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', ) + ], + share_image = '0', + share_type = '0', + tenant_id = '0', + version = '0' + ) + else : + return V1StoreAppVersionTempleteApp( + category = '0', + cmd = '0', + dep_service_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_dep_service.v1.StoreAppVersionTempleteAppDepService( + dep_service_key = '0', ) + ], + deploy_version = '0', + extend_method = '0', + extend_method_map = openapi_client.models.v1/store_app_version_templete_app_extend_method_rule.v1.StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, ), + image = '0', + language = '0', + memory = 56, + mnt_relation_list = [ + openapi_client.models.v1/store_app_version_templete_app_share_volume.v1.StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', ) + ], + port_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_port.v1.StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', ) + ], + probes = [ + openapi_client.models.v1/store_app_version_templete_app_probe.v1.StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, ) + ], + service_alias = '0', + service_cname = '0', + service_connect_info_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_env_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_id = '0', + service_image = openapi_client.models.v1/image_info.v1.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + service_key = '0', + service_name = '0', + service_region = '0', + service_source = '0', + service_type = '0', + service_volume_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_volume.v1.StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', ) + ], + share_image = '0', + tenant_id = '0', + version = '0', + ) + + def testV1StoreAppVersionTempleteApp(self): + """Test V1StoreAppVersionTempleteApp""" + 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_v1_store_app_version_templete_app_dep_service.py b/test/test_v1_store_app_version_templete_app_dep_service.py new file mode 100644 index 0000000000000000000000000000000000000000..32b641ff43007d2bf3fd3e5c44215a84df5182f4 --- /dev/null +++ b/test/test_v1_store_app_version_templete_app_dep_service.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_app_dep_service import V1StoreAppVersionTempleteAppDepService # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempleteAppDepService(unittest.TestCase): + """V1StoreAppVersionTempleteAppDepService unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempleteAppDepService + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_app_dep_service.V1StoreAppVersionTempleteAppDepService() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempleteAppDepService( + dep_service_key = '0' + ) + else : + return V1StoreAppVersionTempleteAppDepService( + dep_service_key = '0', + ) + + def testV1StoreAppVersionTempleteAppDepService(self): + """Test V1StoreAppVersionTempleteAppDepService""" + 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_v1_store_app_version_templete_app_env.py b/test/test_v1_store_app_version_templete_app_env.py new file mode 100644 index 0000000000000000000000000000000000000000..625a42df7101c265547b0ee9f2a2aeb333150aae --- /dev/null +++ b/test/test_v1_store_app_version_templete_app_env.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_app_env import V1StoreAppVersionTempleteAppEnv # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempleteAppEnv(unittest.TestCase): + """V1StoreAppVersionTempleteAppEnv unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempleteAppEnv + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_app_env.V1StoreAppVersionTempleteAppEnv() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0' + ) + else : + return V1StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', + ) + + def testV1StoreAppVersionTempleteAppEnv(self): + """Test V1StoreAppVersionTempleteAppEnv""" + 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_v1_store_app_version_templete_app_extend_method_rule.py b/test/test_v1_store_app_version_templete_app_extend_method_rule.py new file mode 100644 index 0000000000000000000000000000000000000000..e8d251e357487eed6c11f9657d301423edba4b83 --- /dev/null +++ b/test/test_v1_store_app_version_templete_app_extend_method_rule.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_app_extend_method_rule import V1StoreAppVersionTempleteAppExtendMethodRule # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempleteAppExtendMethodRule(unittest.TestCase): + """V1StoreAppVersionTempleteAppExtendMethodRule unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempleteAppExtendMethodRule + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_app_extend_method_rule.V1StoreAppVersionTempleteAppExtendMethodRule() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56 + ) + else : + return V1StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, + ) + + def testV1StoreAppVersionTempleteAppExtendMethodRule(self): + """Test V1StoreAppVersionTempleteAppExtendMethodRule""" + 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_v1_store_app_version_templete_app_plugin_config.py b/test/test_v1_store_app_version_templete_app_plugin_config.py new file mode 100644 index 0000000000000000000000000000000000000000..94e481d906d06361962de11e73876da4d452e480 --- /dev/null +++ b/test/test_v1_store_app_version_templete_app_plugin_config.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_app_plugin_config import V1StoreAppVersionTempleteAppPluginConfig # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempleteAppPluginConfig(unittest.TestCase): + """V1StoreAppVersionTempleteAppPluginConfig unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempleteAppPluginConfig + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_app_plugin_config.V1StoreAppVersionTempleteAppPluginConfig() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config/attr.v1.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0' + ) + else : + return V1StoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config/attr.v1.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0', + ) + + def testV1StoreAppVersionTempleteAppPluginConfig(self): + """Test V1StoreAppVersionTempleteAppPluginConfig""" + 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_v1_store_app_version_templete_app_port.py b/test/test_v1_store_app_version_templete_app_port.py new file mode 100644 index 0000000000000000000000000000000000000000..d909b01bb02801674949d1cd7bece152a25f78db --- /dev/null +++ b/test/test_v1_store_app_version_templete_app_port.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_app_port import V1StoreAppVersionTempleteAppPort # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempleteAppPort(unittest.TestCase): + """V1StoreAppVersionTempleteAppPort unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempleteAppPort + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_app_port.V1StoreAppVersionTempleteAppPort() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0' + ) + else : + return V1StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', + ) + + def testV1StoreAppVersionTempleteAppPort(self): + """Test V1StoreAppVersionTempleteAppPort""" + 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_v1_store_app_version_templete_app_probe.py b/test/test_v1_store_app_version_templete_app_probe.py new file mode 100644 index 0000000000000000000000000000000000000000..69f4aba082dcd511726057171761154b74aebee8 --- /dev/null +++ b/test/test_v1_store_app_version_templete_app_probe.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_app_probe import V1StoreAppVersionTempleteAppProbe # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempleteAppProbe(unittest.TestCase): + """V1StoreAppVersionTempleteAppProbe unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempleteAppProbe + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_app_probe.V1StoreAppVersionTempleteAppProbe() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56 + ) + else : + return V1StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, + ) + + def testV1StoreAppVersionTempleteAppProbe(self): + """Test V1StoreAppVersionTempleteAppProbe""" + 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_v1_store_app_version_templete_app_share_volume.py b/test/test_v1_store_app_version_templete_app_share_volume.py new file mode 100644 index 0000000000000000000000000000000000000000..e0a6cab3c1b80e27313d3c808aba2ce4dbb983dd --- /dev/null +++ b/test/test_v1_store_app_version_templete_app_share_volume.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_app_share_volume import V1StoreAppVersionTempleteAppShareVolume # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempleteAppShareVolume(unittest.TestCase): + """V1StoreAppVersionTempleteAppShareVolume unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempleteAppShareVolume + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_app_share_volume.V1StoreAppVersionTempleteAppShareVolume() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0' + ) + else : + return V1StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', + ) + + def testV1StoreAppVersionTempleteAppShareVolume(self): + """Test V1StoreAppVersionTempleteAppShareVolume""" + 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_v1_store_app_version_templete_app_volume.py b/test/test_v1_store_app_version_templete_app_volume.py new file mode 100644 index 0000000000000000000000000000000000000000..8506dd0f8957aaad39e5a50057ac16d6730de4c5 --- /dev/null +++ b/test/test_v1_store_app_version_templete_app_volume.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_app_volume import V1StoreAppVersionTempleteAppVolume # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempleteAppVolume(unittest.TestCase): + """V1StoreAppVersionTempleteAppVolume unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempleteAppVolume + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_app_volume.V1StoreAppVersionTempleteAppVolume() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0' + ) + else : + return V1StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', + ) + + def testV1StoreAppVersionTempleteAppVolume(self): + """Test V1StoreAppVersionTempleteAppVolume""" + 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_v1_store_app_version_templete_plugin.py b/test/test_v1_store_app_version_templete_plugin.py new file mode 100644 index 0000000000000000000000000000000000000000..533099938f0470904b46abf6e6b270c7f85f8d1c --- /dev/null +++ b/test/test_v1_store_app_version_templete_plugin.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_plugin import V1StoreAppVersionTempletePlugin # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempletePlugin(unittest.TestCase): + """V1StoreAppVersionTempletePlugin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempletePlugin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_plugin.V1StoreAppVersionTempletePlugin() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempletePlugin( + id = 56, + build_source = '0', + build_version = '0', + category = '0', + code_repo = '0', + config_groups = [ + openapi_client.models.v1/store_app_version_templete_plugin_config_group.v1.StoreAppVersionTempletePluginConfigGroup( + id = 56, + build_version = '0', + config_name = '0', + injection = '0', + options = [ + openapi_client.models.v1/store_app_version_templete_plugin_config_group_option.v1.StoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0', ) + ], + plugin_id = '0', + service_meta_type = '0', ) + ], + create_time = '0', + desc = '0', + image = '0', + origin = '0', + origin_share_id = '0', + plugin_alias = '0', + plugin_id = '0', + plugin_image = openapi_client.models.v1/image_info.v1.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + plugin_key = '0', + plugin_name = '0', + share_image = '0' + ) + else : + return V1StoreAppVersionTempletePlugin( + id = 56, + build_source = '0', + build_version = '0', + category = '0', + code_repo = '0', + create_time = '0', + desc = '0', + image = '0', + origin = '0', + origin_share_id = '0', + plugin_alias = '0', + plugin_id = '0', + plugin_image = openapi_client.models.v1/image_info.v1.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + plugin_key = '0', + plugin_name = '0', + share_image = '0', + ) + + def testV1StoreAppVersionTempletePlugin(self): + """Test V1StoreAppVersionTempletePlugin""" + 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_v1_store_app_version_templete_plugin_config_group.py b/test/test_v1_store_app_version_templete_plugin_config_group.py new file mode 100644 index 0000000000000000000000000000000000000000..b300de5da34b647a59368a798a1d26546fcf6643 --- /dev/null +++ b/test/test_v1_store_app_version_templete_plugin_config_group.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_plugin_config_group import V1StoreAppVersionTempletePluginConfigGroup # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempletePluginConfigGroup(unittest.TestCase): + """V1StoreAppVersionTempletePluginConfigGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempletePluginConfigGroup + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_plugin_config_group.V1StoreAppVersionTempletePluginConfigGroup() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempletePluginConfigGroup( + id = 56, + build_version = '0', + config_name = '0', + injection = '0', + options = [ + openapi_client.models.v1/store_app_version_templete_plugin_config_group_option.v1.StoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0', ) + ], + plugin_id = '0', + service_meta_type = '0' + ) + else : + return V1StoreAppVersionTempletePluginConfigGroup( + id = 56, + build_version = '0', + config_name = '0', + injection = '0', + plugin_id = '0', + service_meta_type = '0', + ) + + def testV1StoreAppVersionTempletePluginConfigGroup(self): + """Test V1StoreAppVersionTempletePluginConfigGroup""" + 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_v1_store_app_version_templete_plugin_config_group_option.py b/test/test_v1_store_app_version_templete_plugin_config_group_option.py new file mode 100644 index 0000000000000000000000000000000000000000..21cd16b932ce467fd34e7c927ad641cf74985ed1 --- /dev/null +++ b/test/test_v1_store_app_version_templete_plugin_config_group_option.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_plugin_config_group_option import V1StoreAppVersionTempletePluginConfigGroupOption # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempletePluginConfigGroupOption(unittest.TestCase): + """V1StoreAppVersionTempletePluginConfigGroupOption unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempletePluginConfigGroupOption + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_plugin_config_group_option.V1StoreAppVersionTempletePluginConfigGroupOption() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0' + ) + else : + return V1StoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0', + ) + + def testV1StoreAppVersionTempletePluginConfigGroupOption(self): + """Test V1StoreAppVersionTempletePluginConfigGroupOption""" + 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_v1_user_app_list_response.py b/test/test_v1_user_app_list_response.py index 44f2c6c7c3f170efafaeeef1458543150e279388..322694aba0ec5ce4ecce4e7f658e8af0f23d17df 100644 --- a/test/test_v1_user_app_list_response.py +++ b/test/test_v1_user_app_list_response.py @@ -55,28 +55,8 @@ class TestV1UserAppListResponse(unittest.TestCase): market_url = '0', name = '0', publish_type = '0', - publish_user = '0', - show_count = 56, start_count = 56, - status = '0', - tags = [ - '0' - ], - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - versions = [ - openapi_client.models.v1/app_version_base.v1.AppVersionBase( - app_key_id = '0', - app_version = '0', - app_version_alias = '0', - create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', - desc = '0', - enable = True, - is_plugin = True, - rainbond_version = '0', - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - update_version = 56, ) - ], ) + update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) ], page = 56, page_size = 56, @@ -102,28 +82,8 @@ class TestV1UserAppListResponse(unittest.TestCase): market_url = '0', name = '0', publish_type = '0', - publish_user = '0', - show_count = 56, start_count = 56, - status = '0', - tags = [ - '0' - ], - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - versions = [ - openapi_client.models.v1/app_version_base.v1.AppVersionBase( - app_key_id = '0', - app_version = '0', - app_version_alias = '0', - create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', - desc = '0', - enable = True, - is_plugin = True, - rainbond_version = '0', - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - update_version = 56, ) - ], ) + update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) ], page = 56, page_size = 56, diff --git a/test/test_v1alpha1_app_config_group.py b/test/test_v1alpha1_app_config_group.py index 2e22082352619f94e2da39ba5112e731ceaacda4..50779cb64a125333ab3ea9b33830d70f59482fd0 100644 --- a/test/test_v1alpha1_app_config_group.py +++ b/test/test_v1alpha1_app_config_group.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_component.py b/test/test_v1alpha1_component.py index 56b4d77268e2d554551b1f20b386f59367a5ede4..84f9f244618c74c697a87f9e88613facff97d07b 100644 --- a/test/test_v1alpha1_component.py +++ b/test/test_v1alpha1_component.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -39,15 +38,7 @@ class TestV1alpha1Component(unittest.TestCase): return V1alpha1Component( category = '0', cmd = '0', - component_graphs = [ - openapi_client.models.v1alpha1/component_graph.v1alpha1.ComponentGraph( - component_id = '0', - graph_id = '0', - promql = '0', - sequence = 56, - title = '0', ) - ], - component_monitors = [ + component_monitor = [ openapi_client.models.v1alpha1/component_monitor.v1alpha1.ComponentMonitor( interval = '0', name = '0', @@ -61,13 +52,8 @@ class TestV1alpha1Component(unittest.TestCase): dep_service_key = '0', ) ], deploy_version = '0', - endpoints = openapi_client.models.v1alpha1/endpoints.v1alpha1.Endpoints( - endpoints_info = '0', - endpoints_type = '0', - service_cname = '0', ), extend_method = '0', extend_method_map = openapi_client.models.v1alpha1/component_extend_method_rule.v1alpha1.ComponentExtendMethodRule( - init_memory = 56, is_restart = 56, max_memory = 56, max_node = 56, @@ -76,9 +62,6 @@ class TestV1alpha1Component(unittest.TestCase): step_memory = 56, step_node = 56, ), image = '0', - labels = { - 'key' : '0' - }, language = '0', memory = 56, mnt_relation_list = [ @@ -120,7 +103,6 @@ class TestV1alpha1Component(unittest.TestCase): openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], @@ -128,7 +110,6 @@ class TestV1alpha1Component(unittest.TestCase): openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], @@ -163,8 +144,7 @@ class TestV1alpha1Component(unittest.TestCase): openapi_client.models.v1alpha1/component_volume.v1alpha1.ComponentVolume( access_mode = '0', file_content = '0', - mode = 56, - share_policy = '0', + sharing_policy = '0', volume_capacity = 56, volume_name = '0', volume_path = '0', @@ -178,15 +158,7 @@ class TestV1alpha1Component(unittest.TestCase): return V1alpha1Component( category = '0', cmd = '0', - component_graphs = [ - openapi_client.models.v1alpha1/component_graph.v1alpha1.ComponentGraph( - component_id = '0', - graph_id = '0', - promql = '0', - sequence = 56, - title = '0', ) - ], - component_monitors = [ + component_monitor = [ openapi_client.models.v1alpha1/component_monitor.v1alpha1.ComponentMonitor( interval = '0', name = '0', @@ -202,7 +174,6 @@ class TestV1alpha1Component(unittest.TestCase): deploy_version = '0', extend_method = '0', extend_method_map = openapi_client.models.v1alpha1/component_extend_method_rule.v1alpha1.ComponentExtendMethodRule( - init_memory = 56, is_restart = 56, max_memory = 56, max_node = 56, @@ -252,7 +223,6 @@ class TestV1alpha1Component(unittest.TestCase): openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], @@ -260,7 +230,6 @@ class TestV1alpha1Component(unittest.TestCase): openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], @@ -279,8 +248,7 @@ class TestV1alpha1Component(unittest.TestCase): openapi_client.models.v1alpha1/component_volume.v1alpha1.ComponentVolume( access_mode = '0', file_content = '0', - mode = 56, - share_policy = '0', + sharing_policy = '0', volume_capacity = 56, volume_name = '0', volume_path = '0', diff --git a/test/test_v1alpha1_component_dep.py b/test/test_v1alpha1_component_dep.py index c21f010dd0e016875c1badf029a93800175fa756..c6deb3a688f3f303cf17081fc41209bbc669f95d 100644 --- a/test/test_v1alpha1_component_dep.py +++ b/test/test_v1alpha1_component_dep.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_component_env.py b/test/test_v1alpha1_component_env.py index 6442ecbcac9e6e70b9cf3f96b6a1e3daa39754e7..263824cc3e045fa0bc3181f53295172ebf132ddc 100644 --- a/test/test_v1alpha1_component_env.py +++ b/test/test_v1alpha1_component_env.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -39,7 +38,6 @@ class TestV1alpha1ComponentEnv(unittest.TestCase): return V1alpha1ComponentEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0' ) @@ -47,7 +45,6 @@ class TestV1alpha1ComponentEnv(unittest.TestCase): return V1alpha1ComponentEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) diff --git a/test/test_v1alpha1_component_extend_method_rule.py b/test/test_v1alpha1_component_extend_method_rule.py index 3e3a72f3ab174ab62c4628179fbc442962a9d139..0948337a65ea5131f29df8d6a7a74cfd2e9ca3cd 100644 --- a/test/test_v1alpha1_component_extend_method_rule.py +++ b/test/test_v1alpha1_component_extend_method_rule.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -37,7 +36,6 @@ class TestV1alpha1ComponentExtendMethodRule(unittest.TestCase): # model = openapi_client.models.v1alpha1_component_extend_method_rule.V1alpha1ComponentExtendMethodRule() # noqa: E501 if include_optional : return V1alpha1ComponentExtendMethodRule( - init_memory = 56, is_restart = 56, max_memory = 56, max_node = 56, @@ -48,7 +46,6 @@ class TestV1alpha1ComponentExtendMethodRule(unittest.TestCase): ) else : return V1alpha1ComponentExtendMethodRule( - init_memory = 56, is_restart = 56, max_memory = 56, max_node = 56, diff --git a/test/test_v1alpha1_component_graph.py b/test/test_v1alpha1_component_graph.py index 1db13818173c7e00a4c104f3fff02aba9952cb28..a2963ed26a98a2ee328b02ab853bdac95dcfa34b 100644 --- a/test/test_v1alpha1_component_graph.py +++ b/test/test_v1alpha1_component_graph.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_component_k8s_attribute.py b/test/test_v1alpha1_component_k8s_attribute.py new file mode 100644 index 0000000000000000000000000000000000000000..e37b6ff235204927dbb8b1ced6abc3b13a7c9761 --- /dev/null +++ b/test/test_v1alpha1_component_k8s_attribute.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1alpha1_component_k8s_attribute import V1alpha1ComponentK8sAttribute # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1alpha1ComponentK8sAttribute(unittest.TestCase): + """V1alpha1ComponentK8sAttribute unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1alpha1ComponentK8sAttribute + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1alpha1_component_k8s_attribute.V1alpha1ComponentK8sAttribute() # noqa: E501 + if include_optional : + return V1alpha1ComponentK8sAttribute( + attribute_value = '0', + component_id = '0', + name = '0', + save_type = '0' + ) + else : + return V1alpha1ComponentK8sAttribute( + attribute_value = '0', + component_id = '0', + name = '0', + save_type = '0', + ) + + def testV1alpha1ComponentK8sAttribute(self): + """Test V1alpha1ComponentK8sAttribute""" + 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_v1alpha1_component_monitor.py b/test/test_v1alpha1_component_monitor.py index c064e73de3125cf7eec7e8e2c33022d8967ea4d6..328669790a1836a582079ef32d2588f761bde110 100644 --- a/test/test_v1alpha1_component_monitor.py +++ b/test/test_v1alpha1_component_monitor.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_component_plugin_config.py b/test/test_v1alpha1_component_plugin_config.py index bac3bf0311d529af384ed59794b88d2d7092dd51..072673945f2b3b07c2b68012c47d4e6f15d45e9c 100644 --- a/test/test_v1alpha1_component_plugin_config.py +++ b/test/test_v1alpha1_component_plugin_config.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_component_port.py b/test/test_v1alpha1_component_port.py index f6e7fd50ac1bfb0a8b7e23cf1284f9cd7cc0cce6..2b56dc9ce0aa496c35ac262f058b8f8b9a24fff6 100644 --- a/test/test_v1alpha1_component_port.py +++ b/test/test_v1alpha1_component_port.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_component_probe.py b/test/test_v1alpha1_component_probe.py index 67b7eb132273edfa33edf364e84675c7b3855780..89995e3f3e92cd72de065f95c83b341252c75160 100644 --- a/test/test_v1alpha1_component_probe.py +++ b/test/test_v1alpha1_component_probe.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_component_share_volume.py b/test/test_v1alpha1_component_share_volume.py index 9da860a506d19b728841fb814b819eb9d4700ad9..261e1a349cc89afbb5da05b8e346ea14b8d94945 100644 --- a/test/test_v1alpha1_component_share_volume.py +++ b/test/test_v1alpha1_component_share_volume.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_component_volume.py b/test/test_v1alpha1_component_volume.py index 885c038ab9bcd936108c3f380838c8077e2347fd..1e5c4256a729c66e8b1c8c88ed2b4d1265bcefe3 100644 --- a/test/test_v1alpha1_component_volume.py +++ b/test/test_v1alpha1_component_volume.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -39,8 +38,7 @@ class TestV1alpha1ComponentVolume(unittest.TestCase): return V1alpha1ComponentVolume( access_mode = '0', file_content = '0', - mode = 56, - share_policy = '0', + sharing_policy = '0', volume_capacity = 56, volume_name = '0', volume_path = '0', @@ -48,7 +46,10 @@ class TestV1alpha1ComponentVolume(unittest.TestCase): ) else : return V1alpha1ComponentVolume( + access_mode = '0', file_content = '0', + sharing_policy = '0', + volume_capacity = 56, volume_name = '0', volume_path = '0', volume_type = '0', diff --git a/test/test_v1alpha1_endpoints.py b/test/test_v1alpha1_endpoints.py index 53a0ba69848bb0eb523e409154a3f1147ac37dd9..09e73fbc6c33eefa2404a6cb49834916470678e7 100644 --- a/test/test_v1alpha1_endpoints.py +++ b/test/test_v1alpha1_endpoints.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_image_info.py b/test/test_v1alpha1_image_info.py index 32f473978291b9d931ae0c8c3f58666bb8341420..38df547dab28b337559c0cbbb385e5e93e4de50c 100644 --- a/test/test_v1alpha1_image_info.py +++ b/test/test_v1alpha1_image_info.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_ingress_http_route.py b/test/test_v1alpha1_ingress_http_route.py index 470f544410b379d62e324d5e657d49c4e9cd5165..faf97286ff40db9a051a7dfb0702c13b81cc9421 100644 --- a/test/test_v1alpha1_ingress_http_route.py +++ b/test/test_v1alpha1_ingress_http_route.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_ingress_sream_route.py b/test/test_v1alpha1_ingress_sream_route.py index 562408cf4e563cbb0c90d8d1e58c49d1d18dfc49..c243c1914d76c0a34d447aee3a8a8083f5a66343 100644 --- a/test/test_v1alpha1_ingress_sream_route.py +++ b/test/test_v1alpha1_ingress_sream_route.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_k8s_resource.py b/test/test_v1alpha1_k8s_resource.py new file mode 100644 index 0000000000000000000000000000000000000000..f8ed066402f2ddb46b6b0971b22218bff83650e0 --- /dev/null +++ b/test/test_v1alpha1_k8s_resource.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1alpha1_k8s_resource import V1alpha1K8sResource # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1alpha1K8sResource(unittest.TestCase): + """V1alpha1K8sResource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1alpha1K8sResource + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1alpha1_k8s_resource.V1alpha1K8sResource() # noqa: E501 + if include_optional : + return V1alpha1K8sResource( + content = '0', + kind = '0', + name = '0' + ) + else : + return V1alpha1K8sResource( + content = '0', + kind = '0', + name = '0', + ) + + def testV1alpha1K8sResource(self): + """Test V1alpha1K8sResource""" + 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_v1alpha1_plugin.py b/test/test_v1alpha1_plugin.py index b5e1a8ad63d2b6e3706f7568cab39d83569901c4..4ca9ba0036b76775c4cc91e6e425198068b2d640 100644 --- a/test/test_v1alpha1_plugin.py +++ b/test/test_v1alpha1_plugin.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_plugin_config_group.py b/test/test_v1alpha1_plugin_config_group.py index 0f9926024a2ee8846254dd3c55dc12a954fdca2a..fb2d4e4069c6c54ea03d751ca16d3b990ba6122d 100644 --- a/test/test_v1alpha1_plugin_config_group.py +++ b/test/test_v1alpha1_plugin_config_group.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_plugin_config_group_option.py b/test/test_v1alpha1_plugin_config_group_option.py index ff2838760f20418f486c1b16943449cc8ed4e9e9..723ebb39085e86ab7e9b60340d49fbf703939563 100644 --- a/test/test_v1alpha1_plugin_config_group_option.py +++ b/test/test_v1alpha1_plugin_config_group_option.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_rainbond_application_config.py b/test/test_v1alpha1_rainbond_application_config.py index 245dc4e0d6e54aebac2beb2c19e95e747d32b6c5..cdd804d1f534105b47e9fb4f2cbab83a15250540 100644 --- a/test/test_v1alpha1_rainbond_application_config.py +++ b/test/test_v1alpha1_rainbond_application_config.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -37,9 +36,6 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): # model = openapi_client.models.v1alpha1_rainbond_application_config.V1alpha1RainbondApplicationConfig() # noqa: E501 if include_optional : return V1alpha1RainbondApplicationConfig( - annotations = { - 'key' : '0' - }, app_config_groups = [ openapi_client.models.v1alpha1/app_config_group.v1alpha1.AppConfigGroup( component_ids = [ @@ -55,15 +51,7 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): openapi_client.models.v1alpha1/component.v1alpha1.Component( category = '0', cmd = '0', - component_graphs = [ - openapi_client.models.v1alpha1/component_graph.v1alpha1.ComponentGraph( - component_id = '0', - graph_id = '0', - promql = '0', - sequence = 56, - title = '0', ) - ], - component_monitors = [ + component_monitor = [ openapi_client.models.v1alpha1/component_monitor.v1alpha1.ComponentMonitor( interval = '0', name = '0', @@ -77,13 +65,8 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): dep_service_key = '0', ) ], deploy_version = '0', - endpoints = openapi_client.models.v1alpha1/endpoints.v1alpha1.Endpoints( - endpoints_info = '0', - endpoints_type = '0', - service_cname = '0', ), extend_method = '0', extend_method_map = openapi_client.models.v1alpha1/component_extend_method_rule.v1alpha1.ComponentExtendMethodRule( - init_memory = 56, is_restart = 56, max_memory = 56, max_node = 56, @@ -92,9 +75,6 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): step_memory = 56, step_node = 56, ), image = '0', - labels = { - 'key' : '0' - }, language = '0', memory = 56, mnt_relation_list = [ @@ -136,7 +116,6 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], @@ -144,7 +123,6 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], @@ -179,8 +157,7 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): openapi_client.models.v1alpha1/component_volume.v1alpha1.ComponentVolume( access_mode = '0', file_content = '0', - mode = 56, - share_policy = '0', + sharing_policy = '0', volume_capacity = 56, volume_name = '0', volume_path = '0', @@ -193,39 +170,6 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): group_key = '0', group_name = '0', group_version = '0', - ingress_http_routes = [ - openapi_client.models.v1alpha1/ingress_http_route.v1alpha1.IngressHTTPRoute( - component_key = '0', - connection_timeout = 56, - cookies = { - 'key' : '0' - }, - default_domain = True, - headers = { - 'key' : '0' - }, - load_balancing = '0', - location = '0', - port = 56, - proxy_buffer = True, - proxy_buffer_numbers = 56, - proxy_buffer_size = 56, - proxy_header = { - 'key' : '0' - }, - request_body_size_limit = 56, - request_timeout = 56, - response_timeout = 56, - ssl = True, - websocket = True, ) - ], - ingress_stream_routes = [ - openapi_client.models.v1alpha1/ingress_sream_route.v1alpha1.IngressSreamRoute( - component_key = '0', - connection_timeout = 56, - port = 56, - protocol = '0', ) - ], plugins = [ openapi_client.models.v1alpha1/plugin.v1alpha1.Plugin( id = 56, @@ -292,15 +236,7 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): openapi_client.models.v1alpha1/component.v1alpha1.Component( category = '0', cmd = '0', - component_graphs = [ - openapi_client.models.v1alpha1/component_graph.v1alpha1.ComponentGraph( - component_id = '0', - graph_id = '0', - promql = '0', - sequence = 56, - title = '0', ) - ], - component_monitors = [ + component_monitor = [ openapi_client.models.v1alpha1/component_monitor.v1alpha1.ComponentMonitor( interval = '0', name = '0', @@ -314,13 +250,8 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): dep_service_key = '0', ) ], deploy_version = '0', - endpoints = openapi_client.models.v1alpha1/endpoints.v1alpha1.Endpoints( - endpoints_info = '0', - endpoints_type = '0', - service_cname = '0', ), extend_method = '0', extend_method_map = openapi_client.models.v1alpha1/component_extend_method_rule.v1alpha1.ComponentExtendMethodRule( - init_memory = 56, is_restart = 56, max_memory = 56, max_node = 56, @@ -329,9 +260,6 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): step_memory = 56, step_node = 56, ), image = '0', - labels = { - 'key' : '0' - }, language = '0', memory = 56, mnt_relation_list = [ @@ -373,7 +301,6 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], @@ -381,7 +308,6 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], @@ -416,8 +342,7 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): openapi_client.models.v1alpha1/component_volume.v1alpha1.ComponentVolume( access_mode = '0', file_content = '0', - mode = 56, - share_policy = '0', + sharing_policy = '0', volume_capacity = 56, volume_name = '0', volume_path = '0',