From 709e31b9c5eb6a5d97999238dc7acb5f3a09d9d1 Mon Sep 17 00:00:00 2001 From: quyc Date: Tue, 31 May 2022 21:21:12 +0800 Subject: [PATCH] feat: sharing and installation of plugins --- README.md | 6 + docs/AppsStoreAppVersionTemplete.md | 15 - docs/AppsStoreAppVersionTempleteApp.md | 39 - ...ppsStoreAppVersionTempleteAppDepService.md | 10 - docs/AppsStoreAppVersionTempleteAppEnv.md | 13 - ...reAppVersionTempleteAppExtendMethodRule.md | 16 - ...sStoreAppVersionTempleteAppPluginConfig.md | 18 - docs/AppsStoreAppVersionTempleteAppPort.md | 15 - docs/AppsStoreAppVersionTempleteAppVolume.md | 15 - docs/AppsStoreAppVersionTempletePlugin.md | 26 - ...toreAppVersionTempletePluginConfigGroup.md | 16 - ...pVersionTempletePluginConfigGroupOption.md | 20 - docs/MarketOpenapiApi.md | 172 ++++ docs/V1AppBaseInfo.md | 1 + docs/V1AppCreateRequest.md | 17 - docs/V1AppDetailInfoResponse.md | 1 + docs/V1AppVersionBase.md | 5 +- docs/V1AppVersionDetailResponse.md | 1 + docs/V1AppVersionRequest.md | 15 - docs/V1CreateAppPaaSVersionRequest.md | 1 + docs/V1ImageInfo.md | 14 - docs/V1MarketInfoResponse.md | 2 +- docs/V1StoreAppVersionTemplate.md | 15 - docs/V1StoreAppVersionTemplete.md | 15 - docs/V1StoreAppVersionTempleteApp.md | 39 - docs/V1StoreAppVersionTempleteAppEnv.md | 13 - ...reAppVersionTempleteAppExtendMethodRule.md | 16 - ...1StoreAppVersionTempleteAppPluginConfig.md | 18 - docs/V1StoreAppVersionTempleteAppPort.md | 15 - docs/V1StoreAppVersionTempleteAppProbe.md | 24 - ...V1StoreAppVersionTempleteAppShareVolume.md | 12 - docs/V1StoreAppVersionTempleteAppVolume.md | 15 - docs/V1StoreAppVersionTempletePlugin.md | 26 - ...toreAppVersionTempletePluginConfigGroup.md | 16 - ...pVersionTempletePluginConfigGroupOption.md | 20 - docs/V1alpha1Component.md | 5 +- docs/V1alpha1ComponentEnv.md | 1 + docs/V1alpha1ComponentExtendMethodRule.md | 1 + ...ImageInfo.md => V1alpha1ComponentGraph.md} | 12 +- docs/V1alpha1ComponentVolume.md | 7 +- ...eAppDepService.md => V1alpha1Endpoints.md} | 6 +- ...ppProbe.md => V1alpha1IngressHTTPRoute.md} | 32 +- ...Volume.md => V1alpha1IngressSreamRoute.md} | 9 +- docs/V1alpha1RainbondApplicationConfig.md | 3 + openapi_client/.DS_Store | Bin 6148 -> 0 bytes openapi_client/__init__.py | 4 + openapi_client/api/market_openapi_api.py | 264 +++++ openapi_client/models/__init__.py | 4 + openapi_client/models/apps_image_info.py | 230 ----- .../models/apps_store_app_version_templete.py | 256 ----- .../apps_store_app_version_templete_app.py | 902 ------------------ ...re_app_version_templete_app_dep_service.py | 122 --- ...apps_store_app_version_templete_app_env.py | 203 ---- ...version_templete_app_extend_method_rule.py | 284 ------ ..._app_version_templete_app_plugin_config.py | 338 ------- ...pps_store_app_version_templete_app_port.py | 257 ----- ...ps_store_app_version_templete_app_probe.py | 500 ---------- ...e_app_version_templete_app_share_volume.py | 176 ---- ...s_store_app_version_templete_app_volume.py | 257 ----- .../apps_store_app_version_templete_plugin.py | 553 ----------- ...pp_version_templete_plugin_config_group.py | 283 ------ ...ion_templete_plugin_config_group_option.py | 392 -------- openapi_client/models/v1_app_base_info.py | 31 +- .../models/v1_app_create_request.py | 313 ------ .../models/v1_app_detail_info_response.py | 31 +- openapi_client/models/v1_app_version_base.py | 37 +- .../models/v1_app_version_detail_response.py | 31 +- .../models/v1_app_version_request.py | 257 ----- .../v1_create_app_paa_s_version_request.py | 29 +- .../models/v1_market_info_response.py | 5 +- .../models/v1_store_app_version_template.py | 256 ----- .../models/v1_store_app_version_templete.py | 256 ----- .../v1_store_app_version_templete_app.py | 902 ------------------ ...re_app_version_templete_app_dep_service.py | 122 --- ...version_templete_app_extend_method_rule.py | 284 ------ ..._app_version_templete_app_plugin_config.py | 338 ------- .../v1_store_app_version_templete_app_port.py | 257 ----- ...v1_store_app_version_templete_app_probe.py | 500 ---------- ...1_store_app_version_templete_app_volume.py | 257 ----- .../v1_store_app_version_templete_plugin.py | 553 ----------- ...pp_version_templete_plugin_config_group.py | 283 ------ ...ion_templete_plugin_config_group_option.py | 392 -------- openapi_client/models/v1alpha1_component.py | 111 ++- .../models/v1alpha1_component_env.py | 29 +- .../v1alpha1_component_extend_method_rule.py | 29 +- ...ge_info.py => v1alpha1_component_graph.py} | 164 ++-- .../models/v1alpha1_component_volume.py | 67 +- ..._share_volume.py => v1alpha1_endpoints.py} | 100 +- .../models/v1alpha1_ingress_http_route.py | 554 +++++++++++ ...env.py => v1alpha1_ingress_sream_route.py} | 138 +-- .../v1alpha1_rainbond_application_config.py | 80 +- test/test_apps_store_app_version_templete.py | 329 ------- ...est_apps_store_app_version_templete_app.py | 252 ----- ...re_app_version_templete_app_dep_service.py | 54 -- ...apps_store_app_version_templete_app_env.py | 60 -- ...version_templete_app_extend_method_rule.py | 66 -- ..._app_version_templete_app_plugin_config.py | 74 -- ...pps_store_app_version_templete_app_port.py | 64 -- ...e_app_version_templete_app_share_volume.py | 58 -- ...s_store_app_version_templete_app_volume.py | 64 -- ..._apps_store_app_version_templete_plugin.py | 117 --- ...pp_version_templete_plugin_config_group.py | 78 -- ...ion_templete_plugin_config_group_option.py | 74 -- test/test_market_openapi_api.py | 46 +- test/test_platform_open_api.py | 1 + test/test_v1_app_base_info.py | 42 +- test/test_v1_app_create_request.py | 64 -- test/test_v1_app_detail_info_response.py | 16 + test/test_v1_app_model_create_request.py | 1 + test/test_v1_app_update_request.py | 4 - test/test_v1_app_version_base.py | 6 + test/test_v1_app_version_detail_response.py | 191 +--- test/test_v1_app_version_list_response.py | 44 +- test/test_v1_app_version_request.py | 64 -- test/test_v1_bindable_market.py | 1 + ...est_v1_create_app_paa_s_version_request.py | 238 ++++- test/test_v1_market_info_response.py | 16 +- test/test_v1_store_app_version_template.py | 329 ------- test/test_v1_store_app_version_templete.py | 329 ------- .../test_v1_store_app_version_templete_app.py | 252 ----- ...t_v1_store_app_version_templete_app_env.py | 60 -- ...version_templete_app_extend_method_rule.py | 66 -- ..._app_version_templete_app_plugin_config.py | 74 -- ..._v1_store_app_version_templete_app_port.py | 64 -- ...v1_store_app_version_templete_app_probe.py | 82 -- ...e_app_version_templete_app_share_volume.py | 58 -- ...1_store_app_version_templete_app_volume.py | 64 -- ...st_v1_store_app_version_templete_plugin.py | 117 --- ...pp_version_templete_plugin_config_group.py | 78 -- ...ion_templete_plugin_config_group_option.py | 74 -- test/test_v1_user_app_list_response.py | 44 +- test/test_v1alpha1_app_config_group.py | 1 + test/test_v1alpha1_component.py | 40 +- test/test_v1alpha1_component_dep.py | 1 + test/test_v1alpha1_component_env.py | 3 + ...t_v1alpha1_component_extend_method_rule.py | 3 + ...ce.py => test_v1alpha1_component_graph.py} | 30 +- test/test_v1alpha1_component_monitor.py | 1 + test/test_v1alpha1_component_plugin_config.py | 1 + test/test_v1alpha1_component_port.py | 1 + test/test_v1alpha1_component_probe.py | 1 + test/test_v1alpha1_component_share_volume.py | 1 + test/test_v1alpha1_component_volume.py | 7 +- ...age_info.py => test_v1alpha1_endpoints.py} | 34 +- test/test_v1alpha1_image_info.py | 1 + ...py => test_v1alpha1_ingress_http_route.py} | 90 +- ...y => test_v1alpha1_ingress_sream_route.py} | 36 +- test/test_v1alpha1_plugin.py | 1 + test/test_v1alpha1_plugin_config_group.py | 1 + ...est_v1alpha1_plugin_config_group_option.py | 1 + ...st_v1alpha1_rainbond_application_config.py | 83 +- 151 files changed, 2329 insertions(+), 13912 deletions(-) delete mode 100644 docs/AppsStoreAppVersionTemplete.md delete mode 100644 docs/AppsStoreAppVersionTempleteApp.md delete mode 100644 docs/AppsStoreAppVersionTempleteAppDepService.md delete mode 100644 docs/AppsStoreAppVersionTempleteAppEnv.md delete mode 100644 docs/AppsStoreAppVersionTempleteAppExtendMethodRule.md delete mode 100644 docs/AppsStoreAppVersionTempleteAppPluginConfig.md delete mode 100644 docs/AppsStoreAppVersionTempleteAppPort.md delete mode 100644 docs/AppsStoreAppVersionTempleteAppVolume.md delete mode 100644 docs/AppsStoreAppVersionTempletePlugin.md delete mode 100644 docs/AppsStoreAppVersionTempletePluginConfigGroup.md delete mode 100644 docs/AppsStoreAppVersionTempletePluginConfigGroupOption.md delete mode 100644 docs/V1AppCreateRequest.md delete mode 100644 docs/V1AppVersionRequest.md delete mode 100644 docs/V1ImageInfo.md delete mode 100644 docs/V1StoreAppVersionTemplate.md delete mode 100644 docs/V1StoreAppVersionTemplete.md delete mode 100644 docs/V1StoreAppVersionTempleteApp.md delete mode 100644 docs/V1StoreAppVersionTempleteAppEnv.md delete mode 100644 docs/V1StoreAppVersionTempleteAppExtendMethodRule.md delete mode 100644 docs/V1StoreAppVersionTempleteAppPluginConfig.md delete mode 100644 docs/V1StoreAppVersionTempleteAppPort.md delete mode 100644 docs/V1StoreAppVersionTempleteAppProbe.md delete mode 100644 docs/V1StoreAppVersionTempleteAppShareVolume.md delete mode 100644 docs/V1StoreAppVersionTempleteAppVolume.md delete mode 100644 docs/V1StoreAppVersionTempletePlugin.md delete mode 100644 docs/V1StoreAppVersionTempletePluginConfigGroup.md delete mode 100644 docs/V1StoreAppVersionTempletePluginConfigGroupOption.md rename docs/{AppsImageInfo.md => V1alpha1ComponentGraph.md} (61%) rename docs/{V1StoreAppVersionTempleteAppDepService.md => V1alpha1Endpoints.md} (68%) rename docs/{AppsStoreAppVersionTempleteAppProbe.md => V1alpha1IngressHTTPRoute.md} (33%) rename docs/{AppsStoreAppVersionTempleteAppShareVolume.md => V1alpha1IngressSreamRoute.md} (63%) delete mode 100644 openapi_client/.DS_Store delete mode 100644 openapi_client/models/apps_image_info.py delete mode 100644 openapi_client/models/apps_store_app_version_templete.py delete mode 100644 openapi_client/models/apps_store_app_version_templete_app.py delete mode 100644 openapi_client/models/apps_store_app_version_templete_app_dep_service.py delete mode 100644 openapi_client/models/apps_store_app_version_templete_app_env.py delete mode 100644 openapi_client/models/apps_store_app_version_templete_app_extend_method_rule.py delete mode 100644 openapi_client/models/apps_store_app_version_templete_app_plugin_config.py delete mode 100644 openapi_client/models/apps_store_app_version_templete_app_port.py delete mode 100644 openapi_client/models/apps_store_app_version_templete_app_probe.py delete mode 100644 openapi_client/models/apps_store_app_version_templete_app_share_volume.py delete mode 100644 openapi_client/models/apps_store_app_version_templete_app_volume.py delete mode 100644 openapi_client/models/apps_store_app_version_templete_plugin.py delete mode 100644 openapi_client/models/apps_store_app_version_templete_plugin_config_group.py delete mode 100644 openapi_client/models/apps_store_app_version_templete_plugin_config_group_option.py delete mode 100644 openapi_client/models/v1_app_create_request.py delete mode 100644 openapi_client/models/v1_app_version_request.py delete mode 100644 openapi_client/models/v1_store_app_version_template.py delete mode 100644 openapi_client/models/v1_store_app_version_templete.py delete mode 100644 openapi_client/models/v1_store_app_version_templete_app.py delete mode 100644 openapi_client/models/v1_store_app_version_templete_app_dep_service.py delete mode 100644 openapi_client/models/v1_store_app_version_templete_app_extend_method_rule.py delete mode 100644 openapi_client/models/v1_store_app_version_templete_app_plugin_config.py delete mode 100644 openapi_client/models/v1_store_app_version_templete_app_port.py delete mode 100644 openapi_client/models/v1_store_app_version_templete_app_probe.py delete mode 100644 openapi_client/models/v1_store_app_version_templete_app_volume.py delete mode 100644 openapi_client/models/v1_store_app_version_templete_plugin.py delete mode 100644 openapi_client/models/v1_store_app_version_templete_plugin_config_group.py delete mode 100644 openapi_client/models/v1_store_app_version_templete_plugin_config_group_option.py rename openapi_client/models/{v1_image_info.py => v1alpha1_component_graph.py} (46%) rename openapi_client/models/{v1_store_app_version_templete_app_share_volume.py => v1alpha1_endpoints.py} (49%) create mode 100644 openapi_client/models/v1alpha1_ingress_http_route.py rename openapi_client/models/{v1_store_app_version_templete_app_env.py => v1alpha1_ingress_sream_route.py} (45%) delete mode 100644 test/test_apps_store_app_version_templete.py delete mode 100644 test/test_apps_store_app_version_templete_app.py delete mode 100644 test/test_apps_store_app_version_templete_app_dep_service.py delete mode 100644 test/test_apps_store_app_version_templete_app_env.py delete mode 100644 test/test_apps_store_app_version_templete_app_extend_method_rule.py delete mode 100644 test/test_apps_store_app_version_templete_app_plugin_config.py delete mode 100644 test/test_apps_store_app_version_templete_app_port.py delete mode 100644 test/test_apps_store_app_version_templete_app_share_volume.py delete mode 100644 test/test_apps_store_app_version_templete_app_volume.py delete mode 100644 test/test_apps_store_app_version_templete_plugin.py delete mode 100644 test/test_apps_store_app_version_templete_plugin_config_group.py delete mode 100644 test/test_apps_store_app_version_templete_plugin_config_group_option.py delete mode 100644 test/test_v1_app_create_request.py delete mode 100644 test/test_v1_app_version_request.py delete mode 100644 test/test_v1_store_app_version_template.py delete mode 100644 test/test_v1_store_app_version_templete.py delete mode 100644 test/test_v1_store_app_version_templete_app.py delete mode 100644 test/test_v1_store_app_version_templete_app_env.py delete mode 100644 test/test_v1_store_app_version_templete_app_extend_method_rule.py delete mode 100644 test/test_v1_store_app_version_templete_app_plugin_config.py delete mode 100644 test/test_v1_store_app_version_templete_app_port.py delete mode 100644 test/test_v1_store_app_version_templete_app_probe.py delete mode 100644 test/test_v1_store_app_version_templete_app_share_volume.py delete mode 100644 test/test_v1_store_app_version_templete_app_volume.py delete mode 100644 test/test_v1_store_app_version_templete_plugin.py delete mode 100644 test/test_v1_store_app_version_templete_plugin_config_group.py delete mode 100644 test/test_v1_store_app_version_templete_plugin_config_group_option.py rename test/{test_v1_store_app_version_templete_app_dep_service.py => test_v1alpha1_component_graph.py} (52%) rename test/{test_v1_image_info.py => test_v1alpha1_endpoints.py} (55%) rename test/{test_apps_store_app_version_templete_app_probe.py => test_v1alpha1_ingress_http_route.py} (32%) rename test/{test_apps_image_info.py => test_v1alpha1_ingress_sream_route.py} (52%) diff --git a/README.md b/README.md index 4887381..b9ec36a 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,8 @@ Class | Method | HTTP request | Description *MarketOpenapiApi* | [**create_app**](docs/MarketOpenapiApi.md#create_app) | **POST** /app-server/openapi/apps | 应用列表 *MarketOpenapiApi* | [**create_app_version**](docs/MarketOpenapiApi.md#create_app_version) | **POST** /app-server/openapi/apps/{appID}/versions | 创建应用版本 *MarketOpenapiApi* | [**get_app_hub_info**](docs/MarketOpenapiApi.md#get_app_hub_info) | **GET** /app-server/openapi/apps/{appID}/apphubinfo | 获取镜像仓库信息 +*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} | 应用详情 @@ -132,13 +134,17 @@ Class | Method | HTTP request | Description - [V1alpha1ComponentDep](docs/V1alpha1ComponentDep.md) - [V1alpha1ComponentEnv](docs/V1alpha1ComponentEnv.md) - [V1alpha1ComponentExtendMethodRule](docs/V1alpha1ComponentExtendMethodRule.md) + - [V1alpha1ComponentGraph](docs/V1alpha1ComponentGraph.md) - [V1alpha1ComponentMonitor](docs/V1alpha1ComponentMonitor.md) - [V1alpha1ComponentPluginConfig](docs/V1alpha1ComponentPluginConfig.md) - [V1alpha1ComponentPort](docs/V1alpha1ComponentPort.md) - [V1alpha1ComponentProbe](docs/V1alpha1ComponentProbe.md) - [V1alpha1ComponentShareVolume](docs/V1alpha1ComponentShareVolume.md) - [V1alpha1ComponentVolume](docs/V1alpha1ComponentVolume.md) + - [V1alpha1Endpoints](docs/V1alpha1Endpoints.md) - [V1alpha1ImageInfo](docs/V1alpha1ImageInfo.md) + - [V1alpha1IngressHTTPRoute](docs/V1alpha1IngressHTTPRoute.md) + - [V1alpha1IngressSreamRoute](docs/V1alpha1IngressSreamRoute.md) - [V1alpha1Plugin](docs/V1alpha1Plugin.md) - [V1alpha1PluginConfigGroup](docs/V1alpha1PluginConfigGroup.md) - [V1alpha1PluginConfigGroupOption](docs/V1alpha1PluginConfigGroupOption.md) diff --git a/docs/AppsStoreAppVersionTemplete.md b/docs/AppsStoreAppVersionTemplete.md deleted file mode 100644 index ee6e90a..0000000 --- a/docs/AppsStoreAppVersionTemplete.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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 deleted file mode 100644 index a407d73..0000000 --- a/docs/AppsStoreAppVersionTempleteApp.md +++ /dev/null @@ -1,39 +0,0 @@ -# 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 deleted file mode 100644 index 8787239..0000000 --- a/docs/AppsStoreAppVersionTempleteAppDepService.md +++ /dev/null @@ -1,10 +0,0 @@ -# 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 deleted file mode 100644 index f59f905..0000000 --- a/docs/AppsStoreAppVersionTempleteAppEnv.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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 deleted file mode 100644 index d45289e..0000000 --- a/docs/AppsStoreAppVersionTempleteAppExtendMethodRule.md +++ /dev/null @@ -1,16 +0,0 @@ -# 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 deleted file mode 100644 index d6e46f3..0000000 --- a/docs/AppsStoreAppVersionTempleteAppPluginConfig.md +++ /dev/null @@ -1,18 +0,0 @@ -# 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 deleted file mode 100644 index e6a5053..0000000 --- a/docs/AppsStoreAppVersionTempleteAppPort.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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/AppsStoreAppVersionTempleteAppVolume.md b/docs/AppsStoreAppVersionTempleteAppVolume.md deleted file mode 100644 index 70aeaf5..0000000 --- a/docs/AppsStoreAppVersionTempleteAppVolume.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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 deleted file mode 100644 index 03c7f5a..0000000 --- a/docs/AppsStoreAppVersionTempletePlugin.md +++ /dev/null @@ -1,26 +0,0 @@ -# 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 deleted file mode 100644 index 0b0d590..0000000 --- a/docs/AppsStoreAppVersionTempletePluginConfigGroup.md +++ /dev/null @@ -1,16 +0,0 @@ -# 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 deleted file mode 100644 index 8db22d7..0000000 --- a/docs/AppsStoreAppVersionTempletePluginConfigGroupOption.md +++ /dev/null @@ -1,20 +0,0 @@ -# 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 c4b86a6..ba6826e 100644 --- a/docs/MarketOpenapiApi.md +++ b/docs/MarketOpenapiApi.md @@ -8,6 +8,8 @@ Method | HTTP request | Description [**create_app**](MarketOpenapiApi.md#create_app) | **POST** /app-server/openapi/apps | 应用列表 [**create_app_version**](MarketOpenapiApi.md#create_app_version) | **POST** /app-server/openapi/apps/{appID}/versions | 创建应用版本 [**get_app_hub_info**](MarketOpenapiApi.md#get_app_hub_info) | **GET** /app-server/openapi/apps/{appID}/apphubinfo | 获取镜像仓库信息 +[**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} | 应用详情 @@ -332,6 +334,176 @@ 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_app_plugin_list** +> V1UserAppListResponse get_app_plugin_list(market_domain, query=query, query_all=query_all, page=page, page_size=page_size) + +应用插件列表 + +### 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) + market_domain = 'market_domain_example' # str | 商店域 +query = 'query_example' # str | 搜索项 (optional) +query_all = True # bool | 是否查询全部 (optional) +page = 56 # int | 页码 (optional) +page_size = 56 # int | 每页的大小. -1 表示不限制 (optional) + + try: + # 应用插件列表 + api_response = api_instance.get_app_plugin_list(market_domain, query=query, query_all=query_all, page=page, page_size=page_size) + pprint(api_response) + except ApiException as e: + print("Exception when calling MarketOpenapiApi->get_app_plugin_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **market_domain** | **str**| 商店域 | + **query** | **str**| 搜索项 | [optional] + **query_all** | **bool**| 是否查询全部 | [optional] + **page** | **int**| 页码 | [optional] + **page_size** | **int**| 每页的大小. -1 表示不限制 | [optional] + +### Return type + +[**V1UserAppListResponse**](V1UserAppListResponse.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 | - | +**404** | market not found | - | +**500** | server failure | - | + +[[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_app_temp_list** +> V1UserAppListResponse get_app_temp_list(market_domain, query=query, query_all=query_all, page=page, page_size=page_size) + +控制台应用模版列表 + +### 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) + market_domain = 'market_domain_example' # str | 商店域 +query = 'query_example' # str | 搜索项 (optional) +query_all = True # bool | 是否查询全部 (optional) +page = 56 # int | 页码 (optional) +page_size = 56 # int | 每页的大小. -1 表示不限制 (optional) + + try: + # 控制台应用模版列表 + api_response = api_instance.get_app_temp_list(market_domain, query=query, query_all=query_all, page=page, page_size=page_size) + pprint(api_response) + except ApiException as e: + print("Exception when calling MarketOpenapiApi->get_app_temp_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **market_domain** | **str**| 商店域 | + **query** | **str**| 搜索项 | [optional] + **query_all** | **bool**| 是否查询全部 | [optional] + **page** | **int**| 页码 | [optional] + **page_size** | **int**| 每页的大小. -1 表示不限制 | [optional] + +### Return type + +[**V1UserAppListResponse**](V1UserAppListResponse.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 | - | +**404** | market not found | - | +**500** | server failure | - | + +[[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_market_info** > V1MarketInfoResponse get_market_info(market_domain=market_domain) diff --git a/docs/V1AppBaseInfo.md b/docs/V1AppBaseInfo.md index 36ad468..a794051 100644 --- a/docs/V1AppBaseInfo.md +++ b/docs/V1AppBaseInfo.md @@ -19,6 +19,7 @@ Name | Type | Description | Notes **market_url** | **str** | 商店 URL | **name** | **str** | 应用名称 | **publish_type** | **str** | 发布类型. private: 私有; public: 公有 | +**publish_user** | **str** | 发布人 | **show_count** | **int** | 访问次数 | **start_count** | **int** | | **status** | **str** | 状态 | diff --git a/docs/V1AppCreateRequest.md b/docs/V1AppCreateRequest.md deleted file mode 100644 index e4a9ba7..0000000 --- a/docs/V1AppCreateRequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# 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 13e8ea9..8225e5e 100644 --- a/docs/V1AppDetailInfoResponse.md +++ b/docs/V1AppDetailInfoResponse.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **name** | **str** | 应用名称 | **org_id** | **str** | 组织机构 ID | **publish_type** | **str** | 发布类型. private: 私有; public: 公有 | +**publish_user** | **str** | 发布人 | **show_count** | **int** | 访问次数 | **start_count** | **int** | | **status** | **str** | 状态 | diff --git a/docs/V1AppVersionBase.md b/docs/V1AppVersionBase.md index 079e84f..4487e06 100644 --- a/docs/V1AppVersionBase.md +++ b/docs/V1AppVersionBase.md @@ -10,8 +10,9 @@ Name | Type | Description | Notes **delivery_mode** | **str** | 交付模式 | **desc** | **str** | 描述 | **enable** | **bool** | 开启 | -**rainbond_version** | **str** | rianbond 版本 | -**update_time** | **datetime** | | +**is_plugin** | **bool** | 是否作为插件 | +**rainbond_version** | **str** | rainbond 版本 | +**update_time** | **datetime** | 更新时间 | **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/V1AppVersionDetailResponse.md b/docs/V1AppVersionDetailResponse.md index 0e491ed..d52e1b8 100644 --- a/docs/V1AppVersionDetailResponse.md +++ b/docs/V1AppVersionDetailResponse.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **delivery_mode** | **str** | 交付类型 | **description** | **str** | 描述 | **enable** | **bool** | 是否开启 | +**is_plugin** | **bool** | 是否作为插件 | **market_id** | **str** | 商店 ID | **rainbond_version** | **str** | rainbond 版本 | **template** | **str** | 模板 | diff --git a/docs/V1AppVersionRequest.md b/docs/V1AppVersionRequest.md deleted file mode 100644 index 22acbcb..0000000 --- a/docs/V1AppVersionRequest.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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 dba1af2..7b7af26 100644 --- a/docs/V1CreateAppPaaSVersionRequest.md +++ b/docs/V1CreateAppPaaSVersionRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **str** | | +**is_plugin** | **bool** | | **rainbond_version** | **str** | | **template** | [**V1alpha1RainbondApplicationConfig**](V1alpha1RainbondApplicationConfig.md) | | **template_type** | **str** | | diff --git a/docs/V1ImageInfo.md b/docs/V1ImageInfo.md deleted file mode 100644 index aac55a2..0000000 --- a/docs/V1ImageInfo.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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/V1MarketInfoResponse.md b/docs/V1MarketInfoResponse.md index 284a6e7..0e5c766 100644 --- a/docs/V1MarketInfoResponse.md +++ b/docs/V1MarketInfoResponse.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **description** | **str** | 说明 | **name** | **str** | 名称 | **status** | **int** | 状态 | -**version** | **str** | 当前SAAS版本 | [optional] +**version** | **str** | 当前SAAS版本 | [[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 deleted file mode 100644 index 1746839..0000000 --- a/docs/V1StoreAppVersionTemplate.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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 deleted file mode 100644 index f8e2174..0000000 --- a/docs/V1StoreAppVersionTemplete.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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 deleted file mode 100644 index 434e9d9..0000000 --- a/docs/V1StoreAppVersionTempleteApp.md +++ /dev/null @@ -1,39 +0,0 @@ -# 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/V1StoreAppVersionTempleteAppEnv.md b/docs/V1StoreAppVersionTempleteAppEnv.md deleted file mode 100644 index 6318137..0000000 --- a/docs/V1StoreAppVersionTempleteAppEnv.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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 deleted file mode 100644 index 6da664c..0000000 --- a/docs/V1StoreAppVersionTempleteAppExtendMethodRule.md +++ /dev/null @@ -1,16 +0,0 @@ -# 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 deleted file mode 100644 index 6e3fd83..0000000 --- a/docs/V1StoreAppVersionTempleteAppPluginConfig.md +++ /dev/null @@ -1,18 +0,0 @@ -# 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 deleted file mode 100644 index 2e95e3a..0000000 --- a/docs/V1StoreAppVersionTempleteAppPort.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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 deleted file mode 100644 index 1f60f2a..0000000 --- a/docs/V1StoreAppVersionTempleteAppProbe.md +++ /dev/null @@ -1,24 +0,0 @@ -# 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 deleted file mode 100644 index 717af8a..0000000 --- a/docs/V1StoreAppVersionTempleteAppShareVolume.md +++ /dev/null @@ -1,12 +0,0 @@ -# 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 deleted file mode 100644 index 586101c..0000000 --- a/docs/V1StoreAppVersionTempleteAppVolume.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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 deleted file mode 100644 index 7acff9f..0000000 --- a/docs/V1StoreAppVersionTempletePlugin.md +++ /dev/null @@ -1,26 +0,0 @@ -# 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 deleted file mode 100644 index 0f4002c..0000000 --- a/docs/V1StoreAppVersionTempletePluginConfigGroup.md +++ /dev/null @@ -1,16 +0,0 @@ -# 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 deleted file mode 100644 index 27c648d..0000000 --- a/docs/V1StoreAppVersionTempletePluginConfigGroupOption.md +++ /dev/null @@ -1,20 +0,0 @@ -# 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/V1alpha1Component.md b/docs/V1alpha1Component.md index 5c793cf..98a374d 100644 --- a/docs/V1alpha1Component.md +++ b/docs/V1alpha1Component.md @@ -5,13 +5,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **category** | **str** | | **cmd** | **str** | | -**component_monitor** | [**list[V1alpha1ComponentMonitor]**](V1alpha1ComponentMonitor.md) | | +**component_graphs** | [**list[V1alpha1ComponentGraph]**](V1alpha1ComponentGraph.md) | | +**component_monitors** | [**list[V1alpha1ComponentMonitor]**](V1alpha1ComponentMonitor.md) | | **cpu** | **int** | | **dep_service_map_list** | [**list[V1alpha1ComponentDep]**](V1alpha1ComponentDep.md) | | **deploy_version** | **str** | | +**endpoints** | [**V1alpha1Endpoints**](V1alpha1Endpoints.md) | | [optional] **extend_method** | **str** | | **extend_method_map** | [**V1alpha1ComponentExtendMethodRule**](V1alpha1ComponentExtendMethodRule.md) | | **image** | **str** | | +**labels** | **dict(str, str)** | | [optional] **language** | **str** | | **memory** | **int** | | **mnt_relation_list** | [**list[V1alpha1ComponentShareVolume]**](V1alpha1ComponentShareVolume.md) | | diff --git a/docs/V1alpha1ComponentEnv.md b/docs/V1alpha1ComponentEnv.md index 3f4d96c..82c7039 100644 --- a/docs/V1alpha1ComponentEnv.md +++ b/docs/V1alpha1ComponentEnv.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **attr_name** | **str** | | **attr_value** | **str** | | +**container_port** | **int** | | **is_change** | **bool** | | **name** | **str** | | diff --git a/docs/V1alpha1ComponentExtendMethodRule.md b/docs/V1alpha1ComponentExtendMethodRule.md index 312b99c..9cc0576 100644 --- a/docs/V1alpha1ComponentExtendMethodRule.md +++ b/docs/V1alpha1ComponentExtendMethodRule.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**init_memory** | **int** | | **is_restart** | **int** | | **max_memory** | **int** | | **max_node** | **int** | | diff --git a/docs/AppsImageInfo.md b/docs/V1alpha1ComponentGraph.md similarity index 61% rename from docs/AppsImageInfo.md rename to docs/V1alpha1ComponentGraph.md index 0ef367f..3f91e57 100644 --- a/docs/AppsImageInfo.md +++ b/docs/V1alpha1ComponentGraph.md @@ -1,13 +1,13 @@ -# AppsImageInfo +# V1alpha1ComponentGraph ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hub_password** | **str** | | -**hub_url** | **str** | | -**hub_user** | **str** | | -**is_trust** | **bool** | | -**namespace** | **str** | | +**component_id** | **str** | | +**graph_id** | **str** | | +**promql** | **str** | | +**sequence** | **int** | | +**title** | **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/V1alpha1ComponentVolume.md b/docs/V1alpha1ComponentVolume.md index 6ba65fd..a45ef53 100644 --- a/docs/V1alpha1ComponentVolume.md +++ b/docs/V1alpha1ComponentVolume.md @@ -3,10 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**access_mode** | **str** | | +**access_mode** | **str** | | [optional] **file_content** | **str** | | -**sharing_policy** | **str** | | -**volume_capacity** | **int** | | +**mode** | **int** | | [optional] +**share_policy** | **str** | | [optional] +**volume_capacity** | **int** | | [optional] **volume_name** | **str** | | **volume_path** | **str** | | **volume_type** | **str** | | diff --git a/docs/V1StoreAppVersionTempleteAppDepService.md b/docs/V1alpha1Endpoints.md similarity index 68% rename from docs/V1StoreAppVersionTempleteAppDepService.md rename to docs/V1alpha1Endpoints.md index 036068e..d10900e 100644 --- a/docs/V1StoreAppVersionTempleteAppDepService.md +++ b/docs/V1alpha1Endpoints.md @@ -1,9 +1,11 @@ -# V1StoreAppVersionTempleteAppDepService +# V1alpha1Endpoints ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**dep_service_key** | **str** | | +**endpoints_info** | **str** | | +**endpoints_type** | **str** | | +**service_cname** | **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/V1alpha1IngressHTTPRoute.md similarity index 33% rename from docs/AppsStoreAppVersionTempleteAppProbe.md rename to docs/V1alpha1IngressHTTPRoute.md index 326e68f..20266cf 100644 --- a/docs/AppsStoreAppVersionTempleteAppProbe.md +++ b/docs/V1alpha1IngressHTTPRoute.md @@ -1,23 +1,25 @@ -# AppsStoreAppVersionTempleteAppProbe +# V1alpha1IngressHTTPRoute ## 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** | | +**component_key** | **str** | | +**connection_timeout** | **int** | | +**cookies** | **dict(str, str)** | | +**default_domain** | **bool** | | +**headers** | **dict(str, str)** | | +**load_balancing** | **str** | | +**location** | **str** | | **port** | **int** | | -**probe_id** | **str** | | -**scheme** | **str** | | -**service_id** | **str** | | -**success_threshold** | **int** | | -**timeout_second** | **int** | | +**proxy_buffer** | **bool** | | +**proxy_buffer_numbers** | **int** | | +**proxy_buffer_size** | **int** | | +**proxy_header** | **dict(str, str)** | | +**request_body_size_limit** | **int** | | +**request_timeout** | **int** | | +**response_timeout** | **int** | | +**ssl** | **bool** | | +**websocket** | **bool** | | [[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/V1alpha1IngressSreamRoute.md similarity index 63% rename from docs/AppsStoreAppVersionTempleteAppShareVolume.md rename to docs/V1alpha1IngressSreamRoute.md index a700250..9534454 100644 --- a/docs/AppsStoreAppVersionTempleteAppShareVolume.md +++ b/docs/V1alpha1IngressSreamRoute.md @@ -1,11 +1,12 @@ -# AppsStoreAppVersionTempleteAppShareVolume +# V1alpha1IngressSreamRoute ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**mnt_dir** | **str** | | -**mnt_name** | **str** | | -**service_share_uuid** | **str** | | +**component_key** | **str** | | +**connection_timeout** | **int** | | +**port** | **int** | | +**protocol** | **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/V1alpha1RainbondApplicationConfig.md b/docs/V1alpha1RainbondApplicationConfig.md index 342388e..9b1e6a6 100644 --- a/docs/V1alpha1RainbondApplicationConfig.md +++ b/docs/V1alpha1RainbondApplicationConfig.md @@ -3,11 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**annotations** | **dict(str, str)** | | [optional] **app_config_groups** | [**list[V1alpha1AppConfigGroup]**](V1alpha1AppConfigGroup.md) | | **apps** | [**list[V1alpha1Component]**](V1alpha1Component.md) | | **group_key** | **str** | | **group_name** | **str** | | **group_version** | **str** | | +**ingress_http_routes** | [**list[V1alpha1IngressHTTPRoute]**](V1alpha1IngressHTTPRoute.md) | | [optional] +**ingress_stream_routes** | [**list[V1alpha1IngressSreamRoute]**](V1alpha1IngressSreamRoute.md) | | [optional] **plugins** | [**list[V1alpha1Plugin]**](V1alpha1Plugin.md) | | [optional] **template_version** | **str** | | diff --git a/openapi_client/.DS_Store b/openapi_client/.DS_Store deleted file mode 100644 index 06f060b57def91feed6079ccca2a98ce92562221..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK%}N6?5T4jY78R*CFG60S_yV!47f(W8K--E6yX=B^@svjsdfXib ztG&PWQ?WRFleM!PO}pN~Pd?c`4kGWv#27FJi~(a{I~mY7y4>H+297 u?Fx;B{UQ$_7-v5LnD9MvoQz`kJceITjDnnn^(h=^KLUvm>x_Y4VBiD#zeY0v diff --git a/openapi_client/__init__.py b/openapi_client/__init__.py index 4964f8d..821154e 100644 --- a/openapi_client/__init__.py +++ b/openapi_client/__init__.py @@ -52,13 +52,17 @@ from openapi_client.models.v1alpha1_component import V1alpha1Component 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_monitor import V1alpha1ComponentMonitor from openapi_client.models.v1alpha1_component_plugin_config import V1alpha1ComponentPluginConfig from openapi_client.models.v1alpha1_component_port import V1alpha1ComponentPort from openapi_client.models.v1alpha1_component_probe import V1alpha1ComponentProbe from openapi_client.models.v1alpha1_component_share_volume import V1alpha1ComponentShareVolume from openapi_client.models.v1alpha1_component_volume import V1alpha1ComponentVolume +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_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 f50cad0..2e61258 100644 --- a/openapi_client/api/market_openapi_api.py +++ b/openapi_client/api/market_openapi_api.py @@ -508,6 +508,270 @@ class MarketOpenapiApi(object): _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) + def get_app_plugin_list(self, market_domain, **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_app_plugin_list(market_domain, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str market_domain: 商店域 (required) + :param str query: 搜索项 + :param bool query_all: 是否查询全部 + :param int page: 页码 + :param int page_size: 每页的大小. -1 表示不限制 + :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: V1UserAppListResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.get_app_plugin_list_with_http_info(market_domain, **kwargs) # noqa: E501 + + def get_app_plugin_list_with_http_info(self, market_domain, **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_app_plugin_list_with_http_info(market_domain, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str market_domain: 商店域 (required) + :param str query: 搜索项 + :param bool query_all: 是否查询全部 + :param int page: 页码 + :param int page_size: 每页的大小. -1 表示不限制 + :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(V1UserAppListResponse, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'market_domain', + 'query', + 'query_all', + 'page', + 'page_size' + ] + 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_app_plugin_list" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'market_domain' is set + if self.api_client.client_side_validation and ('market_domain' not in local_var_params or # noqa: E501 + local_var_params['market_domain'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `market_domain` when calling `get_app_plugin_list`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'query_all' in local_var_params and local_var_params['query_all'] is not None: # noqa: E501 + query_params.append(('queryAll', local_var_params['query_all'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'page_size' in local_var_params and local_var_params['page_size'] is not None: # noqa: E501 + query_params.append(('pageSize', local_var_params['page_size'])) # noqa: E501 + if 'market_domain' in local_var_params and local_var_params['market_domain'] is not None: # noqa: E501 + query_params.append(('marketDomain', local_var_params['market_domain'])) # noqa: E501 + + 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/apps/plugins', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1UserAppListResponse', # 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_app_temp_list(self, market_domain, **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_app_temp_list(market_domain, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str market_domain: 商店域 (required) + :param str query: 搜索项 + :param bool query_all: 是否查询全部 + :param int page: 页码 + :param int page_size: 每页的大小. -1 表示不限制 + :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: V1UserAppListResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.get_app_temp_list_with_http_info(market_domain, **kwargs) # noqa: E501 + + def get_app_temp_list_with_http_info(self, market_domain, **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_app_temp_list_with_http_info(market_domain, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str market_domain: 商店域 (required) + :param str query: 搜索项 + :param bool query_all: 是否查询全部 + :param int page: 页码 + :param int page_size: 每页的大小. -1 表示不限制 + :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(V1UserAppListResponse, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'market_domain', + 'query', + 'query_all', + 'page', + 'page_size' + ] + 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_app_temp_list" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'market_domain' is set + if self.api_client.client_side_validation and ('market_domain' not in local_var_params or # noqa: E501 + local_var_params['market_domain'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `market_domain` when calling `get_app_temp_list`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'query_all' in local_var_params and local_var_params['query_all'] is not None: # noqa: E501 + query_params.append(('queryAll', local_var_params['query_all'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'page_size' in local_var_params and local_var_params['page_size'] is not None: # noqa: E501 + query_params.append(('pageSize', local_var_params['page_size'])) # noqa: E501 + if 'market_domain' in local_var_params and local_var_params['market_domain'] is not None: # noqa: E501 + query_params.append(('marketDomain', local_var_params['market_domain'])) # noqa: E501 + + 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/apps/template', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1UserAppListResponse', # 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_market_info(self, **kwargs): # noqa: E501 """获取商店信息 # noqa: E501 diff --git a/openapi_client/models/__init__.py b/openapi_client/models/__init__.py index f205e1e..358ca20 100644 --- a/openapi_client/models/__init__.py +++ b/openapi_client/models/__init__.py @@ -36,13 +36,17 @@ from openapi_client.models.v1alpha1_component import V1alpha1Component 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_monitor import V1alpha1ComponentMonitor from openapi_client.models.v1alpha1_component_plugin_config import V1alpha1ComponentPluginConfig from openapi_client.models.v1alpha1_component_port import V1alpha1ComponentPort from openapi_client.models.v1alpha1_component_probe import V1alpha1ComponentProbe from openapi_client.models.v1alpha1_component_share_volume import V1alpha1ComponentShareVolume from openapi_client.models.v1alpha1_component_volume import V1alpha1ComponentVolume +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_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 deleted file mode 100644 index 33299f3..0000000 --- a/openapi_client/models/apps_image_info.py +++ /dev/null @@ -1,230 +0,0 @@ -# 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 deleted file mode 100644 index 6facf53..0000000 --- a/openapi_client/models/apps_store_app_version_templete.py +++ /dev/null @@ -1,256 +0,0 @@ -# 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 deleted file mode 100644 index 6c3ae70..0000000 --- a/openapi_client/models/apps_store_app_version_templete_app.py +++ /dev/null @@ -1,902 +0,0 @@ -# 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 deleted file mode 100644 index 1a08bfc..0000000 --- a/openapi_client/models/apps_store_app_version_templete_app_dep_service.py +++ /dev/null @@ -1,122 +0,0 @@ -# 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 deleted file mode 100644 index 16f1418..0000000 --- a/openapi_client/models/apps_store_app_version_templete_app_env.py +++ /dev/null @@ -1,203 +0,0 @@ -# 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 deleted file mode 100644 index b0afd3b..0000000 --- a/openapi_client/models/apps_store_app_version_templete_app_extend_method_rule.py +++ /dev/null @@ -1,284 +0,0 @@ -# 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 deleted file mode 100644 index 72f74c3..0000000 --- a/openapi_client/models/apps_store_app_version_templete_app_plugin_config.py +++ /dev/null @@ -1,338 +0,0 @@ -# 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 deleted file mode 100644 index d1f8c48..0000000 --- a/openapi_client/models/apps_store_app_version_templete_app_port.py +++ /dev/null @@ -1,257 +0,0 @@ -# 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 deleted file mode 100644 index b62ca7b..0000000 --- a/openapi_client/models/apps_store_app_version_templete_app_probe.py +++ /dev/null @@ -1,500 +0,0 @@ -# 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 deleted file mode 100644 index 54825a9..0000000 --- a/openapi_client/models/apps_store_app_version_templete_app_share_volume.py +++ /dev/null @@ -1,176 +0,0 @@ -# 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 deleted file mode 100644 index 0545f01..0000000 --- a/openapi_client/models/apps_store_app_version_templete_app_volume.py +++ /dev/null @@ -1,257 +0,0 @@ -# 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 deleted file mode 100644 index 1c43847..0000000 --- a/openapi_client/models/apps_store_app_version_templete_plugin.py +++ /dev/null @@ -1,553 +0,0 @@ -# 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 deleted file mode 100644 index 36008a2..0000000 --- a/openapi_client/models/apps_store_app_version_templete_plugin_config_group.py +++ /dev/null @@ -1,283 +0,0 @@ -# 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 deleted file mode 100644 index 5e1fd52..0000000 --- a/openapi_client/models/apps_store_app_version_templete_plugin_config_group_option.py +++ /dev/null @@ -1,392 +0,0 @@ -# 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/v1_app_base_info.py b/openapi_client/models/v1_app_base_info.py index 1795dd3..9b06f0a 100644 --- a/openapi_client/models/v1_app_base_info.py +++ b/openapi_client/models/v1_app_base_info.py @@ -50,6 +50,7 @@ class V1AppBaseInfo(object): 'market_url': 'str', 'name': 'str', 'publish_type': 'str', + 'publish_user': 'str', 'show_count': 'int', 'start_count': 'int', 'status': 'str', @@ -75,6 +76,7 @@ class V1AppBaseInfo(object): 'market_url': 'marketURL', 'name': 'name', 'publish_type': 'publishType', + 'publish_user': 'publishUser', 'show_count': 'showCount', 'start_count': 'startCount', 'status': 'status', @@ -83,7 +85,7 @@ 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, 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_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 """V1AppBaseInfo - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -105,6 +107,7 @@ class V1AppBaseInfo(object): self._market_url = None self._name = None self._publish_type = None + self._publish_user = None self._show_count = None self._start_count = None self._status = None @@ -129,6 +132,7 @@ class V1AppBaseInfo(object): self.market_url = market_url self.name = name self.publish_type = publish_type + self.publish_user = publish_user self.show_count = show_count self.start_count = start_count self.status = status @@ -536,6 +540,31 @@ class V1AppBaseInfo(object): self._publish_type = publish_type + @property + def publish_user(self): + """Gets the publish_user of this V1AppBaseInfo. # noqa: E501 + + 发布人 # noqa: E501 + + :return: The publish_user of this V1AppBaseInfo. # noqa: E501 + :rtype: str + """ + return self._publish_user + + @publish_user.setter + def publish_user(self, publish_user): + """Sets the publish_user of this V1AppBaseInfo. + + 发布人 # noqa: E501 + + :param publish_user: The publish_user of this V1AppBaseInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and publish_user is None: # noqa: E501 + raise ValueError("Invalid value for `publish_user`, must not be `None`") # noqa: E501 + + self._publish_user = publish_user + @property def show_count(self): """Gets the show_count of this V1AppBaseInfo. # noqa: E501 diff --git a/openapi_client/models/v1_app_create_request.py b/openapi_client/models/v1_app_create_request.py deleted file mode 100644 index 6d23d2c..0000000 --- a/openapi_client/models/v1_app_create_request.py +++ /dev/null @@ -1,313 +0,0 @@ -# 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 e3cedb0..4cdc399 100644 --- a/openapi_client/models/v1_app_detail_info_response.py +++ b/openapi_client/models/v1_app_detail_info_response.py @@ -52,6 +52,7 @@ class V1AppDetailInfoResponse(object): 'name': 'str', 'org_id': 'str', 'publish_type': 'str', + 'publish_user': 'str', 'show_count': 'int', 'start_count': 'int', 'status': 'str', @@ -79,6 +80,7 @@ class V1AppDetailInfoResponse(object): 'name': 'name', 'org_id': 'orgID', 'publish_type': 'publishType', + 'publish_user': 'publishUser', 'show_count': 'showCount', 'start_count': 'startCount', 'status': 'status', @@ -87,7 +89,7 @@ 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, 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_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 """V1AppDetailInfoResponse - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -111,6 +113,7 @@ class V1AppDetailInfoResponse(object): self._name = None self._org_id = None self._publish_type = None + self._publish_user = None self._show_count = None self._start_count = None self._status = None @@ -137,6 +140,7 @@ class V1AppDetailInfoResponse(object): self.name = name self.org_id = org_id self.publish_type = publish_type + self.publish_user = publish_user self.show_count = show_count self.start_count = start_count self.status = status @@ -594,6 +598,31 @@ class V1AppDetailInfoResponse(object): self._publish_type = publish_type + @property + def publish_user(self): + """Gets the publish_user of this V1AppDetailInfoResponse. # noqa: E501 + + 发布人 # noqa: E501 + + :return: The publish_user of this V1AppDetailInfoResponse. # noqa: E501 + :rtype: str + """ + return self._publish_user + + @publish_user.setter + def publish_user(self, publish_user): + """Sets the publish_user of this V1AppDetailInfoResponse. + + 发布人 # noqa: E501 + + :param publish_user: The publish_user of this V1AppDetailInfoResponse. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and publish_user is None: # noqa: E501 + raise ValueError("Invalid value for `publish_user`, must not be `None`") # noqa: E501 + + self._publish_user = publish_user + @property def show_count(self): """Gets the show_count of this V1AppDetailInfoResponse. # noqa: E501 diff --git a/openapi_client/models/v1_app_version_base.py b/openapi_client/models/v1_app_version_base.py index 1442253..4a3b314 100644 --- a/openapi_client/models/v1_app_version_base.py +++ b/openapi_client/models/v1_app_version_base.py @@ -41,6 +41,7 @@ class V1AppVersionBase(object): 'delivery_mode': 'str', 'desc': 'str', 'enable': 'bool', + 'is_plugin': 'bool', 'rainbond_version': 'str', 'update_time': 'datetime', 'update_version': 'int' @@ -54,12 +55,13 @@ class V1AppVersionBase(object): 'delivery_mode': 'deliveryMode', 'desc': 'desc', 'enable': 'enable', + 'is_plugin': 'is_plugin', 'rainbond_version': 'rainbondVersion', 'update_time': 'updateTime', '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, 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, 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() @@ -72,6 +74,7 @@ class V1AppVersionBase(object): self._delivery_mode = None self._desc = None self._enable = None + self._is_plugin = None self._rainbond_version = None self._update_time = None self._update_version = None @@ -84,6 +87,7 @@ class V1AppVersionBase(object): self.delivery_mode = delivery_mode self.desc = desc self.enable = enable + self.is_plugin = is_plugin self.rainbond_version = rainbond_version self.update_time = update_time self.update_version = update_version @@ -263,11 +267,36 @@ class V1AppVersionBase(object): self._enable = enable + @property + def is_plugin(self): + """Gets the is_plugin of this V1AppVersionBase. # noqa: E501 + + 是否作为插件 # noqa: E501 + + :return: The is_plugin of this V1AppVersionBase. # noqa: E501 + :rtype: bool + """ + return self._is_plugin + + @is_plugin.setter + def is_plugin(self, is_plugin): + """Sets the is_plugin of this V1AppVersionBase. + + 是否作为插件 # noqa: E501 + + :param is_plugin: The is_plugin of this V1AppVersionBase. # noqa: E501 + :type: bool + """ + if self.local_vars_configuration.client_side_validation and is_plugin is None: # noqa: E501 + raise ValueError("Invalid value for `is_plugin`, must not be `None`") # noqa: E501 + + self._is_plugin = is_plugin + @property def rainbond_version(self): """Gets the rainbond_version of this V1AppVersionBase. # noqa: E501 - rianbond 版本 # noqa: E501 + rainbond 版本 # noqa: E501 :return: The rainbond_version of this V1AppVersionBase. # noqa: E501 :rtype: str @@ -278,7 +307,7 @@ class V1AppVersionBase(object): def rainbond_version(self, rainbond_version): """Sets the rainbond_version of this V1AppVersionBase. - rianbond 版本 # noqa: E501 + rainbond 版本 # noqa: E501 :param rainbond_version: The rainbond_version of this V1AppVersionBase. # noqa: E501 :type: str @@ -292,6 +321,7 @@ class V1AppVersionBase(object): def update_time(self): """Gets the update_time of this V1AppVersionBase. # noqa: E501 + 更新时间 # noqa: E501 :return: The update_time of this V1AppVersionBase. # noqa: E501 :rtype: datetime @@ -302,6 +332,7 @@ class V1AppVersionBase(object): def update_time(self, update_time): """Sets the update_time of this V1AppVersionBase. + 更新时间 # noqa: E501 :param update_time: The update_time of this V1AppVersionBase. # noqa: E501 :type: datetime diff --git a/openapi_client/models/v1_app_version_detail_response.py b/openapi_client/models/v1_app_version_detail_response.py index 736eade..f41c9b8 100644 --- a/openapi_client/models/v1_app_version_detail_response.py +++ b/openapi_client/models/v1_app_version_detail_response.py @@ -40,6 +40,7 @@ class V1AppVersionDetailResponse(object): 'delivery_mode': 'str', 'description': 'str', 'enable': 'bool', + 'is_plugin': 'bool', 'market_id': 'str', 'rainbond_version': 'str', 'template': 'str', @@ -57,6 +58,7 @@ class V1AppVersionDetailResponse(object): 'delivery_mode': 'deliveryMode', 'description': 'description', 'enable': 'enable', + 'is_plugin': 'is_plugin', 'market_id': 'marketID', 'rainbond_version': 'rainbondVersion', 'template': 'template', @@ -67,7 +69,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, 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, 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() @@ -79,6 +81,7 @@ class V1AppVersionDetailResponse(object): self._delivery_mode = None self._description = None self._enable = None + self._is_plugin = None self._market_id = None self._rainbond_version = None self._template = None @@ -95,6 +98,7 @@ class V1AppVersionDetailResponse(object): self.delivery_mode = delivery_mode self.description = description self.enable = enable + self.is_plugin = is_plugin self.market_id = market_id self.rainbond_version = rainbond_version self.template = template @@ -252,6 +256,31 @@ class V1AppVersionDetailResponse(object): self._enable = enable + @property + def is_plugin(self): + """Gets the is_plugin of this V1AppVersionDetailResponse. # noqa: E501 + + 是否作为插件 # noqa: E501 + + :return: The is_plugin of this V1AppVersionDetailResponse. # noqa: E501 + :rtype: bool + """ + return self._is_plugin + + @is_plugin.setter + def is_plugin(self, is_plugin): + """Sets the is_plugin of this V1AppVersionDetailResponse. + + 是否作为插件 # noqa: E501 + + :param is_plugin: The is_plugin of this V1AppVersionDetailResponse. # noqa: E501 + :type: bool + """ + if self.local_vars_configuration.client_side_validation and is_plugin is None: # noqa: E501 + raise ValueError("Invalid value for `is_plugin`, must not be `None`") # noqa: E501 + + self._is_plugin = is_plugin + @property def market_id(self): """Gets the market_id of this V1AppVersionDetailResponse. # noqa: E501 diff --git a/openapi_client/models/v1_app_version_request.py b/openapi_client/models/v1_app_version_request.py deleted file mode 100644 index 5315dc8..0000000 --- a/openapi_client/models/v1_app_version_request.py +++ /dev/null @@ -1,257 +0,0 @@ -# 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_create_app_paa_s_version_request.py b/openapi_client/models/v1_create_app_paa_s_version_request.py index 23afb9d..ecd6e5f 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 @@ -35,6 +35,7 @@ class V1CreateAppPaaSVersionRequest(object): """ openapi_types = { 'description': 'str', + 'is_plugin': 'bool', 'rainbond_version': 'str', 'template': 'V1alpha1RainbondApplicationConfig', 'template_type': 'str', @@ -44,6 +45,7 @@ class V1CreateAppPaaSVersionRequest(object): attribute_map = { 'description': 'description', + 'is_plugin': 'is_plugin', 'rainbond_version': 'rainbondVersion', 'template': 'template', 'template_type': 'templateType', @@ -51,13 +53,14 @@ class V1CreateAppPaaSVersionRequest(object): 'version_alias': 'versionAlias' } - def __init__(self, description=None, rainbond_version=None, template=None, template_type=None, version=None, version_alias=None, local_vars_configuration=None): # noqa: E501 + 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 """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._description = None + self._is_plugin = None self._rainbond_version = None self._template = None self._template_type = None @@ -66,6 +69,7 @@ class V1CreateAppPaaSVersionRequest(object): self.discriminator = None self.description = description + self.is_plugin = is_plugin self.rainbond_version = rainbond_version self.template = template self.template_type = template_type @@ -95,6 +99,29 @@ class V1CreateAppPaaSVersionRequest(object): self._description = description + @property + def is_plugin(self): + """Gets the is_plugin of this V1CreateAppPaaSVersionRequest. # noqa: E501 + + + :return: The is_plugin of this V1CreateAppPaaSVersionRequest. # noqa: E501 + :rtype: bool + """ + return self._is_plugin + + @is_plugin.setter + def is_plugin(self, is_plugin): + """Sets the is_plugin of this V1CreateAppPaaSVersionRequest. + + + :param is_plugin: The is_plugin of this V1CreateAppPaaSVersionRequest. # noqa: E501 + :type: bool + """ + if self.local_vars_configuration.client_side_validation and is_plugin is None: # noqa: E501 + raise ValueError("Invalid value for `is_plugin`, must not be `None`") # noqa: E501 + + self._is_plugin = is_plugin + @property def rainbond_version(self): """Gets the rainbond_version of this V1CreateAppPaaSVersionRequest. # noqa: E501 diff --git a/openapi_client/models/v1_market_info_response.py b/openapi_client/models/v1_market_info_response.py index 56b5b19..b2a4d6c 100644 --- a/openapi_client/models/v1_market_info_response.py +++ b/openapi_client/models/v1_market_info_response.py @@ -70,8 +70,7 @@ class V1MarketInfoResponse(object): self.description = description self.name = name self.status = status - if version is not None: - self.version = version + self.version = version @property def access_actions(self): @@ -218,6 +217,8 @@ class V1MarketInfoResponse(object): :param version: The version of this V1MarketInfoResponse. # 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 diff --git a/openapi_client/models/v1_store_app_version_template.py b/openapi_client/models/v1_store_app_version_template.py deleted file mode 100644 index ddfc22f..0000000 --- a/openapi_client/models/v1_store_app_version_template.py +++ /dev/null @@ -1,256 +0,0 @@ -# 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 deleted file mode 100644 index 0f48a0b..0000000 --- a/openapi_client/models/v1_store_app_version_templete.py +++ /dev/null @@ -1,256 +0,0 @@ -# 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 deleted file mode 100644 index 89ba717..0000000 --- a/openapi_client/models/v1_store_app_version_templete_app.py +++ /dev/null @@ -1,902 +0,0 @@ -# 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 deleted file mode 100644 index fce1b11..0000000 --- a/openapi_client/models/v1_store_app_version_templete_app_dep_service.py +++ /dev/null @@ -1,122 +0,0 @@ -# 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_extend_method_rule.py b/openapi_client/models/v1_store_app_version_templete_app_extend_method_rule.py deleted file mode 100644 index 20238b0..0000000 --- a/openapi_client/models/v1_store_app_version_templete_app_extend_method_rule.py +++ /dev/null @@ -1,284 +0,0 @@ -# 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 deleted file mode 100644 index 84b89c1..0000000 --- a/openapi_client/models/v1_store_app_version_templete_app_plugin_config.py +++ /dev/null @@ -1,338 +0,0 @@ -# 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 deleted file mode 100644 index febb0c9..0000000 --- a/openapi_client/models/v1_store_app_version_templete_app_port.py +++ /dev/null @@ -1,257 +0,0 @@ -# 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 deleted file mode 100644 index 2b7c508..0000000 --- a/openapi_client/models/v1_store_app_version_templete_app_probe.py +++ /dev/null @@ -1,500 +0,0 @@ -# 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_volume.py b/openapi_client/models/v1_store_app_version_templete_app_volume.py deleted file mode 100644 index 20ccf40..0000000 --- a/openapi_client/models/v1_store_app_version_templete_app_volume.py +++ /dev/null @@ -1,257 +0,0 @@ -# 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 deleted file mode 100644 index 70f8f98..0000000 --- a/openapi_client/models/v1_store_app_version_templete_plugin.py +++ /dev/null @@ -1,553 +0,0 @@ -# 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 deleted file mode 100644 index b99e2db..0000000 --- a/openapi_client/models/v1_store_app_version_templete_plugin_config_group.py +++ /dev/null @@ -1,283 +0,0 @@ -# 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 deleted file mode 100644 index 26ae500..0000000 --- a/openapi_client/models/v1_store_app_version_templete_plugin_config_group_option.py +++ /dev/null @@ -1,392 +0,0 @@ -# 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/v1alpha1_component.py b/openapi_client/models/v1alpha1_component.py index 4390c8e..b4d866f 100644 --- a/openapi_client/models/v1alpha1_component.py +++ b/openapi_client/models/v1alpha1_component.py @@ -36,13 +36,16 @@ class V1alpha1Component(object): openapi_types = { 'category': 'str', 'cmd': 'str', - 'component_monitor': 'list[V1alpha1ComponentMonitor]', + 'component_graphs': 'list[V1alpha1ComponentGraph]', + 'component_monitors': 'list[V1alpha1ComponentMonitor]', 'cpu': 'int', 'dep_service_map_list': 'list[V1alpha1ComponentDep]', 'deploy_version': 'str', + 'endpoints': 'V1alpha1Endpoints', 'extend_method': 'str', 'extend_method_map': 'V1alpha1ComponentExtendMethodRule', 'image': 'str', + 'labels': 'dict(str, str)', 'language': 'str', 'memory': 'int', 'mnt_relation_list': 'list[V1alpha1ComponentShareVolume]', @@ -69,13 +72,16 @@ class V1alpha1Component(object): attribute_map = { 'category': 'category', 'cmd': 'cmd', - 'component_monitor': 'component_monitor', + 'component_graphs': 'component_graphs', + 'component_monitors': 'component_monitors', 'cpu': 'cpu', 'dep_service_map_list': 'dep_service_map_list', 'deploy_version': 'deploy_version', + 'endpoints': 'endpoints', 'extend_method': 'extend_method', 'extend_method_map': 'extend_method_map', 'image': 'image', + 'labels': 'labels', 'language': 'language', 'memory': 'memory', 'mnt_relation_list': 'mnt_relation_list', @@ -99,7 +105,7 @@ class V1alpha1Component(object): 'version': 'version' } - def __init__(self, category=None, cmd=None, component_monitor=None, cpu=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_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, 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 """V1alpha1Component - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -107,13 +113,16 @@ class V1alpha1Component(object): self._category = None self._cmd = None - self._component_monitor = None + self._component_graphs = None + self._component_monitors = None self._cpu = None self._dep_service_map_list = None self._deploy_version = None + self._endpoints = None self._extend_method = None self._extend_method_map = None self._image = None + self._labels = None self._language = None self._memory = None self._mnt_relation_list = None @@ -139,13 +148,18 @@ class V1alpha1Component(object): self.category = category self.cmd = cmd - self.component_monitor = component_monitor + self.component_graphs = component_graphs + self.component_monitors = component_monitors self.cpu = cpu self.dep_service_map_list = dep_service_map_list self.deploy_version = deploy_version + if endpoints is not None: + self.endpoints = endpoints self.extend_method = extend_method self.extend_method_map = extend_method_map self.image = image + if labels is not None: + self.labels = labels self.language = language self.memory = memory self.mnt_relation_list = mnt_relation_list @@ -218,27 +232,50 @@ class V1alpha1Component(object): self._cmd = cmd @property - def component_monitor(self): - """Gets the component_monitor of this V1alpha1Component. # noqa: E501 + def component_graphs(self): + """Gets the component_graphs of this V1alpha1Component. # noqa: E501 - :return: The component_monitor of this V1alpha1Component. # noqa: E501 + :return: The component_graphs of this V1alpha1Component. # noqa: E501 + :rtype: list[V1alpha1ComponentGraph] + """ + return self._component_graphs + + @component_graphs.setter + def component_graphs(self, component_graphs): + """Sets the component_graphs of this V1alpha1Component. + + + :param component_graphs: The component_graphs of this V1alpha1Component. # noqa: E501 + :type: list[V1alpha1ComponentGraph] + """ + if self.local_vars_configuration.client_side_validation and component_graphs is None: # noqa: E501 + raise ValueError("Invalid value for `component_graphs`, must not be `None`") # noqa: E501 + + self._component_graphs = component_graphs + + @property + def component_monitors(self): + """Gets the component_monitors of this V1alpha1Component. # noqa: E501 + + + :return: The component_monitors of this V1alpha1Component. # noqa: E501 :rtype: list[V1alpha1ComponentMonitor] """ - return self._component_monitor + return self._component_monitors - @component_monitor.setter - def component_monitor(self, component_monitor): - """Sets the component_monitor of this V1alpha1Component. + @component_monitors.setter + def component_monitors(self, component_monitors): + """Sets the component_monitors of this V1alpha1Component. - :param component_monitor: The component_monitor of this V1alpha1Component. # noqa: E501 + :param component_monitors: The component_monitors of this V1alpha1Component. # noqa: E501 :type: list[V1alpha1ComponentMonitor] """ - if self.local_vars_configuration.client_side_validation and component_monitor is None: # noqa: E501 - raise ValueError("Invalid value for `component_monitor`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and component_monitors is None: # noqa: E501 + raise ValueError("Invalid value for `component_monitors`, must not be `None`") # noqa: E501 - self._component_monitor = component_monitor + self._component_monitors = component_monitors @property def cpu(self): @@ -309,6 +346,27 @@ class V1alpha1Component(object): self._deploy_version = deploy_version + @property + def endpoints(self): + """Gets the endpoints of this V1alpha1Component. # noqa: E501 + + + :return: The endpoints of this V1alpha1Component. # noqa: E501 + :rtype: V1alpha1Endpoints + """ + return self._endpoints + + @endpoints.setter + def endpoints(self, endpoints): + """Sets the endpoints of this V1alpha1Component. + + + :param endpoints: The endpoints of this V1alpha1Component. # noqa: E501 + :type: V1alpha1Endpoints + """ + + self._endpoints = endpoints + @property def extend_method(self): """Gets the extend_method of this V1alpha1Component. # noqa: E501 @@ -378,6 +436,27 @@ class V1alpha1Component(object): self._image = image + @property + def labels(self): + """Gets the labels of this V1alpha1Component. # noqa: E501 + + + :return: The labels of this V1alpha1Component. # noqa: E501 + :rtype: dict(str, str) + """ + return self._labels + + @labels.setter + def labels(self, labels): + """Sets the labels of this V1alpha1Component. + + + :param labels: The labels of this V1alpha1Component. # noqa: E501 + :type: dict(str, str) + """ + + self._labels = labels + @property def language(self): """Gets the language of this V1alpha1Component. # noqa: E501 diff --git a/openapi_client/models/v1alpha1_component_env.py b/openapi_client/models/v1alpha1_component_env.py index 16f32a3..3de094e 100644 --- a/openapi_client/models/v1alpha1_component_env.py +++ b/openapi_client/models/v1alpha1_component_env.py @@ -36,6 +36,7 @@ class V1alpha1ComponentEnv(object): openapi_types = { 'attr_name': 'str', 'attr_value': 'str', + 'container_port': 'int', 'is_change': 'bool', 'name': 'str' } @@ -43,11 +44,12 @@ class V1alpha1ComponentEnv(object): attribute_map = { 'attr_name': 'attr_name', 'attr_value': 'attr_value', + 'container_port': 'container_port', '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 + def __init__(self, attr_name=None, attr_value=None, container_port=None, is_change=None, name=None, local_vars_configuration=None): # noqa: E501 """V1alpha1ComponentEnv - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -55,12 +57,14 @@ class V1alpha1ComponentEnv(object): self._attr_name = None self._attr_value = None + self._container_port = None self._is_change = None self._name = None self.discriminator = None self.attr_name = attr_name self.attr_value = attr_value + self.container_port = container_port self.is_change = is_change self.name = name @@ -110,6 +114,29 @@ class V1alpha1ComponentEnv(object): self._attr_value = attr_value + @property + def container_port(self): + """Gets the container_port of this V1alpha1ComponentEnv. # noqa: E501 + + + :return: The container_port of this V1alpha1ComponentEnv. # noqa: E501 + :rtype: int + """ + return self._container_port + + @container_port.setter + def container_port(self, container_port): + """Sets the container_port of this V1alpha1ComponentEnv. + + + :param container_port: The container_port of this V1alpha1ComponentEnv. # 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_change(self): """Gets the is_change of this V1alpha1ComponentEnv. # noqa: E501 diff --git a/openapi_client/models/v1alpha1_component_extend_method_rule.py b/openapi_client/models/v1alpha1_component_extend_method_rule.py index bb3a564..57b8b87 100644 --- a/openapi_client/models/v1alpha1_component_extend_method_rule.py +++ b/openapi_client/models/v1alpha1_component_extend_method_rule.py @@ -34,6 +34,7 @@ class V1alpha1ComponentExtendMethodRule(object): and the value is json key in definition. """ openapi_types = { + 'init_memory': 'int', 'is_restart': 'int', 'max_memory': 'int', 'max_node': 'int', @@ -44,6 +45,7 @@ class V1alpha1ComponentExtendMethodRule(object): } attribute_map = { + 'init_memory': 'init_memory', 'is_restart': 'is_restart', 'max_memory': 'max_memory', 'max_node': 'max_node', @@ -53,12 +55,13 @@ class V1alpha1ComponentExtendMethodRule(object): '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 + def __init__(self, init_memory=None, 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 """V1alpha1ComponentExtendMethodRule - 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._init_memory = None self._is_restart = None self._max_memory = None self._max_node = None @@ -68,6 +71,7 @@ class V1alpha1ComponentExtendMethodRule(object): self._step_node = None self.discriminator = None + self.init_memory = init_memory self.is_restart = is_restart self.max_memory = max_memory self.max_node = max_node @@ -76,6 +80,29 @@ class V1alpha1ComponentExtendMethodRule(object): self.step_memory = step_memory self.step_node = step_node + @property + def init_memory(self): + """Gets the init_memory of this V1alpha1ComponentExtendMethodRule. # noqa: E501 + + + :return: The init_memory of this V1alpha1ComponentExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._init_memory + + @init_memory.setter + def init_memory(self, init_memory): + """Sets the init_memory of this V1alpha1ComponentExtendMethodRule. + + + :param init_memory: The init_memory of this V1alpha1ComponentExtendMethodRule. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and init_memory is None: # noqa: E501 + raise ValueError("Invalid value for `init_memory`, must not be `None`") # noqa: E501 + + self._init_memory = init_memory + @property def is_restart(self): """Gets the is_restart of this V1alpha1ComponentExtendMethodRule. # noqa: E501 diff --git a/openapi_client/models/v1_image_info.py b/openapi_client/models/v1alpha1_component_graph.py similarity index 46% rename from openapi_client/models/v1_image_info.py rename to openapi_client/models/v1alpha1_component_graph.py index 6630eb9..3c61dc2 100644 --- a/openapi_client/models/v1_image_info.py +++ b/openapi_client/models/v1alpha1_component_graph.py @@ -19,7 +19,7 @@ import six from openapi_client.configuration import Configuration -class V1ImageInfo(object): +class V1alpha1ComponentGraph(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,154 +34,154 @@ class V1ImageInfo(object): and the value is json key in definition. """ openapi_types = { - 'hub_password': 'str', - 'hub_url': 'str', - 'hub_user': 'str', - 'is_trust': 'bool', - 'namespace': 'str' + 'component_id': 'str', + 'graph_id': 'str', + 'promql': 'str', + 'sequence': 'int', + 'title': 'str' } attribute_map = { - 'hub_password': 'hub_password', - 'hub_url': 'hub_url', - 'hub_user': 'hub_user', - 'is_trust': 'is_trust', - 'namespace': 'namespace' + 'component_id': 'component_id', + 'graph_id': 'graph_id', + 'promql': 'promql', + 'sequence': 'sequence', + 'title': 'title' } - 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 + def __init__(self, component_id=None, graph_id=None, promql=None, sequence=None, title=None, local_vars_configuration=None): # noqa: E501 + """V1alpha1ComponentGraph - 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._component_id = None + self._graph_id = None + self._promql = None + self._sequence = None + self._title = 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 + self.component_id = component_id + self.graph_id = graph_id + self.promql = promql + self.sequence = sequence + self.title = title @property - def hub_password(self): - """Gets the hub_password of this V1ImageInfo. # noqa: E501 + def component_id(self): + """Gets the component_id of this V1alpha1ComponentGraph. # noqa: E501 - :return: The hub_password of this V1ImageInfo. # noqa: E501 + :return: The component_id of this V1alpha1ComponentGraph. # noqa: E501 :rtype: str """ - return self._hub_password + return self._component_id - @hub_password.setter - def hub_password(self, hub_password): - """Sets the hub_password of this V1ImageInfo. + @component_id.setter + def component_id(self, component_id): + """Sets the component_id of this V1alpha1ComponentGraph. - :param hub_password: The hub_password of this V1ImageInfo. # noqa: E501 + :param component_id: The component_id of this V1alpha1ComponentGraph. # 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 + 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._hub_password = hub_password + self._component_id = component_id @property - def hub_url(self): - """Gets the hub_url of this V1ImageInfo. # noqa: E501 + def graph_id(self): + """Gets the graph_id of this V1alpha1ComponentGraph. # noqa: E501 - :return: The hub_url of this V1ImageInfo. # noqa: E501 + :return: The graph_id of this V1alpha1ComponentGraph. # noqa: E501 :rtype: str """ - return self._hub_url + return self._graph_id - @hub_url.setter - def hub_url(self, hub_url): - """Sets the hub_url of this V1ImageInfo. + @graph_id.setter + def graph_id(self, graph_id): + """Sets the graph_id of this V1alpha1ComponentGraph. - :param hub_url: The hub_url of this V1ImageInfo. # noqa: E501 + :param graph_id: The graph_id of this V1alpha1ComponentGraph. # 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 + if self.local_vars_configuration.client_side_validation and graph_id is None: # noqa: E501 + raise ValueError("Invalid value for `graph_id`, must not be `None`") # noqa: E501 - self._hub_url = hub_url + self._graph_id = graph_id @property - def hub_user(self): - """Gets the hub_user of this V1ImageInfo. # noqa: E501 + def promql(self): + """Gets the promql of this V1alpha1ComponentGraph. # noqa: E501 - :return: The hub_user of this V1ImageInfo. # noqa: E501 + :return: The promql of this V1alpha1ComponentGraph. # noqa: E501 :rtype: str """ - return self._hub_user + return self._promql - @hub_user.setter - def hub_user(self, hub_user): - """Sets the hub_user of this V1ImageInfo. + @promql.setter + def promql(self, promql): + """Sets the promql of this V1alpha1ComponentGraph. - :param hub_user: The hub_user of this V1ImageInfo. # noqa: E501 + :param promql: The promql of this V1alpha1ComponentGraph. # 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 + if self.local_vars_configuration.client_side_validation and promql is None: # noqa: E501 + raise ValueError("Invalid value for `promql`, must not be `None`") # noqa: E501 - self._hub_user = hub_user + self._promql = promql @property - def is_trust(self): - """Gets the is_trust of this V1ImageInfo. # noqa: E501 + def sequence(self): + """Gets the sequence of this V1alpha1ComponentGraph. # noqa: E501 - :return: The is_trust of this V1ImageInfo. # noqa: E501 - :rtype: bool + :return: The sequence of this V1alpha1ComponentGraph. # noqa: E501 + :rtype: int """ - return self._is_trust + return self._sequence - @is_trust.setter - def is_trust(self, is_trust): - """Sets the is_trust of this V1ImageInfo. + @sequence.setter + def sequence(self, sequence): + """Sets the sequence of this V1alpha1ComponentGraph. - :param is_trust: The is_trust of this V1ImageInfo. # noqa: E501 - :type: bool + :param sequence: The sequence of this V1alpha1ComponentGraph. # noqa: E501 + :type: int """ - 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 + if self.local_vars_configuration.client_side_validation and sequence is None: # noqa: E501 + raise ValueError("Invalid value for `sequence`, must not be `None`") # noqa: E501 - self._is_trust = is_trust + self._sequence = sequence @property - def namespace(self): - """Gets the namespace of this V1ImageInfo. # noqa: E501 + def title(self): + """Gets the title of this V1alpha1ComponentGraph. # noqa: E501 - :return: The namespace of this V1ImageInfo. # noqa: E501 + :return: The title of this V1alpha1ComponentGraph. # noqa: E501 :rtype: str """ - return self._namespace + return self._title - @namespace.setter - def namespace(self, namespace): - """Sets the namespace of this V1ImageInfo. + @title.setter + def title(self, title): + """Sets the title of this V1alpha1ComponentGraph. - :param namespace: The namespace of this V1ImageInfo. # noqa: E501 + :param title: The title of this V1alpha1ComponentGraph. # 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 + if self.local_vars_configuration.client_side_validation and title is None: # noqa: E501 + raise ValueError("Invalid value for `title`, must not be `None`") # noqa: E501 - self._namespace = namespace + self._title = title def to_dict(self): """Returns the model properties as a dict""" @@ -217,14 +217,14 @@ class V1ImageInfo(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1ImageInfo): + if not isinstance(other, V1alpha1ComponentGraph): 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): + if not isinstance(other, V1alpha1ComponentGraph): return True return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1alpha1_component_volume.py b/openapi_client/models/v1alpha1_component_volume.py index 9af8848..478173e 100644 --- a/openapi_client/models/v1alpha1_component_volume.py +++ b/openapi_client/models/v1alpha1_component_volume.py @@ -36,7 +36,8 @@ class V1alpha1ComponentVolume(object): openapi_types = { 'access_mode': 'str', 'file_content': 'str', - 'sharing_policy': 'str', + 'mode': 'int', + 'share_policy': 'str', 'volume_capacity': 'int', 'volume_name': 'str', 'volume_path': 'str', @@ -46,14 +47,15 @@ class V1alpha1ComponentVolume(object): attribute_map = { 'access_mode': 'access_mode', 'file_content': 'file_content', - 'sharing_policy': 'sharing_policy', + 'mode': 'mode', + 'share_policy': 'share_policy', '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, sharing_policy=None, volume_capacity=None, volume_name=None, volume_path=None, volume_type=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, access_mode=None, file_content=None, mode=None, share_policy=None, volume_capacity=None, volume_name=None, volume_path=None, volume_type=None, local_vars_configuration=None): # noqa: E501 """V1alpha1ComponentVolume - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -61,17 +63,23 @@ class V1alpha1ComponentVolume(object): self._access_mode = None self._file_content = None - self._sharing_policy = None + self._mode = None + self._share_policy = 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 + if access_mode is not None: + self.access_mode = access_mode self.file_content = file_content - self.sharing_policy = sharing_policy - self.volume_capacity = volume_capacity + if mode is not None: + self.mode = mode + if share_policy is not None: + self.share_policy = share_policy + if volume_capacity is not None: + self.volume_capacity = volume_capacity self.volume_name = volume_name self.volume_path = volume_path self.volume_type = volume_type @@ -94,8 +102,6 @@ class V1alpha1ComponentVolume(object): :param access_mode: The access_mode of this V1alpha1ComponentVolume. # 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 @@ -123,27 +129,46 @@ class V1alpha1ComponentVolume(object): self._file_content = file_content @property - def sharing_policy(self): - """Gets the sharing_policy of this V1alpha1ComponentVolume. # noqa: E501 + def mode(self): + """Gets the mode of this V1alpha1ComponentVolume. # noqa: E501 - :return: The sharing_policy of this V1alpha1ComponentVolume. # noqa: E501 + :return: The mode of this V1alpha1ComponentVolume. # noqa: E501 + :rtype: int + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this V1alpha1ComponentVolume. + + + :param mode: The mode of this V1alpha1ComponentVolume. # noqa: E501 + :type: int + """ + + self._mode = mode + + @property + def share_policy(self): + """Gets the share_policy of this V1alpha1ComponentVolume. # noqa: E501 + + + :return: The share_policy of this V1alpha1ComponentVolume. # noqa: E501 :rtype: str """ - return self._sharing_policy + return self._share_policy - @sharing_policy.setter - def sharing_policy(self, sharing_policy): - """Sets the sharing_policy of this V1alpha1ComponentVolume. + @share_policy.setter + def share_policy(self, share_policy): + """Sets the share_policy of this V1alpha1ComponentVolume. - :param sharing_policy: The sharing_policy of this V1alpha1ComponentVolume. # noqa: E501 + :param share_policy: The share_policy of this V1alpha1ComponentVolume. # noqa: E501 :type: str """ - if self.local_vars_configuration.client_side_validation and sharing_policy is None: # noqa: E501 - raise ValueError("Invalid value for `sharing_policy`, must not be `None`") # noqa: E501 - self._sharing_policy = sharing_policy + self._share_policy = share_policy @property def volume_capacity(self): @@ -163,8 +188,6 @@ class V1alpha1ComponentVolume(object): :param volume_capacity: The volume_capacity of this V1alpha1ComponentVolume. # 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 diff --git a/openapi_client/models/v1_store_app_version_templete_app_share_volume.py b/openapi_client/models/v1alpha1_endpoints.py similarity index 49% rename from openapi_client/models/v1_store_app_version_templete_app_share_volume.py rename to openapi_client/models/v1alpha1_endpoints.py index cd54eec..00e4e64 100644 --- a/openapi_client/models/v1_store_app_version_templete_app_share_volume.py +++ b/openapi_client/models/v1alpha1_endpoints.py @@ -19,7 +19,7 @@ import six from openapi_client.configuration import Configuration -class V1StoreAppVersionTempleteAppShareVolume(object): +class V1alpha1Endpoints(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,100 +34,100 @@ class V1StoreAppVersionTempleteAppShareVolume(object): and the value is json key in definition. """ openapi_types = { - 'mnt_dir': 'str', - 'mnt_name': 'str', - 'service_share_uuid': 'str' + 'endpoints_info': 'str', + 'endpoints_type': 'str', + 'service_cname': 'str' } attribute_map = { - 'mnt_dir': 'mnt_dir', - 'mnt_name': 'mnt_name', - 'service_share_uuid': 'service_share_uuid' + 'endpoints_info': 'endpoints_info', + 'endpoints_type': 'endpoints_type', + 'service_cname': 'service_cname' } - 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 + def __init__(self, endpoints_info=None, endpoints_type=None, service_cname=None, local_vars_configuration=None): # noqa: E501 + """V1alpha1Endpoints - 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._endpoints_info = None + self._endpoints_type = None + self._service_cname = None self.discriminator = None - self.mnt_dir = mnt_dir - self.mnt_name = mnt_name - self.service_share_uuid = service_share_uuid + self.endpoints_info = endpoints_info + self.endpoints_type = endpoints_type + self.service_cname = service_cname @property - def mnt_dir(self): - """Gets the mnt_dir of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + def endpoints_info(self): + """Gets the endpoints_info of this V1alpha1Endpoints. # noqa: E501 - :return: The mnt_dir of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + :return: The endpoints_info of this V1alpha1Endpoints. # noqa: E501 :rtype: str """ - return self._mnt_dir + return self._endpoints_info - @mnt_dir.setter - def mnt_dir(self, mnt_dir): - """Sets the mnt_dir of this V1StoreAppVersionTempleteAppShareVolume. + @endpoints_info.setter + def endpoints_info(self, endpoints_info): + """Sets the endpoints_info of this V1alpha1Endpoints. - :param mnt_dir: The mnt_dir of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + :param endpoints_info: The endpoints_info of this V1alpha1Endpoints. # 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 + if self.local_vars_configuration.client_side_validation and endpoints_info is None: # noqa: E501 + raise ValueError("Invalid value for `endpoints_info`, must not be `None`") # noqa: E501 - self._mnt_dir = mnt_dir + self._endpoints_info = endpoints_info @property - def mnt_name(self): - """Gets the mnt_name of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + def endpoints_type(self): + """Gets the endpoints_type of this V1alpha1Endpoints. # noqa: E501 - :return: The mnt_name of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + :return: The endpoints_type of this V1alpha1Endpoints. # noqa: E501 :rtype: str """ - return self._mnt_name + return self._endpoints_type - @mnt_name.setter - def mnt_name(self, mnt_name): - """Sets the mnt_name of this V1StoreAppVersionTempleteAppShareVolume. + @endpoints_type.setter + def endpoints_type(self, endpoints_type): + """Sets the endpoints_type of this V1alpha1Endpoints. - :param mnt_name: The mnt_name of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + :param endpoints_type: The endpoints_type of this V1alpha1Endpoints. # 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 + if self.local_vars_configuration.client_side_validation and endpoints_type is None: # noqa: E501 + raise ValueError("Invalid value for `endpoints_type`, must not be `None`") # noqa: E501 - self._mnt_name = mnt_name + self._endpoints_type = endpoints_type @property - def service_share_uuid(self): - """Gets the service_share_uuid of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + def service_cname(self): + """Gets the service_cname of this V1alpha1Endpoints. # noqa: E501 - :return: The service_share_uuid of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + :return: The service_cname of this V1alpha1Endpoints. # noqa: E501 :rtype: str """ - return self._service_share_uuid + return self._service_cname - @service_share_uuid.setter - def service_share_uuid(self, service_share_uuid): - """Sets the service_share_uuid of this V1StoreAppVersionTempleteAppShareVolume. + @service_cname.setter + def service_cname(self, service_cname): + """Sets the service_cname of this V1alpha1Endpoints. - :param service_share_uuid: The service_share_uuid of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + :param service_cname: The service_cname of this V1alpha1Endpoints. # 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 + 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_share_uuid = service_share_uuid + self._service_cname = service_cname def to_dict(self): """Returns the model properties as a dict""" @@ -163,14 +163,14 @@ class V1StoreAppVersionTempleteAppShareVolume(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1StoreAppVersionTempleteAppShareVolume): + if not isinstance(other, V1alpha1Endpoints): 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): + if not isinstance(other, V1alpha1Endpoints): return True return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1alpha1_ingress_http_route.py b/openapi_client/models/v1alpha1_ingress_http_route.py new file mode 100644 index 0000000..8bfb679 --- /dev/null +++ b/openapi_client/models/v1alpha1_ingress_http_route.py @@ -0,0 +1,554 @@ +# 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 V1alpha1IngressHTTPRoute(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 = { + 'component_key': 'str', + 'connection_timeout': 'int', + 'cookies': 'dict(str, str)', + 'default_domain': 'bool', + 'headers': 'dict(str, str)', + 'load_balancing': 'str', + 'location': 'str', + 'port': 'int', + 'proxy_buffer': 'bool', + 'proxy_buffer_numbers': 'int', + 'proxy_buffer_size': 'int', + 'proxy_header': 'dict(str, str)', + 'request_body_size_limit': 'int', + 'request_timeout': 'int', + 'response_timeout': 'int', + 'ssl': 'bool', + 'websocket': 'bool' + } + + attribute_map = { + 'component_key': 'component_key', + 'connection_timeout': 'connection_timeout', + 'cookies': 'cookies', + 'default_domain': 'default_domain', + 'headers': 'headers', + 'load_balancing': 'load_balancing', + 'location': 'location', + 'port': 'port', + 'proxy_buffer': 'proxy_buffer', + 'proxy_buffer_numbers': 'proxy_buffer_numbers', + 'proxy_buffer_size': 'proxy_buffer_size', + 'proxy_header': 'proxy_header', + 'request_body_size_limit': 'request_body_size_limit', + 'request_timeout': 'request_timeout', + 'response_timeout': 'response_timeout', + 'ssl': 'ssl', + 'websocket': 'websocket' + } + + def __init__(self, component_key=None, connection_timeout=None, cookies=None, default_domain=None, headers=None, load_balancing=None, location=None, port=None, proxy_buffer=None, proxy_buffer_numbers=None, proxy_buffer_size=None, proxy_header=None, request_body_size_limit=None, request_timeout=None, response_timeout=None, ssl=None, websocket=None, local_vars_configuration=None): # noqa: E501 + """V1alpha1IngressHTTPRoute - 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_key = None + self._connection_timeout = None + self._cookies = None + self._default_domain = None + self._headers = None + self._load_balancing = None + self._location = None + self._port = None + self._proxy_buffer = None + self._proxy_buffer_numbers = None + self._proxy_buffer_size = None + self._proxy_header = None + self._request_body_size_limit = None + self._request_timeout = None + self._response_timeout = None + self._ssl = None + self._websocket = None + self.discriminator = None + + self.component_key = component_key + self.connection_timeout = connection_timeout + self.cookies = cookies + self.default_domain = default_domain + self.headers = headers + self.load_balancing = load_balancing + self.location = location + self.port = port + self.proxy_buffer = proxy_buffer + self.proxy_buffer_numbers = proxy_buffer_numbers + self.proxy_buffer_size = proxy_buffer_size + self.proxy_header = proxy_header + self.request_body_size_limit = request_body_size_limit + self.request_timeout = request_timeout + self.response_timeout = response_timeout + self.ssl = ssl + self.websocket = websocket + + @property + def component_key(self): + """Gets the component_key of this V1alpha1IngressHTTPRoute. # noqa: E501 + + + :return: The component_key of this V1alpha1IngressHTTPRoute. # noqa: E501 + :rtype: str + """ + return self._component_key + + @component_key.setter + def component_key(self, component_key): + """Sets the component_key of this V1alpha1IngressHTTPRoute. + + + :param component_key: The component_key of this V1alpha1IngressHTTPRoute. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and component_key is None: # noqa: E501 + raise ValueError("Invalid value for `component_key`, must not be `None`") # noqa: E501 + + self._component_key = component_key + + @property + def connection_timeout(self): + """Gets the connection_timeout of this V1alpha1IngressHTTPRoute. # noqa: E501 + + + :return: The connection_timeout of this V1alpha1IngressHTTPRoute. # noqa: E501 + :rtype: int + """ + return self._connection_timeout + + @connection_timeout.setter + def connection_timeout(self, connection_timeout): + """Sets the connection_timeout of this V1alpha1IngressHTTPRoute. + + + :param connection_timeout: The connection_timeout of this V1alpha1IngressHTTPRoute. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and connection_timeout is None: # noqa: E501 + raise ValueError("Invalid value for `connection_timeout`, must not be `None`") # noqa: E501 + + self._connection_timeout = connection_timeout + + @property + def cookies(self): + """Gets the cookies of this V1alpha1IngressHTTPRoute. # noqa: E501 + + + :return: The cookies of this V1alpha1IngressHTTPRoute. # noqa: E501 + :rtype: dict(str, str) + """ + return self._cookies + + @cookies.setter + def cookies(self, cookies): + """Sets the cookies of this V1alpha1IngressHTTPRoute. + + + :param cookies: The cookies of this V1alpha1IngressHTTPRoute. # noqa: E501 + :type: dict(str, str) + """ + if self.local_vars_configuration.client_side_validation and cookies is None: # noqa: E501 + raise ValueError("Invalid value for `cookies`, must not be `None`") # noqa: E501 + + self._cookies = cookies + + @property + def default_domain(self): + """Gets the default_domain of this V1alpha1IngressHTTPRoute. # noqa: E501 + + + :return: The default_domain of this V1alpha1IngressHTTPRoute. # noqa: E501 + :rtype: bool + """ + return self._default_domain + + @default_domain.setter + def default_domain(self, default_domain): + """Sets the default_domain of this V1alpha1IngressHTTPRoute. + + + :param default_domain: The default_domain of this V1alpha1IngressHTTPRoute. # noqa: E501 + :type: bool + """ + if self.local_vars_configuration.client_side_validation and default_domain is None: # noqa: E501 + raise ValueError("Invalid value for `default_domain`, must not be `None`") # noqa: E501 + + self._default_domain = default_domain + + @property + def headers(self): + """Gets the headers of this V1alpha1IngressHTTPRoute. # noqa: E501 + + + :return: The headers of this V1alpha1IngressHTTPRoute. # noqa: E501 + :rtype: dict(str, str) + """ + return self._headers + + @headers.setter + def headers(self, headers): + """Sets the headers of this V1alpha1IngressHTTPRoute. + + + :param headers: The headers of this V1alpha1IngressHTTPRoute. # noqa: E501 + :type: dict(str, str) + """ + if self.local_vars_configuration.client_side_validation and headers is None: # noqa: E501 + raise ValueError("Invalid value for `headers`, must not be `None`") # noqa: E501 + + self._headers = headers + + @property + def load_balancing(self): + """Gets the load_balancing of this V1alpha1IngressHTTPRoute. # noqa: E501 + + + :return: The load_balancing of this V1alpha1IngressHTTPRoute. # noqa: E501 + :rtype: str + """ + return self._load_balancing + + @load_balancing.setter + def load_balancing(self, load_balancing): + """Sets the load_balancing of this V1alpha1IngressHTTPRoute. + + + :param load_balancing: The load_balancing of this V1alpha1IngressHTTPRoute. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and load_balancing is None: # noqa: E501 + raise ValueError("Invalid value for `load_balancing`, must not be `None`") # noqa: E501 + + self._load_balancing = load_balancing + + @property + def location(self): + """Gets the location of this V1alpha1IngressHTTPRoute. # noqa: E501 + + + :return: The location of this V1alpha1IngressHTTPRoute. # noqa: E501 + :rtype: str + """ + return self._location + + @location.setter + def location(self, location): + """Sets the location of this V1alpha1IngressHTTPRoute. + + + :param location: The location of this V1alpha1IngressHTTPRoute. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and location is None: # noqa: E501 + raise ValueError("Invalid value for `location`, must not be `None`") # noqa: E501 + + self._location = location + + @property + def port(self): + """Gets the port of this V1alpha1IngressHTTPRoute. # noqa: E501 + + + :return: The port of this V1alpha1IngressHTTPRoute. # noqa: E501 + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this V1alpha1IngressHTTPRoute. + + + :param port: The port of this V1alpha1IngressHTTPRoute. # 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 proxy_buffer(self): + """Gets the proxy_buffer of this V1alpha1IngressHTTPRoute. # noqa: E501 + + + :return: The proxy_buffer of this V1alpha1IngressHTTPRoute. # noqa: E501 + :rtype: bool + """ + return self._proxy_buffer + + @proxy_buffer.setter + def proxy_buffer(self, proxy_buffer): + """Sets the proxy_buffer of this V1alpha1IngressHTTPRoute. + + + :param proxy_buffer: The proxy_buffer of this V1alpha1IngressHTTPRoute. # noqa: E501 + :type: bool + """ + if self.local_vars_configuration.client_side_validation and proxy_buffer is None: # noqa: E501 + raise ValueError("Invalid value for `proxy_buffer`, must not be `None`") # noqa: E501 + + self._proxy_buffer = proxy_buffer + + @property + def proxy_buffer_numbers(self): + """Gets the proxy_buffer_numbers of this V1alpha1IngressHTTPRoute. # noqa: E501 + + + :return: The proxy_buffer_numbers of this V1alpha1IngressHTTPRoute. # noqa: E501 + :rtype: int + """ + return self._proxy_buffer_numbers + + @proxy_buffer_numbers.setter + def proxy_buffer_numbers(self, proxy_buffer_numbers): + """Sets the proxy_buffer_numbers of this V1alpha1IngressHTTPRoute. + + + :param proxy_buffer_numbers: The proxy_buffer_numbers of this V1alpha1IngressHTTPRoute. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and proxy_buffer_numbers is None: # noqa: E501 + raise ValueError("Invalid value for `proxy_buffer_numbers`, must not be `None`") # noqa: E501 + + self._proxy_buffer_numbers = proxy_buffer_numbers + + @property + def proxy_buffer_size(self): + """Gets the proxy_buffer_size of this V1alpha1IngressHTTPRoute. # noqa: E501 + + + :return: The proxy_buffer_size of this V1alpha1IngressHTTPRoute. # noqa: E501 + :rtype: int + """ + return self._proxy_buffer_size + + @proxy_buffer_size.setter + def proxy_buffer_size(self, proxy_buffer_size): + """Sets the proxy_buffer_size of this V1alpha1IngressHTTPRoute. + + + :param proxy_buffer_size: The proxy_buffer_size of this V1alpha1IngressHTTPRoute. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and proxy_buffer_size is None: # noqa: E501 + raise ValueError("Invalid value for `proxy_buffer_size`, must not be `None`") # noqa: E501 + + self._proxy_buffer_size = proxy_buffer_size + + @property + def proxy_header(self): + """Gets the proxy_header of this V1alpha1IngressHTTPRoute. # noqa: E501 + + + :return: The proxy_header of this V1alpha1IngressHTTPRoute. # noqa: E501 + :rtype: dict(str, str) + """ + return self._proxy_header + + @proxy_header.setter + def proxy_header(self, proxy_header): + """Sets the proxy_header of this V1alpha1IngressHTTPRoute. + + + :param proxy_header: The proxy_header of this V1alpha1IngressHTTPRoute. # noqa: E501 + :type: dict(str, str) + """ + if self.local_vars_configuration.client_side_validation and proxy_header is None: # noqa: E501 + raise ValueError("Invalid value for `proxy_header`, must not be `None`") # noqa: E501 + + self._proxy_header = proxy_header + + @property + def request_body_size_limit(self): + """Gets the request_body_size_limit of this V1alpha1IngressHTTPRoute. # noqa: E501 + + + :return: The request_body_size_limit of this V1alpha1IngressHTTPRoute. # noqa: E501 + :rtype: int + """ + return self._request_body_size_limit + + @request_body_size_limit.setter + def request_body_size_limit(self, request_body_size_limit): + """Sets the request_body_size_limit of this V1alpha1IngressHTTPRoute. + + + :param request_body_size_limit: The request_body_size_limit of this V1alpha1IngressHTTPRoute. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and request_body_size_limit is None: # noqa: E501 + raise ValueError("Invalid value for `request_body_size_limit`, must not be `None`") # noqa: E501 + + self._request_body_size_limit = request_body_size_limit + + @property + def request_timeout(self): + """Gets the request_timeout of this V1alpha1IngressHTTPRoute. # noqa: E501 + + + :return: The request_timeout of this V1alpha1IngressHTTPRoute. # noqa: E501 + :rtype: int + """ + return self._request_timeout + + @request_timeout.setter + def request_timeout(self, request_timeout): + """Sets the request_timeout of this V1alpha1IngressHTTPRoute. + + + :param request_timeout: The request_timeout of this V1alpha1IngressHTTPRoute. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and request_timeout is None: # noqa: E501 + raise ValueError("Invalid value for `request_timeout`, must not be `None`") # noqa: E501 + + self._request_timeout = request_timeout + + @property + def response_timeout(self): + """Gets the response_timeout of this V1alpha1IngressHTTPRoute. # noqa: E501 + + + :return: The response_timeout of this V1alpha1IngressHTTPRoute. # noqa: E501 + :rtype: int + """ + return self._response_timeout + + @response_timeout.setter + def response_timeout(self, response_timeout): + """Sets the response_timeout of this V1alpha1IngressHTTPRoute. + + + :param response_timeout: The response_timeout of this V1alpha1IngressHTTPRoute. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and response_timeout is None: # noqa: E501 + raise ValueError("Invalid value for `response_timeout`, must not be `None`") # noqa: E501 + + self._response_timeout = response_timeout + + @property + def ssl(self): + """Gets the ssl of this V1alpha1IngressHTTPRoute. # noqa: E501 + + + :return: The ssl of this V1alpha1IngressHTTPRoute. # noqa: E501 + :rtype: bool + """ + return self._ssl + + @ssl.setter + def ssl(self, ssl): + """Sets the ssl of this V1alpha1IngressHTTPRoute. + + + :param ssl: The ssl of this V1alpha1IngressHTTPRoute. # noqa: E501 + :type: bool + """ + if self.local_vars_configuration.client_side_validation and ssl is None: # noqa: E501 + raise ValueError("Invalid value for `ssl`, must not be `None`") # noqa: E501 + + self._ssl = ssl + + @property + def websocket(self): + """Gets the websocket of this V1alpha1IngressHTTPRoute. # noqa: E501 + + + :return: The websocket of this V1alpha1IngressHTTPRoute. # noqa: E501 + :rtype: bool + """ + return self._websocket + + @websocket.setter + def websocket(self, websocket): + """Sets the websocket of this V1alpha1IngressHTTPRoute. + + + :param websocket: The websocket of this V1alpha1IngressHTTPRoute. # noqa: E501 + :type: bool + """ + if self.local_vars_configuration.client_side_validation and websocket is None: # noqa: E501 + raise ValueError("Invalid value for `websocket`, must not be `None`") # noqa: E501 + + self._websocket = websocket + + 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, V1alpha1IngressHTTPRoute): + 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, V1alpha1IngressHTTPRoute): + 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/v1alpha1_ingress_sream_route.py similarity index 45% rename from openapi_client/models/v1_store_app_version_templete_app_env.py rename to openapi_client/models/v1alpha1_ingress_sream_route.py index 21201bb..49819b7 100644 --- a/openapi_client/models/v1_store_app_version_templete_app_env.py +++ b/openapi_client/models/v1alpha1_ingress_sream_route.py @@ -19,7 +19,7 @@ import six from openapi_client.configuration import Configuration -class V1StoreAppVersionTempleteAppEnv(object): +class V1alpha1IngressSreamRoute(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,127 +34,127 @@ class V1StoreAppVersionTempleteAppEnv(object): and the value is json key in definition. """ openapi_types = { - 'attr_name': 'str', - 'attr_value': 'str', - 'is_change': 'bool', - 'name': 'str' + 'component_key': 'str', + 'connection_timeout': 'int', + 'port': 'int', + 'protocol': 'str' } attribute_map = { - 'attr_name': 'attr_name', - 'attr_value': 'attr_value', - 'is_change': 'is_change', - 'name': 'name' + 'component_key': 'component_key', + 'connection_timeout': 'connection_timeout', + 'port': 'port', + 'protocol': 'protocol' } - 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 + def __init__(self, component_key=None, connection_timeout=None, port=None, protocol=None, local_vars_configuration=None): # noqa: E501 + """V1alpha1IngressSreamRoute - 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._component_key = None + self._connection_timeout = None + self._port = None + self._protocol = None self.discriminator = None - self.attr_name = attr_name - self.attr_value = attr_value - self.is_change = is_change - self.name = name + self.component_key = component_key + self.connection_timeout = connection_timeout + self.port = port + self.protocol = protocol @property - def attr_name(self): - """Gets the attr_name of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + def component_key(self): + """Gets the component_key of this V1alpha1IngressSreamRoute. # noqa: E501 - :return: The attr_name of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + :return: The component_key of this V1alpha1IngressSreamRoute. # noqa: E501 :rtype: str """ - return self._attr_name + return self._component_key - @attr_name.setter - def attr_name(self, attr_name): - """Sets the attr_name of this V1StoreAppVersionTempleteAppEnv. + @component_key.setter + def component_key(self, component_key): + """Sets the component_key of this V1alpha1IngressSreamRoute. - :param attr_name: The attr_name of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + :param component_key: The component_key of this V1alpha1IngressSreamRoute. # 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 + if self.local_vars_configuration.client_side_validation and component_key is None: # noqa: E501 + raise ValueError("Invalid value for `component_key`, must not be `None`") # noqa: E501 - self._attr_name = attr_name + self._component_key = component_key @property - def attr_value(self): - """Gets the attr_value of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + def connection_timeout(self): + """Gets the connection_timeout of this V1alpha1IngressSreamRoute. # noqa: E501 - :return: The attr_value of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 - :rtype: str + :return: The connection_timeout of this V1alpha1IngressSreamRoute. # noqa: E501 + :rtype: int """ - return self._attr_value + return self._connection_timeout - @attr_value.setter - def attr_value(self, attr_value): - """Sets the attr_value of this V1StoreAppVersionTempleteAppEnv. + @connection_timeout.setter + def connection_timeout(self, connection_timeout): + """Sets the connection_timeout of this V1alpha1IngressSreamRoute. - :param attr_value: The attr_value of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 - :type: str + :param connection_timeout: The connection_timeout of this V1alpha1IngressSreamRoute. # noqa: E501 + :type: int """ - 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 + if self.local_vars_configuration.client_side_validation and connection_timeout is None: # noqa: E501 + raise ValueError("Invalid value for `connection_timeout`, must not be `None`") # noqa: E501 - self._attr_value = attr_value + self._connection_timeout = connection_timeout @property - def is_change(self): - """Gets the is_change of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + def port(self): + """Gets the port of this V1alpha1IngressSreamRoute. # noqa: E501 - :return: The is_change of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 - :rtype: bool + :return: The port of this V1alpha1IngressSreamRoute. # noqa: E501 + :rtype: int """ - return self._is_change + return self._port - @is_change.setter - def is_change(self, is_change): - """Sets the is_change of this V1StoreAppVersionTempleteAppEnv. + @port.setter + def port(self, port): + """Sets the port of this V1alpha1IngressSreamRoute. - :param is_change: The is_change of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 - :type: bool + :param port: The port of this V1alpha1IngressSreamRoute. # noqa: E501 + :type: int """ - 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 + 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._is_change = is_change + self._port = port @property - def name(self): - """Gets the name of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + def protocol(self): + """Gets the protocol of this V1alpha1IngressSreamRoute. # noqa: E501 - :return: The name of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + :return: The protocol of this V1alpha1IngressSreamRoute. # noqa: E501 :rtype: str """ - return self._name + return self._protocol - @name.setter - def name(self, name): - """Sets the name of this V1StoreAppVersionTempleteAppEnv. + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this V1alpha1IngressSreamRoute. - :param name: The name of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + :param protocol: The protocol of this V1alpha1IngressSreamRoute. # 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 + 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._name = name + self._protocol = protocol def to_dict(self): """Returns the model properties as a dict""" @@ -190,14 +190,14 @@ class V1StoreAppVersionTempleteAppEnv(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, V1StoreAppVersionTempleteAppEnv): + if not isinstance(other, V1alpha1IngressSreamRoute): 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): + if not isinstance(other, V1alpha1IngressSreamRoute): return True return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1alpha1_rainbond_application_config.py b/openapi_client/models/v1alpha1_rainbond_application_config.py index 7b42ff4..bb58ea2 100644 --- a/openapi_client/models/v1alpha1_rainbond_application_config.py +++ b/openapi_client/models/v1alpha1_rainbond_application_config.py @@ -34,49 +34,85 @@ class V1alpha1RainbondApplicationConfig(object): and the value is json key in definition. """ openapi_types = { + 'annotations': 'dict(str, str)', 'app_config_groups': 'list[V1alpha1AppConfigGroup]', 'apps': 'list[V1alpha1Component]', 'group_key': 'str', 'group_name': 'str', 'group_version': 'str', + 'ingress_http_routes': 'list[V1alpha1IngressHTTPRoute]', + 'ingress_stream_routes': 'list[V1alpha1IngressSreamRoute]', 'plugins': 'list[V1alpha1Plugin]', 'template_version': 'str' } attribute_map = { + 'annotations': 'annotations', 'app_config_groups': 'app_config_groups', 'apps': 'apps', 'group_key': 'group_key', 'group_name': 'group_name', 'group_version': 'group_version', + 'ingress_http_routes': 'ingress_http_routes', + 'ingress_stream_routes': 'ingress_stream_routes', 'plugins': 'plugins', 'template_version': 'template_version' } - def __init__(self, app_config_groups=None, apps=None, group_key=None, group_name=None, group_version=None, plugins=None, template_version=None, local_vars_configuration=None): # noqa: E501 + 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 """V1alpha1RainbondApplicationConfig - 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._annotations = None self._app_config_groups = None self._apps = None self._group_key = None self._group_name = None self._group_version = None + self._ingress_http_routes = None + self._ingress_stream_routes = 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 self.apps = apps self.group_key = group_key self.group_name = group_name self.group_version = group_version + 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 plugins is not None: self.plugins = plugins self.template_version = template_version + @property + def annotations(self): + """Gets the annotations of this V1alpha1RainbondApplicationConfig. # noqa: E501 + + + :return: The annotations of this V1alpha1RainbondApplicationConfig. # noqa: E501 + :rtype: dict(str, str) + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this V1alpha1RainbondApplicationConfig. + + + :param annotations: The annotations of this V1alpha1RainbondApplicationConfig. # noqa: E501 + :type: dict(str, str) + """ + + self._annotations = annotations + @property def app_config_groups(self): """Gets the app_config_groups of this V1alpha1RainbondApplicationConfig. # noqa: E501 @@ -192,6 +228,48 @@ class V1alpha1RainbondApplicationConfig(object): self._group_version = group_version + @property + def ingress_http_routes(self): + """Gets the ingress_http_routes of this V1alpha1RainbondApplicationConfig. # noqa: E501 + + + :return: The ingress_http_routes of this V1alpha1RainbondApplicationConfig. # noqa: E501 + :rtype: list[V1alpha1IngressHTTPRoute] + """ + return self._ingress_http_routes + + @ingress_http_routes.setter + def ingress_http_routes(self, ingress_http_routes): + """Sets the ingress_http_routes of this V1alpha1RainbondApplicationConfig. + + + :param ingress_http_routes: The ingress_http_routes of this V1alpha1RainbondApplicationConfig. # noqa: E501 + :type: list[V1alpha1IngressHTTPRoute] + """ + + self._ingress_http_routes = ingress_http_routes + + @property + def ingress_stream_routes(self): + """Gets the ingress_stream_routes of this V1alpha1RainbondApplicationConfig. # noqa: E501 + + + :return: The ingress_stream_routes of this V1alpha1RainbondApplicationConfig. # noqa: E501 + :rtype: list[V1alpha1IngressSreamRoute] + """ + return self._ingress_stream_routes + + @ingress_stream_routes.setter + def ingress_stream_routes(self, ingress_stream_routes): + """Sets the ingress_stream_routes of this V1alpha1RainbondApplicationConfig. + + + :param ingress_stream_routes: The ingress_stream_routes of this V1alpha1RainbondApplicationConfig. # noqa: E501 + :type: list[V1alpha1IngressSreamRoute] + """ + + self._ingress_stream_routes = ingress_stream_routes + @property def plugins(self): """Gets the plugins of this V1alpha1RainbondApplicationConfig. # noqa: E501 diff --git a/test/test_apps_store_app_version_templete.py b/test/test_apps_store_app_version_templete.py deleted file mode 100644 index f21ffd0..0000000 --- a/test/test_apps_store_app_version_templete.py +++ /dev/null @@ -1,329 +0,0 @@ -# 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 deleted file mode 100644 index 4acccde..0000000 --- a/test/test_apps_store_app_version_templete_app.py +++ /dev/null @@ -1,252 +0,0 @@ -# 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 deleted file mode 100644 index b00463a..0000000 --- a/test/test_apps_store_app_version_templete_app_dep_service.py +++ /dev/null @@ -1,54 +0,0 @@ -# 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 deleted file mode 100644 index 0445031..0000000 --- a/test/test_apps_store_app_version_templete_app_env.py +++ /dev/null @@ -1,60 +0,0 @@ -# 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 deleted file mode 100644 index 7455db8..0000000 --- a/test/test_apps_store_app_version_templete_app_extend_method_rule.py +++ /dev/null @@ -1,66 +0,0 @@ -# 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 deleted file mode 100644 index 990c82e..0000000 --- a/test/test_apps_store_app_version_templete_app_plugin_config.py +++ /dev/null @@ -1,74 +0,0 @@ -# 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 deleted file mode 100644 index 163abe3..0000000 --- a/test/test_apps_store_app_version_templete_app_port.py +++ /dev/null @@ -1,64 +0,0 @@ -# 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_share_volume.py b/test/test_apps_store_app_version_templete_app_share_volume.py deleted file mode 100644 index 428a808..0000000 --- a/test/test_apps_store_app_version_templete_app_share_volume.py +++ /dev/null @@ -1,58 +0,0 @@ -# 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 deleted file mode 100644 index c46716b..0000000 --- a/test/test_apps_store_app_version_templete_app_volume.py +++ /dev/null @@ -1,64 +0,0 @@ -# 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 deleted file mode 100644 index f4da1d6..0000000 --- a/test/test_apps_store_app_version_templete_plugin.py +++ /dev/null @@ -1,117 +0,0 @@ -# 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 deleted file mode 100644 index c2f7342..0000000 --- a/test/test_apps_store_app_version_templete_plugin_config_group.py +++ /dev/null @@ -1,78 +0,0 @@ -# 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 deleted file mode 100644 index a9fbb2d..0000000 --- a/test/test_apps_store_app_version_templete_plugin_config_group_option.py +++ /dev/null @@ -1,74 +0,0 @@ -# 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 2022169..0d3f4c9 100644 --- a/test/test_market_openapi_api.py +++ b/test/test_market_openapi_api.py @@ -29,66 +29,94 @@ 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 - create an app model # noqa: E501 + 应用列表 # noqa: E501 """ pass def test_create_app_version(self): """Test case for create_app_version - post an app version # noqa: E501 + 创建应用版本 # noqa: E501 """ pass def test_get_app_hub_info(self): """Test case for get_app_hub_info - get app image save info # noqa: E501 + 获取镜像仓库信息 # 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 """ pass def test_get_market_info(self): """Test case for get_market_info - get mrket info # noqa: E501 + 获取商店信息 # noqa: E501 + """ + pass + + def test_get_orgs(self): + """Test case for get_orgs + + 获取组织机构(行业)列表 # noqa: E501 """ pass def test_get_user_app_detail(self): """Test case for get_user_app_detail - Query the specified application details # noqa: E501 + 应用详情 # noqa: E501 """ pass def test_get_user_app_list(self): """Test case for get_user_app_list - A list of installable applications # noqa: E501 + 应用列表 # noqa: E501 """ pass def test_get_user_app_version_detail(self): """Test case for get_user_app_version_detail - Query the specified version details of the specified application # noqa: E501 + 应用版本信息 # noqa: E501 """ pass def test_get_user_app_versions(self): """Test case for get_user_app_versions - Query the specified application version list # noqa: E501 + 应用版本列表 # noqa: E501 """ pass def test_update_app(self): """Test case for update_app - update app model base info # noqa: E501 + 更新应用信息 # noqa: E501 """ pass diff --git a/test/test_platform_open_api.py b/test/test_platform_open_api.py index 115bd85..23e6434 100644 --- a/test/test_platform_open_api.py +++ b/test/test_platform_open_api.py @@ -6,6 +6,7 @@ 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 54169a2..3ddc83f 100644 --- a/test/test_v1_app_base_info.py +++ b/test/test_v1_app_base_info.py @@ -53,8 +53,28 @@ class TestV1AppBaseInfo(unittest.TestCase): market_url = '0', name = '0', publish_type = '0', + publish_user = '0', + show_count = 56, start_count = 56, - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + 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, ) + ] ) else : return V1AppBaseInfo( @@ -74,8 +94,28 @@ 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_create_request.py b/test/test_v1_app_create_request.py deleted file mode 100644 index 50b1ef1..0000000 --- a/test/test_v1_app_create_request.py +++ /dev/null @@ -1,64 +0,0 @@ -# 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 a5f44fa..57d16e2 100644 --- a/test/test_v1_app_detail_info_response.py +++ b/test/test_v1_app_detail_info_response.py @@ -37,6 +37,7 @@ 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'), @@ -52,8 +53,12 @@ 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' ], @@ -64,7 +69,10 @@ 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, ) @@ -72,6 +80,7 @@ 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'), @@ -87,8 +96,12 @@ 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' ], @@ -99,7 +112,10 @@ 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 2f66187..041edf1 100644 --- a/test/test_v1_app_model_create_request.py +++ b/test/test_v1_app_model_create_request.py @@ -41,6 +41,7 @@ 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 ce50366..e54aa4a 100644 --- a/test/test_v1_app_update_request.py +++ b/test/test_v1_app_update_request.py @@ -37,21 +37,17 @@ 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 4b8e886..96d728f 100644 --- a/test/test_v1_app_version_base.py +++ b/test/test_v1_app_version_base.py @@ -41,7 +41,10 @@ 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 @@ -52,7 +55,10 @@ 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 a0a6b76..e972c04 100644 --- a/test/test_v1_app_version_detail_response.py +++ b/test/test_v1_app_version_detail_response.py @@ -38,187 +38,38 @@ class TestV1AppVersionDetailResponse(unittest.TestCase): if include_optional : return V1AppVersionDetailResponse( app_key_id = '0', - app_version = '0', - app_version_alias = '0', + app_name = '0', create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - desc = '0', + delivery_mode = '0', + description = '0', + enable = True, + is_plugin = True, + market_id = '0', rainbond_version = '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', ), + 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 + update_version = 56, + version = '0', + version_alias = '0' ) else : return V1AppVersionDetailResponse( app_key_id = '0', - app_version = '0', - app_version_alias = '0', + app_name = '0', create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - desc = '0', + delivery_mode = '0', + description = '0', + enable = True, + is_plugin = True, + market_id = '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 c5f25f4..75b35b5 100644 --- a/test/test_v1_app_version_list_response.py +++ b/test/test_v1_app_version_list_response.py @@ -37,25 +37,37 @@ class TestV1AppVersionListResponse(unittest.TestCase): # model = openapi_client.models.v1_app_version_list_response.V1AppVersionListResponse() # noqa: E501 if include_optional : return V1AppVersionListResponse( - 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 + 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, ) + ] ) else : return V1AppVersionListResponse( - 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, + 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 testV1AppVersionListResponse(self): diff --git a/test/test_v1_app_version_request.py b/test/test_v1_app_version_request.py deleted file mode 100644 index b7afe76..0000000 --- a/test/test_v1_app_version_request.py +++ /dev/null @@ -1,64 +0,0 @@ -# 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 2afa344..81f9f3c 100644 --- a/test/test_v1_bindable_market.py +++ b/test/test_v1_bindable_market.py @@ -6,6 +6,7 @@ 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 2231388..4b5a293 100644 --- a/test/test_v1_create_app_paa_s_version_request.py +++ b/test/test_v1_create_app_paa_s_version_request.py @@ -38,18 +38,56 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): if include_optional : return V1CreateAppPaaSVersionRequest( description = '0', - templete = openapi_client.models.v1/store_app_version_templete.v1.StoreAppVersionTemplete( + 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', ) + ], apps = [ - openapi_client.models.v1/store_app_version_templete_app.v1.StoreAppVersionTempleteApp( + 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 = [ + 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.v1/store_app_version_templete_app_dep_service.v1.StoreAppVersionTempleteAppDepService( + openapi_client.models.v1alpha1/component_dep.v1alpha1.ComponentDep( 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.v1/store_app_version_templete_app_extend_method_rule.v1.StoreAppVersionTempleteAppExtendMethodRule( + 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, @@ -58,16 +96,19 @@ 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.v1/store_app_version_templete_app_share_volume.v1.StoreAppVersionTempleteAppShareVolume( + openapi_client.models.v1alpha1/component_share_volume.v1alpha1.ComponentShareVolume( 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( + openapi_client.models.v1alpha1/component_port.v1alpha1.ComponentPort( container_port = 56, is_inner_service = True, is_outer_service = True, @@ -76,7 +117,7 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): tenant_id = '0', ) ], probes = [ - openapi_client.models.v1/store_app_version_templete_app_probe.v1.StoreAppVersionTempleteAppProbe( + openapi_client.models.v1alpha1/component_probe.v1alpha1.ComponentProbe( id = 56, cmd = '0', failure_threshold = 56, @@ -96,21 +137,23 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): service_alias = '0', service_cname = '0', service_connect_info_map_list = [ - openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( attr_name = '0', attr_value = '0', + container_port = 56, is_change = True, name = '0', ) ], service_env_map_list = [ - openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( attr_name = '0', attr_value = '0', + container_port = 56, is_change = True, name = '0', ) ], service_id = '0', - service_image = openapi_client.models.v1/image_info.v1.ImageInfo( + service_image = openapi_client.models.v1alpha1/image_info.v1alpha1.ImageInfo( hub_password = '0', hub_url = '0', hub_user = '0', @@ -118,15 +161,15 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): 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, + openapi_client.models.v1alpha1/component_plugin_config.v1alpha1.ComponentPluginConfig( attr = [ - openapi_client.models.v1/store_app_version_templete_app_plugin_config/attr.v1.StoreAppVersionTempleteAppPluginConfig.attr() + openapi_client.models.v1alpha1/component_plugin_config/attr.v1alpha1.ComponentPluginConfig.attr() ], build_version = '0', + cpu_required = 56, create_time = '0', + memory_required = 56, plugin_id = '0', plugin_key = '0', plugin_status = True, @@ -137,9 +180,11 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): service_source = '0', service_type = '0', service_volume_map_list = [ - openapi_client.models.v1/store_app_version_templete_app_volume.v1.StoreAppVersionTempleteAppVolume( + openapi_client.models.v1alpha1/component_volume.v1alpha1.ComponentVolume( access_mode = '0', file_content = '0', + mode = 56, + share_policy = '0', volume_capacity = 56, volume_name = '0', volume_path = '0', @@ -147,27 +192,59 @@ 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.v1/store_app_version_templete_plugin.v1.StoreAppVersionTempletePlugin( + openapi_client.models.v1alpha1/plugin.v1alpha1.Plugin( 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( + openapi_client.models.v1alpha1/plugin_config_group.v1alpha1.PluginConfigGroup( 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( + openapi_client.models.v1alpha1/plugin_config_group_option.v1alpha1.PluginConfigGroupOption( id = 56, attr_alt_value = '0', attr_default_value = '0', @@ -190,7 +267,7 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): origin_share_id = '0', plugin_alias = '0', plugin_id = '0', - plugin_image = openapi_client.models.v1/image_info.v1.ImageInfo( + plugin_image = openapi_client.models.v1alpha1/image_info.v1alpha1.ImageInfo( hub_password = '0', hub_url = '0', hub_user = '0', @@ -201,25 +278,63 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): share_image = '0', ) ], template_version = '0', ), - templete_type = '0', + template_type = '0', version = '0', version_alias = '0' ) else : return V1CreateAppPaaSVersionRequest( description = '0', - templete = openapi_client.models.v1/store_app_version_templete.v1.StoreAppVersionTemplete( + 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', ) + ], apps = [ - openapi_client.models.v1/store_app_version_templete_app.v1.StoreAppVersionTempleteApp( + 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 = [ + 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.v1/store_app_version_templete_app_dep_service.v1.StoreAppVersionTempleteAppDepService( + openapi_client.models.v1alpha1/component_dep.v1alpha1.ComponentDep( 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.v1/store_app_version_templete_app_extend_method_rule.v1.StoreAppVersionTempleteAppExtendMethodRule( + 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, @@ -228,16 +343,19 @@ 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.v1/store_app_version_templete_app_share_volume.v1.StoreAppVersionTempleteAppShareVolume( + openapi_client.models.v1alpha1/component_share_volume.v1alpha1.ComponentShareVolume( 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( + openapi_client.models.v1alpha1/component_port.v1alpha1.ComponentPort( container_port = 56, is_inner_service = True, is_outer_service = True, @@ -246,7 +364,7 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): tenant_id = '0', ) ], probes = [ - openapi_client.models.v1/store_app_version_templete_app_probe.v1.StoreAppVersionTempleteAppProbe( + openapi_client.models.v1alpha1/component_probe.v1alpha1.ComponentProbe( id = 56, cmd = '0', failure_threshold = 56, @@ -266,21 +384,23 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): service_alias = '0', service_cname = '0', service_connect_info_map_list = [ - openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( attr_name = '0', attr_value = '0', + container_port = 56, is_change = True, name = '0', ) ], service_env_map_list = [ - openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( attr_name = '0', attr_value = '0', + container_port = 56, is_change = True, name = '0', ) ], service_id = '0', - service_image = openapi_client.models.v1/image_info.v1.ImageInfo( + service_image = openapi_client.models.v1alpha1/image_info.v1alpha1.ImageInfo( hub_password = '0', hub_url = '0', hub_user = '0', @@ -288,15 +408,15 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): 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, + openapi_client.models.v1alpha1/component_plugin_config.v1alpha1.ComponentPluginConfig( attr = [ - openapi_client.models.v1/store_app_version_templete_app_plugin_config/attr.v1.StoreAppVersionTempleteAppPluginConfig.attr() + openapi_client.models.v1alpha1/component_plugin_config/attr.v1alpha1.ComponentPluginConfig.attr() ], build_version = '0', + cpu_required = 56, create_time = '0', + memory_required = 56, plugin_id = '0', plugin_key = '0', plugin_status = True, @@ -307,9 +427,11 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): service_source = '0', service_type = '0', service_volume_map_list = [ - openapi_client.models.v1/store_app_version_templete_app_volume.v1.StoreAppVersionTempleteAppVolume( + openapi_client.models.v1alpha1/component_volume.v1alpha1.ComponentVolume( access_mode = '0', file_content = '0', + mode = 56, + share_policy = '0', volume_capacity = 56, volume_name = '0', volume_path = '0', @@ -317,27 +439,59 @@ 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.v1/store_app_version_templete_plugin.v1.StoreAppVersionTempletePlugin( + openapi_client.models.v1alpha1/plugin.v1alpha1.Plugin( 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( + openapi_client.models.v1alpha1/plugin_config_group.v1alpha1.PluginConfigGroup( 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( + openapi_client.models.v1alpha1/plugin_config_group_option.v1alpha1.PluginConfigGroupOption( id = 56, attr_alt_value = '0', attr_default_value = '0', @@ -360,7 +514,7 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): origin_share_id = '0', plugin_alias = '0', plugin_id = '0', - plugin_image = openapi_client.models.v1/image_info.v1.ImageInfo( + plugin_image = openapi_client.models.v1alpha1/image_info.v1alpha1.ImageInfo( hub_password = '0', hub_url = '0', hub_user = '0', @@ -371,7 +525,7 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): share_image = '0', ) ], template_version = '0', ), - templete_type = '0', + template_type = '0', version = '0', version_alias = '0', ) diff --git a/test/test_v1_market_info_response.py b/test/test_v1_market_info_response.py index da9eaeb..5c19cca 100644 --- a/test/test_v1_market_info_response.py +++ b/test/test_v1_market_info_response.py @@ -37,17 +37,25 @@ 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 = '0' + status = 56, + version = '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 = '0', + status = 56, + version = '0', ) def testV1MarketInfoResponse(self): diff --git a/test/test_v1_store_app_version_template.py b/test/test_v1_store_app_version_template.py deleted file mode 100644 index 7797820..0000000 --- a/test/test_v1_store_app_version_template.py +++ /dev/null @@ -1,329 +0,0 @@ -# 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 deleted file mode 100644 index 86b7265..0000000 --- a/test/test_v1_store_app_version_templete.py +++ /dev/null @@ -1,329 +0,0 @@ -# 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 deleted file mode 100644 index 2001722..0000000 --- a/test/test_v1_store_app_version_templete_app.py +++ /dev/null @@ -1,252 +0,0 @@ -# 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_env.py b/test/test_v1_store_app_version_templete_app_env.py deleted file mode 100644 index 625a42d..0000000 --- a/test/test_v1_store_app_version_templete_app_env.py +++ /dev/null @@ -1,60 +0,0 @@ -# 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 deleted file mode 100644 index e8d251e..0000000 --- a/test/test_v1_store_app_version_templete_app_extend_method_rule.py +++ /dev/null @@ -1,66 +0,0 @@ -# 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 deleted file mode 100644 index 94e481d..0000000 --- a/test/test_v1_store_app_version_templete_app_plugin_config.py +++ /dev/null @@ -1,74 +0,0 @@ -# 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 deleted file mode 100644 index d909b01..0000000 --- a/test/test_v1_store_app_version_templete_app_port.py +++ /dev/null @@ -1,64 +0,0 @@ -# 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 deleted file mode 100644 index 69f4aba..0000000 --- a/test/test_v1_store_app_version_templete_app_probe.py +++ /dev/null @@ -1,82 +0,0 @@ -# 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 deleted file mode 100644 index e0a6cab..0000000 --- a/test/test_v1_store_app_version_templete_app_share_volume.py +++ /dev/null @@ -1,58 +0,0 @@ -# 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 deleted file mode 100644 index 8506dd0..0000000 --- a/test/test_v1_store_app_version_templete_app_volume.py +++ /dev/null @@ -1,64 +0,0 @@ -# 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 deleted file mode 100644 index 5330999..0000000 --- a/test/test_v1_store_app_version_templete_plugin.py +++ /dev/null @@ -1,117 +0,0 @@ -# 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 deleted file mode 100644 index b300de5..0000000 --- a/test/test_v1_store_app_version_templete_plugin_config_group.py +++ /dev/null @@ -1,78 +0,0 @@ -# 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 deleted file mode 100644 index 21cd16b..0000000 --- a/test/test_v1_store_app_version_templete_plugin_config_group_option.py +++ /dev/null @@ -1,74 +0,0 @@ -# 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 322694a..44f2c6c 100644 --- a/test/test_v1_user_app_list_response.py +++ b/test/test_v1_user_app_list_response.py @@ -55,8 +55,28 @@ class TestV1UserAppListResponse(unittest.TestCase): market_url = '0', name = '0', publish_type = '0', + publish_user = '0', + show_count = 56, start_count = 56, - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + 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, ) + ], ) ], page = 56, page_size = 56, @@ -82,8 +102,28 @@ class TestV1UserAppListResponse(unittest.TestCase): market_url = '0', name = '0', publish_type = '0', + publish_user = '0', + show_count = 56, start_count = 56, - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + 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, ) + ], ) ], page = 56, page_size = 56, diff --git a/test/test_v1alpha1_app_config_group.py b/test/test_v1alpha1_app_config_group.py index 50779cb..2e22082 100644 --- a/test/test_v1alpha1_app_config_group.py +++ b/test/test_v1alpha1_app_config_group.py @@ -6,6 +6,7 @@ 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 84f9f24..56b4d77 100644 --- a/test/test_v1alpha1_component.py +++ b/test/test_v1alpha1_component.py @@ -6,6 +6,7 @@ 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 +39,15 @@ class TestV1alpha1Component(unittest.TestCase): return V1alpha1Component( category = '0', cmd = '0', - component_monitor = [ + 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', @@ -52,8 +61,13 @@ 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, @@ -62,6 +76,9 @@ class TestV1alpha1Component(unittest.TestCase): step_memory = 56, step_node = 56, ), image = '0', + labels = { + 'key' : '0' + }, language = '0', memory = 56, mnt_relation_list = [ @@ -103,6 +120,7 @@ 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', ) ], @@ -110,6 +128,7 @@ 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', ) ], @@ -144,7 +163,8 @@ class TestV1alpha1Component(unittest.TestCase): openapi_client.models.v1alpha1/component_volume.v1alpha1.ComponentVolume( access_mode = '0', file_content = '0', - sharing_policy = '0', + mode = 56, + share_policy = '0', volume_capacity = 56, volume_name = '0', volume_path = '0', @@ -158,7 +178,15 @@ class TestV1alpha1Component(unittest.TestCase): return V1alpha1Component( category = '0', cmd = '0', - component_monitor = [ + 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', @@ -174,6 +202,7 @@ 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, @@ -223,6 +252,7 @@ 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', ) ], @@ -230,6 +260,7 @@ 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', ) ], @@ -248,7 +279,8 @@ class TestV1alpha1Component(unittest.TestCase): openapi_client.models.v1alpha1/component_volume.v1alpha1.ComponentVolume( access_mode = '0', file_content = '0', - sharing_policy = '0', + mode = 56, + share_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 c6deb3a..c21f010 100644 --- a/test/test_v1alpha1_component_dep.py +++ b/test/test_v1alpha1_component_dep.py @@ -6,6 +6,7 @@ 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 263824c..6442ecb 100644 --- a/test/test_v1alpha1_component_env.py +++ b/test/test_v1alpha1_component_env.py @@ -6,6 +6,7 @@ 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,6 +39,7 @@ class TestV1alpha1ComponentEnv(unittest.TestCase): return V1alpha1ComponentEnv( attr_name = '0', attr_value = '0', + container_port = 56, is_change = True, name = '0' ) @@ -45,6 +47,7 @@ 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 0948337..3e3a72f 100644 --- a/test/test_v1alpha1_component_extend_method_rule.py +++ b/test/test_v1alpha1_component_extend_method_rule.py @@ -6,6 +6,7 @@ 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 +37,7 @@ 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, @@ -46,6 +48,7 @@ class TestV1alpha1ComponentExtendMethodRule(unittest.TestCase): ) else : return V1alpha1ComponentExtendMethodRule( + init_memory = 56, is_restart = 56, max_memory = 56, max_node = 56, diff --git a/test/test_v1_store_app_version_templete_app_dep_service.py b/test/test_v1alpha1_component_graph.py similarity index 52% rename from test/test_v1_store_app_version_templete_app_dep_service.py rename to test/test_v1alpha1_component_graph.py index 32b641f..1db1381 100644 --- a/test/test_v1_store_app_version_templete_app_dep_service.py +++ b/test/test_v1alpha1_component_graph.py @@ -17,11 +17,11 @@ 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.models.v1alpha1_component_graph import V1alpha1ComponentGraph # noqa: E501 from openapi_client.rest import ApiException -class TestV1StoreAppVersionTempleteAppDepService(unittest.TestCase): - """V1StoreAppVersionTempleteAppDepService unit test stubs""" +class TestV1alpha1ComponentGraph(unittest.TestCase): + """V1alpha1ComponentGraph unit test stubs""" def setUp(self): pass @@ -30,22 +30,30 @@ class TestV1StoreAppVersionTempleteAppDepService(unittest.TestCase): pass def make_instance(self, include_optional): - """Test V1StoreAppVersionTempleteAppDepService + """Test V1alpha1ComponentGraph 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 + # model = openapi_client.models.v1alpha1_component_graph.V1alpha1ComponentGraph() # noqa: E501 if include_optional : - return V1StoreAppVersionTempleteAppDepService( - dep_service_key = '0' + return V1alpha1ComponentGraph( + component_id = '0', + graph_id = '0', + promql = '0', + sequence = 56, + title = '0' ) else : - return V1StoreAppVersionTempleteAppDepService( - dep_service_key = '0', + return V1alpha1ComponentGraph( + component_id = '0', + graph_id = '0', + promql = '0', + sequence = 56, + title = '0', ) - def testV1StoreAppVersionTempleteAppDepService(self): - """Test V1StoreAppVersionTempleteAppDepService""" + def testV1alpha1ComponentGraph(self): + """Test V1alpha1ComponentGraph""" inst_req_only = self.make_instance(include_optional=False) inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_v1alpha1_component_monitor.py b/test/test_v1alpha1_component_monitor.py index 3286697..c064e73 100644 --- a/test/test_v1alpha1_component_monitor.py +++ b/test/test_v1alpha1_component_monitor.py @@ -6,6 +6,7 @@ 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 0726739..bac3bf0 100644 --- a/test/test_v1alpha1_component_plugin_config.py +++ b/test/test_v1alpha1_component_plugin_config.py @@ -6,6 +6,7 @@ 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 2b56dc9..f6e7fd5 100644 --- a/test/test_v1alpha1_component_port.py +++ b/test/test_v1alpha1_component_port.py @@ -6,6 +6,7 @@ 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 89995e3..67b7eb1 100644 --- a/test/test_v1alpha1_component_probe.py +++ b/test/test_v1alpha1_component_probe.py @@ -6,6 +6,7 @@ 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 261e1a3..9da860a 100644 --- a/test/test_v1alpha1_component_share_volume.py +++ b/test/test_v1alpha1_component_share_volume.py @@ -6,6 +6,7 @@ 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 1e5c425..885c038 100644 --- a/test/test_v1alpha1_component_volume.py +++ b/test/test_v1alpha1_component_volume.py @@ -6,6 +6,7 @@ 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 +39,8 @@ class TestV1alpha1ComponentVolume(unittest.TestCase): return V1alpha1ComponentVolume( access_mode = '0', file_content = '0', - sharing_policy = '0', + mode = 56, + share_policy = '0', volume_capacity = 56, volume_name = '0', volume_path = '0', @@ -46,10 +48,7 @@ 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_v1_image_info.py b/test/test_v1alpha1_endpoints.py similarity index 55% rename from test/test_v1_image_info.py rename to test/test_v1alpha1_endpoints.py index 0475415..53a0ba6 100644 --- a/test/test_v1_image_info.py +++ b/test/test_v1alpha1_endpoints.py @@ -17,11 +17,11 @@ import unittest import datetime import openapi_client -from openapi_client.models.v1_image_info import V1ImageInfo # noqa: E501 +from openapi_client.models.v1alpha1_endpoints import V1alpha1Endpoints # noqa: E501 from openapi_client.rest import ApiException -class TestV1ImageInfo(unittest.TestCase): - """V1ImageInfo unit test stubs""" +class TestV1alpha1Endpoints(unittest.TestCase): + """V1alpha1Endpoints unit test stubs""" def setUp(self): pass @@ -30,30 +30,26 @@ class TestV1ImageInfo(unittest.TestCase): pass def make_instance(self, include_optional): - """Test V1ImageInfo + """Test V1alpha1Endpoints 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 + # model = openapi_client.models.v1alpha1_endpoints.V1alpha1Endpoints() # noqa: E501 if include_optional : - return V1ImageInfo( - hub_password = '0', - hub_url = '0', - hub_user = '0', - is_trust = True, - namespace = '0' + return V1alpha1Endpoints( + endpoints_info = '0', + endpoints_type = '0', + service_cname = '0' ) else : - return V1ImageInfo( - hub_password = '0', - hub_url = '0', - hub_user = '0', - is_trust = True, - namespace = '0', + return V1alpha1Endpoints( + endpoints_info = '0', + endpoints_type = '0', + service_cname = '0', ) - def testV1ImageInfo(self): - """Test V1ImageInfo""" + def testV1alpha1Endpoints(self): + """Test V1alpha1Endpoints""" inst_req_only = self.make_instance(include_optional=False) inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_v1alpha1_image_info.py b/test/test_v1alpha1_image_info.py index 38df547..32f4739 100644 --- a/test/test_v1alpha1_image_info.py +++ b/test/test_v1alpha1_image_info.py @@ -6,6 +6,7 @@ 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_apps_store_app_version_templete_app_probe.py b/test/test_v1alpha1_ingress_http_route.py similarity index 32% rename from test/test_apps_store_app_version_templete_app_probe.py rename to test/test_v1alpha1_ingress_http_route.py index 4c91375..470f544 100644 --- a/test/test_apps_store_app_version_templete_app_probe.py +++ b/test/test_v1alpha1_ingress_http_route.py @@ -17,11 +17,11 @@ 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.models.v1alpha1_ingress_http_route import V1alpha1IngressHTTPRoute # noqa: E501 from openapi_client.rest import ApiException -class TestAppsStoreAppVersionTempleteAppProbe(unittest.TestCase): - """AppsStoreAppVersionTempleteAppProbe unit test stubs""" +class TestV1alpha1IngressHTTPRoute(unittest.TestCase): + """V1alpha1IngressHTTPRoute unit test stubs""" def setUp(self): pass @@ -30,50 +30,66 @@ class TestAppsStoreAppVersionTempleteAppProbe(unittest.TestCase): pass def make_instance(self, include_optional): - """Test AppsStoreAppVersionTempleteAppProbe + """Test V1alpha1IngressHTTPRoute 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 + # model = openapi_client.models.v1alpha1_ingress_http_route.V1alpha1IngressHTTPRoute() # 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, + return V1alpha1IngressHTTPRoute( + component_key = '0', + connection_timeout = 56, + cookies = { + 'key' : '0' + }, + default_domain = True, + headers = { + 'key' : '0' + }, + load_balancing = '0', + location = '0', port = 56, - probe_id = '0', - scheme = '0', - service_id = '0', - success_threshold = 56, - timeout_second = 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 ) 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, + return V1alpha1IngressHTTPRoute( + component_key = '0', + connection_timeout = 56, + cookies = { + 'key' : '0' + }, + default_domain = True, + headers = { + 'key' : '0' + }, + load_balancing = '0', + location = '0', port = 56, - probe_id = '0', - scheme = '0', - service_id = '0', - success_threshold = 56, - timeout_second = 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, ) - def testAppsStoreAppVersionTempleteAppProbe(self): - """Test AppsStoreAppVersionTempleteAppProbe""" + def testV1alpha1IngressHTTPRoute(self): + """Test V1alpha1IngressHTTPRoute""" inst_req_only = self.make_instance(include_optional=False) inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_apps_image_info.py b/test/test_v1alpha1_ingress_sream_route.py similarity index 52% rename from test/test_apps_image_info.py rename to test/test_v1alpha1_ingress_sream_route.py index 4421d89..562408c 100644 --- a/test/test_apps_image_info.py +++ b/test/test_v1alpha1_ingress_sream_route.py @@ -17,11 +17,11 @@ import unittest import datetime import openapi_client -from openapi_client.models.apps_image_info import AppsImageInfo # noqa: E501 +from openapi_client.models.v1alpha1_ingress_sream_route import V1alpha1IngressSreamRoute # noqa: E501 from openapi_client.rest import ApiException -class TestAppsImageInfo(unittest.TestCase): - """AppsImageInfo unit test stubs""" +class TestV1alpha1IngressSreamRoute(unittest.TestCase): + """V1alpha1IngressSreamRoute unit test stubs""" def setUp(self): pass @@ -30,30 +30,28 @@ class TestAppsImageInfo(unittest.TestCase): pass def make_instance(self, include_optional): - """Test AppsImageInfo + """Test V1alpha1IngressSreamRoute 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 + # model = openapi_client.models.v1alpha1_ingress_sream_route.V1alpha1IngressSreamRoute() # noqa: E501 if include_optional : - return AppsImageInfo( - hub_password = '0', - hub_url = '0', - hub_user = '0', - is_trust = True, - namespace = '0' + return V1alpha1IngressSreamRoute( + component_key = '0', + connection_timeout = 56, + port = 56, + protocol = '0' ) else : - return AppsImageInfo( - hub_password = '0', - hub_url = '0', - hub_user = '0', - is_trust = True, - namespace = '0', + return V1alpha1IngressSreamRoute( + component_key = '0', + connection_timeout = 56, + port = 56, + protocol = '0', ) - def testAppsImageInfo(self): - """Test AppsImageInfo""" + def testV1alpha1IngressSreamRoute(self): + """Test V1alpha1IngressSreamRoute""" inst_req_only = self.make_instance(include_optional=False) inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_v1alpha1_plugin.py b/test/test_v1alpha1_plugin.py index 4ca9ba0..b5e1a8a 100644 --- a/test/test_v1alpha1_plugin.py +++ b/test/test_v1alpha1_plugin.py @@ -6,6 +6,7 @@ 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 fb2d4e4..0f99260 100644 --- a/test/test_v1alpha1_plugin_config_group.py +++ b/test/test_v1alpha1_plugin_config_group.py @@ -6,6 +6,7 @@ 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 723ebb3..ff28387 100644 --- a/test/test_v1alpha1_plugin_config_group_option.py +++ b/test/test_v1alpha1_plugin_config_group_option.py @@ -6,6 +6,7 @@ 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 cdd804d..245dc4e 100644 --- a/test/test_v1alpha1_rainbond_application_config.py +++ b/test/test_v1alpha1_rainbond_application_config.py @@ -6,6 +6,7 @@ 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 +37,9 @@ 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 = [ @@ -51,7 +55,15 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): openapi_client.models.v1alpha1/component.v1alpha1.Component( category = '0', cmd = '0', - component_monitor = [ + 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', @@ -65,8 +77,13 @@ 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, @@ -75,6 +92,9 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): step_memory = 56, step_node = 56, ), image = '0', + labels = { + 'key' : '0' + }, language = '0', memory = 56, mnt_relation_list = [ @@ -116,6 +136,7 @@ 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', ) ], @@ -123,6 +144,7 @@ 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', ) ], @@ -157,7 +179,8 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): openapi_client.models.v1alpha1/component_volume.v1alpha1.ComponentVolume( access_mode = '0', file_content = '0', - sharing_policy = '0', + mode = 56, + share_policy = '0', volume_capacity = 56, volume_name = '0', volume_path = '0', @@ -170,6 +193,39 @@ 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, @@ -236,7 +292,15 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): openapi_client.models.v1alpha1/component.v1alpha1.Component( category = '0', cmd = '0', - component_monitor = [ + 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', @@ -250,8 +314,13 @@ 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, @@ -260,6 +329,9 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): step_memory = 56, step_node = 56, ), image = '0', + labels = { + 'key' : '0' + }, language = '0', memory = 56, mnt_relation_list = [ @@ -301,6 +373,7 @@ 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', ) ], @@ -308,6 +381,7 @@ 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', ) ], @@ -342,7 +416,8 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): openapi_client.models.v1alpha1/component_volume.v1alpha1.ComponentVolume( access_mode = '0', file_content = '0', - sharing_policy = '0', + mode = 56, + share_policy = '0', volume_capacity = 56, volume_name = '0', volume_path = '0', -- Gitee