From ce057f465afa2cf45f30ab60887c80fb30e5b2d3 Mon Sep 17 00:00:00 2001 From: zhangsetsail Date: Fri, 16 Jun 2023 16:42:07 +0800 Subject: [PATCH] appstore add arch --- README.md | 7 +- docs/AppsImageInfo.md | 14 + 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/AppsStoreAppVersionTempleteAppProbe.md | 24 + ...psStoreAppVersionTempleteAppShareVolume.md | 12 + docs/AppsStoreAppVersionTempleteAppVolume.md | 15 + docs/AppsStoreAppVersionTempletePlugin.md | 26 + ...toreAppVersionTempletePluginConfigGroup.md | 16 + ...pVersionTempletePluginConfigGroupOption.md | 20 + docs/MarketOpenapiApi.md | 72 -- docs/V1AppBaseInfo.md | 7 + docs/V1AppClassifications.md | 12 + docs/V1AppCreateRequest.md | 17 + docs/V1AppDetailInfoResponse.md | 7 + docs/V1AppModelCreateRequest.md | 1 - docs/V1AppUpdateRequest.md | 4 + docs/V1AppVersionBase.md | 1 + docs/V1AppVersionDetailResponse.md | 1 + docs/V1AppVersionRequest.md | 15 + docs/V1CreateAppPaaSVersionRequest.md | 1 + docs/V1ImageInfo.md | 14 + docs/V1StoreAppVersionTemplate.md | 15 + docs/V1StoreAppVersionTemplete.md | 15 + docs/V1StoreAppVersionTempleteApp.md | 39 + .../V1StoreAppVersionTempleteAppDepService.md | 10 + 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/V1alpha1AppConfigGroup.md | 2 +- docs/V1alpha1Component.md | 3 + docs/V1alpha1ComponentK8sAttribute.md | 13 + docs/V1alpha1ComponentPort.md | 1 + docs/V1alpha1K8sResource.md | 12 + docs/V1alpha1Plugin.md | 1 - docs/V1alpha1PluginConfigGroup.md | 1 - docs/V1alpha1PluginConfigGroupOption.md | 1 - docs/V1alpha1RainbondApplicationConfig.md | 5 +- openapi_client/__init__.py | 5 +- openapi_client/api/market_openapi_api.py | 104 -- openapi_client/api/platform_open_api.py | 1 - openapi_client/api/registry_api_api.py | 1 - openapi_client/api_client.py | 1 - openapi_client/configuration.py | 3 +- openapi_client/exceptions.py | 1 - openapi_client/models/__init__.py | 5 +- 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/controller_result.py | 1 - openapi_client/models/restfulutil_result.py | 1 - openapi_client/models/v1_app_base_info.py | 206 +++- .../models/v1_app_classifications.py | 181 ++++ .../models/v1_app_create_request.py | 313 ++++++ .../models/v1_app_detail_info_response.py | 206 +++- .../models/v1_app_image_hub_info_response.py | 1 - .../models/v1_app_model_create_request.py | 29 +- .../models/v1_app_update_request.py | 123 ++- openapi_client/models/v1_app_version_base.py | 32 +- .../models/v1_app_version_detail_response.py | 32 +- .../models/v1_app_version_list_response.py | 1 - .../models/v1_app_version_request.py | 257 +++++ openapi_client/models/v1_bindable_market.py | 1 - .../v1_create_app_paa_s_version_request.py | 30 +- openapi_client/models/v1_image_info.py | 230 +++++ .../models/v1_market_info_response.py | 1 - .../models/v1_market_ui_app_tags_response.py | 1 - .../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 +++ .../v1_store_app_version_templete_app_env.py | 203 ++++ ...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 ++++++++++ ...e_app_version_templete_app_share_volume.py | 176 ++++ ...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 ++++++++ .../models/v1_user_app_list_response.py | 1 - .../models/v1alpha1_app_config_group.py | 33 +- openapi_client/models/v1alpha1_component.py | 84 +- .../models/v1alpha1_component_dep.py | 1 - .../models/v1alpha1_component_env.py | 1 - .../v1alpha1_component_extend_method_rule.py | 1 - .../models/v1alpha1_component_graph.py | 1 - .../v1alpha1_component_k8s_attribute.py | 202 ++++ .../models/v1alpha1_component_monitor.py | 1 - .../v1alpha1_component_plugin_config.py | 1 - .../models/v1alpha1_component_port.py | 30 +- .../models/v1alpha1_component_probe.py | 1 - .../models/v1alpha1_component_share_volume.py | 1 - .../models/v1alpha1_component_volume.py | 1 - openapi_client/models/v1alpha1_endpoints.py | 1 - openapi_client/models/v1alpha1_image_info.py | 1 - .../models/v1alpha1_ingress_http_route.py | 1 - .../models/v1alpha1_ingress_sream_route.py | 1 - .../models/v1alpha1_k8s_resource.py | 175 ++++ openapi_client/models/v1alpha1_plugin.py | 30 +- .../models/v1alpha1_plugin_config_group.py | 30 +- .../v1alpha1_plugin_config_group_option.py | 30 +- .../v1alpha1_rainbond_application_config.py | 87 +- openapi_client/rest.py | 1 - setup.py | 6 +- test/test_apps_image_info.py | 62 ++ 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 ++ ...ps_store_app_version_templete_app_probe.py | 82 ++ ...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_classifications.py | 57 ++ 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_image_info.py | 62 ++ 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 +++++ ...re_app_version_templete_app_dep_service.py | 54 ++ ...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 - test/test_v1alpha1_component_graph.py | 1 - test/test_v1alpha1_component_k8s_attribute.py | 59 ++ 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 +- test/test_v1alpha1_endpoints.py | 1 - test/test_v1alpha1_image_info.py | 1 - test/test_v1alpha1_ingress_http_route.py | 1 - test/test_v1alpha1_ingress_sream_route.py | 1 - test/test_v1alpha1_k8s_resource.py | 57 ++ 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 +- 196 files changed, 16108 insertions(+), 917 deletions(-) create mode 100644 docs/AppsImageInfo.md create mode 100644 docs/AppsStoreAppVersionTemplete.md create mode 100644 docs/AppsStoreAppVersionTempleteApp.md create mode 100644 docs/AppsStoreAppVersionTempleteAppDepService.md create mode 100644 docs/AppsStoreAppVersionTempleteAppEnv.md create mode 100644 docs/AppsStoreAppVersionTempleteAppExtendMethodRule.md create mode 100644 docs/AppsStoreAppVersionTempleteAppPluginConfig.md create mode 100644 docs/AppsStoreAppVersionTempleteAppPort.md create mode 100644 docs/AppsStoreAppVersionTempleteAppProbe.md create mode 100644 docs/AppsStoreAppVersionTempleteAppShareVolume.md create mode 100644 docs/AppsStoreAppVersionTempleteAppVolume.md create mode 100644 docs/AppsStoreAppVersionTempletePlugin.md create mode 100644 docs/AppsStoreAppVersionTempletePluginConfigGroup.md create mode 100644 docs/AppsStoreAppVersionTempletePluginConfigGroupOption.md create mode 100644 docs/V1AppClassifications.md create mode 100644 docs/V1AppCreateRequest.md create mode 100644 docs/V1AppVersionRequest.md create mode 100644 docs/V1ImageInfo.md create mode 100644 docs/V1StoreAppVersionTemplate.md create mode 100644 docs/V1StoreAppVersionTemplete.md create mode 100644 docs/V1StoreAppVersionTempleteApp.md create mode 100644 docs/V1StoreAppVersionTempleteAppDepService.md create mode 100644 docs/V1StoreAppVersionTempleteAppEnv.md create mode 100644 docs/V1StoreAppVersionTempleteAppExtendMethodRule.md create mode 100644 docs/V1StoreAppVersionTempleteAppPluginConfig.md create mode 100644 docs/V1StoreAppVersionTempleteAppPort.md create mode 100644 docs/V1StoreAppVersionTempleteAppProbe.md create mode 100644 docs/V1StoreAppVersionTempleteAppShareVolume.md create mode 100644 docs/V1StoreAppVersionTempleteAppVolume.md create mode 100644 docs/V1StoreAppVersionTempletePlugin.md create mode 100644 docs/V1StoreAppVersionTempletePluginConfigGroup.md create mode 100644 docs/V1StoreAppVersionTempletePluginConfigGroupOption.md create mode 100644 docs/V1alpha1ComponentK8sAttribute.md create mode 100644 docs/V1alpha1K8sResource.md create mode 100644 openapi_client/models/apps_image_info.py create mode 100644 openapi_client/models/apps_store_app_version_templete.py create mode 100644 openapi_client/models/apps_store_app_version_templete_app.py create mode 100644 openapi_client/models/apps_store_app_version_templete_app_dep_service.py create mode 100644 openapi_client/models/apps_store_app_version_templete_app_env.py create mode 100644 openapi_client/models/apps_store_app_version_templete_app_extend_method_rule.py create mode 100644 openapi_client/models/apps_store_app_version_templete_app_plugin_config.py create mode 100644 openapi_client/models/apps_store_app_version_templete_app_port.py create mode 100644 openapi_client/models/apps_store_app_version_templete_app_probe.py create mode 100644 openapi_client/models/apps_store_app_version_templete_app_share_volume.py create mode 100644 openapi_client/models/apps_store_app_version_templete_app_volume.py create mode 100644 openapi_client/models/apps_store_app_version_templete_plugin.py create mode 100644 openapi_client/models/apps_store_app_version_templete_plugin_config_group.py create mode 100644 openapi_client/models/apps_store_app_version_templete_plugin_config_group_option.py create mode 100644 openapi_client/models/v1_app_classifications.py create mode 100644 openapi_client/models/v1_app_create_request.py create mode 100644 openapi_client/models/v1_app_version_request.py create mode 100644 openapi_client/models/v1_image_info.py create mode 100644 openapi_client/models/v1_store_app_version_template.py create mode 100644 openapi_client/models/v1_store_app_version_templete.py create mode 100644 openapi_client/models/v1_store_app_version_templete_app.py create mode 100644 openapi_client/models/v1_store_app_version_templete_app_dep_service.py create mode 100644 openapi_client/models/v1_store_app_version_templete_app_env.py create mode 100644 openapi_client/models/v1_store_app_version_templete_app_extend_method_rule.py create mode 100644 openapi_client/models/v1_store_app_version_templete_app_plugin_config.py create mode 100644 openapi_client/models/v1_store_app_version_templete_app_port.py create mode 100644 openapi_client/models/v1_store_app_version_templete_app_probe.py create mode 100644 openapi_client/models/v1_store_app_version_templete_app_share_volume.py create mode 100644 openapi_client/models/v1_store_app_version_templete_app_volume.py create mode 100644 openapi_client/models/v1_store_app_version_templete_plugin.py create mode 100644 openapi_client/models/v1_store_app_version_templete_plugin_config_group.py create mode 100644 openapi_client/models/v1_store_app_version_templete_plugin_config_group_option.py create mode 100644 openapi_client/models/v1alpha1_component_k8s_attribute.py create mode 100644 openapi_client/models/v1alpha1_k8s_resource.py create mode 100644 test/test_apps_image_info.py create mode 100644 test/test_apps_store_app_version_templete.py create mode 100644 test/test_apps_store_app_version_templete_app.py create mode 100644 test/test_apps_store_app_version_templete_app_dep_service.py create mode 100644 test/test_apps_store_app_version_templete_app_env.py create mode 100644 test/test_apps_store_app_version_templete_app_extend_method_rule.py create mode 100644 test/test_apps_store_app_version_templete_app_plugin_config.py create mode 100644 test/test_apps_store_app_version_templete_app_port.py create mode 100644 test/test_apps_store_app_version_templete_app_probe.py create mode 100644 test/test_apps_store_app_version_templete_app_share_volume.py create mode 100644 test/test_apps_store_app_version_templete_app_volume.py create mode 100644 test/test_apps_store_app_version_templete_plugin.py create mode 100644 test/test_apps_store_app_version_templete_plugin_config_group.py create mode 100644 test/test_apps_store_app_version_templete_plugin_config_group_option.py create mode 100644 test/test_v1_app_classifications.py create mode 100644 test/test_v1_app_create_request.py create mode 100644 test/test_v1_app_version_request.py create mode 100644 test/test_v1_image_info.py create mode 100644 test/test_v1_store_app_version_template.py create mode 100644 test/test_v1_store_app_version_templete.py create mode 100644 test/test_v1_store_app_version_templete_app.py create mode 100644 test/test_v1_store_app_version_templete_app_dep_service.py create mode 100644 test/test_v1_store_app_version_templete_app_env.py create mode 100644 test/test_v1_store_app_version_templete_app_extend_method_rule.py create mode 100644 test/test_v1_store_app_version_templete_app_plugin_config.py create mode 100644 test/test_v1_store_app_version_templete_app_port.py create mode 100644 test/test_v1_store_app_version_templete_app_probe.py create mode 100644 test/test_v1_store_app_version_templete_app_share_volume.py create mode 100644 test/test_v1_store_app_version_templete_app_volume.py create mode 100644 test/test_v1_store_app_version_templete_plugin.py create mode 100644 test/test_v1_store_app_version_templete_plugin_config_group.py create mode 100644 test/test_v1_store_app_version_templete_plugin_config_group_option.py create mode 100644 test/test_v1alpha1_component_k8s_attribute.py create mode 100644 test/test_v1alpha1_k8s_resource.py diff --git a/README.md b/README.md index b9ec36a..84a910d 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,6 @@ Class | Method | HTTP request | Description *MarketOpenapiApi* | [**get_app_plugin_list**](docs/MarketOpenapiApi.md#get_app_plugin_list) | **GET** /app-server/openapi/apps/plugins | 应用插件列表 *MarketOpenapiApi* | [**get_app_temp_list**](docs/MarketOpenapiApi.md#get_app_temp_list) | **GET** /app-server/openapi/apps/template | 控制台应用模版列表 *MarketOpenapiApi* | [**get_market_info**](docs/MarketOpenapiApi.md#get_market_info) | **GET** /app-server/openapi/info | 获取商店信息 -*MarketOpenapiApi* | [**get_orgs**](docs/MarketOpenapiApi.md#get_orgs) | **GET** /app-server/openapi/organizations | 获取组织机构(行业)列表 *MarketOpenapiApi* | [**get_user_app_detail**](docs/MarketOpenapiApi.md#get_user_app_detail) | **GET** /app-server/openapi/apps/{appID} | 应用详情 *MarketOpenapiApi* | [**get_user_app_list**](docs/MarketOpenapiApi.md#get_user_app_list) | **GET** /app-server/openapi/apps | 应用列表 *MarketOpenapiApi* | [**get_user_app_version_detail**](docs/MarketOpenapiApi.md#get_user_app_version_detail) | **GET** /app-server/openapi/apps/{appID}/versions/{version} | 应用版本信息 @@ -116,6 +115,7 @@ Class | Method | HTTP request | Description - [ControllerResult](docs/ControllerResult.md) - [RestfulutilResult](docs/RestfulutilResult.md) - [V1AppBaseInfo](docs/V1AppBaseInfo.md) + - [V1AppClassifications](docs/V1AppClassifications.md) - [V1AppDetailInfoResponse](docs/V1AppDetailInfoResponse.md) - [V1AppImageHubInfoResponse](docs/V1AppImageHubInfoResponse.md) - [V1AppModelCreateRequest](docs/V1AppModelCreateRequest.md) @@ -127,7 +127,6 @@ Class | Method | HTTP request | Description - [V1CreateAppPaaSVersionRequest](docs/V1CreateAppPaaSVersionRequest.md) - [V1MarketInfoResponse](docs/V1MarketInfoResponse.md) - [V1MarketUIAppTagsResponse](docs/V1MarketUIAppTagsResponse.md) - - [V1Organization](docs/V1Organization.md) - [V1UserAppListResponse](docs/V1UserAppListResponse.md) - [V1alpha1AppConfigGroup](docs/V1alpha1AppConfigGroup.md) - [V1alpha1Component](docs/V1alpha1Component.md) @@ -135,6 +134,7 @@ Class | Method | HTTP request | Description - [V1alpha1ComponentEnv](docs/V1alpha1ComponentEnv.md) - [V1alpha1ComponentExtendMethodRule](docs/V1alpha1ComponentExtendMethodRule.md) - [V1alpha1ComponentGraph](docs/V1alpha1ComponentGraph.md) + - [V1alpha1ComponentK8sAttribute](docs/V1alpha1ComponentK8sAttribute.md) - [V1alpha1ComponentMonitor](docs/V1alpha1ComponentMonitor.md) - [V1alpha1ComponentPluginConfig](docs/V1alpha1ComponentPluginConfig.md) - [V1alpha1ComponentPort](docs/V1alpha1ComponentPort.md) @@ -145,6 +145,7 @@ Class | Method | HTTP request | Description - [V1alpha1ImageInfo](docs/V1alpha1ImageInfo.md) - [V1alpha1IngressHTTPRoute](docs/V1alpha1IngressHTTPRoute.md) - [V1alpha1IngressSreamRoute](docs/V1alpha1IngressSreamRoute.md) + - [V1alpha1K8sResource](docs/V1alpha1K8sResource.md) - [V1alpha1Plugin](docs/V1alpha1Plugin.md) - [V1alpha1PluginConfigGroup](docs/V1alpha1PluginConfigGroup.md) - [V1alpha1PluginConfigGroupOption](docs/V1alpha1PluginConfigGroupOption.md) @@ -163,6 +164,6 @@ Class | Method | HTTP request | Description ## Author -huangrh@goodrain.com + diff --git a/docs/AppsImageInfo.md b/docs/AppsImageInfo.md new file mode 100644 index 0000000..0ef367f --- /dev/null +++ b/docs/AppsImageInfo.md @@ -0,0 +1,14 @@ +# AppsImageInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hub_password** | **str** | | +**hub_url** | **str** | | +**hub_user** | **str** | | +**is_trust** | **bool** | | +**namespace** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppsStoreAppVersionTemplete.md b/docs/AppsStoreAppVersionTemplete.md new file mode 100644 index 0000000..ee6e90a --- /dev/null +++ b/docs/AppsStoreAppVersionTemplete.md @@ -0,0 +1,15 @@ +# AppsStoreAppVersionTemplete + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apps** | [**list[AppsStoreAppVersionTempleteApp]**](AppsStoreAppVersionTempleteApp.md) | | +**group_key** | **str** | | +**group_name** | **str** | | +**group_version** | **str** | | +**plugins** | [**list[AppsStoreAppVersionTempletePlugin]**](AppsStoreAppVersionTempletePlugin.md) | | [optional] +**template_version** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppsStoreAppVersionTempleteApp.md b/docs/AppsStoreAppVersionTempleteApp.md new file mode 100644 index 0000000..a407d73 --- /dev/null +++ b/docs/AppsStoreAppVersionTempleteApp.md @@ -0,0 +1,39 @@ +# AppsStoreAppVersionTempleteApp + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**category** | **str** | | +**cmd** | **str** | | +**dep_service_map_list** | [**list[AppsStoreAppVersionTempleteAppDepService]**](AppsStoreAppVersionTempleteAppDepService.md) | | +**deploy_version** | **str** | | +**extend_method** | **str** | | +**extend_method_map** | [**AppsStoreAppVersionTempleteAppExtendMethodRule**](AppsStoreAppVersionTempleteAppExtendMethodRule.md) | | +**image** | **str** | | +**language** | **str** | | +**memory** | **int** | | +**mnt_relation_list** | [**list[AppsStoreAppVersionTempleteAppShareVolume]**](AppsStoreAppVersionTempleteAppShareVolume.md) | | +**port_map_list** | [**list[AppsStoreAppVersionTempleteAppPort]**](AppsStoreAppVersionTempleteAppPort.md) | | +**probes** | [**list[AppsStoreAppVersionTempleteAppProbe]**](AppsStoreAppVersionTempleteAppProbe.md) | | +**service_alias** | **str** | | +**service_cname** | **str** | | +**service_connect_info_map_list** | [**list[AppsStoreAppVersionTempleteAppEnv]**](AppsStoreAppVersionTempleteAppEnv.md) | | +**service_env_map_list** | [**list[AppsStoreAppVersionTempleteAppEnv]**](AppsStoreAppVersionTempleteAppEnv.md) | | +**service_id** | **str** | | +**service_image** | [**AppsImageInfo**](AppsImageInfo.md) | | +**service_key** | **str** | | +**service_name** | **str** | | +**service_region** | **str** | | +**service_related_plugin_config** | [**list[AppsStoreAppVersionTempleteAppPluginConfig]**](AppsStoreAppVersionTempleteAppPluginConfig.md) | | [optional] +**service_share_uuid** | **str** | | [optional] +**service_source** | **str** | | +**service_type** | **str** | | +**service_volume_map_list** | [**list[AppsStoreAppVersionTempleteAppVolume]**](AppsStoreAppVersionTempleteAppVolume.md) | | +**share_image** | **str** | | +**share_type** | **str** | | [optional] +**tenant_id** | **str** | | +**version** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppsStoreAppVersionTempleteAppDepService.md b/docs/AppsStoreAppVersionTempleteAppDepService.md new file mode 100644 index 0000000..8787239 --- /dev/null +++ b/docs/AppsStoreAppVersionTempleteAppDepService.md @@ -0,0 +1,10 @@ +# AppsStoreAppVersionTempleteAppDepService + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dep_service_key** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppsStoreAppVersionTempleteAppEnv.md b/docs/AppsStoreAppVersionTempleteAppEnv.md new file mode 100644 index 0000000..f59f905 --- /dev/null +++ b/docs/AppsStoreAppVersionTempleteAppEnv.md @@ -0,0 +1,13 @@ +# AppsStoreAppVersionTempleteAppEnv + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attr_name** | **str** | | +**attr_value** | **str** | | +**is_change** | **bool** | | +**name** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppsStoreAppVersionTempleteAppExtendMethodRule.md b/docs/AppsStoreAppVersionTempleteAppExtendMethodRule.md new file mode 100644 index 0000000..d45289e --- /dev/null +++ b/docs/AppsStoreAppVersionTempleteAppExtendMethodRule.md @@ -0,0 +1,16 @@ +# AppsStoreAppVersionTempleteAppExtendMethodRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_restart** | **int** | | +**max_memory** | **int** | | +**max_node** | **int** | | +**min_memory** | **int** | | +**min_node** | **int** | | +**step_memory** | **int** | | +**step_node** | **int** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppsStoreAppVersionTempleteAppPluginConfig.md b/docs/AppsStoreAppVersionTempleteAppPluginConfig.md new file mode 100644 index 0000000..d6e46f3 --- /dev/null +++ b/docs/AppsStoreAppVersionTempleteAppPluginConfig.md @@ -0,0 +1,18 @@ +# AppsStoreAppVersionTempleteAppPluginConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**attr** | **list[object]** | | +**build_version** | **str** | | +**create_time** | **str** | | +**plugin_id** | **str** | | +**plugin_key** | **str** | | +**plugin_status** | **bool** | | +**service_id** | **str** | | +**service_meta_type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppsStoreAppVersionTempleteAppPort.md b/docs/AppsStoreAppVersionTempleteAppPort.md new file mode 100644 index 0000000..e6a5053 --- /dev/null +++ b/docs/AppsStoreAppVersionTempleteAppPort.md @@ -0,0 +1,15 @@ +# AppsStoreAppVersionTempleteAppPort + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**container_port** | **int** | | +**is_inner_service** | **bool** | | +**is_outer_service** | **bool** | | +**port_alias** | **str** | | +**protocol** | **str** | | +**tenant_id** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppsStoreAppVersionTempleteAppProbe.md b/docs/AppsStoreAppVersionTempleteAppProbe.md new file mode 100644 index 0000000..326e68f --- /dev/null +++ b/docs/AppsStoreAppVersionTempleteAppProbe.md @@ -0,0 +1,24 @@ +# AppsStoreAppVersionTempleteAppProbe + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**cmd** | **str** | | +**failure_threshold** | **int** | | +**http_header** | **str** | | +**initial_delay_second** | **int** | | +**is_used** | **bool** | | +**mode** | **str** | | +**path** | **str** | | +**period_second** | **int** | | +**port** | **int** | | +**probe_id** | **str** | | +**scheme** | **str** | | +**service_id** | **str** | | +**success_threshold** | **int** | | +**timeout_second** | **int** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppsStoreAppVersionTempleteAppShareVolume.md b/docs/AppsStoreAppVersionTempleteAppShareVolume.md new file mode 100644 index 0000000..a700250 --- /dev/null +++ b/docs/AppsStoreAppVersionTempleteAppShareVolume.md @@ -0,0 +1,12 @@ +# AppsStoreAppVersionTempleteAppShareVolume + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mnt_dir** | **str** | | +**mnt_name** | **str** | | +**service_share_uuid** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppsStoreAppVersionTempleteAppVolume.md b/docs/AppsStoreAppVersionTempleteAppVolume.md new file mode 100644 index 0000000..70aeaf5 --- /dev/null +++ b/docs/AppsStoreAppVersionTempleteAppVolume.md @@ -0,0 +1,15 @@ +# AppsStoreAppVersionTempleteAppVolume + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_mode** | **str** | | +**file_content** | **str** | | +**volume_capacity** | **int** | | +**volume_name** | **str** | | +**volume_path** | **str** | | +**volume_type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppsStoreAppVersionTempletePlugin.md b/docs/AppsStoreAppVersionTempletePlugin.md new file mode 100644 index 0000000..03c7f5a --- /dev/null +++ b/docs/AppsStoreAppVersionTempletePlugin.md @@ -0,0 +1,26 @@ +# AppsStoreAppVersionTempletePlugin + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**build_source** | **str** | | +**build_version** | **str** | | +**category** | **str** | | +**code_repo** | **str** | | +**config_groups** | [**list[AppsStoreAppVersionTempletePluginConfigGroup]**](AppsStoreAppVersionTempletePluginConfigGroup.md) | | [optional] +**create_time** | **str** | | +**desc** | **str** | | +**image** | **str** | | +**origin** | **str** | | +**origin_share_id** | **str** | | +**plugin_alias** | **str** | | +**plugin_id** | **str** | | +**plugin_image** | [**AppsImageInfo**](AppsImageInfo.md) | | +**plugin_key** | **str** | | +**plugin_name** | **str** | | +**share_image** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppsStoreAppVersionTempletePluginConfigGroup.md b/docs/AppsStoreAppVersionTempletePluginConfigGroup.md new file mode 100644 index 0000000..0b0d590 --- /dev/null +++ b/docs/AppsStoreAppVersionTempletePluginConfigGroup.md @@ -0,0 +1,16 @@ +# AppsStoreAppVersionTempletePluginConfigGroup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**build_version** | **str** | | +**config_name** | **str** | | +**injection** | **str** | | +**options** | [**list[AppsStoreAppVersionTempletePluginConfigGroupOption]**](AppsStoreAppVersionTempletePluginConfigGroupOption.md) | | [optional] +**plugin_id** | **str** | | +**service_meta_type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppsStoreAppVersionTempletePluginConfigGroupOption.md b/docs/AppsStoreAppVersionTempletePluginConfigGroupOption.md new file mode 100644 index 0000000..8db22d7 --- /dev/null +++ b/docs/AppsStoreAppVersionTempletePluginConfigGroupOption.md @@ -0,0 +1,20 @@ +# AppsStoreAppVersionTempletePluginConfigGroupOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**attr_alt_value** | **str** | | +**attr_default_value** | **str** | | +**attr_info** | **str** | | +**attr_name** | **str** | | +**attr_type** | **str** | | +**build_version** | **str** | | +**is_change** | **bool** | | +**plugin_id** | **str** | | +**protocol** | **str** | | +**service_meta_type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MarketOpenapiApi.md b/docs/MarketOpenapiApi.md index ba6826e..bd11991 100644 --- a/docs/MarketOpenapiApi.md +++ b/docs/MarketOpenapiApi.md @@ -11,7 +11,6 @@ Method | HTTP request | Description [**get_app_plugin_list**](MarketOpenapiApi.md#get_app_plugin_list) | **GET** /app-server/openapi/apps/plugins | 应用插件列表 [**get_app_temp_list**](MarketOpenapiApi.md#get_app_temp_list) | **GET** /app-server/openapi/apps/template | 控制台应用模版列表 [**get_market_info**](MarketOpenapiApi.md#get_market_info) | **GET** /app-server/openapi/info | 获取商店信息 -[**get_orgs**](MarketOpenapiApi.md#get_orgs) | **GET** /app-server/openapi/organizations | 获取组织机构(行业)列表 [**get_user_app_detail**](MarketOpenapiApi.md#get_user_app_detail) | **GET** /app-server/openapi/apps/{appID} | 应用详情 [**get_user_app_list**](MarketOpenapiApi.md#get_user_app_list) | **GET** /app-server/openapi/apps | 应用列表 [**get_user_app_version_detail**](MarketOpenapiApi.md#get_user_app_version_detail) | **GET** /app-server/openapi/apps/{appID}/versions/{version} | 应用版本信息 @@ -581,77 +580,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_orgs** -> list[V1Organization] get_orgs() - -获取组织机构(行业)列表 - -### Example - -* Api Key Authentication (api_key): -```python -from __future__ import print_function -import time -import openapi_client -from openapi_client.rest import ApiException -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:8080 -# See configuration.py for a list of all supported configuration parameters. -configuration = openapi_client.Configuration( - host = "http://127.0.0.1:8080" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: api_key -configuration = openapi_client.Configuration( - host = "http://127.0.0.1:8080", - api_key = { - 'Authorization': 'YOUR_API_KEY' - } -) -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['Authorization'] = 'Bearer' - -# Enter a context with an instance of the API client -with openapi_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = openapi_client.MarketOpenapiApi(api_client) - - try: - # 获取组织机构(行业)列表 - api_response = api_instance.get_orgs() - pprint(api_response) - except ApiException as e: - print("Exception when calling MarketOpenapiApi->get_orgs: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**list[V1Organization]**](V1Organization.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **get_user_app_detail** > V1AppDetailInfoResponse get_user_app_detail(app_id, market_domain) diff --git a/docs/V1AppBaseInfo.md b/docs/V1AppBaseInfo.md index a794051..f09f420 100644 --- a/docs/V1AppBaseInfo.md +++ b/docs/V1AppBaseInfo.md @@ -3,12 +3,16 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**app_classifications** | [**list[V1AppClassifications]**](V1AppClassifications.md) | 应用所属分类 | **app_detail_url** | **str** | 应用详情 URL | **app_key_id** | **str** | 应用 ID | **create_time** | **datetime** | 创建时间 | **desc** | **str** | 应用描述 | **dev_status** | **str** | 开发状态 | **download_count** | **int** | 下载次数 | +**effect** | **str** | 应用效果 | +**features** | **str** | 应用特点 | +**functional** | **str** | 应用功能 | **install_count** | **int** | 安装次数 | **introduction** | **str** | 应用介绍 | **introduction_html** | **str** | 应用介绍 | @@ -18,8 +22,11 @@ Name | Type | Description | Notes **market_name** | **str** | 商店名称 | **market_url** | **str** | 商店 URL | **name** | **str** | 应用名称 | +**phone** | **str** | 发布人手机号 | **publish_type** | **str** | 发布类型. private: 私有; public: 公有 | **publish_user** | **str** | 发布人 | +**quote** | **str** | 规格报价 | +**real_name** | **str** | 发布人姓名 | **show_count** | **int** | 访问次数 | **start_count** | **int** | | **status** | **str** | 状态 | diff --git a/docs/V1AppClassifications.md b/docs/V1AppClassifications.md new file mode 100644 index 0000000..7dfbe91 --- /dev/null +++ b/docs/V1AppClassifications.md @@ -0,0 +1,12 @@ +# V1AppClassifications + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**app_classification_id** | **str** | 应用分类 ID | +**app_classification_name** | **str** | 分类名称 | +**parent_app_classification_id** | **str** | 父级分类 ID | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1AppCreateRequest.md b/docs/V1AppCreateRequest.md new file mode 100644 index 0000000..e4a9ba7 --- /dev/null +++ b/docs/V1AppCreateRequest.md @@ -0,0 +1,17 @@ +# V1AppCreateRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**app_classification_id** | **str** | | +**desc** | **str** | | +**introduction** | **str** | | +**logo** | **str** | | +**name** | **str** | | +**org_id** | **str** | 组织机构 ID | +**publish_type** | **str** | | +**tags** | **list[str]** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1AppDetailInfoResponse.md b/docs/V1AppDetailInfoResponse.md index 8225e5e..bd2e147 100644 --- a/docs/V1AppDetailInfoResponse.md +++ b/docs/V1AppDetailInfoResponse.md @@ -4,12 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **app_classification_id** | **str** | 类别 ID | +**app_classifications** | [**list[V1AppClassifications]**](V1AppClassifications.md) | 应用所属分类 | **app_detail_url** | **str** | 应用详情 URL | **app_key_id** | **str** | 应用 ID | **create_time** | **datetime** | 创建时间 | **desc** | **str** | 应用描述 | **dev_status** | **str** | 开发状态 | **download_count** | **int** | 下载次数 | +**effect** | **str** | 应用效果 | +**features** | **str** | 应用特点 | +**functional** | **str** | 应用功能 | **install_count** | **int** | 安装次数 | **introduction** | **str** | 应用介绍 | **introduction_html** | **str** | 应用介绍 | @@ -20,8 +24,11 @@ Name | Type | Description | Notes **market_url** | **str** | 商店 URL | **name** | **str** | 应用名称 | **org_id** | **str** | 组织机构 ID | +**phone** | **str** | 发布人手机号 | **publish_type** | **str** | 发布类型. private: 私有; public: 公有 | **publish_user** | **str** | 发布人 | +**quote** | **str** | 规格报价 | +**real_name** | **str** | 发布人姓名 | **show_count** | **int** | 访问次数 | **start_count** | **int** | | **status** | **str** | 状态 | diff --git a/docs/V1AppModelCreateRequest.md b/docs/V1AppModelCreateRequest.md index 30d54da..c91c036 100644 --- a/docs/V1AppModelCreateRequest.md +++ b/docs/V1AppModelCreateRequest.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes **introduction** | **str** | 介绍 | **logo** | **str** | logo | **name** | **str** | 应用名称 | -**org_id** | **str** | | [optional] **publish_type** | **str** | 发布类型. private: 私有; public: 公开. | **tags** | **list[str]** | 标签 | diff --git a/docs/V1AppUpdateRequest.md b/docs/V1AppUpdateRequest.md index 24e2afe..4fda3d4 100644 --- a/docs/V1AppUpdateRequest.md +++ b/docs/V1AppUpdateRequest.md @@ -4,10 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **desc** | **str** | | +**effect** | **str** | 应用效果 | +**features** | **str** | 应用特点 | +**functional** | **str** | 应用功能 | **introduction** | **str** | | **logo** | **str** | | **name** | **str** | | **publish_type** | **str** | | +**quote** | **str** | 规格报价 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1AppVersionBase.md b/docs/V1AppVersionBase.md index 4487e06..dd31d41 100644 --- a/docs/V1AppVersionBase.md +++ b/docs/V1AppVersionBase.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **app_key_id** | **str** | 应用 ID | **app_version** | **str** | 应用版本 | **app_version_alias** | **str** | 版本别名 | +**arch** | **str** | 应用架构 | **create_time** | **datetime** | 创建时间 | **delivery_mode** | **str** | 交付模式 | **desc** | **str** | 描述 | diff --git a/docs/V1AppVersionDetailResponse.md b/docs/V1AppVersionDetailResponse.md index d52e1b8..6b7cd48 100644 --- a/docs/V1AppVersionDetailResponse.md +++ b/docs/V1AppVersionDetailResponse.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **app_key_id** | **str** | 应用ID | **app_name** | **str** | 应用名称 | +**arch** | **str** | 应用架构 | **create_time** | **datetime** | | **delivery_mode** | **str** | 交付类型 | **description** | **str** | 描述 | diff --git a/docs/V1AppVersionRequest.md b/docs/V1AppVersionRequest.md new file mode 100644 index 0000000..22acbcb --- /dev/null +++ b/docs/V1AppVersionRequest.md @@ -0,0 +1,15 @@ +# V1AppVersionRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**app_version** | **str** | | +**app_version_alias** | **str** | | +**desc** | **str** | | +**rainbond_version** | **str** | | +**templete** | **str** | | +**update_version** | **int** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1CreateAppPaaSVersionRequest.md b/docs/V1CreateAppPaaSVersionRequest.md index 7b7af26..ce9ce75 100644 --- a/docs/V1CreateAppPaaSVersionRequest.md +++ b/docs/V1CreateAppPaaSVersionRequest.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**arch** | **str** | | **description** | **str** | | **is_plugin** | **bool** | | **rainbond_version** | **str** | | diff --git a/docs/V1ImageInfo.md b/docs/V1ImageInfo.md new file mode 100644 index 0000000..aac55a2 --- /dev/null +++ b/docs/V1ImageInfo.md @@ -0,0 +1,14 @@ +# V1ImageInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hub_password** | **str** | | +**hub_url** | **str** | | +**hub_user** | **str** | | +**is_trust** | **bool** | | +**namespace** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1StoreAppVersionTemplate.md b/docs/V1StoreAppVersionTemplate.md new file mode 100644 index 0000000..1746839 --- /dev/null +++ b/docs/V1StoreAppVersionTemplate.md @@ -0,0 +1,15 @@ +# V1StoreAppVersionTemplate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apps** | [**list[V1StoreAppVersionTempleteApp]**](V1StoreAppVersionTempleteApp.md) | | +**group_key** | **str** | | +**group_name** | **str** | | +**group_version** | **str** | | +**plugins** | [**list[V1StoreAppVersionTempletePlugin]**](V1StoreAppVersionTempletePlugin.md) | | [optional] +**template_version** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1StoreAppVersionTemplete.md b/docs/V1StoreAppVersionTemplete.md new file mode 100644 index 0000000..f8e2174 --- /dev/null +++ b/docs/V1StoreAppVersionTemplete.md @@ -0,0 +1,15 @@ +# V1StoreAppVersionTemplete + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apps** | [**list[V1StoreAppVersionTempleteApp]**](V1StoreAppVersionTempleteApp.md) | | +**group_key** | **str** | | +**group_name** | **str** | | +**group_version** | **str** | | +**plugins** | [**list[V1StoreAppVersionTempletePlugin]**](V1StoreAppVersionTempletePlugin.md) | | [optional] +**template_version** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1StoreAppVersionTempleteApp.md b/docs/V1StoreAppVersionTempleteApp.md new file mode 100644 index 0000000..434e9d9 --- /dev/null +++ b/docs/V1StoreAppVersionTempleteApp.md @@ -0,0 +1,39 @@ +# V1StoreAppVersionTempleteApp + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**category** | **str** | | +**cmd** | **str** | | +**dep_service_map_list** | [**list[V1StoreAppVersionTempleteAppDepService]**](V1StoreAppVersionTempleteAppDepService.md) | | +**deploy_version** | **str** | | +**extend_method** | **str** | | +**extend_method_map** | [**V1StoreAppVersionTempleteAppExtendMethodRule**](V1StoreAppVersionTempleteAppExtendMethodRule.md) | | +**image** | **str** | | +**language** | **str** | | +**memory** | **int** | | +**mnt_relation_list** | [**list[V1StoreAppVersionTempleteAppShareVolume]**](V1StoreAppVersionTempleteAppShareVolume.md) | | +**port_map_list** | [**list[V1StoreAppVersionTempleteAppPort]**](V1StoreAppVersionTempleteAppPort.md) | | +**probes** | [**list[V1StoreAppVersionTempleteAppProbe]**](V1StoreAppVersionTempleteAppProbe.md) | | +**service_alias** | **str** | | +**service_cname** | **str** | | +**service_connect_info_map_list** | [**list[V1StoreAppVersionTempleteAppEnv]**](V1StoreAppVersionTempleteAppEnv.md) | | +**service_env_map_list** | [**list[V1StoreAppVersionTempleteAppEnv]**](V1StoreAppVersionTempleteAppEnv.md) | | +**service_id** | **str** | | +**service_image** | [**V1ImageInfo**](V1ImageInfo.md) | | +**service_key** | **str** | | +**service_name** | **str** | | +**service_region** | **str** | | +**service_related_plugin_config** | [**list[V1StoreAppVersionTempleteAppPluginConfig]**](V1StoreAppVersionTempleteAppPluginConfig.md) | | [optional] +**service_share_uuid** | **str** | | [optional] +**service_source** | **str** | | +**service_type** | **str** | | +**service_volume_map_list** | [**list[V1StoreAppVersionTempleteAppVolume]**](V1StoreAppVersionTempleteAppVolume.md) | | +**share_image** | **str** | | +**share_type** | **str** | | [optional] +**tenant_id** | **str** | | +**version** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1StoreAppVersionTempleteAppDepService.md b/docs/V1StoreAppVersionTempleteAppDepService.md new file mode 100644 index 0000000..036068e --- /dev/null +++ b/docs/V1StoreAppVersionTempleteAppDepService.md @@ -0,0 +1,10 @@ +# V1StoreAppVersionTempleteAppDepService + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dep_service_key** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1StoreAppVersionTempleteAppEnv.md b/docs/V1StoreAppVersionTempleteAppEnv.md new file mode 100644 index 0000000..6318137 --- /dev/null +++ b/docs/V1StoreAppVersionTempleteAppEnv.md @@ -0,0 +1,13 @@ +# V1StoreAppVersionTempleteAppEnv + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attr_name** | **str** | | +**attr_value** | **str** | | +**is_change** | **bool** | | +**name** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1StoreAppVersionTempleteAppExtendMethodRule.md b/docs/V1StoreAppVersionTempleteAppExtendMethodRule.md new file mode 100644 index 0000000..6da664c --- /dev/null +++ b/docs/V1StoreAppVersionTempleteAppExtendMethodRule.md @@ -0,0 +1,16 @@ +# V1StoreAppVersionTempleteAppExtendMethodRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_restart** | **int** | | +**max_memory** | **int** | | +**max_node** | **int** | | +**min_memory** | **int** | | +**min_node** | **int** | | +**step_memory** | **int** | | +**step_node** | **int** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1StoreAppVersionTempleteAppPluginConfig.md b/docs/V1StoreAppVersionTempleteAppPluginConfig.md new file mode 100644 index 0000000..6e3fd83 --- /dev/null +++ b/docs/V1StoreAppVersionTempleteAppPluginConfig.md @@ -0,0 +1,18 @@ +# V1StoreAppVersionTempleteAppPluginConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**attr** | **list[object]** | | +**build_version** | **str** | | +**create_time** | **str** | | +**plugin_id** | **str** | | +**plugin_key** | **str** | | +**plugin_status** | **bool** | | +**service_id** | **str** | | +**service_meta_type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1StoreAppVersionTempleteAppPort.md b/docs/V1StoreAppVersionTempleteAppPort.md new file mode 100644 index 0000000..2e95e3a --- /dev/null +++ b/docs/V1StoreAppVersionTempleteAppPort.md @@ -0,0 +1,15 @@ +# V1StoreAppVersionTempleteAppPort + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**container_port** | **int** | | +**is_inner_service** | **bool** | | +**is_outer_service** | **bool** | | +**port_alias** | **str** | | +**protocol** | **str** | | +**tenant_id** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1StoreAppVersionTempleteAppProbe.md b/docs/V1StoreAppVersionTempleteAppProbe.md new file mode 100644 index 0000000..1f60f2a --- /dev/null +++ b/docs/V1StoreAppVersionTempleteAppProbe.md @@ -0,0 +1,24 @@ +# V1StoreAppVersionTempleteAppProbe + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**cmd** | **str** | | +**failure_threshold** | **int** | | +**http_header** | **str** | | +**initial_delay_second** | **int** | | +**is_used** | **bool** | | +**mode** | **str** | | +**path** | **str** | | +**period_second** | **int** | | +**port** | **int** | | +**probe_id** | **str** | | +**scheme** | **str** | | +**service_id** | **str** | | +**success_threshold** | **int** | | +**timeout_second** | **int** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1StoreAppVersionTempleteAppShareVolume.md b/docs/V1StoreAppVersionTempleteAppShareVolume.md new file mode 100644 index 0000000..717af8a --- /dev/null +++ b/docs/V1StoreAppVersionTempleteAppShareVolume.md @@ -0,0 +1,12 @@ +# V1StoreAppVersionTempleteAppShareVolume + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mnt_dir** | **str** | | +**mnt_name** | **str** | | +**service_share_uuid** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1StoreAppVersionTempleteAppVolume.md b/docs/V1StoreAppVersionTempleteAppVolume.md new file mode 100644 index 0000000..586101c --- /dev/null +++ b/docs/V1StoreAppVersionTempleteAppVolume.md @@ -0,0 +1,15 @@ +# V1StoreAppVersionTempleteAppVolume + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_mode** | **str** | | +**file_content** | **str** | | +**volume_capacity** | **int** | | +**volume_name** | **str** | | +**volume_path** | **str** | | +**volume_type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1StoreAppVersionTempletePlugin.md b/docs/V1StoreAppVersionTempletePlugin.md new file mode 100644 index 0000000..7acff9f --- /dev/null +++ b/docs/V1StoreAppVersionTempletePlugin.md @@ -0,0 +1,26 @@ +# V1StoreAppVersionTempletePlugin + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**build_source** | **str** | | +**build_version** | **str** | | +**category** | **str** | | +**code_repo** | **str** | | +**config_groups** | [**list[V1StoreAppVersionTempletePluginConfigGroup]**](V1StoreAppVersionTempletePluginConfigGroup.md) | | [optional] +**create_time** | **str** | | +**desc** | **str** | | +**image** | **str** | | +**origin** | **str** | | +**origin_share_id** | **str** | | +**plugin_alias** | **str** | | +**plugin_id** | **str** | | +**plugin_image** | [**V1ImageInfo**](V1ImageInfo.md) | | +**plugin_key** | **str** | | +**plugin_name** | **str** | | +**share_image** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1StoreAppVersionTempletePluginConfigGroup.md b/docs/V1StoreAppVersionTempletePluginConfigGroup.md new file mode 100644 index 0000000..0f4002c --- /dev/null +++ b/docs/V1StoreAppVersionTempletePluginConfigGroup.md @@ -0,0 +1,16 @@ +# V1StoreAppVersionTempletePluginConfigGroup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**build_version** | **str** | | +**config_name** | **str** | | +**injection** | **str** | | +**options** | [**list[V1StoreAppVersionTempletePluginConfigGroupOption]**](V1StoreAppVersionTempletePluginConfigGroupOption.md) | | [optional] +**plugin_id** | **str** | | +**service_meta_type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1StoreAppVersionTempletePluginConfigGroupOption.md b/docs/V1StoreAppVersionTempletePluginConfigGroupOption.md new file mode 100644 index 0000000..27c648d --- /dev/null +++ b/docs/V1StoreAppVersionTempletePluginConfigGroupOption.md @@ -0,0 +1,20 @@ +# V1StoreAppVersionTempletePluginConfigGroupOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**attr_alt_value** | **str** | | +**attr_default_value** | **str** | | +**attr_info** | **str** | | +**attr_name** | **str** | | +**attr_type** | **str** | | +**build_version** | **str** | | +**is_change** | **bool** | | +**plugin_id** | **str** | | +**protocol** | **str** | | +**service_meta_type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1AppConfigGroup.md b/docs/V1alpha1AppConfigGroup.md index 8d7d215..f1cdb9c 100644 --- a/docs/V1alpha1AppConfigGroup.md +++ b/docs/V1alpha1AppConfigGroup.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**component_ids** | **list[str]** | | +**component_keys** | **list[str]** | | **config_items** | **dict(str, str)** | | **injection_type** | **str** | | **name** | **str** | | diff --git a/docs/V1alpha1Component.md b/docs/V1alpha1Component.md index 98a374d..2130b1e 100644 --- a/docs/V1alpha1Component.md +++ b/docs/V1alpha1Component.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**arch** | **str** | | **category** | **str** | | **cmd** | **str** | | **component_graphs** | [**list[V1alpha1ComponentGraph]**](V1alpha1ComponentGraph.md) | | +**component_k8s_attributes** | [**list[V1alpha1ComponentK8sAttribute]**](V1alpha1ComponentK8sAttribute.md) | | **component_monitors** | [**list[V1alpha1ComponentMonitor]**](V1alpha1ComponentMonitor.md) | | **cpu** | **int** | | **dep_service_map_list** | [**list[V1alpha1ComponentDep]**](V1alpha1ComponentDep.md) | | @@ -14,6 +16,7 @@ Name | Type | Description | Notes **extend_method** | **str** | | **extend_method_map** | [**V1alpha1ComponentExtendMethodRule**](V1alpha1ComponentExtendMethodRule.md) | | **image** | **str** | | +**k8s_component_name** | **str** | | **labels** | **dict(str, str)** | | [optional] **language** | **str** | | **memory** | **int** | | diff --git a/docs/V1alpha1ComponentK8sAttribute.md b/docs/V1alpha1ComponentK8sAttribute.md new file mode 100644 index 0000000..f45fd48 --- /dev/null +++ b/docs/V1alpha1ComponentK8sAttribute.md @@ -0,0 +1,13 @@ +# V1alpha1ComponentK8sAttribute + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attribute_value** | **str** | | +**component_id** | **str** | | +**name** | **str** | | +**save_type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1ComponentPort.md b/docs/V1alpha1ComponentPort.md index acd4c36..92a4553 100644 --- a/docs/V1alpha1ComponentPort.md +++ b/docs/V1alpha1ComponentPort.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **container_port** | **int** | | **is_inner_service** | **bool** | | **is_outer_service** | **bool** | | +**name** | **str** | | **port_alias** | **str** | | **protocol** | **str** | | **tenant_id** | **str** | | diff --git a/docs/V1alpha1K8sResource.md b/docs/V1alpha1K8sResource.md new file mode 100644 index 0000000..d559deb --- /dev/null +++ b/docs/V1alpha1K8sResource.md @@ -0,0 +1,12 @@ +# V1alpha1K8sResource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **str** | | +**kind** | **str** | | +**name** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1alpha1Plugin.md b/docs/V1alpha1Plugin.md index 4ff953c..476d42f 100644 --- a/docs/V1alpha1Plugin.md +++ b/docs/V1alpha1Plugin.md @@ -3,7 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | | **build_source** | **str** | | **build_version** | **str** | | **category** | **str** | | diff --git a/docs/V1alpha1PluginConfigGroup.md b/docs/V1alpha1PluginConfigGroup.md index 5555072..1352b5b 100644 --- a/docs/V1alpha1PluginConfigGroup.md +++ b/docs/V1alpha1PluginConfigGroup.md @@ -3,7 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | | **build_version** | **str** | | **config_name** | **str** | | **injection** | **str** | | diff --git a/docs/V1alpha1PluginConfigGroupOption.md b/docs/V1alpha1PluginConfigGroupOption.md index b961b31..ee38d63 100644 --- a/docs/V1alpha1PluginConfigGroupOption.md +++ b/docs/V1alpha1PluginConfigGroupOption.md @@ -3,7 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | | **attr_alt_value** | **str** | | **attr_default_value** | **str** | | **attr_info** | **str** | | diff --git a/docs/V1alpha1RainbondApplicationConfig.md b/docs/V1alpha1RainbondApplicationConfig.md index 9b1e6a6..d5fa6aa 100644 --- a/docs/V1alpha1RainbondApplicationConfig.md +++ b/docs/V1alpha1RainbondApplicationConfig.md @@ -4,13 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **annotations** | **dict(str, str)** | | [optional] -**app_config_groups** | [**list[V1alpha1AppConfigGroup]**](V1alpha1AppConfigGroup.md) | | +**app_config_groups** | [**list[V1alpha1AppConfigGroup]**](V1alpha1AppConfigGroup.md) | | [optional] **apps** | [**list[V1alpha1Component]**](V1alpha1Component.md) | | +**governance_mode** | **str** | | [default to 'BUILD_IN_SERVICE_MESH'] **group_key** | **str** | | **group_name** | **str** | | **group_version** | **str** | | +**helm_chart** | **dict(str, str)** | | [optional] **ingress_http_routes** | [**list[V1alpha1IngressHTTPRoute]**](V1alpha1IngressHTTPRoute.md) | | [optional] **ingress_stream_routes** | [**list[V1alpha1IngressSreamRoute]**](V1alpha1IngressSreamRoute.md) | | [optional] +**k8s_resources** | [**list[V1alpha1K8sResource]**](V1alpha1K8sResource.md) | | [optional] **plugins** | [**list[V1alpha1Plugin]**](V1alpha1Plugin.md) | | [optional] **template_version** | **str** | | diff --git a/openapi_client/__init__.py b/openapi_client/__init__.py index 821154e..a87a2a4 100644 --- a/openapi_client/__init__.py +++ b/openapi_client/__init__.py @@ -8,7 +8,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -34,6 +33,7 @@ from openapi_client.exceptions import ApiException from openapi_client.models.controller_result import ControllerResult from openapi_client.models.restfulutil_result import RestfulutilResult from openapi_client.models.v1_app_base_info import V1AppBaseInfo +from openapi_client.models.v1_app_classifications import V1AppClassifications from openapi_client.models.v1_app_detail_info_response import V1AppDetailInfoResponse from openapi_client.models.v1_app_image_hub_info_response import V1AppImageHubInfoResponse from openapi_client.models.v1_app_model_create_request import V1AppModelCreateRequest @@ -45,7 +45,6 @@ from openapi_client.models.v1_bindable_market import V1BindableMarket from openapi_client.models.v1_create_app_paa_s_version_request import V1CreateAppPaaSVersionRequest from openapi_client.models.v1_market_info_response import V1MarketInfoResponse from openapi_client.models.v1_market_ui_app_tags_response import V1MarketUIAppTagsResponse -from openapi_client.models.v1_organization import V1Organization from openapi_client.models.v1_user_app_list_response import V1UserAppListResponse from openapi_client.models.v1alpha1_app_config_group import V1alpha1AppConfigGroup from openapi_client.models.v1alpha1_component import V1alpha1Component @@ -53,6 +52,7 @@ from openapi_client.models.v1alpha1_component_dep import V1alpha1ComponentDep from openapi_client.models.v1alpha1_component_env import V1alpha1ComponentEnv from openapi_client.models.v1alpha1_component_extend_method_rule import V1alpha1ComponentExtendMethodRule from openapi_client.models.v1alpha1_component_graph import V1alpha1ComponentGraph +from openapi_client.models.v1alpha1_component_k8s_attribute import V1alpha1ComponentK8sAttribute from openapi_client.models.v1alpha1_component_monitor import V1alpha1ComponentMonitor from openapi_client.models.v1alpha1_component_plugin_config import V1alpha1ComponentPluginConfig from openapi_client.models.v1alpha1_component_port import V1alpha1ComponentPort @@ -63,6 +63,7 @@ from openapi_client.models.v1alpha1_endpoints import V1alpha1Endpoints from openapi_client.models.v1alpha1_image_info import V1alpha1ImageInfo from openapi_client.models.v1alpha1_ingress_http_route import V1alpha1IngressHTTPRoute from openapi_client.models.v1alpha1_ingress_sream_route import V1alpha1IngressSreamRoute +from openapi_client.models.v1alpha1_k8s_resource import V1alpha1K8sResource from openapi_client.models.v1alpha1_plugin import V1alpha1Plugin from openapi_client.models.v1alpha1_plugin_config_group import V1alpha1PluginConfigGroup from openapi_client.models.v1alpha1_plugin_config_group_option import V1alpha1PluginConfigGroupOption diff --git a/openapi_client/api/market_openapi_api.py b/openapi_client/api/market_openapi_api.py index 2e61258..ab0a095 100644 --- a/openapi_client/api/market_openapi_api.py +++ b/openapi_client/api/market_openapi_api.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -880,109 +879,6 @@ class MarketOpenapiApi(object): _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def get_orgs(self, **kwargs): # noqa: E501 - """获取组织机构(行业)列表 # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_orgs(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: list[V1Organization] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - return self.get_orgs_with_http_info(**kwargs) # noqa: E501 - - def get_orgs_with_http_info(self, **kwargs): # noqa: E501 - """获取组织机构(行业)列表 # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_orgs_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool: execute request asynchronously - :param _return_http_data_only: response data without head status code - and headers - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: tuple(list[V1Organization], status_code(int), headers(HTTPHeaderDict)) - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [ - ] - all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout' - ] - ) - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method get_orgs" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['api_key'] # noqa: E501 - - return self.api_client.call_api( - '/app-server/openapi/organizations', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[V1Organization]', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - def get_user_app_detail(self, app_id, market_domain, **kwargs): # noqa: E501 """应用详情 # noqa: E501 diff --git a/openapi_client/api/platform_open_api.py b/openapi_client/api/platform_open_api.py index 964a1a1..15e9588 100644 --- a/openapi_client/api/platform_open_api.py +++ b/openapi_client/api/platform_open_api.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/api/registry_api_api.py b/openapi_client/api/registry_api_api.py index 31cbdfa..9f8ff2c 100644 --- a/openapi_client/api/registry_api_api.py +++ b/openapi_client/api/registry_api_api.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/api_client.py b/openapi_client/api_client.py index 2ed681f..048f8e5 100644 --- a/openapi_client/api_client.py +++ b/openapi_client/api_client.py @@ -5,7 +5,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/configuration.py b/openapi_client/configuration.py index 9aff945..c3d9fba 100644 --- a/openapi_client/configuration.py +++ b/openapi_client/configuration.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -169,7 +168,7 @@ conf = openapi_client.Configuration( """Adding retries to override urllib3 default value 3 """ # Disable client side validation - self.client_side_validation = True + self.client_side_validation = False def __deepcopy__(self, memo): cls = self.__class__ diff --git a/openapi_client/exceptions.py b/openapi_client/exceptions.py index 62943a1..2ef7a8f 100644 --- a/openapi_client/exceptions.py +++ b/openapi_client/exceptions.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/__init__.py b/openapi_client/models/__init__.py index 358ca20..e0a1719 100644 --- a/openapi_client/models/__init__.py +++ b/openapi_client/models/__init__.py @@ -7,7 +7,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -18,6 +17,7 @@ from __future__ import absolute_import from openapi_client.models.controller_result import ControllerResult from openapi_client.models.restfulutil_result import RestfulutilResult from openapi_client.models.v1_app_base_info import V1AppBaseInfo +from openapi_client.models.v1_app_classifications import V1AppClassifications from openapi_client.models.v1_app_detail_info_response import V1AppDetailInfoResponse from openapi_client.models.v1_app_image_hub_info_response import V1AppImageHubInfoResponse from openapi_client.models.v1_app_model_create_request import V1AppModelCreateRequest @@ -29,7 +29,6 @@ from openapi_client.models.v1_bindable_market import V1BindableMarket from openapi_client.models.v1_create_app_paa_s_version_request import V1CreateAppPaaSVersionRequest from openapi_client.models.v1_market_info_response import V1MarketInfoResponse from openapi_client.models.v1_market_ui_app_tags_response import V1MarketUIAppTagsResponse -from openapi_client.models.v1_organization import V1Organization from openapi_client.models.v1_user_app_list_response import V1UserAppListResponse from openapi_client.models.v1alpha1_app_config_group import V1alpha1AppConfigGroup from openapi_client.models.v1alpha1_component import V1alpha1Component @@ -37,6 +36,7 @@ from openapi_client.models.v1alpha1_component_dep import V1alpha1ComponentDep from openapi_client.models.v1alpha1_component_env import V1alpha1ComponentEnv from openapi_client.models.v1alpha1_component_extend_method_rule import V1alpha1ComponentExtendMethodRule from openapi_client.models.v1alpha1_component_graph import V1alpha1ComponentGraph +from openapi_client.models.v1alpha1_component_k8s_attribute import V1alpha1ComponentK8sAttribute from openapi_client.models.v1alpha1_component_monitor import V1alpha1ComponentMonitor from openapi_client.models.v1alpha1_component_plugin_config import V1alpha1ComponentPluginConfig from openapi_client.models.v1alpha1_component_port import V1alpha1ComponentPort @@ -47,6 +47,7 @@ from openapi_client.models.v1alpha1_endpoints import V1alpha1Endpoints from openapi_client.models.v1alpha1_image_info import V1alpha1ImageInfo from openapi_client.models.v1alpha1_ingress_http_route import V1alpha1IngressHTTPRoute from openapi_client.models.v1alpha1_ingress_sream_route import V1alpha1IngressSreamRoute +from openapi_client.models.v1alpha1_k8s_resource import V1alpha1K8sResource from openapi_client.models.v1alpha1_plugin import V1alpha1Plugin from openapi_client.models.v1alpha1_plugin_config_group import V1alpha1PluginConfigGroup from openapi_client.models.v1alpha1_plugin_config_group_option import V1alpha1PluginConfigGroupOption diff --git a/openapi_client/models/apps_image_info.py b/openapi_client/models/apps_image_info.py new file mode 100644 index 0000000..33299f3 --- /dev/null +++ b/openapi_client/models/apps_image_info.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsImageInfo(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'hub_password': 'str', + 'hub_url': 'str', + 'hub_user': 'str', + 'is_trust': 'bool', + 'namespace': 'str' + } + + attribute_map = { + 'hub_password': 'hub_password', + 'hub_url': 'hub_url', + 'hub_user': 'hub_user', + 'is_trust': 'is_trust', + 'namespace': 'namespace' + } + + def __init__(self, hub_password=None, hub_url=None, hub_user=None, is_trust=None, namespace=None, local_vars_configuration=None): # noqa: E501 + """AppsImageInfo - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._hub_password = None + self._hub_url = None + self._hub_user = None + self._is_trust = None + self._namespace = None + self.discriminator = None + + self.hub_password = hub_password + self.hub_url = hub_url + self.hub_user = hub_user + self.is_trust = is_trust + self.namespace = namespace + + @property + def hub_password(self): + """Gets the hub_password of this AppsImageInfo. # noqa: E501 + + + :return: The hub_password of this AppsImageInfo. # noqa: E501 + :rtype: str + """ + return self._hub_password + + @hub_password.setter + def hub_password(self, hub_password): + """Sets the hub_password of this AppsImageInfo. + + + :param hub_password: The hub_password of this AppsImageInfo. # noqa: E501 + :type hub_password: str + """ + if self.local_vars_configuration.client_side_validation and hub_password is None: # noqa: E501 + raise ValueError("Invalid value for `hub_password`, must not be `None`") # noqa: E501 + + self._hub_password = hub_password + + @property + def hub_url(self): + """Gets the hub_url of this AppsImageInfo. # noqa: E501 + + + :return: The hub_url of this AppsImageInfo. # noqa: E501 + :rtype: str + """ + return self._hub_url + + @hub_url.setter + def hub_url(self, hub_url): + """Sets the hub_url of this AppsImageInfo. + + + :param hub_url: The hub_url of this AppsImageInfo. # noqa: E501 + :type hub_url: str + """ + if self.local_vars_configuration.client_side_validation and hub_url is None: # noqa: E501 + raise ValueError("Invalid value for `hub_url`, must not be `None`") # noqa: E501 + + self._hub_url = hub_url + + @property + def hub_user(self): + """Gets the hub_user of this AppsImageInfo. # noqa: E501 + + + :return: The hub_user of this AppsImageInfo. # noqa: E501 + :rtype: str + """ + return self._hub_user + + @hub_user.setter + def hub_user(self, hub_user): + """Sets the hub_user of this AppsImageInfo. + + + :param hub_user: The hub_user of this AppsImageInfo. # noqa: E501 + :type hub_user: str + """ + if self.local_vars_configuration.client_side_validation and hub_user is None: # noqa: E501 + raise ValueError("Invalid value for `hub_user`, must not be `None`") # noqa: E501 + + self._hub_user = hub_user + + @property + def is_trust(self): + """Gets the is_trust of this AppsImageInfo. # noqa: E501 + + + :return: The is_trust of this AppsImageInfo. # noqa: E501 + :rtype: bool + """ + return self._is_trust + + @is_trust.setter + def is_trust(self, is_trust): + """Sets the is_trust of this AppsImageInfo. + + + :param is_trust: The is_trust of this AppsImageInfo. # noqa: E501 + :type is_trust: bool + """ + if self.local_vars_configuration.client_side_validation and is_trust is None: # noqa: E501 + raise ValueError("Invalid value for `is_trust`, must not be `None`") # noqa: E501 + + self._is_trust = is_trust + + @property + def namespace(self): + """Gets the namespace of this AppsImageInfo. # noqa: E501 + + + :return: The namespace of this AppsImageInfo. # noqa: E501 + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this AppsImageInfo. + + + :param namespace: The namespace of this AppsImageInfo. # noqa: E501 + :type namespace: str + """ + if self.local_vars_configuration.client_side_validation and namespace is None: # noqa: E501 + raise ValueError("Invalid value for `namespace`, must not be `None`") # noqa: E501 + + self._namespace = namespace + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AppsImageInfo): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AppsImageInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete.py b/openapi_client/models/apps_store_app_version_templete.py new file mode 100644 index 0000000..6facf53 --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTemplete(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'apps': 'list[AppsStoreAppVersionTempleteApp]', + 'group_key': 'str', + 'group_name': 'str', + 'group_version': 'str', + 'plugins': 'list[AppsStoreAppVersionTempletePlugin]', + 'template_version': 'str' + } + + attribute_map = { + 'apps': 'apps', + 'group_key': 'group_key', + 'group_name': 'group_name', + 'group_version': 'group_version', + 'plugins': 'plugins', + 'template_version': 'template_version' + } + + def __init__(self, apps=None, group_key=None, group_name=None, group_version=None, plugins=None, template_version=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTemplete - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._apps = None + self._group_key = None + self._group_name = None + self._group_version = None + self._plugins = None + self._template_version = None + self.discriminator = None + + self.apps = apps + self.group_key = group_key + self.group_name = group_name + self.group_version = group_version + if plugins is not None: + self.plugins = plugins + self.template_version = template_version + + @property + def apps(self): + """Gets the apps of this AppsStoreAppVersionTemplete. # noqa: E501 + + + :return: The apps of this AppsStoreAppVersionTemplete. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempleteApp] + """ + return self._apps + + @apps.setter + def apps(self, apps): + """Sets the apps of this AppsStoreAppVersionTemplete. + + + :param apps: The apps of this AppsStoreAppVersionTemplete. # noqa: E501 + :type apps: list[AppsStoreAppVersionTempleteApp] + """ + if self.local_vars_configuration.client_side_validation and apps is None: # noqa: E501 + raise ValueError("Invalid value for `apps`, must not be `None`") # noqa: E501 + + self._apps = apps + + @property + def group_key(self): + """Gets the group_key of this AppsStoreAppVersionTemplete. # noqa: E501 + + + :return: The group_key of this AppsStoreAppVersionTemplete. # noqa: E501 + :rtype: str + """ + return self._group_key + + @group_key.setter + def group_key(self, group_key): + """Sets the group_key of this AppsStoreAppVersionTemplete. + + + :param group_key: The group_key of this AppsStoreAppVersionTemplete. # noqa: E501 + :type group_key: str + """ + if self.local_vars_configuration.client_side_validation and group_key is None: # noqa: E501 + raise ValueError("Invalid value for `group_key`, must not be `None`") # noqa: E501 + + self._group_key = group_key + + @property + def group_name(self): + """Gets the group_name of this AppsStoreAppVersionTemplete. # noqa: E501 + + + :return: The group_name of this AppsStoreAppVersionTemplete. # noqa: E501 + :rtype: str + """ + return self._group_name + + @group_name.setter + def group_name(self, group_name): + """Sets the group_name of this AppsStoreAppVersionTemplete. + + + :param group_name: The group_name of this AppsStoreAppVersionTemplete. # noqa: E501 + :type group_name: str + """ + if self.local_vars_configuration.client_side_validation and group_name is None: # noqa: E501 + raise ValueError("Invalid value for `group_name`, must not be `None`") # noqa: E501 + + self._group_name = group_name + + @property + def group_version(self): + """Gets the group_version of this AppsStoreAppVersionTemplete. # noqa: E501 + + + :return: The group_version of this AppsStoreAppVersionTemplete. # noqa: E501 + :rtype: str + """ + return self._group_version + + @group_version.setter + def group_version(self, group_version): + """Sets the group_version of this AppsStoreAppVersionTemplete. + + + :param group_version: The group_version of this AppsStoreAppVersionTemplete. # noqa: E501 + :type group_version: str + """ + if self.local_vars_configuration.client_side_validation and group_version is None: # noqa: E501 + raise ValueError("Invalid value for `group_version`, must not be `None`") # noqa: E501 + + self._group_version = group_version + + @property + def plugins(self): + """Gets the plugins of this AppsStoreAppVersionTemplete. # noqa: E501 + + + :return: The plugins of this AppsStoreAppVersionTemplete. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempletePlugin] + """ + return self._plugins + + @plugins.setter + def plugins(self, plugins): + """Sets the plugins of this AppsStoreAppVersionTemplete. + + + :param plugins: The plugins of this AppsStoreAppVersionTemplete. # noqa: E501 + :type plugins: list[AppsStoreAppVersionTempletePlugin] + """ + + self._plugins = plugins + + @property + def template_version(self): + """Gets the template_version of this AppsStoreAppVersionTemplete. # noqa: E501 + + + :return: The template_version of this AppsStoreAppVersionTemplete. # noqa: E501 + :rtype: str + """ + return self._template_version + + @template_version.setter + def template_version(self, template_version): + """Sets the template_version of this AppsStoreAppVersionTemplete. + + + :param template_version: The template_version of this AppsStoreAppVersionTemplete. # noqa: E501 + :type template_version: str + """ + if self.local_vars_configuration.client_side_validation and template_version is None: # noqa: E501 + raise ValueError("Invalid value for `template_version`, must not be `None`") # noqa: E501 + + self._template_version = template_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AppsStoreAppVersionTemplete): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AppsStoreAppVersionTemplete): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_app.py b/openapi_client/models/apps_store_app_version_templete_app.py new file mode 100644 index 0000000..6c3ae70 --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_app.py @@ -0,0 +1,902 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempleteApp(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'category': 'str', + 'cmd': 'str', + 'dep_service_map_list': 'list[AppsStoreAppVersionTempleteAppDepService]', + 'deploy_version': 'str', + 'extend_method': 'str', + 'extend_method_map': 'AppsStoreAppVersionTempleteAppExtendMethodRule', + 'image': 'str', + 'language': 'str', + 'memory': 'int', + 'mnt_relation_list': 'list[AppsStoreAppVersionTempleteAppShareVolume]', + 'port_map_list': 'list[AppsStoreAppVersionTempleteAppPort]', + 'probes': 'list[AppsStoreAppVersionTempleteAppProbe]', + 'service_alias': 'str', + 'service_cname': 'str', + 'service_connect_info_map_list': 'list[AppsStoreAppVersionTempleteAppEnv]', + 'service_env_map_list': 'list[AppsStoreAppVersionTempleteAppEnv]', + 'service_id': 'str', + 'service_image': 'AppsImageInfo', + 'service_key': 'str', + 'service_name': 'str', + 'service_region': 'str', + 'service_related_plugin_config': 'list[AppsStoreAppVersionTempleteAppPluginConfig]', + 'service_share_uuid': 'str', + 'service_source': 'str', + 'service_type': 'str', + 'service_volume_map_list': 'list[AppsStoreAppVersionTempleteAppVolume]', + 'share_image': 'str', + 'share_type': 'str', + 'tenant_id': 'str', + 'version': 'str' + } + + attribute_map = { + 'category': 'category', + 'cmd': 'cmd', + 'dep_service_map_list': 'dep_service_map_list', + 'deploy_version': 'deploy_version', + 'extend_method': 'extend_method', + 'extend_method_map': 'extend_method_map', + 'image': 'image', + 'language': 'language', + 'memory': 'memory', + 'mnt_relation_list': 'mnt_relation_list', + 'port_map_list': 'port_map_list', + 'probes': 'probes', + 'service_alias': 'service_alias', + 'service_cname': 'service_cname', + 'service_connect_info_map_list': 'service_connect_info_map_list', + 'service_env_map_list': 'service_env_map_list', + 'service_id': 'service_id', + 'service_image': 'service_image', + 'service_key': 'service_key', + 'service_name': 'service_name', + 'service_region': 'service_region', + 'service_related_plugin_config': 'service_related_plugin_config', + 'service_share_uuid': 'service_share_uuid', + 'service_source': 'service_source', + 'service_type': 'service_type', + 'service_volume_map_list': 'service_volume_map_list', + 'share_image': 'share_image', + 'share_type': 'share_type', + 'tenant_id': 'tenant_id', + 'version': 'version' + } + + def __init__(self, category=None, cmd=None, dep_service_map_list=None, deploy_version=None, extend_method=None, extend_method_map=None, image=None, language=None, memory=None, mnt_relation_list=None, port_map_list=None, probes=None, service_alias=None, service_cname=None, service_connect_info_map_list=None, service_env_map_list=None, service_id=None, service_image=None, service_key=None, service_name=None, service_region=None, service_related_plugin_config=None, service_share_uuid=None, service_source=None, service_type=None, service_volume_map_list=None, share_image=None, share_type=None, tenant_id=None, version=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempleteApp - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._category = None + self._cmd = None + self._dep_service_map_list = None + self._deploy_version = None + self._extend_method = None + self._extend_method_map = None + self._image = None + self._language = None + self._memory = None + self._mnt_relation_list = None + self._port_map_list = None + self._probes = None + self._service_alias = None + self._service_cname = None + self._service_connect_info_map_list = None + self._service_env_map_list = None + self._service_id = None + self._service_image = None + self._service_key = None + self._service_name = None + self._service_region = None + self._service_related_plugin_config = None + self._service_share_uuid = None + self._service_source = None + self._service_type = None + self._service_volume_map_list = None + self._share_image = None + self._share_type = None + self._tenant_id = None + self._version = None + self.discriminator = None + + self.category = category + self.cmd = cmd + self.dep_service_map_list = dep_service_map_list + self.deploy_version = deploy_version + self.extend_method = extend_method + self.extend_method_map = extend_method_map + self.image = image + self.language = language + self.memory = memory + self.mnt_relation_list = mnt_relation_list + self.port_map_list = port_map_list + self.probes = probes + self.service_alias = service_alias + self.service_cname = service_cname + self.service_connect_info_map_list = service_connect_info_map_list + self.service_env_map_list = service_env_map_list + self.service_id = service_id + self.service_image = service_image + self.service_key = service_key + self.service_name = service_name + self.service_region = service_region + if service_related_plugin_config is not None: + self.service_related_plugin_config = service_related_plugin_config + if service_share_uuid is not None: + self.service_share_uuid = service_share_uuid + self.service_source = service_source + self.service_type = service_type + self.service_volume_map_list = service_volume_map_list + self.share_image = share_image + if share_type is not None: + self.share_type = share_type + self.tenant_id = tenant_id + self.version = version + + @property + def category(self): + """Gets the category of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The category of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this AppsStoreAppVersionTempleteApp. + + + :param category: The category of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type category: str + """ + if self.local_vars_configuration.client_side_validation and category is None: # noqa: E501 + raise ValueError("Invalid value for `category`, must not be `None`") # noqa: E501 + + self._category = category + + @property + def cmd(self): + """Gets the cmd of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The cmd of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._cmd + + @cmd.setter + def cmd(self, cmd): + """Sets the cmd of this AppsStoreAppVersionTempleteApp. + + + :param cmd: The cmd of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type cmd: str + """ + if self.local_vars_configuration.client_side_validation and cmd is None: # noqa: E501 + raise ValueError("Invalid value for `cmd`, must not be `None`") # noqa: E501 + + self._cmd = cmd + + @property + def dep_service_map_list(self): + """Gets the dep_service_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The dep_service_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempleteAppDepService] + """ + return self._dep_service_map_list + + @dep_service_map_list.setter + def dep_service_map_list(self, dep_service_map_list): + """Sets the dep_service_map_list of this AppsStoreAppVersionTempleteApp. + + + :param dep_service_map_list: The dep_service_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type dep_service_map_list: list[AppsStoreAppVersionTempleteAppDepService] + """ + if self.local_vars_configuration.client_side_validation and dep_service_map_list is None: # noqa: E501 + raise ValueError("Invalid value for `dep_service_map_list`, must not be `None`") # noqa: E501 + + self._dep_service_map_list = dep_service_map_list + + @property + def deploy_version(self): + """Gets the deploy_version of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The deploy_version of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._deploy_version + + @deploy_version.setter + def deploy_version(self, deploy_version): + """Sets the deploy_version of this AppsStoreAppVersionTempleteApp. + + + :param deploy_version: The deploy_version of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type deploy_version: str + """ + if self.local_vars_configuration.client_side_validation and deploy_version is None: # noqa: E501 + raise ValueError("Invalid value for `deploy_version`, must not be `None`") # noqa: E501 + + self._deploy_version = deploy_version + + @property + def extend_method(self): + """Gets the extend_method of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The extend_method of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._extend_method + + @extend_method.setter + def extend_method(self, extend_method): + """Sets the extend_method of this AppsStoreAppVersionTempleteApp. + + + :param extend_method: The extend_method of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type extend_method: str + """ + if self.local_vars_configuration.client_side_validation and extend_method is None: # noqa: E501 + raise ValueError("Invalid value for `extend_method`, must not be `None`") # noqa: E501 + + self._extend_method = extend_method + + @property + def extend_method_map(self): + """Gets the extend_method_map of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The extend_method_map of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: AppsStoreAppVersionTempleteAppExtendMethodRule + """ + return self._extend_method_map + + @extend_method_map.setter + def extend_method_map(self, extend_method_map): + """Sets the extend_method_map of this AppsStoreAppVersionTempleteApp. + + + :param extend_method_map: The extend_method_map of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type extend_method_map: AppsStoreAppVersionTempleteAppExtendMethodRule + """ + if self.local_vars_configuration.client_side_validation and extend_method_map is None: # noqa: E501 + raise ValueError("Invalid value for `extend_method_map`, must not be `None`") # noqa: E501 + + self._extend_method_map = extend_method_map + + @property + def image(self): + """Gets the image of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The image of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """Sets the image of this AppsStoreAppVersionTempleteApp. + + + :param image: The image of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type image: str + """ + if self.local_vars_configuration.client_side_validation and image is None: # noqa: E501 + raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501 + + self._image = image + + @property + def language(self): + """Gets the language of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The language of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this AppsStoreAppVersionTempleteApp. + + + :param language: The language of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type language: str + """ + if self.local_vars_configuration.client_side_validation and language is None: # noqa: E501 + raise ValueError("Invalid value for `language`, must not be `None`") # noqa: E501 + + self._language = language + + @property + def memory(self): + """Gets the memory of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The memory of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: int + """ + return self._memory + + @memory.setter + def memory(self, memory): + """Sets the memory of this AppsStoreAppVersionTempleteApp. + + + :param memory: The memory of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type memory: int + """ + if self.local_vars_configuration.client_side_validation and memory is None: # noqa: E501 + raise ValueError("Invalid value for `memory`, must not be `None`") # noqa: E501 + + self._memory = memory + + @property + def mnt_relation_list(self): + """Gets the mnt_relation_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The mnt_relation_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempleteAppShareVolume] + """ + return self._mnt_relation_list + + @mnt_relation_list.setter + def mnt_relation_list(self, mnt_relation_list): + """Sets the mnt_relation_list of this AppsStoreAppVersionTempleteApp. + + + :param mnt_relation_list: The mnt_relation_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type mnt_relation_list: list[AppsStoreAppVersionTempleteAppShareVolume] + """ + if self.local_vars_configuration.client_side_validation and mnt_relation_list is None: # noqa: E501 + raise ValueError("Invalid value for `mnt_relation_list`, must not be `None`") # noqa: E501 + + self._mnt_relation_list = mnt_relation_list + + @property + def port_map_list(self): + """Gets the port_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The port_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempleteAppPort] + """ + return self._port_map_list + + @port_map_list.setter + def port_map_list(self, port_map_list): + """Sets the port_map_list of this AppsStoreAppVersionTempleteApp. + + + :param port_map_list: The port_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type port_map_list: list[AppsStoreAppVersionTempleteAppPort] + """ + if self.local_vars_configuration.client_side_validation and port_map_list is None: # noqa: E501 + raise ValueError("Invalid value for `port_map_list`, must not be `None`") # noqa: E501 + + self._port_map_list = port_map_list + + @property + def probes(self): + """Gets the probes of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The probes of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempleteAppProbe] + """ + return self._probes + + @probes.setter + def probes(self, probes): + """Sets the probes of this AppsStoreAppVersionTempleteApp. + + + :param probes: The probes of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type probes: list[AppsStoreAppVersionTempleteAppProbe] + """ + if self.local_vars_configuration.client_side_validation and probes is None: # noqa: E501 + raise ValueError("Invalid value for `probes`, must not be `None`") # noqa: E501 + + self._probes = probes + + @property + def service_alias(self): + """Gets the service_alias of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_alias of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_alias + + @service_alias.setter + def service_alias(self, service_alias): + """Sets the service_alias of this AppsStoreAppVersionTempleteApp. + + + :param service_alias: The service_alias of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_alias: str + """ + if self.local_vars_configuration.client_side_validation and service_alias is None: # noqa: E501 + raise ValueError("Invalid value for `service_alias`, must not be `None`") # noqa: E501 + + self._service_alias = service_alias + + @property + def service_cname(self): + """Gets the service_cname of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_cname of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_cname + + @service_cname.setter + def service_cname(self, service_cname): + """Sets the service_cname of this AppsStoreAppVersionTempleteApp. + + + :param service_cname: The service_cname of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_cname: str + """ + if self.local_vars_configuration.client_side_validation and service_cname is None: # noqa: E501 + raise ValueError("Invalid value for `service_cname`, must not be `None`") # noqa: E501 + + self._service_cname = service_cname + + @property + def service_connect_info_map_list(self): + """Gets the service_connect_info_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_connect_info_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempleteAppEnv] + """ + return self._service_connect_info_map_list + + @service_connect_info_map_list.setter + def service_connect_info_map_list(self, service_connect_info_map_list): + """Sets the service_connect_info_map_list of this AppsStoreAppVersionTempleteApp. + + + :param service_connect_info_map_list: The service_connect_info_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_connect_info_map_list: list[AppsStoreAppVersionTempleteAppEnv] + """ + if self.local_vars_configuration.client_side_validation and service_connect_info_map_list is None: # noqa: E501 + raise ValueError("Invalid value for `service_connect_info_map_list`, must not be `None`") # noqa: E501 + + self._service_connect_info_map_list = service_connect_info_map_list + + @property + def service_env_map_list(self): + """Gets the service_env_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_env_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempleteAppEnv] + """ + return self._service_env_map_list + + @service_env_map_list.setter + def service_env_map_list(self, service_env_map_list): + """Sets the service_env_map_list of this AppsStoreAppVersionTempleteApp. + + + :param service_env_map_list: The service_env_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_env_map_list: list[AppsStoreAppVersionTempleteAppEnv] + """ + if self.local_vars_configuration.client_side_validation and service_env_map_list is None: # noqa: E501 + raise ValueError("Invalid value for `service_env_map_list`, must not be `None`") # noqa: E501 + + self._service_env_map_list = service_env_map_list + + @property + def service_id(self): + """Gets the service_id of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_id of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_id + + @service_id.setter + def service_id(self, service_id): + """Sets the service_id of this AppsStoreAppVersionTempleteApp. + + + :param service_id: The service_id of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_id: str + """ + if self.local_vars_configuration.client_side_validation and service_id is None: # noqa: E501 + raise ValueError("Invalid value for `service_id`, must not be `None`") # noqa: E501 + + self._service_id = service_id + + @property + def service_image(self): + """Gets the service_image of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_image of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: AppsImageInfo + """ + return self._service_image + + @service_image.setter + def service_image(self, service_image): + """Sets the service_image of this AppsStoreAppVersionTempleteApp. + + + :param service_image: The service_image of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_image: AppsImageInfo + """ + if self.local_vars_configuration.client_side_validation and service_image is None: # noqa: E501 + raise ValueError("Invalid value for `service_image`, must not be `None`") # noqa: E501 + + self._service_image = service_image + + @property + def service_key(self): + """Gets the service_key of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_key of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_key + + @service_key.setter + def service_key(self, service_key): + """Sets the service_key of this AppsStoreAppVersionTempleteApp. + + + :param service_key: The service_key of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_key: str + """ + if self.local_vars_configuration.client_side_validation and service_key is None: # noqa: E501 + raise ValueError("Invalid value for `service_key`, must not be `None`") # noqa: E501 + + self._service_key = service_key + + @property + def service_name(self): + """Gets the service_name of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_name of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_name + + @service_name.setter + def service_name(self, service_name): + """Sets the service_name of this AppsStoreAppVersionTempleteApp. + + + :param service_name: The service_name of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_name: str + """ + if self.local_vars_configuration.client_side_validation and service_name is None: # noqa: E501 + raise ValueError("Invalid value for `service_name`, must not be `None`") # noqa: E501 + + self._service_name = service_name + + @property + def service_region(self): + """Gets the service_region of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_region of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_region + + @service_region.setter + def service_region(self, service_region): + """Sets the service_region of this AppsStoreAppVersionTempleteApp. + + + :param service_region: The service_region of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_region: str + """ + if self.local_vars_configuration.client_side_validation and service_region is None: # noqa: E501 + raise ValueError("Invalid value for `service_region`, must not be `None`") # noqa: E501 + + self._service_region = service_region + + @property + def service_related_plugin_config(self): + """Gets the service_related_plugin_config of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_related_plugin_config of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempleteAppPluginConfig] + """ + return self._service_related_plugin_config + + @service_related_plugin_config.setter + def service_related_plugin_config(self, service_related_plugin_config): + """Sets the service_related_plugin_config of this AppsStoreAppVersionTempleteApp. + + + :param service_related_plugin_config: The service_related_plugin_config of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_related_plugin_config: list[AppsStoreAppVersionTempleteAppPluginConfig] + """ + + self._service_related_plugin_config = service_related_plugin_config + + @property + def service_share_uuid(self): + """Gets the service_share_uuid of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_share_uuid of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_share_uuid + + @service_share_uuid.setter + def service_share_uuid(self, service_share_uuid): + """Sets the service_share_uuid of this AppsStoreAppVersionTempleteApp. + + + :param service_share_uuid: The service_share_uuid of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_share_uuid: str + """ + + self._service_share_uuid = service_share_uuid + + @property + def service_source(self): + """Gets the service_source of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_source of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_source + + @service_source.setter + def service_source(self, service_source): + """Sets the service_source of this AppsStoreAppVersionTempleteApp. + + + :param service_source: The service_source of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_source: str + """ + if self.local_vars_configuration.client_side_validation and service_source is None: # noqa: E501 + raise ValueError("Invalid value for `service_source`, must not be `None`") # noqa: E501 + + self._service_source = service_source + + @property + def service_type(self): + """Gets the service_type of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_type of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_type + + @service_type.setter + def service_type(self, service_type): + """Sets the service_type of this AppsStoreAppVersionTempleteApp. + + + :param service_type: The service_type of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_type: str + """ + if self.local_vars_configuration.client_side_validation and service_type is None: # noqa: E501 + raise ValueError("Invalid value for `service_type`, must not be `None`") # noqa: E501 + + self._service_type = service_type + + @property + def service_volume_map_list(self): + """Gets the service_volume_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_volume_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempleteAppVolume] + """ + return self._service_volume_map_list + + @service_volume_map_list.setter + def service_volume_map_list(self, service_volume_map_list): + """Sets the service_volume_map_list of this AppsStoreAppVersionTempleteApp. + + + :param service_volume_map_list: The service_volume_map_list of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type service_volume_map_list: list[AppsStoreAppVersionTempleteAppVolume] + """ + if self.local_vars_configuration.client_side_validation and service_volume_map_list is None: # noqa: E501 + raise ValueError("Invalid value for `service_volume_map_list`, must not be `None`") # noqa: E501 + + self._service_volume_map_list = service_volume_map_list + + @property + def share_image(self): + """Gets the share_image of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The share_image of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._share_image + + @share_image.setter + def share_image(self, share_image): + """Sets the share_image of this AppsStoreAppVersionTempleteApp. + + + :param share_image: The share_image of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type share_image: str + """ + if self.local_vars_configuration.client_side_validation and share_image is None: # noqa: E501 + raise ValueError("Invalid value for `share_image`, must not be `None`") # noqa: E501 + + self._share_image = share_image + + @property + def share_type(self): + """Gets the share_type of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The share_type of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._share_type + + @share_type.setter + def share_type(self, share_type): + """Sets the share_type of this AppsStoreAppVersionTempleteApp. + + + :param share_type: The share_type of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type share_type: str + """ + + self._share_type = share_type + + @property + def tenant_id(self): + """Gets the tenant_id of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The tenant_id of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._tenant_id + + @tenant_id.setter + def tenant_id(self, tenant_id): + """Sets the tenant_id of this AppsStoreAppVersionTempleteApp. + + + :param tenant_id: The tenant_id of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type tenant_id: str + """ + if self.local_vars_configuration.client_side_validation and tenant_id is None: # noqa: E501 + raise ValueError("Invalid value for `tenant_id`, must not be `None`") # noqa: E501 + + self._tenant_id = tenant_id + + @property + def version(self): + """Gets the version of this AppsStoreAppVersionTempleteApp. # noqa: E501 + + + :return: The version of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this AppsStoreAppVersionTempleteApp. + + + :param version: The version of this AppsStoreAppVersionTempleteApp. # noqa: E501 + :type version: str + """ + if self.local_vars_configuration.client_side_validation and version is None: # noqa: E501 + raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 + + self._version = version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AppsStoreAppVersionTempleteApp): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AppsStoreAppVersionTempleteApp): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_app_dep_service.py b/openapi_client/models/apps_store_app_version_templete_app_dep_service.py new file mode 100644 index 0000000..1a08bfc --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_app_dep_service.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempleteAppDepService(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dep_service_key': 'str' + } + + attribute_map = { + 'dep_service_key': 'dep_service_key' + } + + def __init__(self, dep_service_key=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempleteAppDepService - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._dep_service_key = None + self.discriminator = None + + self.dep_service_key = dep_service_key + + @property + def dep_service_key(self): + """Gets the dep_service_key of this AppsStoreAppVersionTempleteAppDepService. # noqa: E501 + + + :return: The dep_service_key of this AppsStoreAppVersionTempleteAppDepService. # noqa: E501 + :rtype: str + """ + return self._dep_service_key + + @dep_service_key.setter + def dep_service_key(self, dep_service_key): + """Sets the dep_service_key of this AppsStoreAppVersionTempleteAppDepService. + + + :param dep_service_key: The dep_service_key of this AppsStoreAppVersionTempleteAppDepService. # noqa: E501 + :type dep_service_key: str + """ + if self.local_vars_configuration.client_side_validation and dep_service_key is None: # noqa: E501 + raise ValueError("Invalid value for `dep_service_key`, must not be `None`") # noqa: E501 + + self._dep_service_key = dep_service_key + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AppsStoreAppVersionTempleteAppDepService): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AppsStoreAppVersionTempleteAppDepService): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_app_env.py b/openapi_client/models/apps_store_app_version_templete_app_env.py new file mode 100644 index 0000000..16f1418 --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_app_env.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempleteAppEnv(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'attr_name': 'str', + 'attr_value': 'str', + 'is_change': 'bool', + 'name': 'str' + } + + attribute_map = { + 'attr_name': 'attr_name', + 'attr_value': 'attr_value', + 'is_change': 'is_change', + 'name': 'name' + } + + def __init__(self, attr_name=None, attr_value=None, is_change=None, name=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempleteAppEnv - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._attr_name = None + self._attr_value = None + self._is_change = None + self._name = None + self.discriminator = None + + self.attr_name = attr_name + self.attr_value = attr_value + self.is_change = is_change + self.name = name + + @property + def attr_name(self): + """Gets the attr_name of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + + + :return: The attr_name of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + :rtype: str + """ + return self._attr_name + + @attr_name.setter + def attr_name(self, attr_name): + """Sets the attr_name of this AppsStoreAppVersionTempleteAppEnv. + + + :param attr_name: The attr_name of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + :type attr_name: str + """ + if self.local_vars_configuration.client_side_validation and attr_name is None: # noqa: E501 + raise ValueError("Invalid value for `attr_name`, must not be `None`") # noqa: E501 + + self._attr_name = attr_name + + @property + def attr_value(self): + """Gets the attr_value of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + + + :return: The attr_value of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + :rtype: str + """ + return self._attr_value + + @attr_value.setter + def attr_value(self, attr_value): + """Sets the attr_value of this AppsStoreAppVersionTempleteAppEnv. + + + :param attr_value: The attr_value of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + :type attr_value: str + """ + if self.local_vars_configuration.client_side_validation and attr_value is None: # noqa: E501 + raise ValueError("Invalid value for `attr_value`, must not be `None`") # noqa: E501 + + self._attr_value = attr_value + + @property + def is_change(self): + """Gets the is_change of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + + + :return: The is_change of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + :rtype: bool + """ + return self._is_change + + @is_change.setter + def is_change(self, is_change): + """Sets the is_change of this AppsStoreAppVersionTempleteAppEnv. + + + :param is_change: The is_change of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + :type is_change: bool + """ + if self.local_vars_configuration.client_side_validation and is_change is None: # noqa: E501 + raise ValueError("Invalid value for `is_change`, must not be `None`") # noqa: E501 + + self._is_change = is_change + + @property + def name(self): + """Gets the name of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + + + :return: The name of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AppsStoreAppVersionTempleteAppEnv. + + + :param name: The name of this AppsStoreAppVersionTempleteAppEnv. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AppsStoreAppVersionTempleteAppEnv): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AppsStoreAppVersionTempleteAppEnv): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_app_extend_method_rule.py b/openapi_client/models/apps_store_app_version_templete_app_extend_method_rule.py new file mode 100644 index 0000000..b0afd3b --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_app_extend_method_rule.py @@ -0,0 +1,284 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempleteAppExtendMethodRule(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'is_restart': 'int', + 'max_memory': 'int', + 'max_node': 'int', + 'min_memory': 'int', + 'min_node': 'int', + 'step_memory': 'int', + 'step_node': 'int' + } + + attribute_map = { + 'is_restart': 'is_restart', + 'max_memory': 'max_memory', + 'max_node': 'max_node', + 'min_memory': 'min_memory', + 'min_node': 'min_node', + 'step_memory': 'step_memory', + 'step_node': 'step_node' + } + + def __init__(self, is_restart=None, max_memory=None, max_node=None, min_memory=None, min_node=None, step_memory=None, step_node=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempleteAppExtendMethodRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._is_restart = None + self._max_memory = None + self._max_node = None + self._min_memory = None + self._min_node = None + self._step_memory = None + self._step_node = None + self.discriminator = None + + self.is_restart = is_restart + self.max_memory = max_memory + self.max_node = max_node + self.min_memory = min_memory + self.min_node = min_node + self.step_memory = step_memory + self.step_node = step_node + + @property + def is_restart(self): + """Gets the is_restart of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The is_restart of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._is_restart + + @is_restart.setter + def is_restart(self, is_restart): + """Sets the is_restart of this AppsStoreAppVersionTempleteAppExtendMethodRule. + + + :param is_restart: The is_restart of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type is_restart: int + """ + if self.local_vars_configuration.client_side_validation and is_restart is None: # noqa: E501 + raise ValueError("Invalid value for `is_restart`, must not be `None`") # noqa: E501 + + self._is_restart = is_restart + + @property + def max_memory(self): + """Gets the max_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The max_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._max_memory + + @max_memory.setter + def max_memory(self, max_memory): + """Sets the max_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. + + + :param max_memory: The max_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type max_memory: int + """ + if self.local_vars_configuration.client_side_validation and max_memory is None: # noqa: E501 + raise ValueError("Invalid value for `max_memory`, must not be `None`") # noqa: E501 + + self._max_memory = max_memory + + @property + def max_node(self): + """Gets the max_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The max_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._max_node + + @max_node.setter + def max_node(self, max_node): + """Sets the max_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. + + + :param max_node: The max_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type max_node: int + """ + if self.local_vars_configuration.client_side_validation and max_node is None: # noqa: E501 + raise ValueError("Invalid value for `max_node`, must not be `None`") # noqa: E501 + + self._max_node = max_node + + @property + def min_memory(self): + """Gets the min_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The min_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._min_memory + + @min_memory.setter + def min_memory(self, min_memory): + """Sets the min_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. + + + :param min_memory: The min_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type min_memory: int + """ + if self.local_vars_configuration.client_side_validation and min_memory is None: # noqa: E501 + raise ValueError("Invalid value for `min_memory`, must not be `None`") # noqa: E501 + + self._min_memory = min_memory + + @property + def min_node(self): + """Gets the min_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The min_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._min_node + + @min_node.setter + def min_node(self, min_node): + """Sets the min_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. + + + :param min_node: The min_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type min_node: int + """ + if self.local_vars_configuration.client_side_validation and min_node is None: # noqa: E501 + raise ValueError("Invalid value for `min_node`, must not be `None`") # noqa: E501 + + self._min_node = min_node + + @property + def step_memory(self): + """Gets the step_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The step_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._step_memory + + @step_memory.setter + def step_memory(self, step_memory): + """Sets the step_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. + + + :param step_memory: The step_memory of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type step_memory: int + """ + if self.local_vars_configuration.client_side_validation and step_memory is None: # noqa: E501 + raise ValueError("Invalid value for `step_memory`, must not be `None`") # noqa: E501 + + self._step_memory = step_memory + + @property + def step_node(self): + """Gets the step_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The step_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._step_node + + @step_node.setter + def step_node(self, step_node): + """Sets the step_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. + + + :param step_node: The step_node of this AppsStoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type step_node: int + """ + if self.local_vars_configuration.client_side_validation and step_node is None: # noqa: E501 + raise ValueError("Invalid value for `step_node`, must not be `None`") # noqa: E501 + + self._step_node = step_node + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AppsStoreAppVersionTempleteAppExtendMethodRule): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AppsStoreAppVersionTempleteAppExtendMethodRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_app_plugin_config.py b/openapi_client/models/apps_store_app_version_templete_app_plugin_config.py new file mode 100644 index 0000000..72f74c3 --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_app_plugin_config.py @@ -0,0 +1,338 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempleteAppPluginConfig(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'int', + 'attr': 'list[object]', + 'build_version': 'str', + 'create_time': 'str', + 'plugin_id': 'str', + 'plugin_key': 'str', + 'plugin_status': 'bool', + 'service_id': 'str', + 'service_meta_type': 'str' + } + + attribute_map = { + 'id': 'ID', + 'attr': 'attr', + 'build_version': 'build_version', + 'create_time': 'create_time', + 'plugin_id': 'plugin_id', + 'plugin_key': 'plugin_key', + 'plugin_status': 'plugin_status', + 'service_id': 'service_id', + 'service_meta_type': 'service_meta_type' + } + + def __init__(self, id=None, attr=None, build_version=None, create_time=None, plugin_id=None, plugin_key=None, plugin_status=None, service_id=None, service_meta_type=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempleteAppPluginConfig - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._id = None + self._attr = None + self._build_version = None + self._create_time = None + self._plugin_id = None + self._plugin_key = None + self._plugin_status = None + self._service_id = None + self._service_meta_type = None + self.discriminator = None + + self.id = id + self.attr = attr + self.build_version = build_version + self.create_time = create_time + self.plugin_id = plugin_id + self.plugin_key = plugin_key + self.plugin_status = plugin_status + self.service_id = service_id + self.service_meta_type = service_meta_type + + @property + def id(self): + """Gets the id of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The id of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AppsStoreAppVersionTempleteAppPluginConfig. + + + :param id: The id of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type id: int + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def attr(self): + """Gets the attr of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The attr of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: list[object] + """ + return self._attr + + @attr.setter + def attr(self, attr): + """Sets the attr of this AppsStoreAppVersionTempleteAppPluginConfig. + + + :param attr: The attr of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type attr: list[object] + """ + if self.local_vars_configuration.client_side_validation and attr is None: # noqa: E501 + raise ValueError("Invalid value for `attr`, must not be `None`") # noqa: E501 + + self._attr = attr + + @property + def build_version(self): + """Gets the build_version of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The build_version of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._build_version + + @build_version.setter + def build_version(self, build_version): + """Sets the build_version of this AppsStoreAppVersionTempleteAppPluginConfig. + + + :param build_version: The build_version of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type build_version: str + """ + if self.local_vars_configuration.client_side_validation and build_version is None: # noqa: E501 + raise ValueError("Invalid value for `build_version`, must not be `None`") # noqa: E501 + + self._build_version = build_version + + @property + def create_time(self): + """Gets the create_time of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The create_time of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this AppsStoreAppVersionTempleteAppPluginConfig. + + + :param create_time: The create_time of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type create_time: str + """ + if self.local_vars_configuration.client_side_validation and create_time is None: # noqa: E501 + raise ValueError("Invalid value for `create_time`, must not be `None`") # noqa: E501 + + self._create_time = create_time + + @property + def plugin_id(self): + """Gets the plugin_id of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The plugin_id of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._plugin_id + + @plugin_id.setter + def plugin_id(self, plugin_id): + """Sets the plugin_id of this AppsStoreAppVersionTempleteAppPluginConfig. + + + :param plugin_id: The plugin_id of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type plugin_id: str + """ + if self.local_vars_configuration.client_side_validation and plugin_id is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_id`, must not be `None`") # noqa: E501 + + self._plugin_id = plugin_id + + @property + def plugin_key(self): + """Gets the plugin_key of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The plugin_key of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._plugin_key + + @plugin_key.setter + def plugin_key(self, plugin_key): + """Sets the plugin_key of this AppsStoreAppVersionTempleteAppPluginConfig. + + + :param plugin_key: The plugin_key of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type plugin_key: str + """ + if self.local_vars_configuration.client_side_validation and plugin_key is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_key`, must not be `None`") # noqa: E501 + + self._plugin_key = plugin_key + + @property + def plugin_status(self): + """Gets the plugin_status of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The plugin_status of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: bool + """ + return self._plugin_status + + @plugin_status.setter + def plugin_status(self, plugin_status): + """Sets the plugin_status of this AppsStoreAppVersionTempleteAppPluginConfig. + + + :param plugin_status: The plugin_status of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type plugin_status: bool + """ + if self.local_vars_configuration.client_side_validation and plugin_status is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_status`, must not be `None`") # noqa: E501 + + self._plugin_status = plugin_status + + @property + def service_id(self): + """Gets the service_id of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The service_id of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._service_id + + @service_id.setter + def service_id(self, service_id): + """Sets the service_id of this AppsStoreAppVersionTempleteAppPluginConfig. + + + :param service_id: The service_id of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type service_id: str + """ + if self.local_vars_configuration.client_side_validation and service_id is None: # noqa: E501 + raise ValueError("Invalid value for `service_id`, must not be `None`") # noqa: E501 + + self._service_id = service_id + + @property + def service_meta_type(self): + """Gets the service_meta_type of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The service_meta_type of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._service_meta_type + + @service_meta_type.setter + def service_meta_type(self, service_meta_type): + """Sets the service_meta_type of this AppsStoreAppVersionTempleteAppPluginConfig. + + + :param service_meta_type: The service_meta_type of this AppsStoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type service_meta_type: str + """ + if self.local_vars_configuration.client_side_validation and service_meta_type is None: # noqa: E501 + raise ValueError("Invalid value for `service_meta_type`, must not be `None`") # noqa: E501 + + self._service_meta_type = service_meta_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AppsStoreAppVersionTempleteAppPluginConfig): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AppsStoreAppVersionTempleteAppPluginConfig): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_app_port.py b/openapi_client/models/apps_store_app_version_templete_app_port.py new file mode 100644 index 0000000..d1f8c48 --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_app_port.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempleteAppPort(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'container_port': 'int', + 'is_inner_service': 'bool', + 'is_outer_service': 'bool', + 'port_alias': 'str', + 'protocol': 'str', + 'tenant_id': 'str' + } + + attribute_map = { + 'container_port': 'container_port', + 'is_inner_service': 'is_inner_service', + 'is_outer_service': 'is_outer_service', + 'port_alias': 'port_alias', + 'protocol': 'protocol', + 'tenant_id': 'tenant_id' + } + + def __init__(self, container_port=None, is_inner_service=None, is_outer_service=None, port_alias=None, protocol=None, tenant_id=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempleteAppPort - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._container_port = None + self._is_inner_service = None + self._is_outer_service = None + self._port_alias = None + self._protocol = None + self._tenant_id = None + self.discriminator = None + + self.container_port = container_port + self.is_inner_service = is_inner_service + self.is_outer_service = is_outer_service + self.port_alias = port_alias + self.protocol = protocol + self.tenant_id = tenant_id + + @property + def container_port(self): + """Gets the container_port of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The container_port of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: int + """ + return self._container_port + + @container_port.setter + def container_port(self, container_port): + """Sets the container_port of this AppsStoreAppVersionTempleteAppPort. + + + :param container_port: The container_port of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :type container_port: int + """ + if self.local_vars_configuration.client_side_validation and container_port is None: # noqa: E501 + raise ValueError("Invalid value for `container_port`, must not be `None`") # noqa: E501 + + self._container_port = container_port + + @property + def is_inner_service(self): + """Gets the is_inner_service of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The is_inner_service of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: bool + """ + return self._is_inner_service + + @is_inner_service.setter + def is_inner_service(self, is_inner_service): + """Sets the is_inner_service of this AppsStoreAppVersionTempleteAppPort. + + + :param is_inner_service: The is_inner_service of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :type is_inner_service: bool + """ + if self.local_vars_configuration.client_side_validation and is_inner_service is None: # noqa: E501 + raise ValueError("Invalid value for `is_inner_service`, must not be `None`") # noqa: E501 + + self._is_inner_service = is_inner_service + + @property + def is_outer_service(self): + """Gets the is_outer_service of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The is_outer_service of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: bool + """ + return self._is_outer_service + + @is_outer_service.setter + def is_outer_service(self, is_outer_service): + """Sets the is_outer_service of this AppsStoreAppVersionTempleteAppPort. + + + :param is_outer_service: The is_outer_service of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :type is_outer_service: bool + """ + if self.local_vars_configuration.client_side_validation and is_outer_service is None: # noqa: E501 + raise ValueError("Invalid value for `is_outer_service`, must not be `None`") # noqa: E501 + + self._is_outer_service = is_outer_service + + @property + def port_alias(self): + """Gets the port_alias of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The port_alias of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: str + """ + return self._port_alias + + @port_alias.setter + def port_alias(self, port_alias): + """Sets the port_alias of this AppsStoreAppVersionTempleteAppPort. + + + :param port_alias: The port_alias of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :type port_alias: str + """ + if self.local_vars_configuration.client_side_validation and port_alias is None: # noqa: E501 + raise ValueError("Invalid value for `port_alias`, must not be `None`") # noqa: E501 + + self._port_alias = port_alias + + @property + def protocol(self): + """Gets the protocol of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The protocol of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this AppsStoreAppVersionTempleteAppPort. + + + :param protocol: The protocol of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :type protocol: str + """ + if self.local_vars_configuration.client_side_validation and protocol is None: # noqa: E501 + raise ValueError("Invalid value for `protocol`, must not be `None`") # noqa: E501 + + self._protocol = protocol + + @property + def tenant_id(self): + """Gets the tenant_id of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The tenant_id of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: str + """ + return self._tenant_id + + @tenant_id.setter + def tenant_id(self, tenant_id): + """Sets the tenant_id of this AppsStoreAppVersionTempleteAppPort. + + + :param tenant_id: The tenant_id of this AppsStoreAppVersionTempleteAppPort. # noqa: E501 + :type tenant_id: str + """ + if self.local_vars_configuration.client_side_validation and tenant_id is None: # noqa: E501 + raise ValueError("Invalid value for `tenant_id`, must not be `None`") # noqa: E501 + + self._tenant_id = tenant_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AppsStoreAppVersionTempleteAppPort): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AppsStoreAppVersionTempleteAppPort): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_app_probe.py b/openapi_client/models/apps_store_app_version_templete_app_probe.py new file mode 100644 index 0000000..b62ca7b --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_app_probe.py @@ -0,0 +1,500 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempleteAppProbe(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'int', + 'cmd': 'str', + 'failure_threshold': 'int', + 'http_header': 'str', + 'initial_delay_second': 'int', + 'is_used': 'bool', + 'mode': 'str', + 'path': 'str', + 'period_second': 'int', + 'port': 'int', + 'probe_id': 'str', + 'scheme': 'str', + 'service_id': 'str', + 'success_threshold': 'int', + 'timeout_second': 'int' + } + + attribute_map = { + 'id': 'ID', + 'cmd': 'cmd', + 'failure_threshold': 'failure_threshold', + 'http_header': 'http_header', + 'initial_delay_second': 'initial_delay_second', + 'is_used': 'is_used', + 'mode': 'mode', + 'path': 'path', + 'period_second': 'period_second', + 'port': 'port', + 'probe_id': 'probe_id', + 'scheme': 'scheme', + 'service_id': 'service_id', + 'success_threshold': 'success_threshold', + 'timeout_second': 'timeout_second' + } + + def __init__(self, id=None, cmd=None, failure_threshold=None, http_header=None, initial_delay_second=None, is_used=None, mode=None, path=None, period_second=None, port=None, probe_id=None, scheme=None, service_id=None, success_threshold=None, timeout_second=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempleteAppProbe - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._id = None + self._cmd = None + self._failure_threshold = None + self._http_header = None + self._initial_delay_second = None + self._is_used = None + self._mode = None + self._path = None + self._period_second = None + self._port = None + self._probe_id = None + self._scheme = None + self._service_id = None + self._success_threshold = None + self._timeout_second = None + self.discriminator = None + + self.id = id + self.cmd = cmd + self.failure_threshold = failure_threshold + self.http_header = http_header + self.initial_delay_second = initial_delay_second + self.is_used = is_used + self.mode = mode + self.path = path + self.period_second = period_second + self.port = port + self.probe_id = probe_id + self.scheme = scheme + self.service_id = service_id + self.success_threshold = success_threshold + self.timeout_second = timeout_second + + @property + def id(self): + """Gets the id of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The id of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AppsStoreAppVersionTempleteAppProbe. + + + :param id: The id of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type id: int + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def cmd(self): + """Gets the cmd of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The cmd of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._cmd + + @cmd.setter + def cmd(self, cmd): + """Sets the cmd of this AppsStoreAppVersionTempleteAppProbe. + + + :param cmd: The cmd of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type cmd: str + """ + if self.local_vars_configuration.client_side_validation and cmd is None: # noqa: E501 + raise ValueError("Invalid value for `cmd`, must not be `None`") # noqa: E501 + + self._cmd = cmd + + @property + def failure_threshold(self): + """Gets the failure_threshold of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The failure_threshold of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._failure_threshold + + @failure_threshold.setter + def failure_threshold(self, failure_threshold): + """Sets the failure_threshold of this AppsStoreAppVersionTempleteAppProbe. + + + :param failure_threshold: The failure_threshold of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type failure_threshold: int + """ + if self.local_vars_configuration.client_side_validation and failure_threshold is None: # noqa: E501 + raise ValueError("Invalid value for `failure_threshold`, must not be `None`") # noqa: E501 + + self._failure_threshold = failure_threshold + + @property + def http_header(self): + """Gets the http_header of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The http_header of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._http_header + + @http_header.setter + def http_header(self, http_header): + """Sets the http_header of this AppsStoreAppVersionTempleteAppProbe. + + + :param http_header: The http_header of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type http_header: str + """ + if self.local_vars_configuration.client_side_validation and http_header is None: # noqa: E501 + raise ValueError("Invalid value for `http_header`, must not be `None`") # noqa: E501 + + self._http_header = http_header + + @property + def initial_delay_second(self): + """Gets the initial_delay_second of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The initial_delay_second of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._initial_delay_second + + @initial_delay_second.setter + def initial_delay_second(self, initial_delay_second): + """Sets the initial_delay_second of this AppsStoreAppVersionTempleteAppProbe. + + + :param initial_delay_second: The initial_delay_second of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type initial_delay_second: int + """ + if self.local_vars_configuration.client_side_validation and initial_delay_second is None: # noqa: E501 + raise ValueError("Invalid value for `initial_delay_second`, must not be `None`") # noqa: E501 + + self._initial_delay_second = initial_delay_second + + @property + def is_used(self): + """Gets the is_used of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The is_used of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: bool + """ + return self._is_used + + @is_used.setter + def is_used(self, is_used): + """Sets the is_used of this AppsStoreAppVersionTempleteAppProbe. + + + :param is_used: The is_used of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type is_used: bool + """ + if self.local_vars_configuration.client_side_validation and is_used is None: # noqa: E501 + raise ValueError("Invalid value for `is_used`, must not be `None`") # noqa: E501 + + self._is_used = is_used + + @property + def mode(self): + """Gets the mode of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The mode of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this AppsStoreAppVersionTempleteAppProbe. + + + :param mode: The mode of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type mode: str + """ + if self.local_vars_configuration.client_side_validation and mode is None: # noqa: E501 + raise ValueError("Invalid value for `mode`, must not be `None`") # noqa: E501 + + self._mode = mode + + @property + def path(self): + """Gets the path of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The path of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this AppsStoreAppVersionTempleteAppProbe. + + + :param path: The path of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type path: str + """ + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 + + self._path = path + + @property + def period_second(self): + """Gets the period_second of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The period_second of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._period_second + + @period_second.setter + def period_second(self, period_second): + """Sets the period_second of this AppsStoreAppVersionTempleteAppProbe. + + + :param period_second: The period_second of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type period_second: int + """ + if self.local_vars_configuration.client_side_validation and period_second is None: # noqa: E501 + raise ValueError("Invalid value for `period_second`, must not be `None`") # noqa: E501 + + self._period_second = period_second + + @property + def port(self): + """Gets the port of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The port of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this AppsStoreAppVersionTempleteAppProbe. + + + :param port: The port of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type port: int + """ + if self.local_vars_configuration.client_side_validation and port is None: # noqa: E501 + raise ValueError("Invalid value for `port`, must not be `None`") # noqa: E501 + + self._port = port + + @property + def probe_id(self): + """Gets the probe_id of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The probe_id of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._probe_id + + @probe_id.setter + def probe_id(self, probe_id): + """Sets the probe_id of this AppsStoreAppVersionTempleteAppProbe. + + + :param probe_id: The probe_id of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type probe_id: str + """ + if self.local_vars_configuration.client_side_validation and probe_id is None: # noqa: E501 + raise ValueError("Invalid value for `probe_id`, must not be `None`") # noqa: E501 + + self._probe_id = probe_id + + @property + def scheme(self): + """Gets the scheme of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The scheme of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._scheme + + @scheme.setter + def scheme(self, scheme): + """Sets the scheme of this AppsStoreAppVersionTempleteAppProbe. + + + :param scheme: The scheme of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type scheme: str + """ + if self.local_vars_configuration.client_side_validation and scheme is None: # noqa: E501 + raise ValueError("Invalid value for `scheme`, must not be `None`") # noqa: E501 + + self._scheme = scheme + + @property + def service_id(self): + """Gets the service_id of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The service_id of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._service_id + + @service_id.setter + def service_id(self, service_id): + """Sets the service_id of this AppsStoreAppVersionTempleteAppProbe. + + + :param service_id: The service_id of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type service_id: str + """ + if self.local_vars_configuration.client_side_validation and service_id is None: # noqa: E501 + raise ValueError("Invalid value for `service_id`, must not be `None`") # noqa: E501 + + self._service_id = service_id + + @property + def success_threshold(self): + """Gets the success_threshold of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The success_threshold of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._success_threshold + + @success_threshold.setter + def success_threshold(self, success_threshold): + """Sets the success_threshold of this AppsStoreAppVersionTempleteAppProbe. + + + :param success_threshold: The success_threshold of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type success_threshold: int + """ + if self.local_vars_configuration.client_side_validation and success_threshold is None: # noqa: E501 + raise ValueError("Invalid value for `success_threshold`, must not be `None`") # noqa: E501 + + self._success_threshold = success_threshold + + @property + def timeout_second(self): + """Gets the timeout_second of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The timeout_second of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._timeout_second + + @timeout_second.setter + def timeout_second(self, timeout_second): + """Sets the timeout_second of this AppsStoreAppVersionTempleteAppProbe. + + + :param timeout_second: The timeout_second of this AppsStoreAppVersionTempleteAppProbe. # noqa: E501 + :type timeout_second: int + """ + if self.local_vars_configuration.client_side_validation and timeout_second is None: # noqa: E501 + raise ValueError("Invalid value for `timeout_second`, must not be `None`") # noqa: E501 + + self._timeout_second = timeout_second + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AppsStoreAppVersionTempleteAppProbe): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AppsStoreAppVersionTempleteAppProbe): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_app_share_volume.py b/openapi_client/models/apps_store_app_version_templete_app_share_volume.py new file mode 100644 index 0000000..54825a9 --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_app_share_volume.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempleteAppShareVolume(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'mnt_dir': 'str', + 'mnt_name': 'str', + 'service_share_uuid': 'str' + } + + attribute_map = { + 'mnt_dir': 'mnt_dir', + 'mnt_name': 'mnt_name', + 'service_share_uuid': 'service_share_uuid' + } + + def __init__(self, mnt_dir=None, mnt_name=None, service_share_uuid=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempleteAppShareVolume - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._mnt_dir = None + self._mnt_name = None + self._service_share_uuid = None + self.discriminator = None + + self.mnt_dir = mnt_dir + self.mnt_name = mnt_name + self.service_share_uuid = service_share_uuid + + @property + def mnt_dir(self): + """Gets the mnt_dir of this AppsStoreAppVersionTempleteAppShareVolume. # noqa: E501 + + + :return: The mnt_dir of this AppsStoreAppVersionTempleteAppShareVolume. # noqa: E501 + :rtype: str + """ + return self._mnt_dir + + @mnt_dir.setter + def mnt_dir(self, mnt_dir): + """Sets the mnt_dir of this AppsStoreAppVersionTempleteAppShareVolume. + + + :param mnt_dir: The mnt_dir of this AppsStoreAppVersionTempleteAppShareVolume. # noqa: E501 + :type mnt_dir: str + """ + if self.local_vars_configuration.client_side_validation and mnt_dir is None: # noqa: E501 + raise ValueError("Invalid value for `mnt_dir`, must not be `None`") # noqa: E501 + + self._mnt_dir = mnt_dir + + @property + def mnt_name(self): + """Gets the mnt_name of this AppsStoreAppVersionTempleteAppShareVolume. # noqa: E501 + + + :return: The mnt_name of this AppsStoreAppVersionTempleteAppShareVolume. # noqa: E501 + :rtype: str + """ + return self._mnt_name + + @mnt_name.setter + def mnt_name(self, mnt_name): + """Sets the mnt_name of this AppsStoreAppVersionTempleteAppShareVolume. + + + :param mnt_name: The mnt_name of this AppsStoreAppVersionTempleteAppShareVolume. # noqa: E501 + :type mnt_name: str + """ + if self.local_vars_configuration.client_side_validation and mnt_name is None: # noqa: E501 + raise ValueError("Invalid value for `mnt_name`, must not be `None`") # noqa: E501 + + self._mnt_name = mnt_name + + @property + def service_share_uuid(self): + """Gets the service_share_uuid of this AppsStoreAppVersionTempleteAppShareVolume. # noqa: E501 + + + :return: The service_share_uuid of this AppsStoreAppVersionTempleteAppShareVolume. # noqa: E501 + :rtype: str + """ + return self._service_share_uuid + + @service_share_uuid.setter + def service_share_uuid(self, service_share_uuid): + """Sets the service_share_uuid of this AppsStoreAppVersionTempleteAppShareVolume. + + + :param service_share_uuid: The service_share_uuid of this AppsStoreAppVersionTempleteAppShareVolume. # noqa: E501 + :type service_share_uuid: str + """ + if self.local_vars_configuration.client_side_validation and service_share_uuid is None: # noqa: E501 + raise ValueError("Invalid value for `service_share_uuid`, must not be `None`") # noqa: E501 + + self._service_share_uuid = service_share_uuid + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AppsStoreAppVersionTempleteAppShareVolume): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AppsStoreAppVersionTempleteAppShareVolume): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_app_volume.py b/openapi_client/models/apps_store_app_version_templete_app_volume.py new file mode 100644 index 0000000..0545f01 --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_app_volume.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempleteAppVolume(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'access_mode': 'str', + 'file_content': 'str', + 'volume_capacity': 'int', + 'volume_name': 'str', + 'volume_path': 'str', + 'volume_type': 'str' + } + + attribute_map = { + 'access_mode': 'access_mode', + 'file_content': 'file_content', + 'volume_capacity': 'volume_capacity', + 'volume_name': 'volume_name', + 'volume_path': 'volume_path', + 'volume_type': 'volume_type' + } + + def __init__(self, access_mode=None, file_content=None, volume_capacity=None, volume_name=None, volume_path=None, volume_type=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempleteAppVolume - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._access_mode = None + self._file_content = None + self._volume_capacity = None + self._volume_name = None + self._volume_path = None + self._volume_type = None + self.discriminator = None + + self.access_mode = access_mode + self.file_content = file_content + self.volume_capacity = volume_capacity + self.volume_name = volume_name + self.volume_path = volume_path + self.volume_type = volume_type + + @property + def access_mode(self): + """Gets the access_mode of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The access_mode of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: str + """ + return self._access_mode + + @access_mode.setter + def access_mode(self, access_mode): + """Sets the access_mode of this AppsStoreAppVersionTempleteAppVolume. + + + :param access_mode: The access_mode of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :type access_mode: str + """ + if self.local_vars_configuration.client_side_validation and access_mode is None: # noqa: E501 + raise ValueError("Invalid value for `access_mode`, must not be `None`") # noqa: E501 + + self._access_mode = access_mode + + @property + def file_content(self): + """Gets the file_content of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The file_content of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: str + """ + return self._file_content + + @file_content.setter + def file_content(self, file_content): + """Sets the file_content of this AppsStoreAppVersionTempleteAppVolume. + + + :param file_content: The file_content of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :type file_content: str + """ + if self.local_vars_configuration.client_side_validation and file_content is None: # noqa: E501 + raise ValueError("Invalid value for `file_content`, must not be `None`") # noqa: E501 + + self._file_content = file_content + + @property + def volume_capacity(self): + """Gets the volume_capacity of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The volume_capacity of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: int + """ + return self._volume_capacity + + @volume_capacity.setter + def volume_capacity(self, volume_capacity): + """Sets the volume_capacity of this AppsStoreAppVersionTempleteAppVolume. + + + :param volume_capacity: The volume_capacity of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :type volume_capacity: int + """ + if self.local_vars_configuration.client_side_validation and volume_capacity is None: # noqa: E501 + raise ValueError("Invalid value for `volume_capacity`, must not be `None`") # noqa: E501 + + self._volume_capacity = volume_capacity + + @property + def volume_name(self): + """Gets the volume_name of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The volume_name of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """Sets the volume_name of this AppsStoreAppVersionTempleteAppVolume. + + + :param volume_name: The volume_name of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :type volume_name: str + """ + if self.local_vars_configuration.client_side_validation and volume_name is None: # noqa: E501 + raise ValueError("Invalid value for `volume_name`, must not be `None`") # noqa: E501 + + self._volume_name = volume_name + + @property + def volume_path(self): + """Gets the volume_path of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The volume_path of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: str + """ + return self._volume_path + + @volume_path.setter + def volume_path(self, volume_path): + """Sets the volume_path of this AppsStoreAppVersionTempleteAppVolume. + + + :param volume_path: The volume_path of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :type volume_path: str + """ + if self.local_vars_configuration.client_side_validation and volume_path is None: # noqa: E501 + raise ValueError("Invalid value for `volume_path`, must not be `None`") # noqa: E501 + + self._volume_path = volume_path + + @property + def volume_type(self): + """Gets the volume_type of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The volume_type of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: str + """ + return self._volume_type + + @volume_type.setter + def volume_type(self, volume_type): + """Sets the volume_type of this AppsStoreAppVersionTempleteAppVolume. + + + :param volume_type: The volume_type of this AppsStoreAppVersionTempleteAppVolume. # noqa: E501 + :type volume_type: str + """ + if self.local_vars_configuration.client_side_validation and volume_type is None: # noqa: E501 + raise ValueError("Invalid value for `volume_type`, must not be `None`") # noqa: E501 + + self._volume_type = volume_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AppsStoreAppVersionTempleteAppVolume): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AppsStoreAppVersionTempleteAppVolume): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_plugin.py b/openapi_client/models/apps_store_app_version_templete_plugin.py new file mode 100644 index 0000000..1c43847 --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_plugin.py @@ -0,0 +1,553 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempletePlugin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'int', + 'build_source': 'str', + 'build_version': 'str', + 'category': 'str', + 'code_repo': 'str', + 'config_groups': 'list[AppsStoreAppVersionTempletePluginConfigGroup]', + 'create_time': 'str', + 'desc': 'str', + 'image': 'str', + 'origin': 'str', + 'origin_share_id': 'str', + 'plugin_alias': 'str', + 'plugin_id': 'str', + 'plugin_image': 'AppsImageInfo', + 'plugin_key': 'str', + 'plugin_name': 'str', + 'share_image': 'str' + } + + attribute_map = { + 'id': 'ID', + 'build_source': 'build_source', + 'build_version': 'build_version', + 'category': 'category', + 'code_repo': 'code_repo', + 'config_groups': 'config_groups', + 'create_time': 'create_time', + 'desc': 'desc', + 'image': 'image', + 'origin': 'origin', + 'origin_share_id': 'origin_share_id', + 'plugin_alias': 'plugin_alias', + 'plugin_id': 'plugin_id', + 'plugin_image': 'plugin_image', + 'plugin_key': 'plugin_key', + 'plugin_name': 'plugin_name', + 'share_image': 'share_image' + } + + def __init__(self, id=None, build_source=None, build_version=None, category=None, code_repo=None, config_groups=None, create_time=None, desc=None, image=None, origin=None, origin_share_id=None, plugin_alias=None, plugin_id=None, plugin_image=None, plugin_key=None, plugin_name=None, share_image=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempletePlugin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._id = None + self._build_source = None + self._build_version = None + self._category = None + self._code_repo = None + self._config_groups = None + self._create_time = None + self._desc = None + self._image = None + self._origin = None + self._origin_share_id = None + self._plugin_alias = None + self._plugin_id = None + self._plugin_image = None + self._plugin_key = None + self._plugin_name = None + self._share_image = None + self.discriminator = None + + self.id = id + self.build_source = build_source + self.build_version = build_version + self.category = category + self.code_repo = code_repo + if config_groups is not None: + self.config_groups = config_groups + self.create_time = create_time + self.desc = desc + self.image = image + self.origin = origin + self.origin_share_id = origin_share_id + self.plugin_alias = plugin_alias + self.plugin_id = plugin_id + self.plugin_image = plugin_image + self.plugin_key = plugin_key + self.plugin_name = plugin_name + self.share_image = share_image + + @property + def id(self): + """Gets the id of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The id of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AppsStoreAppVersionTempletePlugin. + + + :param id: The id of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type id: int + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def build_source(self): + """Gets the build_source of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The build_source of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._build_source + + @build_source.setter + def build_source(self, build_source): + """Sets the build_source of this AppsStoreAppVersionTempletePlugin. + + + :param build_source: The build_source of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type build_source: str + """ + if self.local_vars_configuration.client_side_validation and build_source is None: # noqa: E501 + raise ValueError("Invalid value for `build_source`, must not be `None`") # noqa: E501 + + self._build_source = build_source + + @property + def build_version(self): + """Gets the build_version of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The build_version of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._build_version + + @build_version.setter + def build_version(self, build_version): + """Sets the build_version of this AppsStoreAppVersionTempletePlugin. + + + :param build_version: The build_version of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type build_version: str + """ + if self.local_vars_configuration.client_side_validation and build_version is None: # noqa: E501 + raise ValueError("Invalid value for `build_version`, must not be `None`") # noqa: E501 + + self._build_version = build_version + + @property + def category(self): + """Gets the category of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The category of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this AppsStoreAppVersionTempletePlugin. + + + :param category: The category of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type category: str + """ + if self.local_vars_configuration.client_side_validation and category is None: # noqa: E501 + raise ValueError("Invalid value for `category`, must not be `None`") # noqa: E501 + + self._category = category + + @property + def code_repo(self): + """Gets the code_repo of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The code_repo of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._code_repo + + @code_repo.setter + def code_repo(self, code_repo): + """Sets the code_repo of this AppsStoreAppVersionTempletePlugin. + + + :param code_repo: The code_repo of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type code_repo: str + """ + if self.local_vars_configuration.client_side_validation and code_repo is None: # noqa: E501 + raise ValueError("Invalid value for `code_repo`, must not be `None`") # noqa: E501 + + self._code_repo = code_repo + + @property + def config_groups(self): + """Gets the config_groups of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The config_groups of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempletePluginConfigGroup] + """ + return self._config_groups + + @config_groups.setter + def config_groups(self, config_groups): + """Sets the config_groups of this AppsStoreAppVersionTempletePlugin. + + + :param config_groups: The config_groups of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type config_groups: list[AppsStoreAppVersionTempletePluginConfigGroup] + """ + + self._config_groups = config_groups + + @property + def create_time(self): + """Gets the create_time of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The create_time of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this AppsStoreAppVersionTempletePlugin. + + + :param create_time: The create_time of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type create_time: str + """ + if self.local_vars_configuration.client_side_validation and create_time is None: # noqa: E501 + raise ValueError("Invalid value for `create_time`, must not be `None`") # noqa: E501 + + self._create_time = create_time + + @property + def desc(self): + """Gets the desc of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The desc of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._desc + + @desc.setter + def desc(self, desc): + """Sets the desc of this AppsStoreAppVersionTempletePlugin. + + + :param desc: The desc of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type desc: str + """ + if self.local_vars_configuration.client_side_validation and desc is None: # noqa: E501 + raise ValueError("Invalid value for `desc`, must not be `None`") # noqa: E501 + + self._desc = desc + + @property + def image(self): + """Gets the image of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The image of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """Sets the image of this AppsStoreAppVersionTempletePlugin. + + + :param image: The image of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type image: str + """ + if self.local_vars_configuration.client_side_validation and image is None: # noqa: E501 + raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501 + + self._image = image + + @property + def origin(self): + """Gets the origin of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The origin of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._origin + + @origin.setter + def origin(self, origin): + """Sets the origin of this AppsStoreAppVersionTempletePlugin. + + + :param origin: The origin of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type origin: str + """ + if self.local_vars_configuration.client_side_validation and origin is None: # noqa: E501 + raise ValueError("Invalid value for `origin`, must not be `None`") # noqa: E501 + + self._origin = origin + + @property + def origin_share_id(self): + """Gets the origin_share_id of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The origin_share_id of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._origin_share_id + + @origin_share_id.setter + def origin_share_id(self, origin_share_id): + """Sets the origin_share_id of this AppsStoreAppVersionTempletePlugin. + + + :param origin_share_id: The origin_share_id of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type origin_share_id: str + """ + if self.local_vars_configuration.client_side_validation and origin_share_id is None: # noqa: E501 + raise ValueError("Invalid value for `origin_share_id`, must not be `None`") # noqa: E501 + + self._origin_share_id = origin_share_id + + @property + def plugin_alias(self): + """Gets the plugin_alias of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The plugin_alias of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._plugin_alias + + @plugin_alias.setter + def plugin_alias(self, plugin_alias): + """Sets the plugin_alias of this AppsStoreAppVersionTempletePlugin. + + + :param plugin_alias: The plugin_alias of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type plugin_alias: str + """ + if self.local_vars_configuration.client_side_validation and plugin_alias is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_alias`, must not be `None`") # noqa: E501 + + self._plugin_alias = plugin_alias + + @property + def plugin_id(self): + """Gets the plugin_id of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The plugin_id of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._plugin_id + + @plugin_id.setter + def plugin_id(self, plugin_id): + """Sets the plugin_id of this AppsStoreAppVersionTempletePlugin. + + + :param plugin_id: The plugin_id of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type plugin_id: str + """ + if self.local_vars_configuration.client_side_validation and plugin_id is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_id`, must not be `None`") # noqa: E501 + + self._plugin_id = plugin_id + + @property + def plugin_image(self): + """Gets the plugin_image of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The plugin_image of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: AppsImageInfo + """ + return self._plugin_image + + @plugin_image.setter + def plugin_image(self, plugin_image): + """Sets the plugin_image of this AppsStoreAppVersionTempletePlugin. + + + :param plugin_image: The plugin_image of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type plugin_image: AppsImageInfo + """ + if self.local_vars_configuration.client_side_validation and plugin_image is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_image`, must not be `None`") # noqa: E501 + + self._plugin_image = plugin_image + + @property + def plugin_key(self): + """Gets the plugin_key of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The plugin_key of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._plugin_key + + @plugin_key.setter + def plugin_key(self, plugin_key): + """Sets the plugin_key of this AppsStoreAppVersionTempletePlugin. + + + :param plugin_key: The plugin_key of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type plugin_key: str + """ + if self.local_vars_configuration.client_side_validation and plugin_key is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_key`, must not be `None`") # noqa: E501 + + self._plugin_key = plugin_key + + @property + def plugin_name(self): + """Gets the plugin_name of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The plugin_name of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._plugin_name + + @plugin_name.setter + def plugin_name(self, plugin_name): + """Sets the plugin_name of this AppsStoreAppVersionTempletePlugin. + + + :param plugin_name: The plugin_name of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type plugin_name: str + """ + if self.local_vars_configuration.client_side_validation and plugin_name is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_name`, must not be `None`") # noqa: E501 + + self._plugin_name = plugin_name + + @property + def share_image(self): + """Gets the share_image of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The share_image of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._share_image + + @share_image.setter + def share_image(self, share_image): + """Sets the share_image of this AppsStoreAppVersionTempletePlugin. + + + :param share_image: The share_image of this AppsStoreAppVersionTempletePlugin. # noqa: E501 + :type share_image: str + """ + if self.local_vars_configuration.client_side_validation and share_image is None: # noqa: E501 + raise ValueError("Invalid value for `share_image`, must not be `None`") # noqa: E501 + + self._share_image = share_image + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AppsStoreAppVersionTempletePlugin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AppsStoreAppVersionTempletePlugin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_plugin_config_group.py b/openapi_client/models/apps_store_app_version_templete_plugin_config_group.py new file mode 100644 index 0000000..36008a2 --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_plugin_config_group.py @@ -0,0 +1,283 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempletePluginConfigGroup(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'int', + 'build_version': 'str', + 'config_name': 'str', + 'injection': 'str', + 'options': 'list[AppsStoreAppVersionTempletePluginConfigGroupOption]', + 'plugin_id': 'str', + 'service_meta_type': 'str' + } + + attribute_map = { + 'id': 'ID', + 'build_version': 'build_version', + 'config_name': 'config_name', + 'injection': 'injection', + 'options': 'options', + 'plugin_id': 'plugin_id', + 'service_meta_type': 'service_meta_type' + } + + def __init__(self, id=None, build_version=None, config_name=None, injection=None, options=None, plugin_id=None, service_meta_type=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempletePluginConfigGroup - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._id = None + self._build_version = None + self._config_name = None + self._injection = None + self._options = None + self._plugin_id = None + self._service_meta_type = None + self.discriminator = None + + self.id = id + self.build_version = build_version + self.config_name = config_name + self.injection = injection + if options is not None: + self.options = options + self.plugin_id = plugin_id + self.service_meta_type = service_meta_type + + @property + def id(self): + """Gets the id of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The id of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AppsStoreAppVersionTempletePluginConfigGroup. + + + :param id: The id of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type id: int + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def build_version(self): + """Gets the build_version of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The build_version of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: str + """ + return self._build_version + + @build_version.setter + def build_version(self, build_version): + """Sets the build_version of this AppsStoreAppVersionTempletePluginConfigGroup. + + + :param build_version: The build_version of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type build_version: str + """ + if self.local_vars_configuration.client_side_validation and build_version is None: # noqa: E501 + raise ValueError("Invalid value for `build_version`, must not be `None`") # noqa: E501 + + self._build_version = build_version + + @property + def config_name(self): + """Gets the config_name of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The config_name of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: str + """ + return self._config_name + + @config_name.setter + def config_name(self, config_name): + """Sets the config_name of this AppsStoreAppVersionTempletePluginConfigGroup. + + + :param config_name: The config_name of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type config_name: str + """ + if self.local_vars_configuration.client_side_validation and config_name is None: # noqa: E501 + raise ValueError("Invalid value for `config_name`, must not be `None`") # noqa: E501 + + self._config_name = config_name + + @property + def injection(self): + """Gets the injection of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The injection of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: str + """ + return self._injection + + @injection.setter + def injection(self, injection): + """Sets the injection of this AppsStoreAppVersionTempletePluginConfigGroup. + + + :param injection: The injection of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type injection: str + """ + if self.local_vars_configuration.client_side_validation and injection is None: # noqa: E501 + raise ValueError("Invalid value for `injection`, must not be `None`") # noqa: E501 + + self._injection = injection + + @property + def options(self): + """Gets the options of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The options of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: list[AppsStoreAppVersionTempletePluginConfigGroupOption] + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this AppsStoreAppVersionTempletePluginConfigGroup. + + + :param options: The options of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type options: list[AppsStoreAppVersionTempletePluginConfigGroupOption] + """ + + self._options = options + + @property + def plugin_id(self): + """Gets the plugin_id of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The plugin_id of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: str + """ + return self._plugin_id + + @plugin_id.setter + def plugin_id(self, plugin_id): + """Sets the plugin_id of this AppsStoreAppVersionTempletePluginConfigGroup. + + + :param plugin_id: The plugin_id of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type plugin_id: str + """ + if self.local_vars_configuration.client_side_validation and plugin_id is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_id`, must not be `None`") # noqa: E501 + + self._plugin_id = plugin_id + + @property + def service_meta_type(self): + """Gets the service_meta_type of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The service_meta_type of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: str + """ + return self._service_meta_type + + @service_meta_type.setter + def service_meta_type(self, service_meta_type): + """Sets the service_meta_type of this AppsStoreAppVersionTempletePluginConfigGroup. + + + :param service_meta_type: The service_meta_type of this AppsStoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type service_meta_type: str + """ + if self.local_vars_configuration.client_side_validation and service_meta_type is None: # noqa: E501 + raise ValueError("Invalid value for `service_meta_type`, must not be `None`") # noqa: E501 + + self._service_meta_type = service_meta_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AppsStoreAppVersionTempletePluginConfigGroup): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AppsStoreAppVersionTempletePluginConfigGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/apps_store_app_version_templete_plugin_config_group_option.py b/openapi_client/models/apps_store_app_version_templete_plugin_config_group_option.py new file mode 100644 index 0000000..5e1fd52 --- /dev/null +++ b/openapi_client/models/apps_store_app_version_templete_plugin_config_group_option.py @@ -0,0 +1,392 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class AppsStoreAppVersionTempletePluginConfigGroupOption(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'int', + 'attr_alt_value': 'str', + 'attr_default_value': 'str', + 'attr_info': 'str', + 'attr_name': 'str', + 'attr_type': 'str', + 'build_version': 'str', + 'is_change': 'bool', + 'plugin_id': 'str', + 'protocol': 'str', + 'service_meta_type': 'str' + } + + attribute_map = { + 'id': 'ID', + 'attr_alt_value': 'attr_alt_value', + 'attr_default_value': 'attr_default_value', + 'attr_info': 'attr_info', + 'attr_name': 'attr_name', + 'attr_type': 'attr_type', + 'build_version': 'build_version', + 'is_change': 'is_change', + 'plugin_id': 'plugin_id', + 'protocol': 'protocol', + 'service_meta_type': 'service_meta_type' + } + + def __init__(self, id=None, attr_alt_value=None, attr_default_value=None, attr_info=None, attr_name=None, attr_type=None, build_version=None, is_change=None, plugin_id=None, protocol=None, service_meta_type=None, local_vars_configuration=None): # noqa: E501 + """AppsStoreAppVersionTempletePluginConfigGroupOption - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._id = None + self._attr_alt_value = None + self._attr_default_value = None + self._attr_info = None + self._attr_name = None + self._attr_type = None + self._build_version = None + self._is_change = None + self._plugin_id = None + self._protocol = None + self._service_meta_type = None + self.discriminator = None + + self.id = id + self.attr_alt_value = attr_alt_value + self.attr_default_value = attr_default_value + self.attr_info = attr_info + self.attr_name = attr_name + self.attr_type = attr_type + self.build_version = build_version + self.is_change = is_change + self.plugin_id = plugin_id + self.protocol = protocol + self.service_meta_type = service_meta_type + + @property + def id(self): + """Gets the id of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The id of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AppsStoreAppVersionTempletePluginConfigGroupOption. + + + :param id: The id of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type id: int + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def attr_alt_value(self): + """Gets the attr_alt_value of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The attr_alt_value of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._attr_alt_value + + @attr_alt_value.setter + def attr_alt_value(self, attr_alt_value): + """Sets the attr_alt_value of this AppsStoreAppVersionTempletePluginConfigGroupOption. + + + :param attr_alt_value: The attr_alt_value of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type attr_alt_value: str + """ + if self.local_vars_configuration.client_side_validation and attr_alt_value is None: # noqa: E501 + raise ValueError("Invalid value for `attr_alt_value`, must not be `None`") # noqa: E501 + + self._attr_alt_value = attr_alt_value + + @property + def attr_default_value(self): + """Gets the attr_default_value of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The attr_default_value of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._attr_default_value + + @attr_default_value.setter + def attr_default_value(self, attr_default_value): + """Sets the attr_default_value of this AppsStoreAppVersionTempletePluginConfigGroupOption. + + + :param attr_default_value: The attr_default_value of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type attr_default_value: str + """ + if self.local_vars_configuration.client_side_validation and attr_default_value is None: # noqa: E501 + raise ValueError("Invalid value for `attr_default_value`, must not be `None`") # noqa: E501 + + self._attr_default_value = attr_default_value + + @property + def attr_info(self): + """Gets the attr_info of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The attr_info of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._attr_info + + @attr_info.setter + def attr_info(self, attr_info): + """Sets the attr_info of this AppsStoreAppVersionTempletePluginConfigGroupOption. + + + :param attr_info: The attr_info of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type attr_info: str + """ + if self.local_vars_configuration.client_side_validation and attr_info is None: # noqa: E501 + raise ValueError("Invalid value for `attr_info`, must not be `None`") # noqa: E501 + + self._attr_info = attr_info + + @property + def attr_name(self): + """Gets the attr_name of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The attr_name of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._attr_name + + @attr_name.setter + def attr_name(self, attr_name): + """Sets the attr_name of this AppsStoreAppVersionTempletePluginConfigGroupOption. + + + :param attr_name: The attr_name of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type attr_name: str + """ + if self.local_vars_configuration.client_side_validation and attr_name is None: # noqa: E501 + raise ValueError("Invalid value for `attr_name`, must not be `None`") # noqa: E501 + + self._attr_name = attr_name + + @property + def attr_type(self): + """Gets the attr_type of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The attr_type of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._attr_type + + @attr_type.setter + def attr_type(self, attr_type): + """Sets the attr_type of this AppsStoreAppVersionTempletePluginConfigGroupOption. + + + :param attr_type: The attr_type of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type attr_type: str + """ + if self.local_vars_configuration.client_side_validation and attr_type is None: # noqa: E501 + raise ValueError("Invalid value for `attr_type`, must not be `None`") # noqa: E501 + + self._attr_type = attr_type + + @property + def build_version(self): + """Gets the build_version of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The build_version of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._build_version + + @build_version.setter + def build_version(self, build_version): + """Sets the build_version of this AppsStoreAppVersionTempletePluginConfigGroupOption. + + + :param build_version: The build_version of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type build_version: str + """ + if self.local_vars_configuration.client_side_validation and build_version is None: # noqa: E501 + raise ValueError("Invalid value for `build_version`, must not be `None`") # noqa: E501 + + self._build_version = build_version + + @property + def is_change(self): + """Gets the is_change of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The is_change of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: bool + """ + return self._is_change + + @is_change.setter + def is_change(self, is_change): + """Sets the is_change of this AppsStoreAppVersionTempletePluginConfigGroupOption. + + + :param is_change: The is_change of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type is_change: bool + """ + if self.local_vars_configuration.client_side_validation and is_change is None: # noqa: E501 + raise ValueError("Invalid value for `is_change`, must not be `None`") # noqa: E501 + + self._is_change = is_change + + @property + def plugin_id(self): + """Gets the plugin_id of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The plugin_id of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._plugin_id + + @plugin_id.setter + def plugin_id(self, plugin_id): + """Sets the plugin_id of this AppsStoreAppVersionTempletePluginConfigGroupOption. + + + :param plugin_id: The plugin_id of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type plugin_id: str + """ + if self.local_vars_configuration.client_side_validation and plugin_id is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_id`, must not be `None`") # noqa: E501 + + self._plugin_id = plugin_id + + @property + def protocol(self): + """Gets the protocol of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The protocol of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this AppsStoreAppVersionTempletePluginConfigGroupOption. + + + :param protocol: The protocol of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type protocol: str + """ + if self.local_vars_configuration.client_side_validation and protocol is None: # noqa: E501 + raise ValueError("Invalid value for `protocol`, must not be `None`") # noqa: E501 + + self._protocol = protocol + + @property + def service_meta_type(self): + """Gets the service_meta_type of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The service_meta_type of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._service_meta_type + + @service_meta_type.setter + def service_meta_type(self, service_meta_type): + """Sets the service_meta_type of this AppsStoreAppVersionTempletePluginConfigGroupOption. + + + :param service_meta_type: The service_meta_type of this AppsStoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type service_meta_type: str + """ + if self.local_vars_configuration.client_side_validation and service_meta_type is None: # noqa: E501 + raise ValueError("Invalid value for `service_meta_type`, must not be `None`") # noqa: E501 + + self._service_meta_type = service_meta_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AppsStoreAppVersionTempletePluginConfigGroupOption): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AppsStoreAppVersionTempletePluginConfigGroupOption): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/controller_result.py b/openapi_client/models/controller_result.py index 889ffa4..450e388 100644 --- a/openapi_client/models/controller_result.py +++ b/openapi_client/models/controller_result.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/restfulutil_result.py b/openapi_client/models/restfulutil_result.py index 7519f4b..70f3e7c 100644 --- a/openapi_client/models/restfulutil_result.py +++ b/openapi_client/models/restfulutil_result.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1_app_base_info.py b/openapi_client/models/v1_app_base_info.py index 9b06f0a..766400c 100644 --- a/openapi_client/models/v1_app_base_info.py +++ b/openapi_client/models/v1_app_base_info.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -34,12 +33,16 @@ class V1AppBaseInfo(object): and the value is json key in definition. """ openapi_types = { + 'app_classifications': 'list[V1AppClassifications]', 'app_detail_url': 'str', 'app_key_id': 'str', 'create_time': 'datetime', 'desc': 'str', 'dev_status': 'str', 'download_count': 'int', + 'effect': 'str', + 'features': 'str', + 'functional': 'str', 'install_count': 'int', 'introduction': 'str', 'introduction_html': 'str', @@ -49,8 +52,11 @@ class V1AppBaseInfo(object): 'market_name': 'str', 'market_url': 'str', 'name': 'str', + 'phone': 'str', 'publish_type': 'str', 'publish_user': 'str', + 'quote': 'str', + 'real_name': 'str', 'show_count': 'int', 'start_count': 'int', 'status': 'str', @@ -60,12 +66,16 @@ class V1AppBaseInfo(object): } attribute_map = { + 'app_classifications': 'appClassifications', 'app_detail_url': 'appDetailURL', 'app_key_id': 'appKeyID', 'create_time': 'createTime', 'desc': 'desc', 'dev_status': 'devStatus', 'download_count': 'downloadCount', + 'effect': 'effect', + 'features': 'features', + 'functional': 'functional', 'install_count': 'installCount', 'introduction': 'introduction', 'introduction_html': 'introductionHTML', @@ -75,8 +85,11 @@ class V1AppBaseInfo(object): 'market_name': 'marketName', 'market_url': 'marketURL', 'name': 'name', + 'phone': 'phone', 'publish_type': 'publishType', 'publish_user': 'publishUser', + 'quote': 'quote', + 'real_name': 'real_name', 'show_count': 'showCount', 'start_count': 'startCount', 'status': 'status', @@ -85,18 +98,22 @@ class V1AppBaseInfo(object): 'versions': 'versions' } - def __init__(self, app_detail_url=None, app_key_id=None, create_time=None, desc=None, dev_status=None, download_count=None, install_count=None, introduction=None, introduction_html=None, is_official=None, logo=None, market_id=None, market_name=None, market_url=None, name=None, publish_type=None, publish_user=None, show_count=None, start_count=None, status=None, tags=None, update_time=None, versions=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, app_classifications=None, app_detail_url=None, app_key_id=None, create_time=None, desc=None, dev_status=None, download_count=None, effect=None, features=None, functional=None, install_count=None, introduction=None, introduction_html=None, is_official=None, logo=None, market_id=None, market_name=None, market_url=None, name=None, phone=None, publish_type=None, publish_user=None, quote=None, real_name=None, show_count=None, start_count=None, status=None, tags=None, update_time=None, versions=None, local_vars_configuration=None): # noqa: E501 """V1AppBaseInfo - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration + self._app_classifications = None self._app_detail_url = None self._app_key_id = None self._create_time = None self._desc = None self._dev_status = None self._download_count = None + self._effect = None + self._features = None + self._functional = None self._install_count = None self._introduction = None self._introduction_html = None @@ -106,8 +123,11 @@ class V1AppBaseInfo(object): self._market_name = None self._market_url = None self._name = None + self._phone = None self._publish_type = None self._publish_user = None + self._quote = None + self._real_name = None self._show_count = None self._start_count = None self._status = None @@ -116,12 +136,16 @@ class V1AppBaseInfo(object): self._versions = None self.discriminator = None + self.app_classifications = app_classifications self.app_detail_url = app_detail_url self.app_key_id = app_key_id self.create_time = create_time self.desc = desc self.dev_status = dev_status self.download_count = download_count + self.effect = effect + self.features = features + self.functional = functional self.install_count = install_count self.introduction = introduction self.introduction_html = introduction_html @@ -131,8 +155,11 @@ class V1AppBaseInfo(object): self.market_name = market_name self.market_url = market_url self.name = name + self.phone = phone self.publish_type = publish_type self.publish_user = publish_user + self.quote = quote + self.real_name = real_name self.show_count = show_count self.start_count = start_count self.status = status @@ -140,6 +167,31 @@ class V1AppBaseInfo(object): self.update_time = update_time self.versions = versions + @property + def app_classifications(self): + """Gets the app_classifications of this V1AppBaseInfo. # noqa: E501 + + 应用所属分类 # noqa: E501 + + :return: The app_classifications of this V1AppBaseInfo. # noqa: E501 + :rtype: list[V1AppClassifications] + """ + return self._app_classifications + + @app_classifications.setter + def app_classifications(self, app_classifications): + """Sets the app_classifications of this V1AppBaseInfo. + + 应用所属分类 # noqa: E501 + + :param app_classifications: The app_classifications of this V1AppBaseInfo. # noqa: E501 + :type: list[V1AppClassifications] + """ + if self.local_vars_configuration.client_side_validation and app_classifications is None: # noqa: E501 + raise ValueError("Invalid value for `app_classifications`, must not be `None`") # noqa: E501 + + self._app_classifications = app_classifications + @property def app_detail_url(self): """Gets the app_detail_url of this V1AppBaseInfo. # noqa: E501 @@ -290,6 +342,81 @@ class V1AppBaseInfo(object): self._download_count = download_count + @property + def effect(self): + """Gets the effect of this V1AppBaseInfo. # noqa: E501 + + 应用效果 # noqa: E501 + + :return: The effect of this V1AppBaseInfo. # noqa: E501 + :rtype: str + """ + return self._effect + + @effect.setter + def effect(self, effect): + """Sets the effect of this V1AppBaseInfo. + + 应用效果 # noqa: E501 + + :param effect: The effect of this V1AppBaseInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and effect is None: # noqa: E501 + raise ValueError("Invalid value for `effect`, must not be `None`") # noqa: E501 + + self._effect = effect + + @property + def features(self): + """Gets the features of this V1AppBaseInfo. # noqa: E501 + + 应用特点 # noqa: E501 + + :return: The features of this V1AppBaseInfo. # noqa: E501 + :rtype: str + """ + return self._features + + @features.setter + def features(self, features): + """Sets the features of this V1AppBaseInfo. + + 应用特点 # noqa: E501 + + :param features: The features of this V1AppBaseInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and features is None: # noqa: E501 + raise ValueError("Invalid value for `features`, must not be `None`") # noqa: E501 + + self._features = features + + @property + def functional(self): + """Gets the functional of this V1AppBaseInfo. # noqa: E501 + + 应用功能 # noqa: E501 + + :return: The functional of this V1AppBaseInfo. # noqa: E501 + :rtype: str + """ + return self._functional + + @functional.setter + def functional(self, functional): + """Sets the functional of this V1AppBaseInfo. + + 应用功能 # noqa: E501 + + :param functional: The functional of this V1AppBaseInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and functional is None: # noqa: E501 + raise ValueError("Invalid value for `functional`, must not be `None`") # noqa: E501 + + self._functional = functional + @property def install_count(self): """Gets the install_count of this V1AppBaseInfo. # noqa: E501 @@ -515,6 +642,31 @@ class V1AppBaseInfo(object): self._name = name + @property + def phone(self): + """Gets the phone of this V1AppBaseInfo. # noqa: E501 + + 发布人手机号 # noqa: E501 + + :return: The phone of this V1AppBaseInfo. # noqa: E501 + :rtype: str + """ + return self._phone + + @phone.setter + def phone(self, phone): + """Sets the phone of this V1AppBaseInfo. + + 发布人手机号 # noqa: E501 + + :param phone: The phone of this V1AppBaseInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and phone is None: # noqa: E501 + raise ValueError("Invalid value for `phone`, must not be `None`") # noqa: E501 + + self._phone = phone + @property def publish_type(self): """Gets the publish_type of this V1AppBaseInfo. # noqa: E501 @@ -565,6 +717,56 @@ class V1AppBaseInfo(object): self._publish_user = publish_user + @property + def quote(self): + """Gets the quote of this V1AppBaseInfo. # noqa: E501 + + 规格报价 # noqa: E501 + + :return: The quote of this V1AppBaseInfo. # noqa: E501 + :rtype: str + """ + return self._quote + + @quote.setter + def quote(self, quote): + """Sets the quote of this V1AppBaseInfo. + + 规格报价 # noqa: E501 + + :param quote: The quote of this V1AppBaseInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and quote is None: # noqa: E501 + raise ValueError("Invalid value for `quote`, must not be `None`") # noqa: E501 + + self._quote = quote + + @property + def real_name(self): + """Gets the real_name of this V1AppBaseInfo. # noqa: E501 + + 发布人姓名 # noqa: E501 + + :return: The real_name of this V1AppBaseInfo. # noqa: E501 + :rtype: str + """ + return self._real_name + + @real_name.setter + def real_name(self, real_name): + """Sets the real_name of this V1AppBaseInfo. + + 发布人姓名 # noqa: E501 + + :param real_name: The real_name of this V1AppBaseInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and real_name is None: # noqa: E501 + raise ValueError("Invalid value for `real_name`, must not be `None`") # noqa: E501 + + self._real_name = real_name + @property def show_count(self): """Gets the show_count of this V1AppBaseInfo. # noqa: E501 diff --git a/openapi_client/models/v1_app_classifications.py b/openapi_client/models/v1_app_classifications.py new file mode 100644 index 0000000..7d32245 --- /dev/null +++ b/openapi_client/models/v1_app_classifications.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1AppClassifications(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'app_classification_id': 'str', + 'app_classification_name': 'str', + 'parent_app_classification_id': 'str' + } + + attribute_map = { + 'app_classification_id': 'appClassificationID', + 'app_classification_name': 'appClassificationName', + 'parent_app_classification_id': 'parentAppClassificationID' + } + + def __init__(self, app_classification_id=None, app_classification_name=None, parent_app_classification_id=None, local_vars_configuration=None): # noqa: E501 + """V1AppClassifications - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._app_classification_id = None + self._app_classification_name = None + self._parent_app_classification_id = None + self.discriminator = None + + self.app_classification_id = app_classification_id + self.app_classification_name = app_classification_name + self.parent_app_classification_id = parent_app_classification_id + + @property + def app_classification_id(self): + """Gets the app_classification_id of this V1AppClassifications. # noqa: E501 + + 应用分类 ID # noqa: E501 + + :return: The app_classification_id of this V1AppClassifications. # noqa: E501 + :rtype: str + """ + return self._app_classification_id + + @app_classification_id.setter + def app_classification_id(self, app_classification_id): + """Sets the app_classification_id of this V1AppClassifications. + + 应用分类 ID # noqa: E501 + + :param app_classification_id: The app_classification_id of this V1AppClassifications. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and app_classification_id is None: # noqa: E501 + raise ValueError("Invalid value for `app_classification_id`, must not be `None`") # noqa: E501 + + self._app_classification_id = app_classification_id + + @property + def app_classification_name(self): + """Gets the app_classification_name of this V1AppClassifications. # noqa: E501 + + 分类名称 # noqa: E501 + + :return: The app_classification_name of this V1AppClassifications. # noqa: E501 + :rtype: str + """ + return self._app_classification_name + + @app_classification_name.setter + def app_classification_name(self, app_classification_name): + """Sets the app_classification_name of this V1AppClassifications. + + 分类名称 # noqa: E501 + + :param app_classification_name: The app_classification_name of this V1AppClassifications. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and app_classification_name is None: # noqa: E501 + raise ValueError("Invalid value for `app_classification_name`, must not be `None`") # noqa: E501 + + self._app_classification_name = app_classification_name + + @property + def parent_app_classification_id(self): + """Gets the parent_app_classification_id of this V1AppClassifications. # noqa: E501 + + 父级分类 ID # noqa: E501 + + :return: The parent_app_classification_id of this V1AppClassifications. # noqa: E501 + :rtype: str + """ + return self._parent_app_classification_id + + @parent_app_classification_id.setter + def parent_app_classification_id(self, parent_app_classification_id): + """Sets the parent_app_classification_id of this V1AppClassifications. + + 父级分类 ID # noqa: E501 + + :param parent_app_classification_id: The parent_app_classification_id of this V1AppClassifications. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and parent_app_classification_id is None: # noqa: E501 + raise ValueError("Invalid value for `parent_app_classification_id`, must not be `None`") # noqa: E501 + + self._parent_app_classification_id = parent_app_classification_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1AppClassifications): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1AppClassifications): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_app_create_request.py b/openapi_client/models/v1_app_create_request.py new file mode 100644 index 0000000..6d23d2c --- /dev/null +++ b/openapi_client/models/v1_app_create_request.py @@ -0,0 +1,313 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1AppCreateRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'app_classification_id': 'str', + 'desc': 'str', + 'introduction': 'str', + 'logo': 'str', + 'name': 'str', + 'org_id': 'str', + 'publish_type': 'str', + 'tags': 'list[str]' + } + + attribute_map = { + 'app_classification_id': 'appClassificationID', + 'desc': 'desc', + 'introduction': 'introduction', + 'logo': 'logo', + 'name': 'name', + 'org_id': 'orgID', + 'publish_type': 'publishType', + 'tags': 'tags' + } + + def __init__(self, app_classification_id=None, desc=None, introduction=None, logo=None, name=None, org_id=None, publish_type=None, tags=None, local_vars_configuration=None): # noqa: E501 + """V1AppCreateRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._app_classification_id = None + self._desc = None + self._introduction = None + self._logo = None + self._name = None + self._org_id = None + self._publish_type = None + self._tags = None + self.discriminator = None + + self.app_classification_id = app_classification_id + self.desc = desc + self.introduction = introduction + self.logo = logo + self.name = name + self.org_id = org_id + self.publish_type = publish_type + self.tags = tags + + @property + def app_classification_id(self): + """Gets the app_classification_id of this V1AppCreateRequest. # noqa: E501 + + + :return: The app_classification_id of this V1AppCreateRequest. # noqa: E501 + :rtype: str + """ + return self._app_classification_id + + @app_classification_id.setter + def app_classification_id(self, app_classification_id): + """Sets the app_classification_id of this V1AppCreateRequest. + + + :param app_classification_id: The app_classification_id of this V1AppCreateRequest. # noqa: E501 + :type app_classification_id: str + """ + if self.local_vars_configuration.client_side_validation and app_classification_id is None: # noqa: E501 + raise ValueError("Invalid value for `app_classification_id`, must not be `None`") # noqa: E501 + + self._app_classification_id = app_classification_id + + @property + def desc(self): + """Gets the desc of this V1AppCreateRequest. # noqa: E501 + + + :return: The desc of this V1AppCreateRequest. # noqa: E501 + :rtype: str + """ + return self._desc + + @desc.setter + def desc(self, desc): + """Sets the desc of this V1AppCreateRequest. + + + :param desc: The desc of this V1AppCreateRequest. # noqa: E501 + :type desc: str + """ + if self.local_vars_configuration.client_side_validation and desc is None: # noqa: E501 + raise ValueError("Invalid value for `desc`, must not be `None`") # noqa: E501 + + self._desc = desc + + @property + def introduction(self): + """Gets the introduction of this V1AppCreateRequest. # noqa: E501 + + + :return: The introduction of this V1AppCreateRequest. # noqa: E501 + :rtype: str + """ + return self._introduction + + @introduction.setter + def introduction(self, introduction): + """Sets the introduction of this V1AppCreateRequest. + + + :param introduction: The introduction of this V1AppCreateRequest. # noqa: E501 + :type introduction: str + """ + if self.local_vars_configuration.client_side_validation and introduction is None: # noqa: E501 + raise ValueError("Invalid value for `introduction`, must not be `None`") # noqa: E501 + + self._introduction = introduction + + @property + def logo(self): + """Gets the logo of this V1AppCreateRequest. # noqa: E501 + + + :return: The logo of this V1AppCreateRequest. # noqa: E501 + :rtype: str + """ + return self._logo + + @logo.setter + def logo(self, logo): + """Sets the logo of this V1AppCreateRequest. + + + :param logo: The logo of this V1AppCreateRequest. # noqa: E501 + :type logo: str + """ + if self.local_vars_configuration.client_side_validation and logo is None: # noqa: E501 + raise ValueError("Invalid value for `logo`, must not be `None`") # noqa: E501 + + self._logo = logo + + @property + def name(self): + """Gets the name of this V1AppCreateRequest. # noqa: E501 + + + :return: The name of this V1AppCreateRequest. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1AppCreateRequest. + + + :param name: The name of this V1AppCreateRequest. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def org_id(self): + """Gets the org_id of this V1AppCreateRequest. # noqa: E501 + + 组织机构 ID # noqa: E501 + + :return: The org_id of this V1AppCreateRequest. # noqa: E501 + :rtype: str + """ + return self._org_id + + @org_id.setter + def org_id(self, org_id): + """Sets the org_id of this V1AppCreateRequest. + + 组织机构 ID # noqa: E501 + + :param org_id: The org_id of this V1AppCreateRequest. # noqa: E501 + :type org_id: str + """ + if self.local_vars_configuration.client_side_validation and org_id is None: # noqa: E501 + raise ValueError("Invalid value for `org_id`, must not be `None`") # noqa: E501 + + self._org_id = org_id + + @property + def publish_type(self): + """Gets the publish_type of this V1AppCreateRequest. # noqa: E501 + + + :return: The publish_type of this V1AppCreateRequest. # noqa: E501 + :rtype: str + """ + return self._publish_type + + @publish_type.setter + def publish_type(self, publish_type): + """Sets the publish_type of this V1AppCreateRequest. + + + :param publish_type: The publish_type of this V1AppCreateRequest. # noqa: E501 + :type publish_type: str + """ + if self.local_vars_configuration.client_side_validation and publish_type is None: # noqa: E501 + raise ValueError("Invalid value for `publish_type`, must not be `None`") # noqa: E501 + + self._publish_type = publish_type + + @property + def tags(self): + """Gets the tags of this V1AppCreateRequest. # noqa: E501 + + + :return: The tags of this V1AppCreateRequest. # noqa: E501 + :rtype: list[str] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this V1AppCreateRequest. + + + :param tags: The tags of this V1AppCreateRequest. # noqa: E501 + :type tags: list[str] + """ + if self.local_vars_configuration.client_side_validation and tags is None: # noqa: E501 + raise ValueError("Invalid value for `tags`, must not be `None`") # noqa: E501 + + self._tags = tags + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1AppCreateRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1AppCreateRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_app_detail_info_response.py b/openapi_client/models/v1_app_detail_info_response.py index 4cdc399..6543436 100644 --- a/openapi_client/models/v1_app_detail_info_response.py +++ b/openapi_client/models/v1_app_detail_info_response.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -35,12 +34,16 @@ class V1AppDetailInfoResponse(object): """ openapi_types = { 'app_classification_id': 'str', + 'app_classifications': 'list[V1AppClassifications]', 'app_detail_url': 'str', 'app_key_id': 'str', 'create_time': 'datetime', 'desc': 'str', 'dev_status': 'str', 'download_count': 'int', + 'effect': 'str', + 'features': 'str', + 'functional': 'str', 'install_count': 'int', 'introduction': 'str', 'introduction_html': 'str', @@ -51,8 +54,11 @@ class V1AppDetailInfoResponse(object): 'market_url': 'str', 'name': 'str', 'org_id': 'str', + 'phone': 'str', 'publish_type': 'str', 'publish_user': 'str', + 'quote': 'str', + 'real_name': 'str', 'show_count': 'int', 'start_count': 'int', 'status': 'str', @@ -63,12 +69,16 @@ class V1AppDetailInfoResponse(object): attribute_map = { 'app_classification_id': 'appClassificationID', + 'app_classifications': 'appClassifications', 'app_detail_url': 'appDetailURL', 'app_key_id': 'appKeyID', 'create_time': 'createTime', 'desc': 'desc', 'dev_status': 'devStatus', 'download_count': 'downloadCount', + 'effect': 'effect', + 'features': 'features', + 'functional': 'functional', 'install_count': 'installCount', 'introduction': 'introduction', 'introduction_html': 'introductionHTML', @@ -79,8 +89,11 @@ class V1AppDetailInfoResponse(object): 'market_url': 'marketURL', 'name': 'name', 'org_id': 'orgID', + 'phone': 'phone', 'publish_type': 'publishType', 'publish_user': 'publishUser', + 'quote': 'quote', + 'real_name': 'real_name', 'show_count': 'showCount', 'start_count': 'startCount', 'status': 'status', @@ -89,19 +102,23 @@ class V1AppDetailInfoResponse(object): 'versions': 'versions' } - def __init__(self, app_classification_id=None, app_detail_url=None, app_key_id=None, create_time=None, desc=None, dev_status=None, download_count=None, install_count=None, introduction=None, introduction_html=None, is_official=None, logo=None, market_id=None, market_name=None, market_url=None, name=None, org_id=None, publish_type=None, publish_user=None, show_count=None, start_count=None, status=None, tags=None, update_time=None, versions=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, app_classification_id=None, app_classifications=None, app_detail_url=None, app_key_id=None, create_time=None, desc=None, dev_status=None, download_count=None, effect=None, features=None, functional=None, install_count=None, introduction=None, introduction_html=None, is_official=None, logo=None, market_id=None, market_name=None, market_url=None, name=None, org_id=None, phone=None, publish_type=None, publish_user=None, quote=None, real_name=None, show_count=None, start_count=None, status=None, tags=None, update_time=None, versions=None, local_vars_configuration=None): # noqa: E501 """V1AppDetailInfoResponse - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._app_classification_id = None + self._app_classifications = None self._app_detail_url = None self._app_key_id = None self._create_time = None self._desc = None self._dev_status = None self._download_count = None + self._effect = None + self._features = None + self._functional = None self._install_count = None self._introduction = None self._introduction_html = None @@ -112,8 +129,11 @@ class V1AppDetailInfoResponse(object): self._market_url = None self._name = None self._org_id = None + self._phone = None self._publish_type = None self._publish_user = None + self._quote = None + self._real_name = None self._show_count = None self._start_count = None self._status = None @@ -123,12 +143,16 @@ class V1AppDetailInfoResponse(object): self.discriminator = None self.app_classification_id = app_classification_id + self.app_classifications = app_classifications self.app_detail_url = app_detail_url self.app_key_id = app_key_id self.create_time = create_time self.desc = desc self.dev_status = dev_status self.download_count = download_count + self.effect = effect + self.features = features + self.functional = functional self.install_count = install_count self.introduction = introduction self.introduction_html = introduction_html @@ -139,8 +163,11 @@ class V1AppDetailInfoResponse(object): self.market_url = market_url self.name = name self.org_id = org_id + self.phone = phone self.publish_type = publish_type self.publish_user = publish_user + self.quote = quote + self.real_name = real_name self.show_count = show_count self.start_count = start_count self.status = status @@ -173,6 +200,31 @@ class V1AppDetailInfoResponse(object): self._app_classification_id = app_classification_id + @property + def app_classifications(self): + """Gets the app_classifications of this V1AppDetailInfoResponse. # noqa: E501 + + 应用所属分类 # noqa: E501 + + :return: The app_classifications of this V1AppDetailInfoResponse. # noqa: E501 + :rtype: list[V1AppClassifications] + """ + return self._app_classifications + + @app_classifications.setter + def app_classifications(self, app_classifications): + """Sets the app_classifications of this V1AppDetailInfoResponse. + + 应用所属分类 # noqa: E501 + + :param app_classifications: The app_classifications of this V1AppDetailInfoResponse. # noqa: E501 + :type: list[V1AppClassifications] + """ + if self.local_vars_configuration.client_side_validation and app_classifications is None: # noqa: E501 + raise ValueError("Invalid value for `app_classifications`, must not be `None`") # noqa: E501 + + self._app_classifications = app_classifications + @property def app_detail_url(self): """Gets the app_detail_url of this V1AppDetailInfoResponse. # noqa: E501 @@ -323,6 +375,81 @@ class V1AppDetailInfoResponse(object): self._download_count = download_count + @property + def effect(self): + """Gets the effect of this V1AppDetailInfoResponse. # noqa: E501 + + 应用效果 # noqa: E501 + + :return: The effect of this V1AppDetailInfoResponse. # noqa: E501 + :rtype: str + """ + return self._effect + + @effect.setter + def effect(self, effect): + """Sets the effect of this V1AppDetailInfoResponse. + + 应用效果 # noqa: E501 + + :param effect: The effect of this V1AppDetailInfoResponse. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and effect is None: # noqa: E501 + raise ValueError("Invalid value for `effect`, must not be `None`") # noqa: E501 + + self._effect = effect + + @property + def features(self): + """Gets the features of this V1AppDetailInfoResponse. # noqa: E501 + + 应用特点 # noqa: E501 + + :return: The features of this V1AppDetailInfoResponse. # noqa: E501 + :rtype: str + """ + return self._features + + @features.setter + def features(self, features): + """Sets the features of this V1AppDetailInfoResponse. + + 应用特点 # noqa: E501 + + :param features: The features of this V1AppDetailInfoResponse. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and features is None: # noqa: E501 + raise ValueError("Invalid value for `features`, must not be `None`") # noqa: E501 + + self._features = features + + @property + def functional(self): + """Gets the functional of this V1AppDetailInfoResponse. # noqa: E501 + + 应用功能 # noqa: E501 + + :return: The functional of this V1AppDetailInfoResponse. # noqa: E501 + :rtype: str + """ + return self._functional + + @functional.setter + def functional(self, functional): + """Sets the functional of this V1AppDetailInfoResponse. + + 应用功能 # noqa: E501 + + :param functional: The functional of this V1AppDetailInfoResponse. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and functional is None: # noqa: E501 + raise ValueError("Invalid value for `functional`, must not be `None`") # noqa: E501 + + self._functional = functional + @property def install_count(self): """Gets the install_count of this V1AppDetailInfoResponse. # noqa: E501 @@ -573,6 +700,31 @@ class V1AppDetailInfoResponse(object): self._org_id = org_id + @property + def phone(self): + """Gets the phone of this V1AppDetailInfoResponse. # noqa: E501 + + 发布人手机号 # noqa: E501 + + :return: The phone of this V1AppDetailInfoResponse. # noqa: E501 + :rtype: str + """ + return self._phone + + @phone.setter + def phone(self, phone): + """Sets the phone of this V1AppDetailInfoResponse. + + 发布人手机号 # noqa: E501 + + :param phone: The phone of this V1AppDetailInfoResponse. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and phone is None: # noqa: E501 + raise ValueError("Invalid value for `phone`, must not be `None`") # noqa: E501 + + self._phone = phone + @property def publish_type(self): """Gets the publish_type of this V1AppDetailInfoResponse. # noqa: E501 @@ -623,6 +775,56 @@ class V1AppDetailInfoResponse(object): self._publish_user = publish_user + @property + def quote(self): + """Gets the quote of this V1AppDetailInfoResponse. # noqa: E501 + + 规格报价 # noqa: E501 + + :return: The quote of this V1AppDetailInfoResponse. # noqa: E501 + :rtype: str + """ + return self._quote + + @quote.setter + def quote(self, quote): + """Sets the quote of this V1AppDetailInfoResponse. + + 规格报价 # noqa: E501 + + :param quote: The quote of this V1AppDetailInfoResponse. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and quote is None: # noqa: E501 + raise ValueError("Invalid value for `quote`, must not be `None`") # noqa: E501 + + self._quote = quote + + @property + def real_name(self): + """Gets the real_name of this V1AppDetailInfoResponse. # noqa: E501 + + 发布人姓名 # noqa: E501 + + :return: The real_name of this V1AppDetailInfoResponse. # noqa: E501 + :rtype: str + """ + return self._real_name + + @real_name.setter + def real_name(self, real_name): + """Sets the real_name of this V1AppDetailInfoResponse. + + 发布人姓名 # noqa: E501 + + :param real_name: The real_name of this V1AppDetailInfoResponse. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and real_name is None: # noqa: E501 + raise ValueError("Invalid value for `real_name`, must not be `None`") # noqa: E501 + + self._real_name = real_name + @property def show_count(self): """Gets the show_count of this V1AppDetailInfoResponse. # noqa: E501 diff --git a/openapi_client/models/v1_app_image_hub_info_response.py b/openapi_client/models/v1_app_image_hub_info_response.py index 990e3f0..fe8209b 100644 --- a/openapi_client/models/v1_app_image_hub_info_response.py +++ b/openapi_client/models/v1_app_image_hub_info_response.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1_app_model_create_request.py b/openapi_client/models/v1_app_model_create_request.py index 841602d..e0ec495 100644 --- a/openapi_client/models/v1_app_model_create_request.py +++ b/openapi_client/models/v1_app_model_create_request.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -38,7 +37,6 @@ class V1AppModelCreateRequest(object): 'introduction': 'str', 'logo': 'str', 'name': 'str', - 'org_id': 'str', 'publish_type': 'str', 'tags': 'list[str]' } @@ -48,12 +46,11 @@ class V1AppModelCreateRequest(object): 'introduction': 'introduction', 'logo': 'logo', 'name': 'name', - 'org_id': 'orgID', 'publish_type': 'publishType', 'tags': 'tags' } - def __init__(self, desc=None, introduction=None, logo=None, name=None, org_id=None, publish_type=None, tags=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, desc=None, introduction=None, logo=None, name=None, publish_type=None, tags=None, local_vars_configuration=None): # noqa: E501 """V1AppModelCreateRequest - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -63,7 +60,6 @@ class V1AppModelCreateRequest(object): self._introduction = None self._logo = None self._name = None - self._org_id = None self._publish_type = None self._tags = None self.discriminator = None @@ -72,8 +68,6 @@ class V1AppModelCreateRequest(object): self.introduction = introduction self.logo = logo self.name = name - if org_id is not None: - self.org_id = org_id self.publish_type = publish_type self.tags = tags @@ -177,27 +171,6 @@ class V1AppModelCreateRequest(object): self._name = name - @property - def org_id(self): - """Gets the org_id of this V1AppModelCreateRequest. # noqa: E501 - - - :return: The org_id of this V1AppModelCreateRequest. # noqa: E501 - :rtype: str - """ - return self._org_id - - @org_id.setter - def org_id(self, org_id): - """Sets the org_id of this V1AppModelCreateRequest. - - - :param org_id: The org_id of this V1AppModelCreateRequest. # noqa: E501 - :type: str - """ - - self._org_id = org_id - @property def publish_type(self): """Gets the publish_type of this V1AppModelCreateRequest. # noqa: E501 diff --git a/openapi_client/models/v1_app_update_request.py b/openapi_client/models/v1_app_update_request.py index 0e946a0..255c058 100644 --- a/openapi_client/models/v1_app_update_request.py +++ b/openapi_client/models/v1_app_update_request.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -35,38 +34,54 @@ class V1AppUpdateRequest(object): """ openapi_types = { 'desc': 'str', + 'effect': 'str', + 'features': 'str', + 'functional': 'str', 'introduction': 'str', 'logo': 'str', 'name': 'str', - 'publish_type': 'str' + 'publish_type': 'str', + 'quote': 'str' } attribute_map = { 'desc': 'desc', + 'effect': 'effect', + 'features': 'features', + 'functional': 'functional', 'introduction': 'introduction', 'logo': 'logo', 'name': 'name', - 'publish_type': 'publishType' + 'publish_type': 'publishType', + 'quote': 'quote' } - def __init__(self, desc=None, introduction=None, logo=None, name=None, publish_type=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, desc=None, effect=None, features=None, functional=None, introduction=None, logo=None, name=None, publish_type=None, quote=None, local_vars_configuration=None): # noqa: E501 """V1AppUpdateRequest - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._desc = None + self._effect = None + self._features = None + self._functional = None self._introduction = None self._logo = None self._name = None self._publish_type = None + self._quote = None self.discriminator = None self.desc = desc + self.effect = effect + self.features = features + self.functional = functional self.introduction = introduction self.logo = logo self.name = name self.publish_type = publish_type + self.quote = quote @property def desc(self): @@ -91,6 +106,81 @@ class V1AppUpdateRequest(object): self._desc = desc + @property + def effect(self): + """Gets the effect of this V1AppUpdateRequest. # noqa: E501 + + 应用效果 # noqa: E501 + + :return: The effect of this V1AppUpdateRequest. # noqa: E501 + :rtype: str + """ + return self._effect + + @effect.setter + def effect(self, effect): + """Sets the effect of this V1AppUpdateRequest. + + 应用效果 # noqa: E501 + + :param effect: The effect of this V1AppUpdateRequest. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and effect is None: # noqa: E501 + raise ValueError("Invalid value for `effect`, must not be `None`") # noqa: E501 + + self._effect = effect + + @property + def features(self): + """Gets the features of this V1AppUpdateRequest. # noqa: E501 + + 应用特点 # noqa: E501 + + :return: The features of this V1AppUpdateRequest. # noqa: E501 + :rtype: str + """ + return self._features + + @features.setter + def features(self, features): + """Sets the features of this V1AppUpdateRequest. + + 应用特点 # noqa: E501 + + :param features: The features of this V1AppUpdateRequest. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and features is None: # noqa: E501 + raise ValueError("Invalid value for `features`, must not be `None`") # noqa: E501 + + self._features = features + + @property + def functional(self): + """Gets the functional of this V1AppUpdateRequest. # noqa: E501 + + 应用功能 # noqa: E501 + + :return: The functional of this V1AppUpdateRequest. # noqa: E501 + :rtype: str + """ + return self._functional + + @functional.setter + def functional(self, functional): + """Sets the functional of this V1AppUpdateRequest. + + 应用功能 # noqa: E501 + + :param functional: The functional of this V1AppUpdateRequest. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and functional is None: # noqa: E501 + raise ValueError("Invalid value for `functional`, must not be `None`") # noqa: E501 + + self._functional = functional + @property def introduction(self): """Gets the introduction of this V1AppUpdateRequest. # noqa: E501 @@ -183,6 +273,31 @@ class V1AppUpdateRequest(object): self._publish_type = publish_type + @property + def quote(self): + """Gets the quote of this V1AppUpdateRequest. # noqa: E501 + + 规格报价 # noqa: E501 + + :return: The quote of this V1AppUpdateRequest. # noqa: E501 + :rtype: str + """ + return self._quote + + @quote.setter + def quote(self, quote): + """Sets the quote of this V1AppUpdateRequest. + + 规格报价 # noqa: E501 + + :param quote: The quote of this V1AppUpdateRequest. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and quote is None: # noqa: E501 + raise ValueError("Invalid value for `quote`, must not be `None`") # noqa: E501 + + self._quote = quote + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/openapi_client/models/v1_app_version_base.py b/openapi_client/models/v1_app_version_base.py index 4a3b314..13b2b4f 100644 --- a/openapi_client/models/v1_app_version_base.py +++ b/openapi_client/models/v1_app_version_base.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -37,6 +36,7 @@ class V1AppVersionBase(object): 'app_key_id': 'str', 'app_version': 'str', 'app_version_alias': 'str', + 'arch': 'str', 'create_time': 'datetime', 'delivery_mode': 'str', 'desc': 'str', @@ -51,6 +51,7 @@ class V1AppVersionBase(object): 'app_key_id': 'appKeyID', 'app_version': 'appVersion', 'app_version_alias': 'appVersionAlias', + 'arch': 'arch', 'create_time': 'createTime', 'delivery_mode': 'deliveryMode', 'desc': 'desc', @@ -61,7 +62,7 @@ class V1AppVersionBase(object): 'update_version': 'updateVersion' } - def __init__(self, app_key_id=None, app_version=None, app_version_alias=None, create_time=None, delivery_mode=None, desc=None, enable=None, is_plugin=None, rainbond_version=None, update_time=None, update_version=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, app_key_id=None, app_version=None, app_version_alias=None, arch=None, create_time=None, delivery_mode=None, desc=None, enable=None, is_plugin=None, rainbond_version=None, update_time=None, update_version=None, local_vars_configuration=None): # noqa: E501 """V1AppVersionBase - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -70,6 +71,7 @@ class V1AppVersionBase(object): self._app_key_id = None self._app_version = None self._app_version_alias = None + self._arch = None self._create_time = None self._delivery_mode = None self._desc = None @@ -83,6 +85,7 @@ class V1AppVersionBase(object): self.app_key_id = app_key_id self.app_version = app_version self.app_version_alias = app_version_alias + self.arch = arch self.create_time = create_time self.delivery_mode = delivery_mode self.desc = desc @@ -167,6 +170,31 @@ class V1AppVersionBase(object): self._app_version_alias = app_version_alias + @property + def arch(self): + """Gets the arch of this V1AppVersionBase. # noqa: E501 + + 应用架构 # noqa: E501 + + :return: The arch of this V1AppVersionBase. # noqa: E501 + :rtype: str + """ + return self._arch + + @arch.setter + def arch(self, arch): + """Sets the arch of this V1AppVersionBase. + + 应用架构 # noqa: E501 + + :param arch: The arch of this V1AppVersionBase. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and arch is None: # noqa: E501 + raise ValueError("Invalid value for `arch`, must not be `None`") # noqa: E501 + + self._arch = arch + @property def create_time(self): """Gets the create_time of this V1AppVersionBase. # noqa: E501 diff --git a/openapi_client/models/v1_app_version_detail_response.py b/openapi_client/models/v1_app_version_detail_response.py index f41c9b8..b5cc986 100644 --- a/openapi_client/models/v1_app_version_detail_response.py +++ b/openapi_client/models/v1_app_version_detail_response.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -36,6 +35,7 @@ class V1AppVersionDetailResponse(object): openapi_types = { 'app_key_id': 'str', 'app_name': 'str', + 'arch': 'str', 'create_time': 'datetime', 'delivery_mode': 'str', 'description': 'str', @@ -54,6 +54,7 @@ class V1AppVersionDetailResponse(object): attribute_map = { 'app_key_id': 'appKeyID', 'app_name': 'appName', + 'arch': 'arch', 'create_time': 'createTime', 'delivery_mode': 'deliveryMode', 'description': 'description', @@ -69,7 +70,7 @@ class V1AppVersionDetailResponse(object): 'version_alias': 'versionAlias' } - def __init__(self, app_key_id=None, app_name=None, create_time=None, delivery_mode=None, description=None, enable=None, is_plugin=None, market_id=None, rainbond_version=None, template=None, template_type=None, update_time=None, update_version=None, version=None, version_alias=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, app_key_id=None, app_name=None, arch=None, create_time=None, delivery_mode=None, description=None, enable=None, is_plugin=None, market_id=None, rainbond_version=None, template=None, template_type=None, update_time=None, update_version=None, version=None, version_alias=None, local_vars_configuration=None): # noqa: E501 """V1AppVersionDetailResponse - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -77,6 +78,7 @@ class V1AppVersionDetailResponse(object): self._app_key_id = None self._app_name = None + self._arch = None self._create_time = None self._delivery_mode = None self._description = None @@ -94,6 +96,7 @@ class V1AppVersionDetailResponse(object): self.app_key_id = app_key_id self.app_name = app_name + self.arch = arch self.create_time = create_time self.delivery_mode = delivery_mode self.description = description @@ -158,6 +161,31 @@ class V1AppVersionDetailResponse(object): self._app_name = app_name + @property + def arch(self): + """Gets the arch of this V1AppVersionDetailResponse. # noqa: E501 + + 应用架构 # noqa: E501 + + :return: The arch of this V1AppVersionDetailResponse. # noqa: E501 + :rtype: str + """ + return self._arch + + @arch.setter + def arch(self, arch): + """Sets the arch of this V1AppVersionDetailResponse. + + 应用架构 # noqa: E501 + + :param arch: The arch of this V1AppVersionDetailResponse. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and arch is None: # noqa: E501 + raise ValueError("Invalid value for `arch`, must not be `None`") # noqa: E501 + + self._arch = arch + @property def create_time(self): """Gets the create_time of this V1AppVersionDetailResponse. # noqa: E501 diff --git a/openapi_client/models/v1_app_version_list_response.py b/openapi_client/models/v1_app_version_list_response.py index e97c613..1f536cd 100644 --- a/openapi_client/models/v1_app_version_list_response.py +++ b/openapi_client/models/v1_app_version_list_response.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1_app_version_request.py b/openapi_client/models/v1_app_version_request.py new file mode 100644 index 0000000..5315dc8 --- /dev/null +++ b/openapi_client/models/v1_app_version_request.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1AppVersionRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'app_version': 'str', + 'app_version_alias': 'str', + 'desc': 'str', + 'rainbond_version': 'str', + 'templete': 'str', + 'update_version': 'int' + } + + attribute_map = { + 'app_version': 'appVersion', + 'app_version_alias': 'appVersionAlias', + 'desc': 'desc', + 'rainbond_version': 'rainbondVersion', + 'templete': 'templete', + 'update_version': 'updateVersion' + } + + def __init__(self, app_version=None, app_version_alias=None, desc=None, rainbond_version=None, templete=None, update_version=None, local_vars_configuration=None): # noqa: E501 + """V1AppVersionRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._app_version = None + self._app_version_alias = None + self._desc = None + self._rainbond_version = None + self._templete = None + self._update_version = None + self.discriminator = None + + self.app_version = app_version + self.app_version_alias = app_version_alias + self.desc = desc + self.rainbond_version = rainbond_version + self.templete = templete + self.update_version = update_version + + @property + def app_version(self): + """Gets the app_version of this V1AppVersionRequest. # noqa: E501 + + + :return: The app_version of this V1AppVersionRequest. # noqa: E501 + :rtype: str + """ + return self._app_version + + @app_version.setter + def app_version(self, app_version): + """Sets the app_version of this V1AppVersionRequest. + + + :param app_version: The app_version of this V1AppVersionRequest. # noqa: E501 + :type app_version: str + """ + if self.local_vars_configuration.client_side_validation and app_version is None: # noqa: E501 + raise ValueError("Invalid value for `app_version`, must not be `None`") # noqa: E501 + + self._app_version = app_version + + @property + def app_version_alias(self): + """Gets the app_version_alias of this V1AppVersionRequest. # noqa: E501 + + + :return: The app_version_alias of this V1AppVersionRequest. # noqa: E501 + :rtype: str + """ + return self._app_version_alias + + @app_version_alias.setter + def app_version_alias(self, app_version_alias): + """Sets the app_version_alias of this V1AppVersionRequest. + + + :param app_version_alias: The app_version_alias of this V1AppVersionRequest. # noqa: E501 + :type app_version_alias: str + """ + if self.local_vars_configuration.client_side_validation and app_version_alias is None: # noqa: E501 + raise ValueError("Invalid value for `app_version_alias`, must not be `None`") # noqa: E501 + + self._app_version_alias = app_version_alias + + @property + def desc(self): + """Gets the desc of this V1AppVersionRequest. # noqa: E501 + + + :return: The desc of this V1AppVersionRequest. # noqa: E501 + :rtype: str + """ + return self._desc + + @desc.setter + def desc(self, desc): + """Sets the desc of this V1AppVersionRequest. + + + :param desc: The desc of this V1AppVersionRequest. # noqa: E501 + :type desc: str + """ + if self.local_vars_configuration.client_side_validation and desc is None: # noqa: E501 + raise ValueError("Invalid value for `desc`, must not be `None`") # noqa: E501 + + self._desc = desc + + @property + def rainbond_version(self): + """Gets the rainbond_version of this V1AppVersionRequest. # noqa: E501 + + + :return: The rainbond_version of this V1AppVersionRequest. # noqa: E501 + :rtype: str + """ + return self._rainbond_version + + @rainbond_version.setter + def rainbond_version(self, rainbond_version): + """Sets the rainbond_version of this V1AppVersionRequest. + + + :param rainbond_version: The rainbond_version of this V1AppVersionRequest. # noqa: E501 + :type rainbond_version: str + """ + if self.local_vars_configuration.client_side_validation and rainbond_version is None: # noqa: E501 + raise ValueError("Invalid value for `rainbond_version`, must not be `None`") # noqa: E501 + + self._rainbond_version = rainbond_version + + @property + def templete(self): + """Gets the templete of this V1AppVersionRequest. # noqa: E501 + + + :return: The templete of this V1AppVersionRequest. # noqa: E501 + :rtype: str + """ + return self._templete + + @templete.setter + def templete(self, templete): + """Sets the templete of this V1AppVersionRequest. + + + :param templete: The templete of this V1AppVersionRequest. # noqa: E501 + :type templete: str + """ + if self.local_vars_configuration.client_side_validation and templete is None: # noqa: E501 + raise ValueError("Invalid value for `templete`, must not be `None`") # noqa: E501 + + self._templete = templete + + @property + def update_version(self): + """Gets the update_version of this V1AppVersionRequest. # noqa: E501 + + + :return: The update_version of this V1AppVersionRequest. # noqa: E501 + :rtype: int + """ + return self._update_version + + @update_version.setter + def update_version(self, update_version): + """Sets the update_version of this V1AppVersionRequest. + + + :param update_version: The update_version of this V1AppVersionRequest. # noqa: E501 + :type update_version: int + """ + if self.local_vars_configuration.client_side_validation and update_version is None: # noqa: E501 + raise ValueError("Invalid value for `update_version`, must not be `None`") # noqa: E501 + + self._update_version = update_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1AppVersionRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1AppVersionRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_bindable_market.py b/openapi_client/models/v1_bindable_market.py index a1b0cde..d13f256 100644 --- a/openapi_client/models/v1_bindable_market.py +++ b/openapi_client/models/v1_bindable_market.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1_create_app_paa_s_version_request.py b/openapi_client/models/v1_create_app_paa_s_version_request.py index ecd6e5f..3ac8bdc 100644 --- a/openapi_client/models/v1_create_app_paa_s_version_request.py +++ b/openapi_client/models/v1_create_app_paa_s_version_request.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -34,6 +33,7 @@ class V1CreateAppPaaSVersionRequest(object): and the value is json key in definition. """ openapi_types = { + 'arch': 'str', 'description': 'str', 'is_plugin': 'bool', 'rainbond_version': 'str', @@ -44,6 +44,7 @@ class V1CreateAppPaaSVersionRequest(object): } attribute_map = { + 'arch': 'arch', 'description': 'description', 'is_plugin': 'is_plugin', 'rainbond_version': 'rainbondVersion', @@ -53,12 +54,13 @@ class V1CreateAppPaaSVersionRequest(object): 'version_alias': 'versionAlias' } - def __init__(self, description=None, is_plugin=None, rainbond_version=None, template=None, template_type=None, version=None, version_alias=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, arch=None, description=None, is_plugin=None, rainbond_version=None, template=None, template_type=None, version=None, version_alias=None, local_vars_configuration=None): # noqa: E501 """V1CreateAppPaaSVersionRequest - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration + self._arch = None self._description = None self._is_plugin = None self._rainbond_version = None @@ -68,6 +70,7 @@ class V1CreateAppPaaSVersionRequest(object): self._version_alias = None self.discriminator = None + self.arch = arch self.description = description self.is_plugin = is_plugin self.rainbond_version = rainbond_version @@ -76,6 +79,29 @@ class V1CreateAppPaaSVersionRequest(object): self.version = version self.version_alias = version_alias + @property + def arch(self): + """Gets the arch of this V1CreateAppPaaSVersionRequest. # noqa: E501 + + + :return: The arch of this V1CreateAppPaaSVersionRequest. # noqa: E501 + :rtype: str + """ + return self._arch + + @arch.setter + def arch(self, arch): + """Sets the arch of this V1CreateAppPaaSVersionRequest. + + + :param arch: The arch of this V1CreateAppPaaSVersionRequest. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and arch is None: # noqa: E501 + raise ValueError("Invalid value for `arch`, must not be `None`") # noqa: E501 + + self._arch = arch + @property def description(self): """Gets the description of this V1CreateAppPaaSVersionRequest. # noqa: E501 diff --git a/openapi_client/models/v1_image_info.py b/openapi_client/models/v1_image_info.py new file mode 100644 index 0000000..6630eb9 --- /dev/null +++ b/openapi_client/models/v1_image_info.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1ImageInfo(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'hub_password': 'str', + 'hub_url': 'str', + 'hub_user': 'str', + 'is_trust': 'bool', + 'namespace': 'str' + } + + attribute_map = { + 'hub_password': 'hub_password', + 'hub_url': 'hub_url', + 'hub_user': 'hub_user', + 'is_trust': 'is_trust', + 'namespace': 'namespace' + } + + def __init__(self, hub_password=None, hub_url=None, hub_user=None, is_trust=None, namespace=None, local_vars_configuration=None): # noqa: E501 + """V1ImageInfo - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._hub_password = None + self._hub_url = None + self._hub_user = None + self._is_trust = None + self._namespace = None + self.discriminator = None + + self.hub_password = hub_password + self.hub_url = hub_url + self.hub_user = hub_user + self.is_trust = is_trust + self.namespace = namespace + + @property + def hub_password(self): + """Gets the hub_password of this V1ImageInfo. # noqa: E501 + + + :return: The hub_password of this V1ImageInfo. # noqa: E501 + :rtype: str + """ + return self._hub_password + + @hub_password.setter + def hub_password(self, hub_password): + """Sets the hub_password of this V1ImageInfo. + + + :param hub_password: The hub_password of this V1ImageInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and hub_password is None: # noqa: E501 + raise ValueError("Invalid value for `hub_password`, must not be `None`") # noqa: E501 + + self._hub_password = hub_password + + @property + def hub_url(self): + """Gets the hub_url of this V1ImageInfo. # noqa: E501 + + + :return: The hub_url of this V1ImageInfo. # noqa: E501 + :rtype: str + """ + return self._hub_url + + @hub_url.setter + def hub_url(self, hub_url): + """Sets the hub_url of this V1ImageInfo. + + + :param hub_url: The hub_url of this V1ImageInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and hub_url is None: # noqa: E501 + raise ValueError("Invalid value for `hub_url`, must not be `None`") # noqa: E501 + + self._hub_url = hub_url + + @property + def hub_user(self): + """Gets the hub_user of this V1ImageInfo. # noqa: E501 + + + :return: The hub_user of this V1ImageInfo. # noqa: E501 + :rtype: str + """ + return self._hub_user + + @hub_user.setter + def hub_user(self, hub_user): + """Sets the hub_user of this V1ImageInfo. + + + :param hub_user: The hub_user of this V1ImageInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and hub_user is None: # noqa: E501 + raise ValueError("Invalid value for `hub_user`, must not be `None`") # noqa: E501 + + self._hub_user = hub_user + + @property + def is_trust(self): + """Gets the is_trust of this V1ImageInfo. # noqa: E501 + + + :return: The is_trust of this V1ImageInfo. # noqa: E501 + :rtype: bool + """ + return self._is_trust + + @is_trust.setter + def is_trust(self, is_trust): + """Sets the is_trust of this V1ImageInfo. + + + :param is_trust: The is_trust of this V1ImageInfo. # noqa: E501 + :type: bool + """ + if self.local_vars_configuration.client_side_validation and is_trust is None: # noqa: E501 + raise ValueError("Invalid value for `is_trust`, must not be `None`") # noqa: E501 + + self._is_trust = is_trust + + @property + def namespace(self): + """Gets the namespace of this V1ImageInfo. # noqa: E501 + + + :return: The namespace of this V1ImageInfo. # noqa: E501 + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this V1ImageInfo. + + + :param namespace: The namespace of this V1ImageInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and namespace is None: # noqa: E501 + raise ValueError("Invalid value for `namespace`, must not be `None`") # noqa: E501 + + self._namespace = namespace + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ImageInfo): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ImageInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_market_info_response.py b/openapi_client/models/v1_market_info_response.py index b2a4d6c..57014da 100644 --- a/openapi_client/models/v1_market_info_response.py +++ b/openapi_client/models/v1_market_info_response.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1_market_ui_app_tags_response.py b/openapi_client/models/v1_market_ui_app_tags_response.py index 80a0cae..ef00869 100644 --- a/openapi_client/models/v1_market_ui_app_tags_response.py +++ b/openapi_client/models/v1_market_ui_app_tags_response.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1_store_app_version_template.py b/openapi_client/models/v1_store_app_version_template.py new file mode 100644 index 0000000..ddfc22f --- /dev/null +++ b/openapi_client/models/v1_store_app_version_template.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTemplate(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'apps': 'list[V1StoreAppVersionTempleteApp]', + 'group_key': 'str', + 'group_name': 'str', + 'group_version': 'str', + 'plugins': 'list[V1StoreAppVersionTempletePlugin]', + 'template_version': 'str' + } + + attribute_map = { + 'apps': 'apps', + 'group_key': 'group_key', + 'group_name': 'group_name', + 'group_version': 'group_version', + 'plugins': 'plugins', + 'template_version': 'template_version' + } + + def __init__(self, apps=None, group_key=None, group_name=None, group_version=None, plugins=None, template_version=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTemplate - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._apps = None + self._group_key = None + self._group_name = None + self._group_version = None + self._plugins = None + self._template_version = None + self.discriminator = None + + self.apps = apps + self.group_key = group_key + self.group_name = group_name + self.group_version = group_version + if plugins is not None: + self.plugins = plugins + self.template_version = template_version + + @property + def apps(self): + """Gets the apps of this V1StoreAppVersionTemplate. # noqa: E501 + + + :return: The apps of this V1StoreAppVersionTemplate. # noqa: E501 + :rtype: list[V1StoreAppVersionTempleteApp] + """ + return self._apps + + @apps.setter + def apps(self, apps): + """Sets the apps of this V1StoreAppVersionTemplate. + + + :param apps: The apps of this V1StoreAppVersionTemplate. # noqa: E501 + :type: list[V1StoreAppVersionTempleteApp] + """ + if self.local_vars_configuration.client_side_validation and apps is None: # noqa: E501 + raise ValueError("Invalid value for `apps`, must not be `None`") # noqa: E501 + + self._apps = apps + + @property + def group_key(self): + """Gets the group_key of this V1StoreAppVersionTemplate. # noqa: E501 + + + :return: The group_key of this V1StoreAppVersionTemplate. # noqa: E501 + :rtype: str + """ + return self._group_key + + @group_key.setter + def group_key(self, group_key): + """Sets the group_key of this V1StoreAppVersionTemplate. + + + :param group_key: The group_key of this V1StoreAppVersionTemplate. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and group_key is None: # noqa: E501 + raise ValueError("Invalid value for `group_key`, must not be `None`") # noqa: E501 + + self._group_key = group_key + + @property + def group_name(self): + """Gets the group_name of this V1StoreAppVersionTemplate. # noqa: E501 + + + :return: The group_name of this V1StoreAppVersionTemplate. # noqa: E501 + :rtype: str + """ + return self._group_name + + @group_name.setter + def group_name(self, group_name): + """Sets the group_name of this V1StoreAppVersionTemplate. + + + :param group_name: The group_name of this V1StoreAppVersionTemplate. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and group_name is None: # noqa: E501 + raise ValueError("Invalid value for `group_name`, must not be `None`") # noqa: E501 + + self._group_name = group_name + + @property + def group_version(self): + """Gets the group_version of this V1StoreAppVersionTemplate. # noqa: E501 + + + :return: The group_version of this V1StoreAppVersionTemplate. # noqa: E501 + :rtype: str + """ + return self._group_version + + @group_version.setter + def group_version(self, group_version): + """Sets the group_version of this V1StoreAppVersionTemplate. + + + :param group_version: The group_version of this V1StoreAppVersionTemplate. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and group_version is None: # noqa: E501 + raise ValueError("Invalid value for `group_version`, must not be `None`") # noqa: E501 + + self._group_version = group_version + + @property + def plugins(self): + """Gets the plugins of this V1StoreAppVersionTemplate. # noqa: E501 + + + :return: The plugins of this V1StoreAppVersionTemplate. # noqa: E501 + :rtype: list[V1StoreAppVersionTempletePlugin] + """ + return self._plugins + + @plugins.setter + def plugins(self, plugins): + """Sets the plugins of this V1StoreAppVersionTemplate. + + + :param plugins: The plugins of this V1StoreAppVersionTemplate. # noqa: E501 + :type: list[V1StoreAppVersionTempletePlugin] + """ + + self._plugins = plugins + + @property + def template_version(self): + """Gets the template_version of this V1StoreAppVersionTemplate. # noqa: E501 + + + :return: The template_version of this V1StoreAppVersionTemplate. # noqa: E501 + :rtype: str + """ + return self._template_version + + @template_version.setter + def template_version(self, template_version): + """Sets the template_version of this V1StoreAppVersionTemplate. + + + :param template_version: The template_version of this V1StoreAppVersionTemplate. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and template_version is None: # noqa: E501 + raise ValueError("Invalid value for `template_version`, must not be `None`") # noqa: E501 + + self._template_version = template_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StoreAppVersionTemplate): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StoreAppVersionTemplate): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete.py b/openapi_client/models/v1_store_app_version_templete.py new file mode 100644 index 0000000..0f48a0b --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTemplete(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'apps': 'list[V1StoreAppVersionTempleteApp]', + 'group_key': 'str', + 'group_name': 'str', + 'group_version': 'str', + 'plugins': 'list[V1StoreAppVersionTempletePlugin]', + 'template_version': 'str' + } + + attribute_map = { + 'apps': 'apps', + 'group_key': 'group_key', + 'group_name': 'group_name', + 'group_version': 'group_version', + 'plugins': 'plugins', + 'template_version': 'template_version' + } + + def __init__(self, apps=None, group_key=None, group_name=None, group_version=None, plugins=None, template_version=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTemplete - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._apps = None + self._group_key = None + self._group_name = None + self._group_version = None + self._plugins = None + self._template_version = None + self.discriminator = None + + self.apps = apps + self.group_key = group_key + self.group_name = group_name + self.group_version = group_version + if plugins is not None: + self.plugins = plugins + self.template_version = template_version + + @property + def apps(self): + """Gets the apps of this V1StoreAppVersionTemplete. # noqa: E501 + + + :return: The apps of this V1StoreAppVersionTemplete. # noqa: E501 + :rtype: list[V1StoreAppVersionTempleteApp] + """ + return self._apps + + @apps.setter + def apps(self, apps): + """Sets the apps of this V1StoreAppVersionTemplete. + + + :param apps: The apps of this V1StoreAppVersionTemplete. # noqa: E501 + :type apps: list[V1StoreAppVersionTempleteApp] + """ + if self.local_vars_configuration.client_side_validation and apps is None: # noqa: E501 + raise ValueError("Invalid value for `apps`, must not be `None`") # noqa: E501 + + self._apps = apps + + @property + def group_key(self): + """Gets the group_key of this V1StoreAppVersionTemplete. # noqa: E501 + + + :return: The group_key of this V1StoreAppVersionTemplete. # noqa: E501 + :rtype: str + """ + return self._group_key + + @group_key.setter + def group_key(self, group_key): + """Sets the group_key of this V1StoreAppVersionTemplete. + + + :param group_key: The group_key of this V1StoreAppVersionTemplete. # noqa: E501 + :type group_key: str + """ + if self.local_vars_configuration.client_side_validation and group_key is None: # noqa: E501 + raise ValueError("Invalid value for `group_key`, must not be `None`") # noqa: E501 + + self._group_key = group_key + + @property + def group_name(self): + """Gets the group_name of this V1StoreAppVersionTemplete. # noqa: E501 + + + :return: The group_name of this V1StoreAppVersionTemplete. # noqa: E501 + :rtype: str + """ + return self._group_name + + @group_name.setter + def group_name(self, group_name): + """Sets the group_name of this V1StoreAppVersionTemplete. + + + :param group_name: The group_name of this V1StoreAppVersionTemplete. # noqa: E501 + :type group_name: str + """ + if self.local_vars_configuration.client_side_validation and group_name is None: # noqa: E501 + raise ValueError("Invalid value for `group_name`, must not be `None`") # noqa: E501 + + self._group_name = group_name + + @property + def group_version(self): + """Gets the group_version of this V1StoreAppVersionTemplete. # noqa: E501 + + + :return: The group_version of this V1StoreAppVersionTemplete. # noqa: E501 + :rtype: str + """ + return self._group_version + + @group_version.setter + def group_version(self, group_version): + """Sets the group_version of this V1StoreAppVersionTemplete. + + + :param group_version: The group_version of this V1StoreAppVersionTemplete. # noqa: E501 + :type group_version: str + """ + if self.local_vars_configuration.client_side_validation and group_version is None: # noqa: E501 + raise ValueError("Invalid value for `group_version`, must not be `None`") # noqa: E501 + + self._group_version = group_version + + @property + def plugins(self): + """Gets the plugins of this V1StoreAppVersionTemplete. # noqa: E501 + + + :return: The plugins of this V1StoreAppVersionTemplete. # noqa: E501 + :rtype: list[V1StoreAppVersionTempletePlugin] + """ + return self._plugins + + @plugins.setter + def plugins(self, plugins): + """Sets the plugins of this V1StoreAppVersionTemplete. + + + :param plugins: The plugins of this V1StoreAppVersionTemplete. # noqa: E501 + :type plugins: list[V1StoreAppVersionTempletePlugin] + """ + + self._plugins = plugins + + @property + def template_version(self): + """Gets the template_version of this V1StoreAppVersionTemplete. # noqa: E501 + + + :return: The template_version of this V1StoreAppVersionTemplete. # noqa: E501 + :rtype: str + """ + return self._template_version + + @template_version.setter + def template_version(self, template_version): + """Sets the template_version of this V1StoreAppVersionTemplete. + + + :param template_version: The template_version of this V1StoreAppVersionTemplete. # noqa: E501 + :type template_version: str + """ + if self.local_vars_configuration.client_side_validation and template_version is None: # noqa: E501 + raise ValueError("Invalid value for `template_version`, must not be `None`") # noqa: E501 + + self._template_version = template_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StoreAppVersionTemplete): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StoreAppVersionTemplete): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_app.py b/openapi_client/models/v1_store_app_version_templete_app.py new file mode 100644 index 0000000..89ba717 --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_app.py @@ -0,0 +1,902 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempleteApp(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'category': 'str', + 'cmd': 'str', + 'dep_service_map_list': 'list[V1StoreAppVersionTempleteAppDepService]', + 'deploy_version': 'str', + 'extend_method': 'str', + 'extend_method_map': 'V1StoreAppVersionTempleteAppExtendMethodRule', + 'image': 'str', + 'language': 'str', + 'memory': 'int', + 'mnt_relation_list': 'list[V1StoreAppVersionTempleteAppShareVolume]', + 'port_map_list': 'list[V1StoreAppVersionTempleteAppPort]', + 'probes': 'list[V1StoreAppVersionTempleteAppProbe]', + 'service_alias': 'str', + 'service_cname': 'str', + 'service_connect_info_map_list': 'list[V1StoreAppVersionTempleteAppEnv]', + 'service_env_map_list': 'list[V1StoreAppVersionTempleteAppEnv]', + 'service_id': 'str', + 'service_image': 'V1ImageInfo', + 'service_key': 'str', + 'service_name': 'str', + 'service_region': 'str', + 'service_related_plugin_config': 'list[V1StoreAppVersionTempleteAppPluginConfig]', + 'service_share_uuid': 'str', + 'service_source': 'str', + 'service_type': 'str', + 'service_volume_map_list': 'list[V1StoreAppVersionTempleteAppVolume]', + 'share_image': 'str', + 'share_type': 'str', + 'tenant_id': 'str', + 'version': 'str' + } + + attribute_map = { + 'category': 'category', + 'cmd': 'cmd', + 'dep_service_map_list': 'dep_service_map_list', + 'deploy_version': 'deploy_version', + 'extend_method': 'extend_method', + 'extend_method_map': 'extend_method_map', + 'image': 'image', + 'language': 'language', + 'memory': 'memory', + 'mnt_relation_list': 'mnt_relation_list', + 'port_map_list': 'port_map_list', + 'probes': 'probes', + 'service_alias': 'service_alias', + 'service_cname': 'service_cname', + 'service_connect_info_map_list': 'service_connect_info_map_list', + 'service_env_map_list': 'service_env_map_list', + 'service_id': 'service_id', + 'service_image': 'service_image', + 'service_key': 'service_key', + 'service_name': 'service_name', + 'service_region': 'service_region', + 'service_related_plugin_config': 'service_related_plugin_config', + 'service_share_uuid': 'service_share_uuid', + 'service_source': 'service_source', + 'service_type': 'service_type', + 'service_volume_map_list': 'service_volume_map_list', + 'share_image': 'share_image', + 'share_type': 'share_type', + 'tenant_id': 'tenant_id', + 'version': 'version' + } + + def __init__(self, category=None, cmd=None, dep_service_map_list=None, deploy_version=None, extend_method=None, extend_method_map=None, image=None, language=None, memory=None, mnt_relation_list=None, port_map_list=None, probes=None, service_alias=None, service_cname=None, service_connect_info_map_list=None, service_env_map_list=None, service_id=None, service_image=None, service_key=None, service_name=None, service_region=None, service_related_plugin_config=None, service_share_uuid=None, service_source=None, service_type=None, service_volume_map_list=None, share_image=None, share_type=None, tenant_id=None, version=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempleteApp - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._category = None + self._cmd = None + self._dep_service_map_list = None + self._deploy_version = None + self._extend_method = None + self._extend_method_map = None + self._image = None + self._language = None + self._memory = None + self._mnt_relation_list = None + self._port_map_list = None + self._probes = None + self._service_alias = None + self._service_cname = None + self._service_connect_info_map_list = None + self._service_env_map_list = None + self._service_id = None + self._service_image = None + self._service_key = None + self._service_name = None + self._service_region = None + self._service_related_plugin_config = None + self._service_share_uuid = None + self._service_source = None + self._service_type = None + self._service_volume_map_list = None + self._share_image = None + self._share_type = None + self._tenant_id = None + self._version = None + self.discriminator = None + + self.category = category + self.cmd = cmd + self.dep_service_map_list = dep_service_map_list + self.deploy_version = deploy_version + self.extend_method = extend_method + self.extend_method_map = extend_method_map + self.image = image + self.language = language + self.memory = memory + self.mnt_relation_list = mnt_relation_list + self.port_map_list = port_map_list + self.probes = probes + self.service_alias = service_alias + self.service_cname = service_cname + self.service_connect_info_map_list = service_connect_info_map_list + self.service_env_map_list = service_env_map_list + self.service_id = service_id + self.service_image = service_image + self.service_key = service_key + self.service_name = service_name + self.service_region = service_region + if service_related_plugin_config is not None: + self.service_related_plugin_config = service_related_plugin_config + if service_share_uuid is not None: + self.service_share_uuid = service_share_uuid + self.service_source = service_source + self.service_type = service_type + self.service_volume_map_list = service_volume_map_list + self.share_image = share_image + if share_type is not None: + self.share_type = share_type + self.tenant_id = tenant_id + self.version = version + + @property + def category(self): + """Gets the category of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The category of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this V1StoreAppVersionTempleteApp. + + + :param category: The category of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and category is None: # noqa: E501 + raise ValueError("Invalid value for `category`, must not be `None`") # noqa: E501 + + self._category = category + + @property + def cmd(self): + """Gets the cmd of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The cmd of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._cmd + + @cmd.setter + def cmd(self, cmd): + """Sets the cmd of this V1StoreAppVersionTempleteApp. + + + :param cmd: The cmd of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and cmd is None: # noqa: E501 + raise ValueError("Invalid value for `cmd`, must not be `None`") # noqa: E501 + + self._cmd = cmd + + @property + def dep_service_map_list(self): + """Gets the dep_service_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The dep_service_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[V1StoreAppVersionTempleteAppDepService] + """ + return self._dep_service_map_list + + @dep_service_map_list.setter + def dep_service_map_list(self, dep_service_map_list): + """Sets the dep_service_map_list of this V1StoreAppVersionTempleteApp. + + + :param dep_service_map_list: The dep_service_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: list[V1StoreAppVersionTempleteAppDepService] + """ + if self.local_vars_configuration.client_side_validation and dep_service_map_list is None: # noqa: E501 + raise ValueError("Invalid value for `dep_service_map_list`, must not be `None`") # noqa: E501 + + self._dep_service_map_list = dep_service_map_list + + @property + def deploy_version(self): + """Gets the deploy_version of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The deploy_version of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._deploy_version + + @deploy_version.setter + def deploy_version(self, deploy_version): + """Sets the deploy_version of this V1StoreAppVersionTempleteApp. + + + :param deploy_version: The deploy_version of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and deploy_version is None: # noqa: E501 + raise ValueError("Invalid value for `deploy_version`, must not be `None`") # noqa: E501 + + self._deploy_version = deploy_version + + @property + def extend_method(self): + """Gets the extend_method of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The extend_method of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._extend_method + + @extend_method.setter + def extend_method(self, extend_method): + """Sets the extend_method of this V1StoreAppVersionTempleteApp. + + + :param extend_method: The extend_method of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and extend_method is None: # noqa: E501 + raise ValueError("Invalid value for `extend_method`, must not be `None`") # noqa: E501 + + self._extend_method = extend_method + + @property + def extend_method_map(self): + """Gets the extend_method_map of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The extend_method_map of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: V1StoreAppVersionTempleteAppExtendMethodRule + """ + return self._extend_method_map + + @extend_method_map.setter + def extend_method_map(self, extend_method_map): + """Sets the extend_method_map of this V1StoreAppVersionTempleteApp. + + + :param extend_method_map: The extend_method_map of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: V1StoreAppVersionTempleteAppExtendMethodRule + """ + if self.local_vars_configuration.client_side_validation and extend_method_map is None: # noqa: E501 + raise ValueError("Invalid value for `extend_method_map`, must not be `None`") # noqa: E501 + + self._extend_method_map = extend_method_map + + @property + def image(self): + """Gets the image of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The image of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """Sets the image of this V1StoreAppVersionTempleteApp. + + + :param image: The image of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and image is None: # noqa: E501 + raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501 + + self._image = image + + @property + def language(self): + """Gets the language of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The language of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this V1StoreAppVersionTempleteApp. + + + :param language: The language of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and language is None: # noqa: E501 + raise ValueError("Invalid value for `language`, must not be `None`") # noqa: E501 + + self._language = language + + @property + def memory(self): + """Gets the memory of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The memory of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: int + """ + return self._memory + + @memory.setter + def memory(self, memory): + """Sets the memory of this V1StoreAppVersionTempleteApp. + + + :param memory: The memory of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and memory is None: # noqa: E501 + raise ValueError("Invalid value for `memory`, must not be `None`") # noqa: E501 + + self._memory = memory + + @property + def mnt_relation_list(self): + """Gets the mnt_relation_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The mnt_relation_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[V1StoreAppVersionTempleteAppShareVolume] + """ + return self._mnt_relation_list + + @mnt_relation_list.setter + def mnt_relation_list(self, mnt_relation_list): + """Sets the mnt_relation_list of this V1StoreAppVersionTempleteApp. + + + :param mnt_relation_list: The mnt_relation_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: list[V1StoreAppVersionTempleteAppShareVolume] + """ + if self.local_vars_configuration.client_side_validation and mnt_relation_list is None: # noqa: E501 + raise ValueError("Invalid value for `mnt_relation_list`, must not be `None`") # noqa: E501 + + self._mnt_relation_list = mnt_relation_list + + @property + def port_map_list(self): + """Gets the port_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The port_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[V1StoreAppVersionTempleteAppPort] + """ + return self._port_map_list + + @port_map_list.setter + def port_map_list(self, port_map_list): + """Sets the port_map_list of this V1StoreAppVersionTempleteApp. + + + :param port_map_list: The port_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: list[V1StoreAppVersionTempleteAppPort] + """ + if self.local_vars_configuration.client_side_validation and port_map_list is None: # noqa: E501 + raise ValueError("Invalid value for `port_map_list`, must not be `None`") # noqa: E501 + + self._port_map_list = port_map_list + + @property + def probes(self): + """Gets the probes of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The probes of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[V1StoreAppVersionTempleteAppProbe] + """ + return self._probes + + @probes.setter + def probes(self, probes): + """Sets the probes of this V1StoreAppVersionTempleteApp. + + + :param probes: The probes of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: list[V1StoreAppVersionTempleteAppProbe] + """ + if self.local_vars_configuration.client_side_validation and probes is None: # noqa: E501 + raise ValueError("Invalid value for `probes`, must not be `None`") # noqa: E501 + + self._probes = probes + + @property + def service_alias(self): + """Gets the service_alias of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_alias of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_alias + + @service_alias.setter + def service_alias(self, service_alias): + """Sets the service_alias of this V1StoreAppVersionTempleteApp. + + + :param service_alias: The service_alias of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_alias is None: # noqa: E501 + raise ValueError("Invalid value for `service_alias`, must not be `None`") # noqa: E501 + + self._service_alias = service_alias + + @property + def service_cname(self): + """Gets the service_cname of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_cname of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_cname + + @service_cname.setter + def service_cname(self, service_cname): + """Sets the service_cname of this V1StoreAppVersionTempleteApp. + + + :param service_cname: The service_cname of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_cname is None: # noqa: E501 + raise ValueError("Invalid value for `service_cname`, must not be `None`") # noqa: E501 + + self._service_cname = service_cname + + @property + def service_connect_info_map_list(self): + """Gets the service_connect_info_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_connect_info_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[V1StoreAppVersionTempleteAppEnv] + """ + return self._service_connect_info_map_list + + @service_connect_info_map_list.setter + def service_connect_info_map_list(self, service_connect_info_map_list): + """Sets the service_connect_info_map_list of this V1StoreAppVersionTempleteApp. + + + :param service_connect_info_map_list: The service_connect_info_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: list[V1StoreAppVersionTempleteAppEnv] + """ + if self.local_vars_configuration.client_side_validation and service_connect_info_map_list is None: # noqa: E501 + raise ValueError("Invalid value for `service_connect_info_map_list`, must not be `None`") # noqa: E501 + + self._service_connect_info_map_list = service_connect_info_map_list + + @property + def service_env_map_list(self): + """Gets the service_env_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_env_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[V1StoreAppVersionTempleteAppEnv] + """ + return self._service_env_map_list + + @service_env_map_list.setter + def service_env_map_list(self, service_env_map_list): + """Sets the service_env_map_list of this V1StoreAppVersionTempleteApp. + + + :param service_env_map_list: The service_env_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: list[V1StoreAppVersionTempleteAppEnv] + """ + if self.local_vars_configuration.client_side_validation and service_env_map_list is None: # noqa: E501 + raise ValueError("Invalid value for `service_env_map_list`, must not be `None`") # noqa: E501 + + self._service_env_map_list = service_env_map_list + + @property + def service_id(self): + """Gets the service_id of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_id of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_id + + @service_id.setter + def service_id(self, service_id): + """Sets the service_id of this V1StoreAppVersionTempleteApp. + + + :param service_id: The service_id of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_id is None: # noqa: E501 + raise ValueError("Invalid value for `service_id`, must not be `None`") # noqa: E501 + + self._service_id = service_id + + @property + def service_image(self): + """Gets the service_image of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_image of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: V1ImageInfo + """ + return self._service_image + + @service_image.setter + def service_image(self, service_image): + """Sets the service_image of this V1StoreAppVersionTempleteApp. + + + :param service_image: The service_image of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: V1ImageInfo + """ + if self.local_vars_configuration.client_side_validation and service_image is None: # noqa: E501 + raise ValueError("Invalid value for `service_image`, must not be `None`") # noqa: E501 + + self._service_image = service_image + + @property + def service_key(self): + """Gets the service_key of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_key of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_key + + @service_key.setter + def service_key(self, service_key): + """Sets the service_key of this V1StoreAppVersionTempleteApp. + + + :param service_key: The service_key of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_key is None: # noqa: E501 + raise ValueError("Invalid value for `service_key`, must not be `None`") # noqa: E501 + + self._service_key = service_key + + @property + def service_name(self): + """Gets the service_name of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_name of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_name + + @service_name.setter + def service_name(self, service_name): + """Sets the service_name of this V1StoreAppVersionTempleteApp. + + + :param service_name: The service_name of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_name is None: # noqa: E501 + raise ValueError("Invalid value for `service_name`, must not be `None`") # noqa: E501 + + self._service_name = service_name + + @property + def service_region(self): + """Gets the service_region of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_region of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_region + + @service_region.setter + def service_region(self, service_region): + """Sets the service_region of this V1StoreAppVersionTempleteApp. + + + :param service_region: The service_region of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_region is None: # noqa: E501 + raise ValueError("Invalid value for `service_region`, must not be `None`") # noqa: E501 + + self._service_region = service_region + + @property + def service_related_plugin_config(self): + """Gets the service_related_plugin_config of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_related_plugin_config of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[V1StoreAppVersionTempleteAppPluginConfig] + """ + return self._service_related_plugin_config + + @service_related_plugin_config.setter + def service_related_plugin_config(self, service_related_plugin_config): + """Sets the service_related_plugin_config of this V1StoreAppVersionTempleteApp. + + + :param service_related_plugin_config: The service_related_plugin_config of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: list[V1StoreAppVersionTempleteAppPluginConfig] + """ + + self._service_related_plugin_config = service_related_plugin_config + + @property + def service_share_uuid(self): + """Gets the service_share_uuid of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_share_uuid of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_share_uuid + + @service_share_uuid.setter + def service_share_uuid(self, service_share_uuid): + """Sets the service_share_uuid of this V1StoreAppVersionTempleteApp. + + + :param service_share_uuid: The service_share_uuid of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + + self._service_share_uuid = service_share_uuid + + @property + def service_source(self): + """Gets the service_source of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_source of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_source + + @service_source.setter + def service_source(self, service_source): + """Sets the service_source of this V1StoreAppVersionTempleteApp. + + + :param service_source: The service_source of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_source is None: # noqa: E501 + raise ValueError("Invalid value for `service_source`, must not be `None`") # noqa: E501 + + self._service_source = service_source + + @property + def service_type(self): + """Gets the service_type of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_type of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._service_type + + @service_type.setter + def service_type(self, service_type): + """Sets the service_type of this V1StoreAppVersionTempleteApp. + + + :param service_type: The service_type of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_type is None: # noqa: E501 + raise ValueError("Invalid value for `service_type`, must not be `None`") # noqa: E501 + + self._service_type = service_type + + @property + def service_volume_map_list(self): + """Gets the service_volume_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The service_volume_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: list[V1StoreAppVersionTempleteAppVolume] + """ + return self._service_volume_map_list + + @service_volume_map_list.setter + def service_volume_map_list(self, service_volume_map_list): + """Sets the service_volume_map_list of this V1StoreAppVersionTempleteApp. + + + :param service_volume_map_list: The service_volume_map_list of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: list[V1StoreAppVersionTempleteAppVolume] + """ + if self.local_vars_configuration.client_side_validation and service_volume_map_list is None: # noqa: E501 + raise ValueError("Invalid value for `service_volume_map_list`, must not be `None`") # noqa: E501 + + self._service_volume_map_list = service_volume_map_list + + @property + def share_image(self): + """Gets the share_image of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The share_image of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._share_image + + @share_image.setter + def share_image(self, share_image): + """Sets the share_image of this V1StoreAppVersionTempleteApp. + + + :param share_image: The share_image of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and share_image is None: # noqa: E501 + raise ValueError("Invalid value for `share_image`, must not be `None`") # noqa: E501 + + self._share_image = share_image + + @property + def share_type(self): + """Gets the share_type of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The share_type of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._share_type + + @share_type.setter + def share_type(self, share_type): + """Sets the share_type of this V1StoreAppVersionTempleteApp. + + + :param share_type: The share_type of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + + self._share_type = share_type + + @property + def tenant_id(self): + """Gets the tenant_id of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The tenant_id of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._tenant_id + + @tenant_id.setter + def tenant_id(self, tenant_id): + """Sets the tenant_id of this V1StoreAppVersionTempleteApp. + + + :param tenant_id: The tenant_id of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and tenant_id is None: # noqa: E501 + raise ValueError("Invalid value for `tenant_id`, must not be `None`") # noqa: E501 + + self._tenant_id = tenant_id + + @property + def version(self): + """Gets the version of this V1StoreAppVersionTempleteApp. # noqa: E501 + + + :return: The version of this V1StoreAppVersionTempleteApp. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this V1StoreAppVersionTempleteApp. + + + :param version: The version of this V1StoreAppVersionTempleteApp. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and version is None: # noqa: E501 + raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 + + self._version = version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StoreAppVersionTempleteApp): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StoreAppVersionTempleteApp): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_app_dep_service.py b/openapi_client/models/v1_store_app_version_templete_app_dep_service.py new file mode 100644 index 0000000..fce1b11 --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_app_dep_service.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempleteAppDepService(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dep_service_key': 'str' + } + + attribute_map = { + 'dep_service_key': 'dep_service_key' + } + + def __init__(self, dep_service_key=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempleteAppDepService - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._dep_service_key = None + self.discriminator = None + + self.dep_service_key = dep_service_key + + @property + def dep_service_key(self): + """Gets the dep_service_key of this V1StoreAppVersionTempleteAppDepService. # noqa: E501 + + + :return: The dep_service_key of this V1StoreAppVersionTempleteAppDepService. # noqa: E501 + :rtype: str + """ + return self._dep_service_key + + @dep_service_key.setter + def dep_service_key(self, dep_service_key): + """Sets the dep_service_key of this V1StoreAppVersionTempleteAppDepService. + + + :param dep_service_key: The dep_service_key of this V1StoreAppVersionTempleteAppDepService. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and dep_service_key is None: # noqa: E501 + raise ValueError("Invalid value for `dep_service_key`, must not be `None`") # noqa: E501 + + self._dep_service_key = dep_service_key + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StoreAppVersionTempleteAppDepService): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StoreAppVersionTempleteAppDepService): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_app_env.py b/openapi_client/models/v1_store_app_version_templete_app_env.py new file mode 100644 index 0000000..21201bb --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_app_env.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempleteAppEnv(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'attr_name': 'str', + 'attr_value': 'str', + 'is_change': 'bool', + 'name': 'str' + } + + attribute_map = { + 'attr_name': 'attr_name', + 'attr_value': 'attr_value', + 'is_change': 'is_change', + 'name': 'name' + } + + def __init__(self, attr_name=None, attr_value=None, is_change=None, name=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempleteAppEnv - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._attr_name = None + self._attr_value = None + self._is_change = None + self._name = None + self.discriminator = None + + self.attr_name = attr_name + self.attr_value = attr_value + self.is_change = is_change + self.name = name + + @property + def attr_name(self): + """Gets the attr_name of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + + + :return: The attr_name of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + :rtype: str + """ + return self._attr_name + + @attr_name.setter + def attr_name(self, attr_name): + """Sets the attr_name of this V1StoreAppVersionTempleteAppEnv. + + + :param attr_name: The attr_name of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and attr_name is None: # noqa: E501 + raise ValueError("Invalid value for `attr_name`, must not be `None`") # noqa: E501 + + self._attr_name = attr_name + + @property + def attr_value(self): + """Gets the attr_value of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + + + :return: The attr_value of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + :rtype: str + """ + return self._attr_value + + @attr_value.setter + def attr_value(self, attr_value): + """Sets the attr_value of this V1StoreAppVersionTempleteAppEnv. + + + :param attr_value: The attr_value of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and attr_value is None: # noqa: E501 + raise ValueError("Invalid value for `attr_value`, must not be `None`") # noqa: E501 + + self._attr_value = attr_value + + @property + def is_change(self): + """Gets the is_change of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + + + :return: The is_change of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + :rtype: bool + """ + return self._is_change + + @is_change.setter + def is_change(self, is_change): + """Sets the is_change of this V1StoreAppVersionTempleteAppEnv. + + + :param is_change: The is_change of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + :type: bool + """ + if self.local_vars_configuration.client_side_validation and is_change is None: # noqa: E501 + raise ValueError("Invalid value for `is_change`, must not be `None`") # noqa: E501 + + self._is_change = is_change + + @property + def name(self): + """Gets the name of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + + + :return: The name of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1StoreAppVersionTempleteAppEnv. + + + :param name: The name of this V1StoreAppVersionTempleteAppEnv. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StoreAppVersionTempleteAppEnv): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StoreAppVersionTempleteAppEnv): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_app_extend_method_rule.py b/openapi_client/models/v1_store_app_version_templete_app_extend_method_rule.py new file mode 100644 index 0000000..20238b0 --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_app_extend_method_rule.py @@ -0,0 +1,284 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempleteAppExtendMethodRule(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'is_restart': 'int', + 'max_memory': 'int', + 'max_node': 'int', + 'min_memory': 'int', + 'min_node': 'int', + 'step_memory': 'int', + 'step_node': 'int' + } + + attribute_map = { + 'is_restart': 'is_restart', + 'max_memory': 'max_memory', + 'max_node': 'max_node', + 'min_memory': 'min_memory', + 'min_node': 'min_node', + 'step_memory': 'step_memory', + 'step_node': 'step_node' + } + + def __init__(self, is_restart=None, max_memory=None, max_node=None, min_memory=None, min_node=None, step_memory=None, step_node=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempleteAppExtendMethodRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._is_restart = None + self._max_memory = None + self._max_node = None + self._min_memory = None + self._min_node = None + self._step_memory = None + self._step_node = None + self.discriminator = None + + self.is_restart = is_restart + self.max_memory = max_memory + self.max_node = max_node + self.min_memory = min_memory + self.min_node = min_node + self.step_memory = step_memory + self.step_node = step_node + + @property + def is_restart(self): + """Gets the is_restart of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The is_restart of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._is_restart + + @is_restart.setter + def is_restart(self, is_restart): + """Sets the is_restart of this V1StoreAppVersionTempleteAppExtendMethodRule. + + + :param is_restart: The is_restart of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and is_restart is None: # noqa: E501 + raise ValueError("Invalid value for `is_restart`, must not be `None`") # noqa: E501 + + self._is_restart = is_restart + + @property + def max_memory(self): + """Gets the max_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The max_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._max_memory + + @max_memory.setter + def max_memory(self, max_memory): + """Sets the max_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. + + + :param max_memory: The max_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and max_memory is None: # noqa: E501 + raise ValueError("Invalid value for `max_memory`, must not be `None`") # noqa: E501 + + self._max_memory = max_memory + + @property + def max_node(self): + """Gets the max_node of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The max_node of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._max_node + + @max_node.setter + def max_node(self, max_node): + """Sets the max_node of this V1StoreAppVersionTempleteAppExtendMethodRule. + + + :param max_node: The max_node of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and max_node is None: # noqa: E501 + raise ValueError("Invalid value for `max_node`, must not be `None`") # noqa: E501 + + self._max_node = max_node + + @property + def min_memory(self): + """Gets the min_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The min_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._min_memory + + @min_memory.setter + def min_memory(self, min_memory): + """Sets the min_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. + + + :param min_memory: The min_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and min_memory is None: # noqa: E501 + raise ValueError("Invalid value for `min_memory`, must not be `None`") # noqa: E501 + + self._min_memory = min_memory + + @property + def min_node(self): + """Gets the min_node of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The min_node of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._min_node + + @min_node.setter + def min_node(self, min_node): + """Sets the min_node of this V1StoreAppVersionTempleteAppExtendMethodRule. + + + :param min_node: The min_node of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and min_node is None: # noqa: E501 + raise ValueError("Invalid value for `min_node`, must not be `None`") # noqa: E501 + + self._min_node = min_node + + @property + def step_memory(self): + """Gets the step_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The step_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._step_memory + + @step_memory.setter + def step_memory(self, step_memory): + """Sets the step_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. + + + :param step_memory: The step_memory of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and step_memory is None: # noqa: E501 + raise ValueError("Invalid value for `step_memory`, must not be `None`") # noqa: E501 + + self._step_memory = step_memory + + @property + def step_node(self): + """Gets the step_node of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + + + :return: The step_node of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :rtype: int + """ + return self._step_node + + @step_node.setter + def step_node(self, step_node): + """Sets the step_node of this V1StoreAppVersionTempleteAppExtendMethodRule. + + + :param step_node: The step_node of this V1StoreAppVersionTempleteAppExtendMethodRule. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and step_node is None: # noqa: E501 + raise ValueError("Invalid value for `step_node`, must not be `None`") # noqa: E501 + + self._step_node = step_node + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StoreAppVersionTempleteAppExtendMethodRule): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StoreAppVersionTempleteAppExtendMethodRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_app_plugin_config.py b/openapi_client/models/v1_store_app_version_templete_app_plugin_config.py new file mode 100644 index 0000000..84b89c1 --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_app_plugin_config.py @@ -0,0 +1,338 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempleteAppPluginConfig(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'int', + 'attr': 'list[object]', + 'build_version': 'str', + 'create_time': 'str', + 'plugin_id': 'str', + 'plugin_key': 'str', + 'plugin_status': 'bool', + 'service_id': 'str', + 'service_meta_type': 'str' + } + + attribute_map = { + 'id': 'ID', + 'attr': 'attr', + 'build_version': 'build_version', + 'create_time': 'create_time', + 'plugin_id': 'plugin_id', + 'plugin_key': 'plugin_key', + 'plugin_status': 'plugin_status', + 'service_id': 'service_id', + 'service_meta_type': 'service_meta_type' + } + + def __init__(self, id=None, attr=None, build_version=None, create_time=None, plugin_id=None, plugin_key=None, plugin_status=None, service_id=None, service_meta_type=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempleteAppPluginConfig - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._id = None + self._attr = None + self._build_version = None + self._create_time = None + self._plugin_id = None + self._plugin_key = None + self._plugin_status = None + self._service_id = None + self._service_meta_type = None + self.discriminator = None + + self.id = id + self.attr = attr + self.build_version = build_version + self.create_time = create_time + self.plugin_id = plugin_id + self.plugin_key = plugin_key + self.plugin_status = plugin_status + self.service_id = service_id + self.service_meta_type = service_meta_type + + @property + def id(self): + """Gets the id of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The id of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this V1StoreAppVersionTempleteAppPluginConfig. + + + :param id: The id of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def attr(self): + """Gets the attr of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The attr of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: list[object] + """ + return self._attr + + @attr.setter + def attr(self, attr): + """Sets the attr of this V1StoreAppVersionTempleteAppPluginConfig. + + + :param attr: The attr of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type: list[object] + """ + if self.local_vars_configuration.client_side_validation and attr is None: # noqa: E501 + raise ValueError("Invalid value for `attr`, must not be `None`") # noqa: E501 + + self._attr = attr + + @property + def build_version(self): + """Gets the build_version of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The build_version of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._build_version + + @build_version.setter + def build_version(self, build_version): + """Sets the build_version of this V1StoreAppVersionTempleteAppPluginConfig. + + + :param build_version: The build_version of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and build_version is None: # noqa: E501 + raise ValueError("Invalid value for `build_version`, must not be `None`") # noqa: E501 + + self._build_version = build_version + + @property + def create_time(self): + """Gets the create_time of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The create_time of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this V1StoreAppVersionTempleteAppPluginConfig. + + + :param create_time: The create_time of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and create_time is None: # noqa: E501 + raise ValueError("Invalid value for `create_time`, must not be `None`") # noqa: E501 + + self._create_time = create_time + + @property + def plugin_id(self): + """Gets the plugin_id of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The plugin_id of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._plugin_id + + @plugin_id.setter + def plugin_id(self, plugin_id): + """Sets the plugin_id of this V1StoreAppVersionTempleteAppPluginConfig. + + + :param plugin_id: The plugin_id of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and plugin_id is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_id`, must not be `None`") # noqa: E501 + + self._plugin_id = plugin_id + + @property + def plugin_key(self): + """Gets the plugin_key of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The plugin_key of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._plugin_key + + @plugin_key.setter + def plugin_key(self, plugin_key): + """Sets the plugin_key of this V1StoreAppVersionTempleteAppPluginConfig. + + + :param plugin_key: The plugin_key of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and plugin_key is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_key`, must not be `None`") # noqa: E501 + + self._plugin_key = plugin_key + + @property + def plugin_status(self): + """Gets the plugin_status of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The plugin_status of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: bool + """ + return self._plugin_status + + @plugin_status.setter + def plugin_status(self, plugin_status): + """Sets the plugin_status of this V1StoreAppVersionTempleteAppPluginConfig. + + + :param plugin_status: The plugin_status of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type: bool + """ + if self.local_vars_configuration.client_side_validation and plugin_status is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_status`, must not be `None`") # noqa: E501 + + self._plugin_status = plugin_status + + @property + def service_id(self): + """Gets the service_id of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The service_id of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._service_id + + @service_id.setter + def service_id(self, service_id): + """Sets the service_id of this V1StoreAppVersionTempleteAppPluginConfig. + + + :param service_id: The service_id of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_id is None: # noqa: E501 + raise ValueError("Invalid value for `service_id`, must not be `None`") # noqa: E501 + + self._service_id = service_id + + @property + def service_meta_type(self): + """Gets the service_meta_type of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + + + :return: The service_meta_type of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :rtype: str + """ + return self._service_meta_type + + @service_meta_type.setter + def service_meta_type(self, service_meta_type): + """Sets the service_meta_type of this V1StoreAppVersionTempleteAppPluginConfig. + + + :param service_meta_type: The service_meta_type of this V1StoreAppVersionTempleteAppPluginConfig. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_meta_type is None: # noqa: E501 + raise ValueError("Invalid value for `service_meta_type`, must not be `None`") # noqa: E501 + + self._service_meta_type = service_meta_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StoreAppVersionTempleteAppPluginConfig): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StoreAppVersionTempleteAppPluginConfig): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_app_port.py b/openapi_client/models/v1_store_app_version_templete_app_port.py new file mode 100644 index 0000000..febb0c9 --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_app_port.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempleteAppPort(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'container_port': 'int', + 'is_inner_service': 'bool', + 'is_outer_service': 'bool', + 'port_alias': 'str', + 'protocol': 'str', + 'tenant_id': 'str' + } + + attribute_map = { + 'container_port': 'container_port', + 'is_inner_service': 'is_inner_service', + 'is_outer_service': 'is_outer_service', + 'port_alias': 'port_alias', + 'protocol': 'protocol', + 'tenant_id': 'tenant_id' + } + + def __init__(self, container_port=None, is_inner_service=None, is_outer_service=None, port_alias=None, protocol=None, tenant_id=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempleteAppPort - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._container_port = None + self._is_inner_service = None + self._is_outer_service = None + self._port_alias = None + self._protocol = None + self._tenant_id = None + self.discriminator = None + + self.container_port = container_port + self.is_inner_service = is_inner_service + self.is_outer_service = is_outer_service + self.port_alias = port_alias + self.protocol = protocol + self.tenant_id = tenant_id + + @property + def container_port(self): + """Gets the container_port of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The container_port of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: int + """ + return self._container_port + + @container_port.setter + def container_port(self, container_port): + """Sets the container_port of this V1StoreAppVersionTempleteAppPort. + + + :param container_port: The container_port of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and container_port is None: # noqa: E501 + raise ValueError("Invalid value for `container_port`, must not be `None`") # noqa: E501 + + self._container_port = container_port + + @property + def is_inner_service(self): + """Gets the is_inner_service of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The is_inner_service of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: bool + """ + return self._is_inner_service + + @is_inner_service.setter + def is_inner_service(self, is_inner_service): + """Sets the is_inner_service of this V1StoreAppVersionTempleteAppPort. + + + :param is_inner_service: The is_inner_service of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :type: bool + """ + if self.local_vars_configuration.client_side_validation and is_inner_service is None: # noqa: E501 + raise ValueError("Invalid value for `is_inner_service`, must not be `None`") # noqa: E501 + + self._is_inner_service = is_inner_service + + @property + def is_outer_service(self): + """Gets the is_outer_service of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The is_outer_service of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: bool + """ + return self._is_outer_service + + @is_outer_service.setter + def is_outer_service(self, is_outer_service): + """Sets the is_outer_service of this V1StoreAppVersionTempleteAppPort. + + + :param is_outer_service: The is_outer_service of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :type: bool + """ + if self.local_vars_configuration.client_side_validation and is_outer_service is None: # noqa: E501 + raise ValueError("Invalid value for `is_outer_service`, must not be `None`") # noqa: E501 + + self._is_outer_service = is_outer_service + + @property + def port_alias(self): + """Gets the port_alias of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The port_alias of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: str + """ + return self._port_alias + + @port_alias.setter + def port_alias(self, port_alias): + """Sets the port_alias of this V1StoreAppVersionTempleteAppPort. + + + :param port_alias: The port_alias of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and port_alias is None: # noqa: E501 + raise ValueError("Invalid value for `port_alias`, must not be `None`") # noqa: E501 + + self._port_alias = port_alias + + @property + def protocol(self): + """Gets the protocol of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The protocol of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this V1StoreAppVersionTempleteAppPort. + + + :param protocol: The protocol of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and protocol is None: # noqa: E501 + raise ValueError("Invalid value for `protocol`, must not be `None`") # noqa: E501 + + self._protocol = protocol + + @property + def tenant_id(self): + """Gets the tenant_id of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + + + :return: The tenant_id of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :rtype: str + """ + return self._tenant_id + + @tenant_id.setter + def tenant_id(self, tenant_id): + """Sets the tenant_id of this V1StoreAppVersionTempleteAppPort. + + + :param tenant_id: The tenant_id of this V1StoreAppVersionTempleteAppPort. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and tenant_id is None: # noqa: E501 + raise ValueError("Invalid value for `tenant_id`, must not be `None`") # noqa: E501 + + self._tenant_id = tenant_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StoreAppVersionTempleteAppPort): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StoreAppVersionTempleteAppPort): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_app_probe.py b/openapi_client/models/v1_store_app_version_templete_app_probe.py new file mode 100644 index 0000000..2b7c508 --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_app_probe.py @@ -0,0 +1,500 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempleteAppProbe(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'int', + 'cmd': 'str', + 'failure_threshold': 'int', + 'http_header': 'str', + 'initial_delay_second': 'int', + 'is_used': 'bool', + 'mode': 'str', + 'path': 'str', + 'period_second': 'int', + 'port': 'int', + 'probe_id': 'str', + 'scheme': 'str', + 'service_id': 'str', + 'success_threshold': 'int', + 'timeout_second': 'int' + } + + attribute_map = { + 'id': 'ID', + 'cmd': 'cmd', + 'failure_threshold': 'failure_threshold', + 'http_header': 'http_header', + 'initial_delay_second': 'initial_delay_second', + 'is_used': 'is_used', + 'mode': 'mode', + 'path': 'path', + 'period_second': 'period_second', + 'port': 'port', + 'probe_id': 'probe_id', + 'scheme': 'scheme', + 'service_id': 'service_id', + 'success_threshold': 'success_threshold', + 'timeout_second': 'timeout_second' + } + + def __init__(self, id=None, cmd=None, failure_threshold=None, http_header=None, initial_delay_second=None, is_used=None, mode=None, path=None, period_second=None, port=None, probe_id=None, scheme=None, service_id=None, success_threshold=None, timeout_second=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempleteAppProbe - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._id = None + self._cmd = None + self._failure_threshold = None + self._http_header = None + self._initial_delay_second = None + self._is_used = None + self._mode = None + self._path = None + self._period_second = None + self._port = None + self._probe_id = None + self._scheme = None + self._service_id = None + self._success_threshold = None + self._timeout_second = None + self.discriminator = None + + self.id = id + self.cmd = cmd + self.failure_threshold = failure_threshold + self.http_header = http_header + self.initial_delay_second = initial_delay_second + self.is_used = is_used + self.mode = mode + self.path = path + self.period_second = period_second + self.port = port + self.probe_id = probe_id + self.scheme = scheme + self.service_id = service_id + self.success_threshold = success_threshold + self.timeout_second = timeout_second + + @property + def id(self): + """Gets the id of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The id of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this V1StoreAppVersionTempleteAppProbe. + + + :param id: The id of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def cmd(self): + """Gets the cmd of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The cmd of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._cmd + + @cmd.setter + def cmd(self, cmd): + """Sets the cmd of this V1StoreAppVersionTempleteAppProbe. + + + :param cmd: The cmd of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and cmd is None: # noqa: E501 + raise ValueError("Invalid value for `cmd`, must not be `None`") # noqa: E501 + + self._cmd = cmd + + @property + def failure_threshold(self): + """Gets the failure_threshold of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The failure_threshold of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._failure_threshold + + @failure_threshold.setter + def failure_threshold(self, failure_threshold): + """Sets the failure_threshold of this V1StoreAppVersionTempleteAppProbe. + + + :param failure_threshold: The failure_threshold of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and failure_threshold is None: # noqa: E501 + raise ValueError("Invalid value for `failure_threshold`, must not be `None`") # noqa: E501 + + self._failure_threshold = failure_threshold + + @property + def http_header(self): + """Gets the http_header of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The http_header of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._http_header + + @http_header.setter + def http_header(self, http_header): + """Sets the http_header of this V1StoreAppVersionTempleteAppProbe. + + + :param http_header: The http_header of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and http_header is None: # noqa: E501 + raise ValueError("Invalid value for `http_header`, must not be `None`") # noqa: E501 + + self._http_header = http_header + + @property + def initial_delay_second(self): + """Gets the initial_delay_second of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The initial_delay_second of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._initial_delay_second + + @initial_delay_second.setter + def initial_delay_second(self, initial_delay_second): + """Sets the initial_delay_second of this V1StoreAppVersionTempleteAppProbe. + + + :param initial_delay_second: The initial_delay_second of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and initial_delay_second is None: # noqa: E501 + raise ValueError("Invalid value for `initial_delay_second`, must not be `None`") # noqa: E501 + + self._initial_delay_second = initial_delay_second + + @property + def is_used(self): + """Gets the is_used of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The is_used of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: bool + """ + return self._is_used + + @is_used.setter + def is_used(self, is_used): + """Sets the is_used of this V1StoreAppVersionTempleteAppProbe. + + + :param is_used: The is_used of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: bool + """ + if self.local_vars_configuration.client_side_validation and is_used is None: # noqa: E501 + raise ValueError("Invalid value for `is_used`, must not be `None`") # noqa: E501 + + self._is_used = is_used + + @property + def mode(self): + """Gets the mode of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The mode of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this V1StoreAppVersionTempleteAppProbe. + + + :param mode: The mode of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and mode is None: # noqa: E501 + raise ValueError("Invalid value for `mode`, must not be `None`") # noqa: E501 + + self._mode = mode + + @property + def path(self): + """Gets the path of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The path of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this V1StoreAppVersionTempleteAppProbe. + + + :param path: The path of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 + + self._path = path + + @property + def period_second(self): + """Gets the period_second of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The period_second of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._period_second + + @period_second.setter + def period_second(self, period_second): + """Sets the period_second of this V1StoreAppVersionTempleteAppProbe. + + + :param period_second: The period_second of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and period_second is None: # noqa: E501 + raise ValueError("Invalid value for `period_second`, must not be `None`") # noqa: E501 + + self._period_second = period_second + + @property + def port(self): + """Gets the port of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The port of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this V1StoreAppVersionTempleteAppProbe. + + + :param port: The port of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and port is None: # noqa: E501 + raise ValueError("Invalid value for `port`, must not be `None`") # noqa: E501 + + self._port = port + + @property + def probe_id(self): + """Gets the probe_id of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The probe_id of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._probe_id + + @probe_id.setter + def probe_id(self, probe_id): + """Sets the probe_id of this V1StoreAppVersionTempleteAppProbe. + + + :param probe_id: The probe_id of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and probe_id is None: # noqa: E501 + raise ValueError("Invalid value for `probe_id`, must not be `None`") # noqa: E501 + + self._probe_id = probe_id + + @property + def scheme(self): + """Gets the scheme of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The scheme of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._scheme + + @scheme.setter + def scheme(self, scheme): + """Sets the scheme of this V1StoreAppVersionTempleteAppProbe. + + + :param scheme: The scheme of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and scheme is None: # noqa: E501 + raise ValueError("Invalid value for `scheme`, must not be `None`") # noqa: E501 + + self._scheme = scheme + + @property + def service_id(self): + """Gets the service_id of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The service_id of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: str + """ + return self._service_id + + @service_id.setter + def service_id(self, service_id): + """Sets the service_id of this V1StoreAppVersionTempleteAppProbe. + + + :param service_id: The service_id of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_id is None: # noqa: E501 + raise ValueError("Invalid value for `service_id`, must not be `None`") # noqa: E501 + + self._service_id = service_id + + @property + def success_threshold(self): + """Gets the success_threshold of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The success_threshold of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._success_threshold + + @success_threshold.setter + def success_threshold(self, success_threshold): + """Sets the success_threshold of this V1StoreAppVersionTempleteAppProbe. + + + :param success_threshold: The success_threshold of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and success_threshold is None: # noqa: E501 + raise ValueError("Invalid value for `success_threshold`, must not be `None`") # noqa: E501 + + self._success_threshold = success_threshold + + @property + def timeout_second(self): + """Gets the timeout_second of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + + + :return: The timeout_second of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :rtype: int + """ + return self._timeout_second + + @timeout_second.setter + def timeout_second(self, timeout_second): + """Sets the timeout_second of this V1StoreAppVersionTempleteAppProbe. + + + :param timeout_second: The timeout_second of this V1StoreAppVersionTempleteAppProbe. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and timeout_second is None: # noqa: E501 + raise ValueError("Invalid value for `timeout_second`, must not be `None`") # noqa: E501 + + self._timeout_second = timeout_second + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StoreAppVersionTempleteAppProbe): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StoreAppVersionTempleteAppProbe): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_app_share_volume.py b/openapi_client/models/v1_store_app_version_templete_app_share_volume.py new file mode 100644 index 0000000..cd54eec --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_app_share_volume.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempleteAppShareVolume(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'mnt_dir': 'str', + 'mnt_name': 'str', + 'service_share_uuid': 'str' + } + + attribute_map = { + 'mnt_dir': 'mnt_dir', + 'mnt_name': 'mnt_name', + 'service_share_uuid': 'service_share_uuid' + } + + def __init__(self, mnt_dir=None, mnt_name=None, service_share_uuid=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempleteAppShareVolume - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._mnt_dir = None + self._mnt_name = None + self._service_share_uuid = None + self.discriminator = None + + self.mnt_dir = mnt_dir + self.mnt_name = mnt_name + self.service_share_uuid = service_share_uuid + + @property + def mnt_dir(self): + """Gets the mnt_dir of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + + + :return: The mnt_dir of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + :rtype: str + """ + return self._mnt_dir + + @mnt_dir.setter + def mnt_dir(self, mnt_dir): + """Sets the mnt_dir of this V1StoreAppVersionTempleteAppShareVolume. + + + :param mnt_dir: The mnt_dir of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and mnt_dir is None: # noqa: E501 + raise ValueError("Invalid value for `mnt_dir`, must not be `None`") # noqa: E501 + + self._mnt_dir = mnt_dir + + @property + def mnt_name(self): + """Gets the mnt_name of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + + + :return: The mnt_name of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + :rtype: str + """ + return self._mnt_name + + @mnt_name.setter + def mnt_name(self, mnt_name): + """Sets the mnt_name of this V1StoreAppVersionTempleteAppShareVolume. + + + :param mnt_name: The mnt_name of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and mnt_name is None: # noqa: E501 + raise ValueError("Invalid value for `mnt_name`, must not be `None`") # noqa: E501 + + self._mnt_name = mnt_name + + @property + def service_share_uuid(self): + """Gets the service_share_uuid of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + + + :return: The service_share_uuid of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + :rtype: str + """ + return self._service_share_uuid + + @service_share_uuid.setter + def service_share_uuid(self, service_share_uuid): + """Sets the service_share_uuid of this V1StoreAppVersionTempleteAppShareVolume. + + + :param service_share_uuid: The service_share_uuid of this V1StoreAppVersionTempleteAppShareVolume. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_share_uuid is None: # noqa: E501 + raise ValueError("Invalid value for `service_share_uuid`, must not be `None`") # noqa: E501 + + self._service_share_uuid = service_share_uuid + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StoreAppVersionTempleteAppShareVolume): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StoreAppVersionTempleteAppShareVolume): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_app_volume.py b/openapi_client/models/v1_store_app_version_templete_app_volume.py new file mode 100644 index 0000000..20ccf40 --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_app_volume.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempleteAppVolume(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'access_mode': 'str', + 'file_content': 'str', + 'volume_capacity': 'int', + 'volume_name': 'str', + 'volume_path': 'str', + 'volume_type': 'str' + } + + attribute_map = { + 'access_mode': 'access_mode', + 'file_content': 'file_content', + 'volume_capacity': 'volume_capacity', + 'volume_name': 'volume_name', + 'volume_path': 'volume_path', + 'volume_type': 'volume_type' + } + + def __init__(self, access_mode=None, file_content=None, volume_capacity=None, volume_name=None, volume_path=None, volume_type=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempleteAppVolume - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._access_mode = None + self._file_content = None + self._volume_capacity = None + self._volume_name = None + self._volume_path = None + self._volume_type = None + self.discriminator = None + + self.access_mode = access_mode + self.file_content = file_content + self.volume_capacity = volume_capacity + self.volume_name = volume_name + self.volume_path = volume_path + self.volume_type = volume_type + + @property + def access_mode(self): + """Gets the access_mode of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The access_mode of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: str + """ + return self._access_mode + + @access_mode.setter + def access_mode(self, access_mode): + """Sets the access_mode of this V1StoreAppVersionTempleteAppVolume. + + + :param access_mode: The access_mode of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and access_mode is None: # noqa: E501 + raise ValueError("Invalid value for `access_mode`, must not be `None`") # noqa: E501 + + self._access_mode = access_mode + + @property + def file_content(self): + """Gets the file_content of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The file_content of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: str + """ + return self._file_content + + @file_content.setter + def file_content(self, file_content): + """Sets the file_content of this V1StoreAppVersionTempleteAppVolume. + + + :param file_content: The file_content of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and file_content is None: # noqa: E501 + raise ValueError("Invalid value for `file_content`, must not be `None`") # noqa: E501 + + self._file_content = file_content + + @property + def volume_capacity(self): + """Gets the volume_capacity of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The volume_capacity of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: int + """ + return self._volume_capacity + + @volume_capacity.setter + def volume_capacity(self, volume_capacity): + """Sets the volume_capacity of this V1StoreAppVersionTempleteAppVolume. + + + :param volume_capacity: The volume_capacity of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and volume_capacity is None: # noqa: E501 + raise ValueError("Invalid value for `volume_capacity`, must not be `None`") # noqa: E501 + + self._volume_capacity = volume_capacity + + @property + def volume_name(self): + """Gets the volume_name of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The volume_name of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """Sets the volume_name of this V1StoreAppVersionTempleteAppVolume. + + + :param volume_name: The volume_name of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and volume_name is None: # noqa: E501 + raise ValueError("Invalid value for `volume_name`, must not be `None`") # noqa: E501 + + self._volume_name = volume_name + + @property + def volume_path(self): + """Gets the volume_path of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The volume_path of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: str + """ + return self._volume_path + + @volume_path.setter + def volume_path(self, volume_path): + """Sets the volume_path of this V1StoreAppVersionTempleteAppVolume. + + + :param volume_path: The volume_path of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and volume_path is None: # noqa: E501 + raise ValueError("Invalid value for `volume_path`, must not be `None`") # noqa: E501 + + self._volume_path = volume_path + + @property + def volume_type(self): + """Gets the volume_type of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + + + :return: The volume_type of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :rtype: str + """ + return self._volume_type + + @volume_type.setter + def volume_type(self, volume_type): + """Sets the volume_type of this V1StoreAppVersionTempleteAppVolume. + + + :param volume_type: The volume_type of this V1StoreAppVersionTempleteAppVolume. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and volume_type is None: # noqa: E501 + raise ValueError("Invalid value for `volume_type`, must not be `None`") # noqa: E501 + + self._volume_type = volume_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StoreAppVersionTempleteAppVolume): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StoreAppVersionTempleteAppVolume): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_plugin.py b/openapi_client/models/v1_store_app_version_templete_plugin.py new file mode 100644 index 0000000..70f8f98 --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_plugin.py @@ -0,0 +1,553 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempletePlugin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'int', + 'build_source': 'str', + 'build_version': 'str', + 'category': 'str', + 'code_repo': 'str', + 'config_groups': 'list[V1StoreAppVersionTempletePluginConfigGroup]', + 'create_time': 'str', + 'desc': 'str', + 'image': 'str', + 'origin': 'str', + 'origin_share_id': 'str', + 'plugin_alias': 'str', + 'plugin_id': 'str', + 'plugin_image': 'V1ImageInfo', + 'plugin_key': 'str', + 'plugin_name': 'str', + 'share_image': 'str' + } + + attribute_map = { + 'id': 'ID', + 'build_source': 'build_source', + 'build_version': 'build_version', + 'category': 'category', + 'code_repo': 'code_repo', + 'config_groups': 'config_groups', + 'create_time': 'create_time', + 'desc': 'desc', + 'image': 'image', + 'origin': 'origin', + 'origin_share_id': 'origin_share_id', + 'plugin_alias': 'plugin_alias', + 'plugin_id': 'plugin_id', + 'plugin_image': 'plugin_image', + 'plugin_key': 'plugin_key', + 'plugin_name': 'plugin_name', + 'share_image': 'share_image' + } + + def __init__(self, id=None, build_source=None, build_version=None, category=None, code_repo=None, config_groups=None, create_time=None, desc=None, image=None, origin=None, origin_share_id=None, plugin_alias=None, plugin_id=None, plugin_image=None, plugin_key=None, plugin_name=None, share_image=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempletePlugin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._id = None + self._build_source = None + self._build_version = None + self._category = None + self._code_repo = None + self._config_groups = None + self._create_time = None + self._desc = None + self._image = None + self._origin = None + self._origin_share_id = None + self._plugin_alias = None + self._plugin_id = None + self._plugin_image = None + self._plugin_key = None + self._plugin_name = None + self._share_image = None + self.discriminator = None + + self.id = id + self.build_source = build_source + self.build_version = build_version + self.category = category + self.code_repo = code_repo + if config_groups is not None: + self.config_groups = config_groups + self.create_time = create_time + self.desc = desc + self.image = image + self.origin = origin + self.origin_share_id = origin_share_id + self.plugin_alias = plugin_alias + self.plugin_id = plugin_id + self.plugin_image = plugin_image + self.plugin_key = plugin_key + self.plugin_name = plugin_name + self.share_image = share_image + + @property + def id(self): + """Gets the id of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The id of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this V1StoreAppVersionTempletePlugin. + + + :param id: The id of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def build_source(self): + """Gets the build_source of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The build_source of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._build_source + + @build_source.setter + def build_source(self, build_source): + """Sets the build_source of this V1StoreAppVersionTempletePlugin. + + + :param build_source: The build_source of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and build_source is None: # noqa: E501 + raise ValueError("Invalid value for `build_source`, must not be `None`") # noqa: E501 + + self._build_source = build_source + + @property + def build_version(self): + """Gets the build_version of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The build_version of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._build_version + + @build_version.setter + def build_version(self, build_version): + """Sets the build_version of this V1StoreAppVersionTempletePlugin. + + + :param build_version: The build_version of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and build_version is None: # noqa: E501 + raise ValueError("Invalid value for `build_version`, must not be `None`") # noqa: E501 + + self._build_version = build_version + + @property + def category(self): + """Gets the category of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The category of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this V1StoreAppVersionTempletePlugin. + + + :param category: The category of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and category is None: # noqa: E501 + raise ValueError("Invalid value for `category`, must not be `None`") # noqa: E501 + + self._category = category + + @property + def code_repo(self): + """Gets the code_repo of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The code_repo of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._code_repo + + @code_repo.setter + def code_repo(self, code_repo): + """Sets the code_repo of this V1StoreAppVersionTempletePlugin. + + + :param code_repo: The code_repo of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and code_repo is None: # noqa: E501 + raise ValueError("Invalid value for `code_repo`, must not be `None`") # noqa: E501 + + self._code_repo = code_repo + + @property + def config_groups(self): + """Gets the config_groups of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The config_groups of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: list[V1StoreAppVersionTempletePluginConfigGroup] + """ + return self._config_groups + + @config_groups.setter + def config_groups(self, config_groups): + """Sets the config_groups of this V1StoreAppVersionTempletePlugin. + + + :param config_groups: The config_groups of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: list[V1StoreAppVersionTempletePluginConfigGroup] + """ + + self._config_groups = config_groups + + @property + def create_time(self): + """Gets the create_time of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The create_time of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this V1StoreAppVersionTempletePlugin. + + + :param create_time: The create_time of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and create_time is None: # noqa: E501 + raise ValueError("Invalid value for `create_time`, must not be `None`") # noqa: E501 + + self._create_time = create_time + + @property + def desc(self): + """Gets the desc of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The desc of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._desc + + @desc.setter + def desc(self, desc): + """Sets the desc of this V1StoreAppVersionTempletePlugin. + + + :param desc: The desc of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and desc is None: # noqa: E501 + raise ValueError("Invalid value for `desc`, must not be `None`") # noqa: E501 + + self._desc = desc + + @property + def image(self): + """Gets the image of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The image of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """Sets the image of this V1StoreAppVersionTempletePlugin. + + + :param image: The image of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and image is None: # noqa: E501 + raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501 + + self._image = image + + @property + def origin(self): + """Gets the origin of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The origin of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._origin + + @origin.setter + def origin(self, origin): + """Sets the origin of this V1StoreAppVersionTempletePlugin. + + + :param origin: The origin of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and origin is None: # noqa: E501 + raise ValueError("Invalid value for `origin`, must not be `None`") # noqa: E501 + + self._origin = origin + + @property + def origin_share_id(self): + """Gets the origin_share_id of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The origin_share_id of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._origin_share_id + + @origin_share_id.setter + def origin_share_id(self, origin_share_id): + """Sets the origin_share_id of this V1StoreAppVersionTempletePlugin. + + + :param origin_share_id: The origin_share_id of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and origin_share_id is None: # noqa: E501 + raise ValueError("Invalid value for `origin_share_id`, must not be `None`") # noqa: E501 + + self._origin_share_id = origin_share_id + + @property + def plugin_alias(self): + """Gets the plugin_alias of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The plugin_alias of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._plugin_alias + + @plugin_alias.setter + def plugin_alias(self, plugin_alias): + """Sets the plugin_alias of this V1StoreAppVersionTempletePlugin. + + + :param plugin_alias: The plugin_alias of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and plugin_alias is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_alias`, must not be `None`") # noqa: E501 + + self._plugin_alias = plugin_alias + + @property + def plugin_id(self): + """Gets the plugin_id of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The plugin_id of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._plugin_id + + @plugin_id.setter + def plugin_id(self, plugin_id): + """Sets the plugin_id of this V1StoreAppVersionTempletePlugin. + + + :param plugin_id: The plugin_id of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and plugin_id is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_id`, must not be `None`") # noqa: E501 + + self._plugin_id = plugin_id + + @property + def plugin_image(self): + """Gets the plugin_image of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The plugin_image of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: V1ImageInfo + """ + return self._plugin_image + + @plugin_image.setter + def plugin_image(self, plugin_image): + """Sets the plugin_image of this V1StoreAppVersionTempletePlugin. + + + :param plugin_image: The plugin_image of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: V1ImageInfo + """ + if self.local_vars_configuration.client_side_validation and plugin_image is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_image`, must not be `None`") # noqa: E501 + + self._plugin_image = plugin_image + + @property + def plugin_key(self): + """Gets the plugin_key of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The plugin_key of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._plugin_key + + @plugin_key.setter + def plugin_key(self, plugin_key): + """Sets the plugin_key of this V1StoreAppVersionTempletePlugin. + + + :param plugin_key: The plugin_key of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and plugin_key is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_key`, must not be `None`") # noqa: E501 + + self._plugin_key = plugin_key + + @property + def plugin_name(self): + """Gets the plugin_name of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The plugin_name of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._plugin_name + + @plugin_name.setter + def plugin_name(self, plugin_name): + """Sets the plugin_name of this V1StoreAppVersionTempletePlugin. + + + :param plugin_name: The plugin_name of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and plugin_name is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_name`, must not be `None`") # noqa: E501 + + self._plugin_name = plugin_name + + @property + def share_image(self): + """Gets the share_image of this V1StoreAppVersionTempletePlugin. # noqa: E501 + + + :return: The share_image of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :rtype: str + """ + return self._share_image + + @share_image.setter + def share_image(self, share_image): + """Sets the share_image of this V1StoreAppVersionTempletePlugin. + + + :param share_image: The share_image of this V1StoreAppVersionTempletePlugin. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and share_image is None: # noqa: E501 + raise ValueError("Invalid value for `share_image`, must not be `None`") # noqa: E501 + + self._share_image = share_image + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StoreAppVersionTempletePlugin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StoreAppVersionTempletePlugin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_plugin_config_group.py b/openapi_client/models/v1_store_app_version_templete_plugin_config_group.py new file mode 100644 index 0000000..b99e2db --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_plugin_config_group.py @@ -0,0 +1,283 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempletePluginConfigGroup(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'int', + 'build_version': 'str', + 'config_name': 'str', + 'injection': 'str', + 'options': 'list[V1StoreAppVersionTempletePluginConfigGroupOption]', + 'plugin_id': 'str', + 'service_meta_type': 'str' + } + + attribute_map = { + 'id': 'ID', + 'build_version': 'build_version', + 'config_name': 'config_name', + 'injection': 'injection', + 'options': 'options', + 'plugin_id': 'plugin_id', + 'service_meta_type': 'service_meta_type' + } + + def __init__(self, id=None, build_version=None, config_name=None, injection=None, options=None, plugin_id=None, service_meta_type=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempletePluginConfigGroup - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._id = None + self._build_version = None + self._config_name = None + self._injection = None + self._options = None + self._plugin_id = None + self._service_meta_type = None + self.discriminator = None + + self.id = id + self.build_version = build_version + self.config_name = config_name + self.injection = injection + if options is not None: + self.options = options + self.plugin_id = plugin_id + self.service_meta_type = service_meta_type + + @property + def id(self): + """Gets the id of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The id of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this V1StoreAppVersionTempletePluginConfigGroup. + + + :param id: The id of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def build_version(self): + """Gets the build_version of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The build_version of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: str + """ + return self._build_version + + @build_version.setter + def build_version(self, build_version): + """Sets the build_version of this V1StoreAppVersionTempletePluginConfigGroup. + + + :param build_version: The build_version of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and build_version is None: # noqa: E501 + raise ValueError("Invalid value for `build_version`, must not be `None`") # noqa: E501 + + self._build_version = build_version + + @property + def config_name(self): + """Gets the config_name of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The config_name of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: str + """ + return self._config_name + + @config_name.setter + def config_name(self, config_name): + """Sets the config_name of this V1StoreAppVersionTempletePluginConfigGroup. + + + :param config_name: The config_name of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and config_name is None: # noqa: E501 + raise ValueError("Invalid value for `config_name`, must not be `None`") # noqa: E501 + + self._config_name = config_name + + @property + def injection(self): + """Gets the injection of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The injection of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: str + """ + return self._injection + + @injection.setter + def injection(self, injection): + """Sets the injection of this V1StoreAppVersionTempletePluginConfigGroup. + + + :param injection: The injection of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and injection is None: # noqa: E501 + raise ValueError("Invalid value for `injection`, must not be `None`") # noqa: E501 + + self._injection = injection + + @property + def options(self): + """Gets the options of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The options of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: list[V1StoreAppVersionTempletePluginConfigGroupOption] + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this V1StoreAppVersionTempletePluginConfigGroup. + + + :param options: The options of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type: list[V1StoreAppVersionTempletePluginConfigGroupOption] + """ + + self._options = options + + @property + def plugin_id(self): + """Gets the plugin_id of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The plugin_id of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: str + """ + return self._plugin_id + + @plugin_id.setter + def plugin_id(self, plugin_id): + """Sets the plugin_id of this V1StoreAppVersionTempletePluginConfigGroup. + + + :param plugin_id: The plugin_id of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and plugin_id is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_id`, must not be `None`") # noqa: E501 + + self._plugin_id = plugin_id + + @property + def service_meta_type(self): + """Gets the service_meta_type of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + + + :return: The service_meta_type of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :rtype: str + """ + return self._service_meta_type + + @service_meta_type.setter + def service_meta_type(self, service_meta_type): + """Sets the service_meta_type of this V1StoreAppVersionTempletePluginConfigGroup. + + + :param service_meta_type: The service_meta_type of this V1StoreAppVersionTempletePluginConfigGroup. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_meta_type is None: # noqa: E501 + raise ValueError("Invalid value for `service_meta_type`, must not be `None`") # noqa: E501 + + self._service_meta_type = service_meta_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StoreAppVersionTempletePluginConfigGroup): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StoreAppVersionTempletePluginConfigGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_store_app_version_templete_plugin_config_group_option.py b/openapi_client/models/v1_store_app_version_templete_plugin_config_group_option.py new file mode 100644 index 0000000..26ae500 --- /dev/null +++ b/openapi_client/models/v1_store_app_version_templete_plugin_config_group_option.py @@ -0,0 +1,392 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1StoreAppVersionTempletePluginConfigGroupOption(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'int', + 'attr_alt_value': 'str', + 'attr_default_value': 'str', + 'attr_info': 'str', + 'attr_name': 'str', + 'attr_type': 'str', + 'build_version': 'str', + 'is_change': 'bool', + 'plugin_id': 'str', + 'protocol': 'str', + 'service_meta_type': 'str' + } + + attribute_map = { + 'id': 'ID', + 'attr_alt_value': 'attr_alt_value', + 'attr_default_value': 'attr_default_value', + 'attr_info': 'attr_info', + 'attr_name': 'attr_name', + 'attr_type': 'attr_type', + 'build_version': 'build_version', + 'is_change': 'is_change', + 'plugin_id': 'plugin_id', + 'protocol': 'protocol', + 'service_meta_type': 'service_meta_type' + } + + def __init__(self, id=None, attr_alt_value=None, attr_default_value=None, attr_info=None, attr_name=None, attr_type=None, build_version=None, is_change=None, plugin_id=None, protocol=None, service_meta_type=None, local_vars_configuration=None): # noqa: E501 + """V1StoreAppVersionTempletePluginConfigGroupOption - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._id = None + self._attr_alt_value = None + self._attr_default_value = None + self._attr_info = None + self._attr_name = None + self._attr_type = None + self._build_version = None + self._is_change = None + self._plugin_id = None + self._protocol = None + self._service_meta_type = None + self.discriminator = None + + self.id = id + self.attr_alt_value = attr_alt_value + self.attr_default_value = attr_default_value + self.attr_info = attr_info + self.attr_name = attr_name + self.attr_type = attr_type + self.build_version = build_version + self.is_change = is_change + self.plugin_id = plugin_id + self.protocol = protocol + self.service_meta_type = service_meta_type + + @property + def id(self): + """Gets the id of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The id of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this V1StoreAppVersionTempletePluginConfigGroupOption. + + + :param id: The id of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def attr_alt_value(self): + """Gets the attr_alt_value of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The attr_alt_value of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._attr_alt_value + + @attr_alt_value.setter + def attr_alt_value(self, attr_alt_value): + """Sets the attr_alt_value of this V1StoreAppVersionTempletePluginConfigGroupOption. + + + :param attr_alt_value: The attr_alt_value of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and attr_alt_value is None: # noqa: E501 + raise ValueError("Invalid value for `attr_alt_value`, must not be `None`") # noqa: E501 + + self._attr_alt_value = attr_alt_value + + @property + def attr_default_value(self): + """Gets the attr_default_value of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The attr_default_value of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._attr_default_value + + @attr_default_value.setter + def attr_default_value(self, attr_default_value): + """Sets the attr_default_value of this V1StoreAppVersionTempletePluginConfigGroupOption. + + + :param attr_default_value: The attr_default_value of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and attr_default_value is None: # noqa: E501 + raise ValueError("Invalid value for `attr_default_value`, must not be `None`") # noqa: E501 + + self._attr_default_value = attr_default_value + + @property + def attr_info(self): + """Gets the attr_info of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The attr_info of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._attr_info + + @attr_info.setter + def attr_info(self, attr_info): + """Sets the attr_info of this V1StoreAppVersionTempletePluginConfigGroupOption. + + + :param attr_info: The attr_info of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and attr_info is None: # noqa: E501 + raise ValueError("Invalid value for `attr_info`, must not be `None`") # noqa: E501 + + self._attr_info = attr_info + + @property + def attr_name(self): + """Gets the attr_name of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The attr_name of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._attr_name + + @attr_name.setter + def attr_name(self, attr_name): + """Sets the attr_name of this V1StoreAppVersionTempletePluginConfigGroupOption. + + + :param attr_name: The attr_name of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and attr_name is None: # noqa: E501 + raise ValueError("Invalid value for `attr_name`, must not be `None`") # noqa: E501 + + self._attr_name = attr_name + + @property + def attr_type(self): + """Gets the attr_type of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The attr_type of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._attr_type + + @attr_type.setter + def attr_type(self, attr_type): + """Sets the attr_type of this V1StoreAppVersionTempletePluginConfigGroupOption. + + + :param attr_type: The attr_type of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and attr_type is None: # noqa: E501 + raise ValueError("Invalid value for `attr_type`, must not be `None`") # noqa: E501 + + self._attr_type = attr_type + + @property + def build_version(self): + """Gets the build_version of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The build_version of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._build_version + + @build_version.setter + def build_version(self, build_version): + """Sets the build_version of this V1StoreAppVersionTempletePluginConfigGroupOption. + + + :param build_version: The build_version of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and build_version is None: # noqa: E501 + raise ValueError("Invalid value for `build_version`, must not be `None`") # noqa: E501 + + self._build_version = build_version + + @property + def is_change(self): + """Gets the is_change of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The is_change of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: bool + """ + return self._is_change + + @is_change.setter + def is_change(self, is_change): + """Sets the is_change of this V1StoreAppVersionTempletePluginConfigGroupOption. + + + :param is_change: The is_change of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type: bool + """ + if self.local_vars_configuration.client_side_validation and is_change is None: # noqa: E501 + raise ValueError("Invalid value for `is_change`, must not be `None`") # noqa: E501 + + self._is_change = is_change + + @property + def plugin_id(self): + """Gets the plugin_id of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The plugin_id of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._plugin_id + + @plugin_id.setter + def plugin_id(self, plugin_id): + """Sets the plugin_id of this V1StoreAppVersionTempletePluginConfigGroupOption. + + + :param plugin_id: The plugin_id of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and plugin_id is None: # noqa: E501 + raise ValueError("Invalid value for `plugin_id`, must not be `None`") # noqa: E501 + + self._plugin_id = plugin_id + + @property + def protocol(self): + """Gets the protocol of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The protocol of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this V1StoreAppVersionTempletePluginConfigGroupOption. + + + :param protocol: The protocol of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and protocol is None: # noqa: E501 + raise ValueError("Invalid value for `protocol`, must not be `None`") # noqa: E501 + + self._protocol = protocol + + @property + def service_meta_type(self): + """Gets the service_meta_type of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + + + :return: The service_meta_type of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :rtype: str + """ + return self._service_meta_type + + @service_meta_type.setter + def service_meta_type(self, service_meta_type): + """Sets the service_meta_type of this V1StoreAppVersionTempletePluginConfigGroupOption. + + + :param service_meta_type: The service_meta_type of this V1StoreAppVersionTempletePluginConfigGroupOption. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and service_meta_type is None: # noqa: E501 + raise ValueError("Invalid value for `service_meta_type`, must not be `None`") # noqa: E501 + + self._service_meta_type = service_meta_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StoreAppVersionTempletePluginConfigGroupOption): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StoreAppVersionTempletePluginConfigGroupOption): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1_user_app_list_response.py b/openapi_client/models/v1_user_app_list_response.py index 6266827..b39ca72 100644 --- a/openapi_client/models/v1_user_app_list_response.py +++ b/openapi_client/models/v1_user_app_list_response.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_app_config_group.py b/openapi_client/models/v1alpha1_app_config_group.py index 4ab0d37..78efea3 100644 --- a/openapi_client/models/v1alpha1_app_config_group.py +++ b/openapi_client/models/v1alpha1_app_config_group.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -34,58 +33,58 @@ class V1alpha1AppConfigGroup(object): and the value is json key in definition. """ openapi_types = { - 'component_ids': 'list[str]', + 'component_keys': 'list[str]', 'config_items': 'dict(str, str)', 'injection_type': 'str', 'name': 'str' } attribute_map = { - 'component_ids': 'component_ids', + 'component_keys': 'component_keys', 'config_items': 'config_items', 'injection_type': 'injection_type', 'name': 'name' } - def __init__(self, component_ids=None, config_items=None, injection_type=None, name=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, component_keys=None, config_items=None, injection_type=None, name=None, local_vars_configuration=None): # noqa: E501 """V1alpha1AppConfigGroup - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration - self._component_ids = None + self._component_keys = None self._config_items = None self._injection_type = None self._name = None self.discriminator = None - self.component_ids = component_ids + self.component_keys = component_keys self.config_items = config_items self.injection_type = injection_type self.name = name @property - def component_ids(self): - """Gets the component_ids of this V1alpha1AppConfigGroup. # noqa: E501 + def component_keys(self): + """Gets the component_keys of this V1alpha1AppConfigGroup. # noqa: E501 - :return: The component_ids of this V1alpha1AppConfigGroup. # noqa: E501 + :return: The component_keys of this V1alpha1AppConfigGroup. # noqa: E501 :rtype: list[str] """ - return self._component_ids + return self._component_keys - @component_ids.setter - def component_ids(self, component_ids): - """Sets the component_ids of this V1alpha1AppConfigGroup. + @component_keys.setter + def component_keys(self, component_keys): + """Sets the component_keys of this V1alpha1AppConfigGroup. - :param component_ids: The component_ids of this V1alpha1AppConfigGroup. # noqa: E501 + :param component_keys: The component_keys of this V1alpha1AppConfigGroup. # noqa: E501 :type: list[str] """ - if self.local_vars_configuration.client_side_validation and component_ids is None: # noqa: E501 - raise ValueError("Invalid value for `component_ids`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and component_keys is None: # noqa: E501 + raise ValueError("Invalid value for `component_keys`, must not be `None`") # noqa: E501 - self._component_ids = component_ids + self._component_keys = component_keys @property def config_items(self): diff --git a/openapi_client/models/v1alpha1_component.py b/openapi_client/models/v1alpha1_component.py index b4d866f..0447751 100644 --- a/openapi_client/models/v1alpha1_component.py +++ b/openapi_client/models/v1alpha1_component.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -34,9 +33,11 @@ class V1alpha1Component(object): and the value is json key in definition. """ openapi_types = { + 'arch': 'str', 'category': 'str', 'cmd': 'str', 'component_graphs': 'list[V1alpha1ComponentGraph]', + 'component_k8s_attributes': 'list[V1alpha1ComponentK8sAttribute]', 'component_monitors': 'list[V1alpha1ComponentMonitor]', 'cpu': 'int', 'dep_service_map_list': 'list[V1alpha1ComponentDep]', @@ -45,6 +46,7 @@ class V1alpha1Component(object): 'extend_method': 'str', 'extend_method_map': 'V1alpha1ComponentExtendMethodRule', 'image': 'str', + 'k8s_component_name': 'str', 'labels': 'dict(str, str)', 'language': 'str', 'memory': 'int', @@ -70,9 +72,11 @@ class V1alpha1Component(object): } attribute_map = { + 'arch': 'arch', 'category': 'category', 'cmd': 'cmd', 'component_graphs': 'component_graphs', + 'component_k8s_attributes': 'component_k8s_attributes', 'component_monitors': 'component_monitors', 'cpu': 'cpu', 'dep_service_map_list': 'dep_service_map_list', @@ -81,6 +85,7 @@ class V1alpha1Component(object): 'extend_method': 'extend_method', 'extend_method_map': 'extend_method_map', 'image': 'image', + 'k8s_component_name': 'k8s_component_name', 'labels': 'labels', 'language': 'language', 'memory': 'memory', @@ -105,15 +110,17 @@ class V1alpha1Component(object): 'version': 'version' } - def __init__(self, category=None, cmd=None, component_graphs=None, component_monitors=None, cpu=None, dep_service_map_list=None, deploy_version=None, endpoints=None, extend_method=None, extend_method_map=None, image=None, labels=None, language=None, memory=None, mnt_relation_list=None, port_map_list=None, probes=None, service_alias=None, service_cname=None, service_connect_info_map_list=None, service_env_map_list=None, service_id=None, service_image=None, service_key=None, service_name=None, service_related_plugin_config=None, service_share_uuid=None, service_source=None, service_type=None, service_volume_map_list=None, share_image=None, share_type=None, version=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, arch=None, category=None, cmd=None, component_graphs=None, component_k8s_attributes=None, component_monitors=None, cpu=None, dep_service_map_list=None, deploy_version=None, endpoints=None, extend_method=None, extend_method_map=None, image=None, k8s_component_name=None, labels=None, language=None, memory=None, mnt_relation_list=None, port_map_list=None, probes=None, service_alias=None, service_cname=None, service_connect_info_map_list=None, service_env_map_list=None, service_id=None, service_image=None, service_key=None, service_name=None, service_related_plugin_config=None, service_share_uuid=None, service_source=None, service_type=None, service_volume_map_list=None, share_image=None, share_type=None, version=None, local_vars_configuration=None): # noqa: E501 """V1alpha1Component - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration + self._arch = None self._category = None self._cmd = None self._component_graphs = None + self._component_k8s_attributes = None self._component_monitors = None self._cpu = None self._dep_service_map_list = None @@ -122,6 +129,7 @@ class V1alpha1Component(object): self._extend_method = None self._extend_method_map = None self._image = None + self._k8s_component_name = None self._labels = None self._language = None self._memory = None @@ -146,9 +154,11 @@ class V1alpha1Component(object): self._version = None self.discriminator = None + self.arch = arch self.category = category self.cmd = cmd self.component_graphs = component_graphs + self.component_k8s_attributes = component_k8s_attributes self.component_monitors = component_monitors self.cpu = cpu self.dep_service_map_list = dep_service_map_list @@ -158,6 +168,7 @@ class V1alpha1Component(object): self.extend_method = extend_method self.extend_method_map = extend_method_map self.image = image + self.k8s_component_name = k8s_component_name if labels is not None: self.labels = labels self.language = language @@ -185,6 +196,29 @@ class V1alpha1Component(object): self.share_type = share_type self.version = version + @property + def arch(self): + """Gets the arch of this V1alpha1Component. # noqa: E501 + + + :return: The arch of this V1alpha1Component. # noqa: E501 + :rtype: str + """ + return self._arch + + @arch.setter + def arch(self, arch): + """Sets the arch of this V1alpha1Component. + + + :param arch: The arch of this V1alpha1Component. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and arch is None: # noqa: E501 + raise ValueError("Invalid value for `arch`, must not be `None`") # noqa: E501 + + self._arch = arch + @property def category(self): """Gets the category of this V1alpha1Component. # noqa: E501 @@ -254,6 +288,29 @@ class V1alpha1Component(object): self._component_graphs = component_graphs + @property + def component_k8s_attributes(self): + """Gets the component_k8s_attributes of this V1alpha1Component. # noqa: E501 + + + :return: The component_k8s_attributes of this V1alpha1Component. # noqa: E501 + :rtype: list[V1alpha1ComponentK8sAttribute] + """ + return self._component_k8s_attributes + + @component_k8s_attributes.setter + def component_k8s_attributes(self, component_k8s_attributes): + """Sets the component_k8s_attributes of this V1alpha1Component. + + + :param component_k8s_attributes: The component_k8s_attributes of this V1alpha1Component. # noqa: E501 + :type: list[V1alpha1ComponentK8sAttribute] + """ + if self.local_vars_configuration.client_side_validation and component_k8s_attributes is None: # noqa: E501 + raise ValueError("Invalid value for `component_k8s_attributes`, must not be `None`") # noqa: E501 + + self._component_k8s_attributes = component_k8s_attributes + @property def component_monitors(self): """Gets the component_monitors of this V1alpha1Component. # noqa: E501 @@ -436,6 +493,29 @@ class V1alpha1Component(object): self._image = image + @property + def k8s_component_name(self): + """Gets the k8s_component_name of this V1alpha1Component. # noqa: E501 + + + :return: The k8s_component_name of this V1alpha1Component. # noqa: E501 + :rtype: str + """ + return self._k8s_component_name + + @k8s_component_name.setter + def k8s_component_name(self, k8s_component_name): + """Sets the k8s_component_name of this V1alpha1Component. + + + :param k8s_component_name: The k8s_component_name of this V1alpha1Component. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and k8s_component_name is None: # noqa: E501 + raise ValueError("Invalid value for `k8s_component_name`, must not be `None`") # noqa: E501 + + self._k8s_component_name = k8s_component_name + @property def labels(self): """Gets the labels of this V1alpha1Component. # noqa: E501 diff --git a/openapi_client/models/v1alpha1_component_dep.py b/openapi_client/models/v1alpha1_component_dep.py index d3d789a..50e781c 100644 --- a/openapi_client/models/v1alpha1_component_dep.py +++ b/openapi_client/models/v1alpha1_component_dep.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_component_env.py b/openapi_client/models/v1alpha1_component_env.py index 3de094e..a29c10c 100644 --- a/openapi_client/models/v1alpha1_component_env.py +++ b/openapi_client/models/v1alpha1_component_env.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_component_extend_method_rule.py b/openapi_client/models/v1alpha1_component_extend_method_rule.py index 57b8b87..5acf834 100644 --- a/openapi_client/models/v1alpha1_component_extend_method_rule.py +++ b/openapi_client/models/v1alpha1_component_extend_method_rule.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_component_graph.py b/openapi_client/models/v1alpha1_component_graph.py index 3c61dc2..7e5fadd 100644 --- a/openapi_client/models/v1alpha1_component_graph.py +++ b/openapi_client/models/v1alpha1_component_graph.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_component_k8s_attribute.py b/openapi_client/models/v1alpha1_component_k8s_attribute.py new file mode 100644 index 0000000..8af1d1b --- /dev/null +++ b/openapi_client/models/v1alpha1_component_k8s_attribute.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1alpha1ComponentK8sAttribute(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'attribute_value': 'str', + 'component_id': 'str', + 'name': 'str', + 'save_type': 'str' + } + + attribute_map = { + 'attribute_value': 'attribute_value', + 'component_id': 'component_id', + 'name': 'name', + 'save_type': 'save_type' + } + + def __init__(self, attribute_value=None, component_id=None, name=None, save_type=None, local_vars_configuration=None): # noqa: E501 + """V1alpha1ComponentK8sAttribute - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._attribute_value = None + self._component_id = None + self._name = None + self._save_type = None + self.discriminator = None + + self.attribute_value = attribute_value + self.component_id = component_id + self.name = name + self.save_type = save_type + + @property + def attribute_value(self): + """Gets the attribute_value of this V1alpha1ComponentK8sAttribute. # noqa: E501 + + + :return: The attribute_value of this V1alpha1ComponentK8sAttribute. # noqa: E501 + :rtype: str + """ + return self._attribute_value + + @attribute_value.setter + def attribute_value(self, attribute_value): + """Sets the attribute_value of this V1alpha1ComponentK8sAttribute. + + + :param attribute_value: The attribute_value of this V1alpha1ComponentK8sAttribute. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and attribute_value is None: # noqa: E501 + raise ValueError("Invalid value for `attribute_value`, must not be `None`") # noqa: E501 + + self._attribute_value = attribute_value + + @property + def component_id(self): + """Gets the component_id of this V1alpha1ComponentK8sAttribute. # noqa: E501 + + + :return: The component_id of this V1alpha1ComponentK8sAttribute. # noqa: E501 + :rtype: str + """ + return self._component_id + + @component_id.setter + def component_id(self, component_id): + """Sets the component_id of this V1alpha1ComponentK8sAttribute. + + + :param component_id: The component_id of this V1alpha1ComponentK8sAttribute. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and component_id is None: # noqa: E501 + raise ValueError("Invalid value for `component_id`, must not be `None`") # noqa: E501 + + self._component_id = component_id + + @property + def name(self): + """Gets the name of this V1alpha1ComponentK8sAttribute. # noqa: E501 + + + :return: The name of this V1alpha1ComponentK8sAttribute. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1alpha1ComponentK8sAttribute. + + + :param name: The name of this V1alpha1ComponentK8sAttribute. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def save_type(self): + """Gets the save_type of this V1alpha1ComponentK8sAttribute. # noqa: E501 + + + :return: The save_type of this V1alpha1ComponentK8sAttribute. # noqa: E501 + :rtype: str + """ + return self._save_type + + @save_type.setter + def save_type(self, save_type): + """Sets the save_type of this V1alpha1ComponentK8sAttribute. + + + :param save_type: The save_type of this V1alpha1ComponentK8sAttribute. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and save_type is None: # noqa: E501 + raise ValueError("Invalid value for `save_type`, must not be `None`") # noqa: E501 + + self._save_type = save_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1ComponentK8sAttribute): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1ComponentK8sAttribute): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1alpha1_component_monitor.py b/openapi_client/models/v1alpha1_component_monitor.py index 9ce3be5..2972cc1 100644 --- a/openapi_client/models/v1alpha1_component_monitor.py +++ b/openapi_client/models/v1alpha1_component_monitor.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_component_plugin_config.py b/openapi_client/models/v1alpha1_component_plugin_config.py index 7d7364b..606fdd8 100644 --- a/openapi_client/models/v1alpha1_component_plugin_config.py +++ b/openapi_client/models/v1alpha1_component_plugin_config.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_component_port.py b/openapi_client/models/v1alpha1_component_port.py index 7bcc5a7..9fbf609 100644 --- a/openapi_client/models/v1alpha1_component_port.py +++ b/openapi_client/models/v1alpha1_component_port.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -37,6 +36,7 @@ class V1alpha1ComponentPort(object): 'container_port': 'int', 'is_inner_service': 'bool', 'is_outer_service': 'bool', + 'name': 'str', 'port_alias': 'str', 'protocol': 'str', 'tenant_id': 'str' @@ -46,12 +46,13 @@ class V1alpha1ComponentPort(object): 'container_port': 'container_port', 'is_inner_service': 'is_inner_service', 'is_outer_service': 'is_outer_service', + 'name': 'name', 'port_alias': 'port_alias', 'protocol': 'protocol', 'tenant_id': 'tenant_id' } - def __init__(self, container_port=None, is_inner_service=None, is_outer_service=None, port_alias=None, protocol=None, tenant_id=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, container_port=None, is_inner_service=None, is_outer_service=None, name=None, port_alias=None, protocol=None, tenant_id=None, local_vars_configuration=None): # noqa: E501 """V1alpha1ComponentPort - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -60,6 +61,7 @@ class V1alpha1ComponentPort(object): self._container_port = None self._is_inner_service = None self._is_outer_service = None + self._name = None self._port_alias = None self._protocol = None self._tenant_id = None @@ -68,6 +70,7 @@ class V1alpha1ComponentPort(object): self.container_port = container_port self.is_inner_service = is_inner_service self.is_outer_service = is_outer_service + self.name = name self.port_alias = port_alias self.protocol = protocol self.tenant_id = tenant_id @@ -141,6 +144,29 @@ class V1alpha1ComponentPort(object): self._is_outer_service = is_outer_service + @property + def name(self): + """Gets the name of this V1alpha1ComponentPort. # noqa: E501 + + + :return: The name of this V1alpha1ComponentPort. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1alpha1ComponentPort. + + + :param name: The name of this V1alpha1ComponentPort. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + @property def port_alias(self): """Gets the port_alias of this V1alpha1ComponentPort. # noqa: E501 diff --git a/openapi_client/models/v1alpha1_component_probe.py b/openapi_client/models/v1alpha1_component_probe.py index e67e9bf..0fe86a8 100644 --- a/openapi_client/models/v1alpha1_component_probe.py +++ b/openapi_client/models/v1alpha1_component_probe.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_component_share_volume.py b/openapi_client/models/v1alpha1_component_share_volume.py index d314e20..72e8e19 100644 --- a/openapi_client/models/v1alpha1_component_share_volume.py +++ b/openapi_client/models/v1alpha1_component_share_volume.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_component_volume.py b/openapi_client/models/v1alpha1_component_volume.py index 478173e..0806d90 100644 --- a/openapi_client/models/v1alpha1_component_volume.py +++ b/openapi_client/models/v1alpha1_component_volume.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_endpoints.py b/openapi_client/models/v1alpha1_endpoints.py index 00e4e64..324be59 100644 --- a/openapi_client/models/v1alpha1_endpoints.py +++ b/openapi_client/models/v1alpha1_endpoints.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_image_info.py b/openapi_client/models/v1alpha1_image_info.py index 9f1b3fc..773fe5e 100644 --- a/openapi_client/models/v1alpha1_image_info.py +++ b/openapi_client/models/v1alpha1_image_info.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_ingress_http_route.py b/openapi_client/models/v1alpha1_ingress_http_route.py index 8bfb679..5d19d4f 100644 --- a/openapi_client/models/v1alpha1_ingress_http_route.py +++ b/openapi_client/models/v1alpha1_ingress_http_route.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_ingress_sream_route.py b/openapi_client/models/v1alpha1_ingress_sream_route.py index 49819b7..62b8a3a 100644 --- a/openapi_client/models/v1alpha1_ingress_sream_route.py +++ b/openapi_client/models/v1alpha1_ingress_sream_route.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/v1alpha1_k8s_resource.py b/openapi_client/models/v1alpha1_k8s_resource.py new file mode 100644 index 0000000..ee08b0b --- /dev/null +++ b/openapi_client/models/v1alpha1_k8s_resource.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from openapi_client.configuration import Configuration + + +class V1alpha1K8sResource(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'content': 'str', + 'kind': 'str', + 'name': 'str' + } + + attribute_map = { + 'content': 'content', + 'kind': 'kind', + 'name': 'name' + } + + def __init__(self, content=None, kind=None, name=None, local_vars_configuration=None): # noqa: E501 + """V1alpha1K8sResource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._content = None + self._kind = None + self._name = None + self.discriminator = None + + self.content = content + self.kind = kind + self.name = name + + @property + def content(self): + """Gets the content of this V1alpha1K8sResource. # noqa: E501 + + + :return: The content of this V1alpha1K8sResource. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this V1alpha1K8sResource. + + + :param content: The content of this V1alpha1K8sResource. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and content is None: # noqa: E501 + raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501 + + self._content = content + + @property + def kind(self): + """Gets the kind of this V1alpha1K8sResource. # noqa: E501 + + + :return: The kind of this V1alpha1K8sResource. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1alpha1K8sResource. + + + :param kind: The kind of this V1alpha1K8sResource. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501 + raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 + + self._kind = kind + + @property + def name(self): + """Gets the name of this V1alpha1K8sResource. # noqa: E501 + + + :return: The name of this V1alpha1K8sResource. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1alpha1K8sResource. + + + :param name: The name of this V1alpha1K8sResource. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1K8sResource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1K8sResource): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client/models/v1alpha1_plugin.py b/openapi_client/models/v1alpha1_plugin.py index 09c2e5f..0a71b4c 100644 --- a/openapi_client/models/v1alpha1_plugin.py +++ b/openapi_client/models/v1alpha1_plugin.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -34,7 +33,6 @@ class V1alpha1Plugin(object): and the value is json key in definition. """ openapi_types = { - 'id': 'int', 'build_source': 'str', 'build_version': 'str', 'category': 'str', @@ -54,7 +52,6 @@ class V1alpha1Plugin(object): } attribute_map = { - 'id': 'ID', 'build_source': 'build_source', 'build_version': 'build_version', 'category': 'category', @@ -73,13 +70,12 @@ class V1alpha1Plugin(object): 'share_image': 'share_image' } - def __init__(self, id=None, build_source=None, build_version=None, category=None, code_repo=None, config_groups=None, create_time=None, desc=None, image=None, origin=None, origin_share_id=None, plugin_alias=None, plugin_id=None, plugin_image=None, plugin_key=None, plugin_name=None, share_image=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, build_source=None, build_version=None, category=None, code_repo=None, config_groups=None, create_time=None, desc=None, image=None, origin=None, origin_share_id=None, plugin_alias=None, plugin_id=None, plugin_image=None, plugin_key=None, plugin_name=None, share_image=None, local_vars_configuration=None): # noqa: E501 """V1alpha1Plugin - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration - self._id = None self._build_source = None self._build_version = None self._category = None @@ -98,7 +94,6 @@ class V1alpha1Plugin(object): self._share_image = None self.discriminator = None - self.id = id self.build_source = build_source self.build_version = build_version self.category = category @@ -117,29 +112,6 @@ class V1alpha1Plugin(object): self.plugin_name = plugin_name self.share_image = share_image - @property - def id(self): - """Gets the id of this V1alpha1Plugin. # noqa: E501 - - - :return: The id of this V1alpha1Plugin. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this V1alpha1Plugin. - - - :param id: The id of this V1alpha1Plugin. # noqa: E501 - :type: int - """ - if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - @property def build_source(self): """Gets the build_source of this V1alpha1Plugin. # noqa: E501 diff --git a/openapi_client/models/v1alpha1_plugin_config_group.py b/openapi_client/models/v1alpha1_plugin_config_group.py index 527e2f7..7ca3796 100644 --- a/openapi_client/models/v1alpha1_plugin_config_group.py +++ b/openapi_client/models/v1alpha1_plugin_config_group.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -34,7 +33,6 @@ class V1alpha1PluginConfigGroup(object): and the value is json key in definition. """ openapi_types = { - 'id': 'int', 'build_version': 'str', 'config_name': 'str', 'injection': 'str', @@ -44,7 +42,6 @@ class V1alpha1PluginConfigGroup(object): } attribute_map = { - 'id': 'ID', 'build_version': 'build_version', 'config_name': 'config_name', 'injection': 'injection', @@ -53,13 +50,12 @@ class V1alpha1PluginConfigGroup(object): 'service_meta_type': 'service_meta_type' } - def __init__(self, id=None, build_version=None, config_name=None, injection=None, options=None, plugin_id=None, service_meta_type=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, build_version=None, config_name=None, injection=None, options=None, plugin_id=None, service_meta_type=None, local_vars_configuration=None): # noqa: E501 """V1alpha1PluginConfigGroup - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration - self._id = None self._build_version = None self._config_name = None self._injection = None @@ -68,7 +64,6 @@ class V1alpha1PluginConfigGroup(object): self._service_meta_type = None self.discriminator = None - self.id = id self.build_version = build_version self.config_name = config_name self.injection = injection @@ -77,29 +72,6 @@ class V1alpha1PluginConfigGroup(object): self.plugin_id = plugin_id self.service_meta_type = service_meta_type - @property - def id(self): - """Gets the id of this V1alpha1PluginConfigGroup. # noqa: E501 - - - :return: The id of this V1alpha1PluginConfigGroup. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this V1alpha1PluginConfigGroup. - - - :param id: The id of this V1alpha1PluginConfigGroup. # noqa: E501 - :type: int - """ - if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - @property def build_version(self): """Gets the build_version of this V1alpha1PluginConfigGroup. # noqa: E501 diff --git a/openapi_client/models/v1alpha1_plugin_config_group_option.py b/openapi_client/models/v1alpha1_plugin_config_group_option.py index 721f945..fef6c7d 100644 --- a/openapi_client/models/v1alpha1_plugin_config_group_option.py +++ b/openapi_client/models/v1alpha1_plugin_config_group_option.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -34,7 +33,6 @@ class V1alpha1PluginConfigGroupOption(object): and the value is json key in definition. """ openapi_types = { - 'id': 'int', 'attr_alt_value': 'str', 'attr_default_value': 'str', 'attr_info': 'str', @@ -48,7 +46,6 @@ class V1alpha1PluginConfigGroupOption(object): } attribute_map = { - 'id': 'ID', 'attr_alt_value': 'attr_alt_value', 'attr_default_value': 'attr_default_value', 'attr_info': 'attr_info', @@ -61,13 +58,12 @@ class V1alpha1PluginConfigGroupOption(object): 'service_meta_type': 'service_meta_type' } - def __init__(self, id=None, attr_alt_value=None, attr_default_value=None, attr_info=None, attr_name=None, attr_type=None, build_version=None, is_change=None, plugin_id=None, protocol=None, service_meta_type=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, attr_alt_value=None, attr_default_value=None, attr_info=None, attr_name=None, attr_type=None, build_version=None, is_change=None, plugin_id=None, protocol=None, service_meta_type=None, local_vars_configuration=None): # noqa: E501 """V1alpha1PluginConfigGroupOption - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration - self._id = None self._attr_alt_value = None self._attr_default_value = None self._attr_info = None @@ -80,7 +76,6 @@ class V1alpha1PluginConfigGroupOption(object): self._service_meta_type = None self.discriminator = None - self.id = id self.attr_alt_value = attr_alt_value self.attr_default_value = attr_default_value self.attr_info = attr_info @@ -92,29 +87,6 @@ class V1alpha1PluginConfigGroupOption(object): self.protocol = protocol self.service_meta_type = service_meta_type - @property - def id(self): - """Gets the id of this V1alpha1PluginConfigGroupOption. # noqa: E501 - - - :return: The id of this V1alpha1PluginConfigGroupOption. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this V1alpha1PluginConfigGroupOption. - - - :param id: The id of this V1alpha1PluginConfigGroupOption. # noqa: E501 - :type: int - """ - if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - @property def attr_alt_value(self): """Gets the attr_alt_value of this V1alpha1PluginConfigGroupOption. # noqa: E501 diff --git a/openapi_client/models/v1alpha1_rainbond_application_config.py b/openapi_client/models/v1alpha1_rainbond_application_config.py index bb58ea2..e84b137 100644 --- a/openapi_client/models/v1alpha1_rainbond_application_config.py +++ b/openapi_client/models/v1alpha1_rainbond_application_config.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -37,11 +36,14 @@ class V1alpha1RainbondApplicationConfig(object): 'annotations': 'dict(str, str)', 'app_config_groups': 'list[V1alpha1AppConfigGroup]', 'apps': 'list[V1alpha1Component]', + 'governance_mode': 'str', 'group_key': 'str', 'group_name': 'str', 'group_version': 'str', + 'helm_chart': 'dict(str, str)', 'ingress_http_routes': 'list[V1alpha1IngressHTTPRoute]', 'ingress_stream_routes': 'list[V1alpha1IngressSreamRoute]', + 'k8s_resources': 'list[V1alpha1K8sResource]', 'plugins': 'list[V1alpha1Plugin]', 'template_version': 'str' } @@ -50,16 +52,19 @@ class V1alpha1RainbondApplicationConfig(object): 'annotations': 'annotations', 'app_config_groups': 'app_config_groups', 'apps': 'apps', + 'governance_mode': 'governance_mode', 'group_key': 'group_key', 'group_name': 'group_name', 'group_version': 'group_version', + 'helm_chart': 'helm_chart', 'ingress_http_routes': 'ingress_http_routes', 'ingress_stream_routes': 'ingress_stream_routes', + 'k8s_resources': 'k8s_resources', 'plugins': 'plugins', 'template_version': 'template_version' } - def __init__(self, annotations=None, app_config_groups=None, apps=None, group_key=None, group_name=None, group_version=None, ingress_http_routes=None, ingress_stream_routes=None, plugins=None, template_version=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, annotations=None, app_config_groups=None, apps=None, governance_mode='BUILD_IN_SERVICE_MESH', group_key=None, group_name=None, group_version=None, helm_chart=None, ingress_http_routes=None, ingress_stream_routes=None, k8s_resources=None, plugins=None, template_version=None, local_vars_configuration=None): # noqa: E501 """V1alpha1RainbondApplicationConfig - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -68,26 +73,35 @@ class V1alpha1RainbondApplicationConfig(object): self._annotations = None self._app_config_groups = None self._apps = None + self._governance_mode = None self._group_key = None self._group_name = None self._group_version = None + self._helm_chart = None self._ingress_http_routes = None self._ingress_stream_routes = None + self._k8s_resources = None self._plugins = None self._template_version = None self.discriminator = None if annotations is not None: self.annotations = annotations - self.app_config_groups = app_config_groups + if app_config_groups is not None: + self.app_config_groups = app_config_groups self.apps = apps + self.governance_mode = governance_mode self.group_key = group_key self.group_name = group_name self.group_version = group_version + if helm_chart is not None: + self.helm_chart = helm_chart if ingress_http_routes is not None: self.ingress_http_routes = ingress_http_routes if ingress_stream_routes is not None: self.ingress_stream_routes = ingress_stream_routes + if k8s_resources is not None: + self.k8s_resources = k8s_resources if plugins is not None: self.plugins = plugins self.template_version = template_version @@ -131,8 +145,6 @@ class V1alpha1RainbondApplicationConfig(object): :param app_config_groups: The app_config_groups of this V1alpha1RainbondApplicationConfig. # noqa: E501 :type: list[V1alpha1AppConfigGroup] """ - if self.local_vars_configuration.client_side_validation and app_config_groups is None: # noqa: E501 - raise ValueError("Invalid value for `app_config_groups`, must not be `None`") # noqa: E501 self._app_config_groups = app_config_groups @@ -159,6 +171,29 @@ class V1alpha1RainbondApplicationConfig(object): self._apps = apps + @property + def governance_mode(self): + """Gets the governance_mode of this V1alpha1RainbondApplicationConfig. # noqa: E501 + + + :return: The governance_mode of this V1alpha1RainbondApplicationConfig. # noqa: E501 + :rtype: str + """ + return self._governance_mode + + @governance_mode.setter + def governance_mode(self, governance_mode): + """Sets the governance_mode of this V1alpha1RainbondApplicationConfig. + + + :param governance_mode: The governance_mode of this V1alpha1RainbondApplicationConfig. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and governance_mode is None: # noqa: E501 + raise ValueError("Invalid value for `governance_mode`, must not be `None`") # noqa: E501 + + self._governance_mode = governance_mode + @property def group_key(self): """Gets the group_key of this V1alpha1RainbondApplicationConfig. # noqa: E501 @@ -228,6 +263,27 @@ class V1alpha1RainbondApplicationConfig(object): self._group_version = group_version + @property + def helm_chart(self): + """Gets the helm_chart of this V1alpha1RainbondApplicationConfig. # noqa: E501 + + + :return: The helm_chart of this V1alpha1RainbondApplicationConfig. # noqa: E501 + :rtype: dict(str, str) + """ + return self._helm_chart + + @helm_chart.setter + def helm_chart(self, helm_chart): + """Sets the helm_chart of this V1alpha1RainbondApplicationConfig. + + + :param helm_chart: The helm_chart of this V1alpha1RainbondApplicationConfig. # noqa: E501 + :type: dict(str, str) + """ + + self._helm_chart = helm_chart + @property def ingress_http_routes(self): """Gets the ingress_http_routes of this V1alpha1RainbondApplicationConfig. # noqa: E501 @@ -270,6 +326,27 @@ class V1alpha1RainbondApplicationConfig(object): self._ingress_stream_routes = ingress_stream_routes + @property + def k8s_resources(self): + """Gets the k8s_resources of this V1alpha1RainbondApplicationConfig. # noqa: E501 + + + :return: The k8s_resources of this V1alpha1RainbondApplicationConfig. # noqa: E501 + :rtype: list[V1alpha1K8sResource] + """ + return self._k8s_resources + + @k8s_resources.setter + def k8s_resources(self, k8s_resources): + """Sets the k8s_resources of this V1alpha1RainbondApplicationConfig. + + + :param k8s_resources: The k8s_resources of this V1alpha1RainbondApplicationConfig. # noqa: E501 + :type: list[V1alpha1K8sResource] + """ + + self._k8s_resources = k8s_resources + @property def plugins(self): """Gets the plugins of this V1alpha1RainbondApplicationConfig. # noqa: E501 diff --git a/openapi_client/rest.py b/openapi_client/rest.py index 571de10..18918ec 100644 --- a/openapi_client/rest.py +++ b/openapi_client/rest.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/setup.py b/setup.py index 8b420e5..2c33925 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -28,14 +27,13 @@ setup( name=NAME, version=VERSION, description="app-server", - author="huangrh", - author_email="huangrh@goodrain.com", + author="OpenAPI Generator community", + author_email="team@openapitools.org", url="", keywords=["OpenAPI", "OpenAPI-Generator", "app-server"], install_requires=REQUIRES, packages=find_packages(exclude=["test", "tests"]), include_package_data=True, - license="GNU", long_description="""\ Resource for managing app-server # noqa: E501 """ diff --git a/test/test_apps_image_info.py b/test/test_apps_image_info.py new file mode 100644 index 0000000..4421d89 --- /dev/null +++ b/test/test_apps_image_info.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_image_info import AppsImageInfo # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsImageInfo(unittest.TestCase): + """AppsImageInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsImageInfo + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_image_info.AppsImageInfo() # noqa: E501 + if include_optional : + return AppsImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0' + ) + else : + return AppsImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', + ) + + def testAppsImageInfo(self): + """Test AppsImageInfo""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apps_store_app_version_templete.py b/test/test_apps_store_app_version_templete.py new file mode 100644 index 0000000..f21ffd0 --- /dev/null +++ b/test/test_apps_store_app_version_templete.py @@ -0,0 +1,329 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete import AppsStoreAppVersionTemplete # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTemplete(unittest.TestCase): + """AppsStoreAppVersionTemplete unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTemplete + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete.AppsStoreAppVersionTemplete() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTemplete( + apps = [ + openapi_client.models.apps/store_app_version_templete_app.apps.StoreAppVersionTempleteApp( + category = '0', + cmd = '0', + dep_service_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_dep_service.apps.StoreAppVersionTempleteAppDepService( + dep_service_key = '0', ) + ], + deploy_version = '0', + extend_method = '0', + extend_method_map = openapi_client.models.apps/store_app_version_templete_app_extend_method_rule.apps.StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, ), + image = '0', + language = '0', + memory = 56, + mnt_relation_list = [ + openapi_client.models.apps/store_app_version_templete_app_share_volume.apps.StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', ) + ], + port_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_port.apps.StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', ) + ], + probes = [ + openapi_client.models.apps/store_app_version_templete_app_probe.apps.StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, ) + ], + service_alias = '0', + service_cname = '0', + service_connect_info_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_env.apps.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_env_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_env.apps.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_id = '0', + service_image = openapi_client.models.apps/image_info.apps.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + service_key = '0', + service_name = '0', + service_region = '0', + service_related_plugin_config = [ + openapi_client.models.apps/store_app_version_templete_app_plugin_config.apps.StoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.apps/store_app_version_templete_app_plugin_config/attr.apps.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0', ) + ], + service_share_uuid = '0', + service_source = '0', + service_type = '0', + service_volume_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_volume.apps.StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', ) + ], + share_image = '0', + share_type = '0', + tenant_id = '0', + version = '0', ) + ], + group_key = '0', + group_name = '0', + group_version = '0', + plugins = [ + openapi_client.models.apps/store_app_version_templete_plugin.apps.StoreAppVersionTempletePlugin( + id = 56, + build_source = '0', + build_version = '0', + category = '0', + code_repo = '0', + config_groups = [ + openapi_client.models.apps/store_app_version_templete_plugin_config_group.apps.StoreAppVersionTempletePluginConfigGroup( + id = 56, + build_version = '0', + config_name = '0', + injection = '0', + options = [ + openapi_client.models.apps/store_app_version_templete_plugin_config_group_option.apps.StoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0', ) + ], + plugin_id = '0', + service_meta_type = '0', ) + ], + create_time = '0', + desc = '0', + image = '0', + origin = '0', + origin_share_id = '0', + plugin_alias = '0', + plugin_id = '0', + plugin_image = openapi_client.models.apps/image_info.apps.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + plugin_key = '0', + plugin_name = '0', + share_image = '0', ) + ], + template_version = '0' + ) + else : + return AppsStoreAppVersionTemplete( + apps = [ + openapi_client.models.apps/store_app_version_templete_app.apps.StoreAppVersionTempleteApp( + category = '0', + cmd = '0', + dep_service_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_dep_service.apps.StoreAppVersionTempleteAppDepService( + dep_service_key = '0', ) + ], + deploy_version = '0', + extend_method = '0', + extend_method_map = openapi_client.models.apps/store_app_version_templete_app_extend_method_rule.apps.StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, ), + image = '0', + language = '0', + memory = 56, + mnt_relation_list = [ + openapi_client.models.apps/store_app_version_templete_app_share_volume.apps.StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', ) + ], + port_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_port.apps.StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', ) + ], + probes = [ + openapi_client.models.apps/store_app_version_templete_app_probe.apps.StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, ) + ], + service_alias = '0', + service_cname = '0', + service_connect_info_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_env.apps.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_env_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_env.apps.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_id = '0', + service_image = openapi_client.models.apps/image_info.apps.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + service_key = '0', + service_name = '0', + service_region = '0', + service_related_plugin_config = [ + openapi_client.models.apps/store_app_version_templete_app_plugin_config.apps.StoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.apps/store_app_version_templete_app_plugin_config/attr.apps.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0', ) + ], + service_share_uuid = '0', + service_source = '0', + service_type = '0', + service_volume_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_volume.apps.StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', ) + ], + share_image = '0', + share_type = '0', + tenant_id = '0', + version = '0', ) + ], + group_key = '0', + group_name = '0', + group_version = '0', + template_version = '0', + ) + + def testAppsStoreAppVersionTemplete(self): + """Test AppsStoreAppVersionTemplete""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apps_store_app_version_templete_app.py b/test/test_apps_store_app_version_templete_app.py new file mode 100644 index 0000000..4acccde --- /dev/null +++ b/test/test_apps_store_app_version_templete_app.py @@ -0,0 +1,252 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_app import AppsStoreAppVersionTempleteApp # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempleteApp(unittest.TestCase): + """AppsStoreAppVersionTempleteApp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempleteApp + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_app.AppsStoreAppVersionTempleteApp() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempleteApp( + category = '0', + cmd = '0', + dep_service_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_dep_service.apps.StoreAppVersionTempleteAppDepService( + dep_service_key = '0', ) + ], + deploy_version = '0', + extend_method = '0', + extend_method_map = openapi_client.models.apps/store_app_version_templete_app_extend_method_rule.apps.StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, ), + image = '0', + language = '0', + memory = 56, + mnt_relation_list = [ + openapi_client.models.apps/store_app_version_templete_app_share_volume.apps.StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', ) + ], + port_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_port.apps.StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', ) + ], + probes = [ + openapi_client.models.apps/store_app_version_templete_app_probe.apps.StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, ) + ], + service_alias = '0', + service_cname = '0', + service_connect_info_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_env.apps.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_env_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_env.apps.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_id = '0', + service_image = openapi_client.models.apps/image_info.apps.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + service_key = '0', + service_name = '0', + service_region = '0', + service_related_plugin_config = [ + openapi_client.models.apps/store_app_version_templete_app_plugin_config.apps.StoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.apps/store_app_version_templete_app_plugin_config/attr.apps.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0', ) + ], + service_share_uuid = '0', + service_source = '0', + service_type = '0', + service_volume_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_volume.apps.StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', ) + ], + share_image = '0', + share_type = '0', + tenant_id = '0', + version = '0' + ) + else : + return AppsStoreAppVersionTempleteApp( + category = '0', + cmd = '0', + dep_service_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_dep_service.apps.StoreAppVersionTempleteAppDepService( + dep_service_key = '0', ) + ], + deploy_version = '0', + extend_method = '0', + extend_method_map = openapi_client.models.apps/store_app_version_templete_app_extend_method_rule.apps.StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, ), + image = '0', + language = '0', + memory = 56, + mnt_relation_list = [ + openapi_client.models.apps/store_app_version_templete_app_share_volume.apps.StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', ) + ], + port_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_port.apps.StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', ) + ], + probes = [ + openapi_client.models.apps/store_app_version_templete_app_probe.apps.StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, ) + ], + service_alias = '0', + service_cname = '0', + service_connect_info_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_env.apps.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_env_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_env.apps.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_id = '0', + service_image = openapi_client.models.apps/image_info.apps.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + service_key = '0', + service_name = '0', + service_region = '0', + service_source = '0', + service_type = '0', + service_volume_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_volume.apps.StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', ) + ], + share_image = '0', + tenant_id = '0', + version = '0', + ) + + def testAppsStoreAppVersionTempleteApp(self): + """Test AppsStoreAppVersionTempleteApp""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apps_store_app_version_templete_app_dep_service.py b/test/test_apps_store_app_version_templete_app_dep_service.py new file mode 100644 index 0000000..b00463a --- /dev/null +++ b/test/test_apps_store_app_version_templete_app_dep_service.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_app_dep_service import AppsStoreAppVersionTempleteAppDepService # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempleteAppDepService(unittest.TestCase): + """AppsStoreAppVersionTempleteAppDepService unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempleteAppDepService + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_app_dep_service.AppsStoreAppVersionTempleteAppDepService() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempleteAppDepService( + dep_service_key = '0' + ) + else : + return AppsStoreAppVersionTempleteAppDepService( + dep_service_key = '0', + ) + + def testAppsStoreAppVersionTempleteAppDepService(self): + """Test AppsStoreAppVersionTempleteAppDepService""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apps_store_app_version_templete_app_env.py b/test/test_apps_store_app_version_templete_app_env.py new file mode 100644 index 0000000..0445031 --- /dev/null +++ b/test/test_apps_store_app_version_templete_app_env.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_app_env import AppsStoreAppVersionTempleteAppEnv # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempleteAppEnv(unittest.TestCase): + """AppsStoreAppVersionTempleteAppEnv unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempleteAppEnv + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_app_env.AppsStoreAppVersionTempleteAppEnv() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0' + ) + else : + return AppsStoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', + ) + + def testAppsStoreAppVersionTempleteAppEnv(self): + """Test AppsStoreAppVersionTempleteAppEnv""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apps_store_app_version_templete_app_extend_method_rule.py b/test/test_apps_store_app_version_templete_app_extend_method_rule.py new file mode 100644 index 0000000..7455db8 --- /dev/null +++ b/test/test_apps_store_app_version_templete_app_extend_method_rule.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_app_extend_method_rule import AppsStoreAppVersionTempleteAppExtendMethodRule # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempleteAppExtendMethodRule(unittest.TestCase): + """AppsStoreAppVersionTempleteAppExtendMethodRule unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempleteAppExtendMethodRule + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_app_extend_method_rule.AppsStoreAppVersionTempleteAppExtendMethodRule() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56 + ) + else : + return AppsStoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, + ) + + def testAppsStoreAppVersionTempleteAppExtendMethodRule(self): + """Test AppsStoreAppVersionTempleteAppExtendMethodRule""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apps_store_app_version_templete_app_plugin_config.py b/test/test_apps_store_app_version_templete_app_plugin_config.py new file mode 100644 index 0000000..990c82e --- /dev/null +++ b/test/test_apps_store_app_version_templete_app_plugin_config.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_app_plugin_config import AppsStoreAppVersionTempleteAppPluginConfig # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempleteAppPluginConfig(unittest.TestCase): + """AppsStoreAppVersionTempleteAppPluginConfig unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempleteAppPluginConfig + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_app_plugin_config.AppsStoreAppVersionTempleteAppPluginConfig() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.apps/store_app_version_templete_app_plugin_config/attr.apps.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0' + ) + else : + return AppsStoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.apps/store_app_version_templete_app_plugin_config/attr.apps.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0', + ) + + def testAppsStoreAppVersionTempleteAppPluginConfig(self): + """Test AppsStoreAppVersionTempleteAppPluginConfig""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apps_store_app_version_templete_app_port.py b/test/test_apps_store_app_version_templete_app_port.py new file mode 100644 index 0000000..163abe3 --- /dev/null +++ b/test/test_apps_store_app_version_templete_app_port.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_app_port import AppsStoreAppVersionTempleteAppPort # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempleteAppPort(unittest.TestCase): + """AppsStoreAppVersionTempleteAppPort unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempleteAppPort + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_app_port.AppsStoreAppVersionTempleteAppPort() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0' + ) + else : + return AppsStoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', + ) + + def testAppsStoreAppVersionTempleteAppPort(self): + """Test AppsStoreAppVersionTempleteAppPort""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apps_store_app_version_templete_app_probe.py b/test/test_apps_store_app_version_templete_app_probe.py new file mode 100644 index 0000000..4c91375 --- /dev/null +++ b/test/test_apps_store_app_version_templete_app_probe.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_app_probe import AppsStoreAppVersionTempleteAppProbe # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempleteAppProbe(unittest.TestCase): + """AppsStoreAppVersionTempleteAppProbe unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempleteAppProbe + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_app_probe.AppsStoreAppVersionTempleteAppProbe() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56 + ) + else : + return AppsStoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, + ) + + def testAppsStoreAppVersionTempleteAppProbe(self): + """Test AppsStoreAppVersionTempleteAppProbe""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apps_store_app_version_templete_app_share_volume.py b/test/test_apps_store_app_version_templete_app_share_volume.py new file mode 100644 index 0000000..428a808 --- /dev/null +++ b/test/test_apps_store_app_version_templete_app_share_volume.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_app_share_volume import AppsStoreAppVersionTempleteAppShareVolume # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempleteAppShareVolume(unittest.TestCase): + """AppsStoreAppVersionTempleteAppShareVolume unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempleteAppShareVolume + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_app_share_volume.AppsStoreAppVersionTempleteAppShareVolume() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0' + ) + else : + return AppsStoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', + ) + + def testAppsStoreAppVersionTempleteAppShareVolume(self): + """Test AppsStoreAppVersionTempleteAppShareVolume""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apps_store_app_version_templete_app_volume.py b/test/test_apps_store_app_version_templete_app_volume.py new file mode 100644 index 0000000..c46716b --- /dev/null +++ b/test/test_apps_store_app_version_templete_app_volume.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_app_volume import AppsStoreAppVersionTempleteAppVolume # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempleteAppVolume(unittest.TestCase): + """AppsStoreAppVersionTempleteAppVolume unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempleteAppVolume + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_app_volume.AppsStoreAppVersionTempleteAppVolume() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0' + ) + else : + return AppsStoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', + ) + + def testAppsStoreAppVersionTempleteAppVolume(self): + """Test AppsStoreAppVersionTempleteAppVolume""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apps_store_app_version_templete_plugin.py b/test/test_apps_store_app_version_templete_plugin.py new file mode 100644 index 0000000..f4da1d6 --- /dev/null +++ b/test/test_apps_store_app_version_templete_plugin.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_plugin import AppsStoreAppVersionTempletePlugin # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempletePlugin(unittest.TestCase): + """AppsStoreAppVersionTempletePlugin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempletePlugin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_plugin.AppsStoreAppVersionTempletePlugin() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempletePlugin( + id = 56, + build_source = '0', + build_version = '0', + category = '0', + code_repo = '0', + config_groups = [ + openapi_client.models.apps/store_app_version_templete_plugin_config_group.apps.StoreAppVersionTempletePluginConfigGroup( + id = 56, + build_version = '0', + config_name = '0', + injection = '0', + options = [ + openapi_client.models.apps/store_app_version_templete_plugin_config_group_option.apps.StoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0', ) + ], + plugin_id = '0', + service_meta_type = '0', ) + ], + create_time = '0', + desc = '0', + image = '0', + origin = '0', + origin_share_id = '0', + plugin_alias = '0', + plugin_id = '0', + plugin_image = openapi_client.models.apps/image_info.apps.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + plugin_key = '0', + plugin_name = '0', + share_image = '0' + ) + else : + return AppsStoreAppVersionTempletePlugin( + id = 56, + build_source = '0', + build_version = '0', + category = '0', + code_repo = '0', + create_time = '0', + desc = '0', + image = '0', + origin = '0', + origin_share_id = '0', + plugin_alias = '0', + plugin_id = '0', + plugin_image = openapi_client.models.apps/image_info.apps.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + plugin_key = '0', + plugin_name = '0', + share_image = '0', + ) + + def testAppsStoreAppVersionTempletePlugin(self): + """Test AppsStoreAppVersionTempletePlugin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apps_store_app_version_templete_plugin_config_group.py b/test/test_apps_store_app_version_templete_plugin_config_group.py new file mode 100644 index 0000000..c2f7342 --- /dev/null +++ b/test/test_apps_store_app_version_templete_plugin_config_group.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_plugin_config_group import AppsStoreAppVersionTempletePluginConfigGroup # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempletePluginConfigGroup(unittest.TestCase): + """AppsStoreAppVersionTempletePluginConfigGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempletePluginConfigGroup + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_plugin_config_group.AppsStoreAppVersionTempletePluginConfigGroup() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempletePluginConfigGroup( + id = 56, + build_version = '0', + config_name = '0', + injection = '0', + options = [ + openapi_client.models.apps/store_app_version_templete_plugin_config_group_option.apps.StoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0', ) + ], + plugin_id = '0', + service_meta_type = '0' + ) + else : + return AppsStoreAppVersionTempletePluginConfigGroup( + id = 56, + build_version = '0', + config_name = '0', + injection = '0', + plugin_id = '0', + service_meta_type = '0', + ) + + def testAppsStoreAppVersionTempletePluginConfigGroup(self): + """Test AppsStoreAppVersionTempletePluginConfigGroup""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apps_store_app_version_templete_plugin_config_group_option.py b/test/test_apps_store_app_version_templete_plugin_config_group_option.py new file mode 100644 index 0000000..a9fbb2d --- /dev/null +++ b/test/test_apps_store_app_version_templete_plugin_config_group_option.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.apps_store_app_version_templete_plugin_config_group_option import AppsStoreAppVersionTempletePluginConfigGroupOption # noqa: E501 +from openapi_client.rest import ApiException + +class TestAppsStoreAppVersionTempletePluginConfigGroupOption(unittest.TestCase): + """AppsStoreAppVersionTempletePluginConfigGroupOption unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppsStoreAppVersionTempletePluginConfigGroupOption + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.apps_store_app_version_templete_plugin_config_group_option.AppsStoreAppVersionTempletePluginConfigGroupOption() # noqa: E501 + if include_optional : + return AppsStoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0' + ) + else : + return AppsStoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0', + ) + + def testAppsStoreAppVersionTempletePluginConfigGroupOption(self): + """Test AppsStoreAppVersionTempletePluginConfigGroupOption""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_market_openapi_api.py b/test/test_market_openapi_api.py index 0d3f4c9..2022169 100644 --- a/test/test_market_openapi_api.py +++ b/test/test_market_openapi_api.py @@ -29,94 +29,66 @@ class TestMarketOpenapiApi(unittest.TestCase): def tearDown(self): pass - def test_bindable_markets(self): - """Test case for bindable_markets - - 可绑定的商店列表 # noqa: E501 - """ - pass - def test_create_app(self): """Test case for create_app - 应用列表 # noqa: E501 + create an app model # noqa: E501 """ pass def test_create_app_version(self): """Test case for create_app_version - 创建应用版本 # noqa: E501 + post an app version # noqa: E501 """ pass def test_get_app_hub_info(self): """Test case for get_app_hub_info - 获取镜像仓库信息 # noqa: E501 - """ - pass - - def test_get_app_plugin_list(self): - """Test case for get_app_plugin_list - - 应用插件列表 # noqa: E501 - """ - pass - - def test_get_app_temp_list(self): - """Test case for get_app_temp_list - - 控制台应用模版列表 # noqa: E501 + get app image save info # noqa: E501 """ pass def test_get_market_info(self): """Test case for get_market_info - 获取商店信息 # noqa: E501 - """ - pass - - def test_get_orgs(self): - """Test case for get_orgs - - 获取组织机构(行业)列表 # noqa: E501 + get mrket info # noqa: E501 """ pass def test_get_user_app_detail(self): """Test case for get_user_app_detail - 应用详情 # noqa: E501 + Query the specified application details # noqa: E501 """ pass def test_get_user_app_list(self): """Test case for get_user_app_list - 应用列表 # noqa: E501 + A list of installable applications # noqa: E501 """ pass def test_get_user_app_version_detail(self): """Test case for get_user_app_version_detail - 应用版本信息 # noqa: E501 + Query the specified version details of the specified application # noqa: E501 """ pass def test_get_user_app_versions(self): """Test case for get_user_app_versions - 应用版本列表 # noqa: E501 + Query the specified application version list # noqa: E501 """ pass def test_update_app(self): """Test case for update_app - 更新应用信息 # noqa: E501 + update app model base info # noqa: E501 """ pass diff --git a/test/test_platform_open_api.py b/test/test_platform_open_api.py index 23e6434..115bd85 100644 --- a/test/test_platform_open_api.py +++ b/test/test_platform_open_api.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1_app_base_info.py b/test/test_v1_app_base_info.py index 3ddc83f..54169a2 100644 --- a/test/test_v1_app_base_info.py +++ b/test/test_v1_app_base_info.py @@ -53,28 +53,8 @@ class TestV1AppBaseInfo(unittest.TestCase): market_url = '0', name = '0', publish_type = '0', - publish_user = '0', - show_count = 56, start_count = 56, - status = '0', - tags = [ - '0' - ], - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - versions = [ - openapi_client.models.v1/app_version_base.v1.AppVersionBase( - app_key_id = '0', - app_version = '0', - app_version_alias = '0', - create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', - desc = '0', - enable = True, - is_plugin = True, - rainbond_version = '0', - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - update_version = 56, ) - ] + update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') ) else : return V1AppBaseInfo( @@ -94,28 +74,8 @@ class TestV1AppBaseInfo(unittest.TestCase): market_url = '0', name = '0', publish_type = '0', - publish_user = '0', - show_count = 56, start_count = 56, - status = '0', - tags = [ - '0' - ], update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - versions = [ - openapi_client.models.v1/app_version_base.v1.AppVersionBase( - app_key_id = '0', - app_version = '0', - app_version_alias = '0', - create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', - desc = '0', - enable = True, - is_plugin = True, - rainbond_version = '0', - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - update_version = 56, ) - ], ) def testV1AppBaseInfo(self): diff --git a/test/test_v1_app_classifications.py b/test/test_v1_app_classifications.py new file mode 100644 index 0000000..f65dd72 --- /dev/null +++ b/test/test_v1_app_classifications.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_app_classifications import V1AppClassifications # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1AppClassifications(unittest.TestCase): + """V1AppClassifications unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1AppClassifications + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_app_classifications.V1AppClassifications() # noqa: E501 + if include_optional : + return V1AppClassifications( + app_classification_id = '0', + app_classification_name = '0', + parent_app_classification_id = '0' + ) + else : + return V1AppClassifications( + app_classification_id = '0', + app_classification_name = '0', + parent_app_classification_id = '0', + ) + + def testV1AppClassifications(self): + """Test V1AppClassifications""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_app_create_request.py b/test/test_v1_app_create_request.py new file mode 100644 index 0000000..50b1ef1 --- /dev/null +++ b/test/test_v1_app_create_request.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_app_create_request import V1AppCreateRequest # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1AppCreateRequest(unittest.TestCase): + """V1AppCreateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1AppCreateRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_app_create_request.V1AppCreateRequest() # noqa: E501 + if include_optional : + return V1AppCreateRequest( + desc = '0', + introduction = '0', + logo = '0', + market_id = '0', + name = '0', + publish_type = '0' + ) + else : + return V1AppCreateRequest( + desc = '0', + introduction = '0', + logo = '0', + market_id = '0', + name = '0', + publish_type = '0', + ) + + def testV1AppCreateRequest(self): + """Test V1AppCreateRequest""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_app_detail_info_response.py b/test/test_v1_app_detail_info_response.py index 57d16e2..a5f44fa 100644 --- a/test/test_v1_app_detail_info_response.py +++ b/test/test_v1_app_detail_info_response.py @@ -37,7 +37,6 @@ class TestV1AppDetailInfoResponse(unittest.TestCase): # model = openapi_client.models.v1_app_detail_info_response.V1AppDetailInfoResponse() # noqa: E501 if include_optional : return V1AppDetailInfoResponse( - app_classification_id = '0', app_detail_url = '0', app_key_id = '0', create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -53,12 +52,8 @@ class TestV1AppDetailInfoResponse(unittest.TestCase): market_name = '0', market_url = '0', name = '0', - org_id = '0', publish_type = '0', - publish_user = '0', - show_count = 56, start_count = 56, - status = '0', tags = [ '0' ], @@ -69,10 +64,7 @@ class TestV1AppDetailInfoResponse(unittest.TestCase): app_version = '0', app_version_alias = '0', create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', desc = '0', - enable = True, - is_plugin = True, rainbond_version = '0', update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), update_version = 56, ) @@ -80,7 +72,6 @@ class TestV1AppDetailInfoResponse(unittest.TestCase): ) else : return V1AppDetailInfoResponse( - app_classification_id = '0', app_detail_url = '0', app_key_id = '0', create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -96,12 +87,8 @@ class TestV1AppDetailInfoResponse(unittest.TestCase): market_name = '0', market_url = '0', name = '0', - org_id = '0', publish_type = '0', - publish_user = '0', - show_count = 56, start_count = 56, - status = '0', tags = [ '0' ], @@ -112,10 +99,7 @@ class TestV1AppDetailInfoResponse(unittest.TestCase): app_version = '0', app_version_alias = '0', create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', desc = '0', - enable = True, - is_plugin = True, rainbond_version = '0', update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), update_version = 56, ) diff --git a/test/test_v1_app_model_create_request.py b/test/test_v1_app_model_create_request.py index 041edf1..2f66187 100644 --- a/test/test_v1_app_model_create_request.py +++ b/test/test_v1_app_model_create_request.py @@ -41,7 +41,6 @@ class TestV1AppModelCreateRequest(unittest.TestCase): introduction = '0', logo = '0', name = '0', - org_id = '0', publish_type = '0', tags = [ '0' diff --git a/test/test_v1_app_update_request.py b/test/test_v1_app_update_request.py index e54aa4a..ce50366 100644 --- a/test/test_v1_app_update_request.py +++ b/test/test_v1_app_update_request.py @@ -37,17 +37,21 @@ class TestV1AppUpdateRequest(unittest.TestCase): # model = openapi_client.models.v1_app_update_request.V1AppUpdateRequest() # noqa: E501 if include_optional : return V1AppUpdateRequest( + app_key_id = '0', desc = '0', introduction = '0', logo = '0', + market_id = '0', name = '0', publish_type = '0' ) else : return V1AppUpdateRequest( + app_key_id = '0', desc = '0', introduction = '0', logo = '0', + market_id = '0', name = '0', publish_type = '0', ) diff --git a/test/test_v1_app_version_base.py b/test/test_v1_app_version_base.py index 96d728f..4b8e886 100644 --- a/test/test_v1_app_version_base.py +++ b/test/test_v1_app_version_base.py @@ -41,10 +41,7 @@ class TestV1AppVersionBase(unittest.TestCase): app_version = '0', app_version_alias = '0', create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', desc = '0', - enable = True, - is_plugin = True, rainbond_version = '0', update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), update_version = 56 @@ -55,10 +52,7 @@ class TestV1AppVersionBase(unittest.TestCase): app_version = '0', app_version_alias = '0', create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', desc = '0', - enable = True, - is_plugin = True, rainbond_version = '0', update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), update_version = 56, diff --git a/test/test_v1_app_version_detail_response.py b/test/test_v1_app_version_detail_response.py index e972c04..a0a6b76 100644 --- a/test/test_v1_app_version_detail_response.py +++ b/test/test_v1_app_version_detail_response.py @@ -38,38 +38,187 @@ class TestV1AppVersionDetailResponse(unittest.TestCase): if include_optional : return V1AppVersionDetailResponse( app_key_id = '0', - app_name = '0', + app_version = '0', + app_version_alias = '0', create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', - description = '0', - enable = True, - is_plugin = True, - market_id = '0', + desc = '0', rainbond_version = '0', - template = '0', - template_type = '0', + templete = openapi_client.models.apps/store_app_version_templete.apps.StoreAppVersionTemplete( + apps = [ + openapi_client.models.apps/store_app_version_templete_app.apps.StoreAppVersionTempleteApp( + category = '0', + cmd = '0', + dep_service_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_dep_service.apps.StoreAppVersionTempleteAppDepService( + dep_service_key = '0', ) + ], + deploy_version = '0', + extend_method = '0', + extend_method_map = openapi_client.models.apps/store_app_version_templete_app_extend_method_rule.apps.StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, ), + image = '0', + language = '0', + memory = 56, + mnt_relation_list = [ + openapi_client.models.apps/store_app_version_templete_app_share_volume.apps.StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', ) + ], + port_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_port.apps.StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', ) + ], + probes = [ + openapi_client.models.apps/store_app_version_templete_app_probe.apps.StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, ) + ], + service_alias = '0', + service_cname = '0', + service_connect_info_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_env.apps.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_env_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_env.apps.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_id = '0', + service_image = openapi_client.models.apps/image_info.apps.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + service_key = '0', + service_name = '0', + service_region = '0', + service_related_plugin_config = [ + openapi_client.models.apps/store_app_version_templete_app_plugin_config.apps.StoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.apps/store_app_version_templete_app_plugin_config/attr.apps.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0', ) + ], + service_share_uuid = '0', + service_source = '0', + service_type = '0', + service_volume_map_list = [ + openapi_client.models.apps/store_app_version_templete_app_volume.apps.StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', ) + ], + share_image = '0', + share_type = '0', + tenant_id = '0', + version = '0', ) + ], + group_key = '0', + group_name = '0', + group_version = '0', + plugins = [ + openapi_client.models.apps/store_app_version_templete_plugin.apps.StoreAppVersionTempletePlugin( + id = 56, + build_source = '0', + build_version = '0', + category = '0', + code_repo = '0', + config_groups = [ + openapi_client.models.apps/store_app_version_templete_plugin_config_group.apps.StoreAppVersionTempletePluginConfigGroup( + id = 56, + build_version = '0', + config_name = '0', + injection = '0', + options = [ + openapi_client.models.apps/store_app_version_templete_plugin_config_group_option.apps.StoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0', ) + ], + plugin_id = '0', + service_meta_type = '0', ) + ], + create_time = '0', + desc = '0', + image = '0', + origin = '0', + origin_share_id = '0', + plugin_alias = '0', + plugin_id = '0', + plugin_image = openapi_client.models.apps/image_info.apps.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + plugin_key = '0', + plugin_name = '0', + share_image = '0', ) + ], + template_version = '0', ), update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - update_version = 56, - version = '0', - version_alias = '0' + update_version = 56 ) else : return V1AppVersionDetailResponse( app_key_id = '0', - app_name = '0', + app_version = '0', + app_version_alias = '0', create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', - description = '0', - enable = True, - is_plugin = True, - market_id = '0', + desc = '0', rainbond_version = '0', - template = '0', - template_type = '0', update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), update_version = 56, - version = '0', - version_alias = '0', ) def testV1AppVersionDetailResponse(self): diff --git a/test/test_v1_app_version_list_response.py b/test/test_v1_app_version_list_response.py index 75b35b5..c5f25f4 100644 --- a/test/test_v1_app_version_list_response.py +++ b/test/test_v1_app_version_list_response.py @@ -37,37 +37,25 @@ class TestV1AppVersionListResponse(unittest.TestCase): # model = openapi_client.models.v1_app_version_list_response.V1AppVersionListResponse() # noqa: E501 if include_optional : return V1AppVersionListResponse( - versions = [ - openapi_client.models.v1/app_version_base.v1.AppVersionBase( - app_key_id = '0', - app_version = '0', - app_version_alias = '0', - create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', - desc = '0', - enable = True, - is_plugin = True, - rainbond_version = '0', - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - update_version = 56, ) - ] + app_key_id = '0', + app_version = '0', + app_version_alias = '0', + create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + desc = '0', + rainbond_version = '0', + update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + update_version = 56 ) else : return V1AppVersionListResponse( - versions = [ - openapi_client.models.v1/app_version_base.v1.AppVersionBase( - app_key_id = '0', - app_version = '0', - app_version_alias = '0', - create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', - desc = '0', - enable = True, - is_plugin = True, - rainbond_version = '0', - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - update_version = 56, ) - ], + app_key_id = '0', + app_version = '0', + app_version_alias = '0', + create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + desc = '0', + rainbond_version = '0', + update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + update_version = 56, ) def testV1AppVersionListResponse(self): diff --git a/test/test_v1_app_version_request.py b/test/test_v1_app_version_request.py new file mode 100644 index 0000000..b7afe76 --- /dev/null +++ b/test/test_v1_app_version_request.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_app_version_request import V1AppVersionRequest # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1AppVersionRequest(unittest.TestCase): + """V1AppVersionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1AppVersionRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_app_version_request.V1AppVersionRequest() # noqa: E501 + if include_optional : + return V1AppVersionRequest( + app_version = '0', + app_version_alias = '0', + desc = '0', + rainbond_version = '0', + templete = '0', + update_version = 56 + ) + else : + return V1AppVersionRequest( + app_version = '0', + app_version_alias = '0', + desc = '0', + rainbond_version = '0', + templete = '0', + update_version = 56, + ) + + def testV1AppVersionRequest(self): + """Test V1AppVersionRequest""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_bindable_market.py b/test/test_v1_bindable_market.py index 81f9f3c..2afa344 100644 --- a/test/test_v1_bindable_market.py +++ b/test/test_v1_bindable_market.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1_create_app_paa_s_version_request.py b/test/test_v1_create_app_paa_s_version_request.py index 4b5a293..2231388 100644 --- a/test/test_v1_create_app_paa_s_version_request.py +++ b/test/test_v1_create_app_paa_s_version_request.py @@ -38,56 +38,18 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): if include_optional : return V1CreateAppPaaSVersionRequest( description = '0', - is_plugin = True, - rainbond_version = '0', - template = openapi_client.models.v1alpha1/rainbond_application_config.v1alpha1.RainbondApplicationConfig( - annotations = { - 'key' : '0' - }, - app_config_groups = [ - openapi_client.models.v1alpha1/app_config_group.v1alpha1.AppConfigGroup( - component_ids = [ - '0' - ], - config_items = { - 'key' : '0' - }, - injection_type = '0', - name = '0', ) - ], + templete = openapi_client.models.v1/store_app_version_templete.v1.StoreAppVersionTemplete( apps = [ - openapi_client.models.v1alpha1/component.v1alpha1.Component( + openapi_client.models.v1/store_app_version_templete_app.v1.StoreAppVersionTempleteApp( category = '0', cmd = '0', - component_graphs = [ - openapi_client.models.v1alpha1/component_graph.v1alpha1.ComponentGraph( - component_id = '0', - graph_id = '0', - promql = '0', - sequence = 56, - title = '0', ) - ], - component_monitors = [ - openapi_client.models.v1alpha1/component_monitor.v1alpha1.ComponentMonitor( - interval = '0', - name = '0', - path = '0', - port = 56, - service_show_name = '0', ) - ], - cpu = 56, dep_service_map_list = [ - openapi_client.models.v1alpha1/component_dep.v1alpha1.ComponentDep( + openapi_client.models.v1/store_app_version_templete_app_dep_service.v1.StoreAppVersionTempleteAppDepService( dep_service_key = '0', ) ], deploy_version = '0', - endpoints = openapi_client.models.v1alpha1/endpoints.v1alpha1.Endpoints( - endpoints_info = '0', - endpoints_type = '0', - service_cname = '0', ), extend_method = '0', - extend_method_map = openapi_client.models.v1alpha1/component_extend_method_rule.v1alpha1.ComponentExtendMethodRule( - init_memory = 56, + extend_method_map = openapi_client.models.v1/store_app_version_templete_app_extend_method_rule.v1.StoreAppVersionTempleteAppExtendMethodRule( is_restart = 56, max_memory = 56, max_node = 56, @@ -96,19 +58,16 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): step_memory = 56, step_node = 56, ), image = '0', - labels = { - 'key' : '0' - }, language = '0', memory = 56, mnt_relation_list = [ - openapi_client.models.v1alpha1/component_share_volume.v1alpha1.ComponentShareVolume( + openapi_client.models.v1/store_app_version_templete_app_share_volume.v1.StoreAppVersionTempleteAppShareVolume( mnt_dir = '0', mnt_name = '0', service_share_uuid = '0', ) ], port_map_list = [ - openapi_client.models.v1alpha1/component_port.v1alpha1.ComponentPort( + openapi_client.models.v1/store_app_version_templete_app_port.v1.StoreAppVersionTempleteAppPort( container_port = 56, is_inner_service = True, is_outer_service = True, @@ -117,7 +76,7 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): tenant_id = '0', ) ], probes = [ - openapi_client.models.v1alpha1/component_probe.v1alpha1.ComponentProbe( + openapi_client.models.v1/store_app_version_templete_app_probe.v1.StoreAppVersionTempleteAppProbe( id = 56, cmd = '0', failure_threshold = 56, @@ -137,23 +96,21 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): service_alias = '0', service_cname = '0', service_connect_info_map_list = [ - openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], service_env_map_list = [ - openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], service_id = '0', - service_image = openapi_client.models.v1alpha1/image_info.v1alpha1.ImageInfo( + service_image = openapi_client.models.v1/image_info.v1.ImageInfo( hub_password = '0', hub_url = '0', hub_user = '0', @@ -161,15 +118,15 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): namespace = '0', ), service_key = '0', service_name = '0', + service_region = '0', service_related_plugin_config = [ - openapi_client.models.v1alpha1/component_plugin_config.v1alpha1.ComponentPluginConfig( + openapi_client.models.v1/store_app_version_templete_app_plugin_config.v1.StoreAppVersionTempleteAppPluginConfig( + id = 56, attr = [ - openapi_client.models.v1alpha1/component_plugin_config/attr.v1alpha1.ComponentPluginConfig.attr() + openapi_client.models.v1/store_app_version_templete_app_plugin_config/attr.v1.StoreAppVersionTempleteAppPluginConfig.attr() ], build_version = '0', - cpu_required = 56, create_time = '0', - memory_required = 56, plugin_id = '0', plugin_key = '0', plugin_status = True, @@ -180,11 +137,9 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): service_source = '0', service_type = '0', service_volume_map_list = [ - openapi_client.models.v1alpha1/component_volume.v1alpha1.ComponentVolume( + openapi_client.models.v1/store_app_version_templete_app_volume.v1.StoreAppVersionTempleteAppVolume( access_mode = '0', file_content = '0', - mode = 56, - share_policy = '0', volume_capacity = 56, volume_name = '0', volume_path = '0', @@ -192,59 +147,27 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): ], share_image = '0', share_type = '0', + tenant_id = '0', version = '0', ) ], group_key = '0', group_name = '0', group_version = '0', - ingress_http_routes = [ - openapi_client.models.v1alpha1/ingress_http_route.v1alpha1.IngressHTTPRoute( - component_key = '0', - connection_timeout = 56, - cookies = { - 'key' : '0' - }, - default_domain = True, - headers = { - 'key' : '0' - }, - load_balancing = '0', - location = '0', - port = 56, - proxy_buffer = True, - proxy_buffer_numbers = 56, - proxy_buffer_size = 56, - proxy_header = { - 'key' : '0' - }, - request_body_size_limit = 56, - request_timeout = 56, - response_timeout = 56, - ssl = True, - websocket = True, ) - ], - ingress_stream_routes = [ - openapi_client.models.v1alpha1/ingress_sream_route.v1alpha1.IngressSreamRoute( - component_key = '0', - connection_timeout = 56, - port = 56, - protocol = '0', ) - ], plugins = [ - openapi_client.models.v1alpha1/plugin.v1alpha1.Plugin( + openapi_client.models.v1/store_app_version_templete_plugin.v1.StoreAppVersionTempletePlugin( id = 56, build_source = '0', build_version = '0', category = '0', code_repo = '0', config_groups = [ - openapi_client.models.v1alpha1/plugin_config_group.v1alpha1.PluginConfigGroup( + openapi_client.models.v1/store_app_version_templete_plugin_config_group.v1.StoreAppVersionTempletePluginConfigGroup( id = 56, build_version = '0', config_name = '0', injection = '0', options = [ - openapi_client.models.v1alpha1/plugin_config_group_option.v1alpha1.PluginConfigGroupOption( + openapi_client.models.v1/store_app_version_templete_plugin_config_group_option.v1.StoreAppVersionTempletePluginConfigGroupOption( id = 56, attr_alt_value = '0', attr_default_value = '0', @@ -267,7 +190,7 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): origin_share_id = '0', plugin_alias = '0', plugin_id = '0', - plugin_image = openapi_client.models.v1alpha1/image_info.v1alpha1.ImageInfo( + plugin_image = openapi_client.models.v1/image_info.v1.ImageInfo( hub_password = '0', hub_url = '0', hub_user = '0', @@ -278,63 +201,25 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): share_image = '0', ) ], template_version = '0', ), - template_type = '0', + templete_type = '0', version = '0', version_alias = '0' ) else : return V1CreateAppPaaSVersionRequest( description = '0', - is_plugin = True, - rainbond_version = '0', - template = openapi_client.models.v1alpha1/rainbond_application_config.v1alpha1.RainbondApplicationConfig( - annotations = { - 'key' : '0' - }, - app_config_groups = [ - openapi_client.models.v1alpha1/app_config_group.v1alpha1.AppConfigGroup( - component_ids = [ - '0' - ], - config_items = { - 'key' : '0' - }, - injection_type = '0', - name = '0', ) - ], + templete = openapi_client.models.v1/store_app_version_templete.v1.StoreAppVersionTemplete( apps = [ - openapi_client.models.v1alpha1/component.v1alpha1.Component( + openapi_client.models.v1/store_app_version_templete_app.v1.StoreAppVersionTempleteApp( category = '0', cmd = '0', - component_graphs = [ - openapi_client.models.v1alpha1/component_graph.v1alpha1.ComponentGraph( - component_id = '0', - graph_id = '0', - promql = '0', - sequence = 56, - title = '0', ) - ], - component_monitors = [ - openapi_client.models.v1alpha1/component_monitor.v1alpha1.ComponentMonitor( - interval = '0', - name = '0', - path = '0', - port = 56, - service_show_name = '0', ) - ], - cpu = 56, dep_service_map_list = [ - openapi_client.models.v1alpha1/component_dep.v1alpha1.ComponentDep( + openapi_client.models.v1/store_app_version_templete_app_dep_service.v1.StoreAppVersionTempleteAppDepService( dep_service_key = '0', ) ], deploy_version = '0', - endpoints = openapi_client.models.v1alpha1/endpoints.v1alpha1.Endpoints( - endpoints_info = '0', - endpoints_type = '0', - service_cname = '0', ), extend_method = '0', - extend_method_map = openapi_client.models.v1alpha1/component_extend_method_rule.v1alpha1.ComponentExtendMethodRule( - init_memory = 56, + extend_method_map = openapi_client.models.v1/store_app_version_templete_app_extend_method_rule.v1.StoreAppVersionTempleteAppExtendMethodRule( is_restart = 56, max_memory = 56, max_node = 56, @@ -343,19 +228,16 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): step_memory = 56, step_node = 56, ), image = '0', - labels = { - 'key' : '0' - }, language = '0', memory = 56, mnt_relation_list = [ - openapi_client.models.v1alpha1/component_share_volume.v1alpha1.ComponentShareVolume( + openapi_client.models.v1/store_app_version_templete_app_share_volume.v1.StoreAppVersionTempleteAppShareVolume( mnt_dir = '0', mnt_name = '0', service_share_uuid = '0', ) ], port_map_list = [ - openapi_client.models.v1alpha1/component_port.v1alpha1.ComponentPort( + openapi_client.models.v1/store_app_version_templete_app_port.v1.StoreAppVersionTempleteAppPort( container_port = 56, is_inner_service = True, is_outer_service = True, @@ -364,7 +246,7 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): tenant_id = '0', ) ], probes = [ - openapi_client.models.v1alpha1/component_probe.v1alpha1.ComponentProbe( + openapi_client.models.v1/store_app_version_templete_app_probe.v1.StoreAppVersionTempleteAppProbe( id = 56, cmd = '0', failure_threshold = 56, @@ -384,23 +266,21 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): service_alias = '0', service_cname = '0', service_connect_info_map_list = [ - openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], service_env_map_list = [ - openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], service_id = '0', - service_image = openapi_client.models.v1alpha1/image_info.v1alpha1.ImageInfo( + service_image = openapi_client.models.v1/image_info.v1.ImageInfo( hub_password = '0', hub_url = '0', hub_user = '0', @@ -408,15 +288,15 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): namespace = '0', ), service_key = '0', service_name = '0', + service_region = '0', service_related_plugin_config = [ - openapi_client.models.v1alpha1/component_plugin_config.v1alpha1.ComponentPluginConfig( + openapi_client.models.v1/store_app_version_templete_app_plugin_config.v1.StoreAppVersionTempleteAppPluginConfig( + id = 56, attr = [ - openapi_client.models.v1alpha1/component_plugin_config/attr.v1alpha1.ComponentPluginConfig.attr() + openapi_client.models.v1/store_app_version_templete_app_plugin_config/attr.v1.StoreAppVersionTempleteAppPluginConfig.attr() ], build_version = '0', - cpu_required = 56, create_time = '0', - memory_required = 56, plugin_id = '0', plugin_key = '0', plugin_status = True, @@ -427,11 +307,9 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): service_source = '0', service_type = '0', service_volume_map_list = [ - openapi_client.models.v1alpha1/component_volume.v1alpha1.ComponentVolume( + openapi_client.models.v1/store_app_version_templete_app_volume.v1.StoreAppVersionTempleteAppVolume( access_mode = '0', file_content = '0', - mode = 56, - share_policy = '0', volume_capacity = 56, volume_name = '0', volume_path = '0', @@ -439,59 +317,27 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): ], share_image = '0', share_type = '0', + tenant_id = '0', version = '0', ) ], group_key = '0', group_name = '0', group_version = '0', - ingress_http_routes = [ - openapi_client.models.v1alpha1/ingress_http_route.v1alpha1.IngressHTTPRoute( - component_key = '0', - connection_timeout = 56, - cookies = { - 'key' : '0' - }, - default_domain = True, - headers = { - 'key' : '0' - }, - load_balancing = '0', - location = '0', - port = 56, - proxy_buffer = True, - proxy_buffer_numbers = 56, - proxy_buffer_size = 56, - proxy_header = { - 'key' : '0' - }, - request_body_size_limit = 56, - request_timeout = 56, - response_timeout = 56, - ssl = True, - websocket = True, ) - ], - ingress_stream_routes = [ - openapi_client.models.v1alpha1/ingress_sream_route.v1alpha1.IngressSreamRoute( - component_key = '0', - connection_timeout = 56, - port = 56, - protocol = '0', ) - ], plugins = [ - openapi_client.models.v1alpha1/plugin.v1alpha1.Plugin( + openapi_client.models.v1/store_app_version_templete_plugin.v1.StoreAppVersionTempletePlugin( id = 56, build_source = '0', build_version = '0', category = '0', code_repo = '0', config_groups = [ - openapi_client.models.v1alpha1/plugin_config_group.v1alpha1.PluginConfigGroup( + openapi_client.models.v1/store_app_version_templete_plugin_config_group.v1.StoreAppVersionTempletePluginConfigGroup( id = 56, build_version = '0', config_name = '0', injection = '0', options = [ - openapi_client.models.v1alpha1/plugin_config_group_option.v1alpha1.PluginConfigGroupOption( + openapi_client.models.v1/store_app_version_templete_plugin_config_group_option.v1.StoreAppVersionTempletePluginConfigGroupOption( id = 56, attr_alt_value = '0', attr_default_value = '0', @@ -514,7 +360,7 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): origin_share_id = '0', plugin_alias = '0', plugin_id = '0', - plugin_image = openapi_client.models.v1alpha1/image_info.v1alpha1.ImageInfo( + plugin_image = openapi_client.models.v1/image_info.v1.ImageInfo( hub_password = '0', hub_url = '0', hub_user = '0', @@ -525,7 +371,7 @@ class TestV1CreateAppPaaSVersionRequest(unittest.TestCase): share_image = '0', ) ], template_version = '0', ), - template_type = '0', + templete_type = '0', version = '0', version_alias = '0', ) diff --git a/test/test_v1_image_info.py b/test/test_v1_image_info.py new file mode 100644 index 0000000..0475415 --- /dev/null +++ b/test/test_v1_image_info.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_image_info import V1ImageInfo # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1ImageInfo(unittest.TestCase): + """V1ImageInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1ImageInfo + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_image_info.V1ImageInfo() # noqa: E501 + if include_optional : + return V1ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0' + ) + else : + return V1ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', + ) + + def testV1ImageInfo(self): + """Test V1ImageInfo""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_market_info_response.py b/test/test_v1_market_info_response.py index 5c19cca..da9eaeb 100644 --- a/test/test_v1_market_info_response.py +++ b/test/test_v1_market_info_response.py @@ -37,25 +37,17 @@ class TestV1MarketInfoResponse(unittest.TestCase): # model = openapi_client.models.v1_market_info_response.V1MarketInfoResponse() # noqa: E501 if include_optional : return V1MarketInfoResponse( - access_actions = [ - '0' - ], - create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), description = '0', + enterprise_name = '0', name = '0', - status = 56, - version = '0' + status = '0' ) else : return V1MarketInfoResponse( - access_actions = [ - '0' - ], - create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), description = '0', + enterprise_name = '0', name = '0', - status = 56, - version = '0', + status = '0', ) def testV1MarketInfoResponse(self): diff --git a/test/test_v1_store_app_version_template.py b/test/test_v1_store_app_version_template.py new file mode 100644 index 0000000..7797820 --- /dev/null +++ b/test/test_v1_store_app_version_template.py @@ -0,0 +1,329 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_template import V1StoreAppVersionTemplate # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTemplate(unittest.TestCase): + """V1StoreAppVersionTemplate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTemplate + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_template.V1StoreAppVersionTemplate() # noqa: E501 + if include_optional : + return V1StoreAppVersionTemplate( + apps = [ + openapi_client.models.v1/store_app_version_templete_app.v1.StoreAppVersionTempleteApp( + category = '0', + cmd = '0', + dep_service_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_dep_service.v1.StoreAppVersionTempleteAppDepService( + dep_service_key = '0', ) + ], + deploy_version = '0', + extend_method = '0', + extend_method_map = openapi_client.models.v1/store_app_version_templete_app_extend_method_rule.v1.StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, ), + image = '0', + language = '0', + memory = 56, + mnt_relation_list = [ + openapi_client.models.v1/store_app_version_templete_app_share_volume.v1.StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', ) + ], + port_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_port.v1.StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', ) + ], + probes = [ + openapi_client.models.v1/store_app_version_templete_app_probe.v1.StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, ) + ], + service_alias = '0', + service_cname = '0', + service_connect_info_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_env_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_id = '0', + service_image = openapi_client.models.v1/image_info.v1.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + service_key = '0', + service_name = '0', + service_region = '0', + service_related_plugin_config = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config.v1.StoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config/attr.v1.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0', ) + ], + service_share_uuid = '0', + service_source = '0', + service_type = '0', + service_volume_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_volume.v1.StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', ) + ], + share_image = '0', + share_type = '0', + tenant_id = '0', + version = '0', ) + ], + group_key = '0', + group_name = '0', + group_version = '0', + plugins = [ + openapi_client.models.v1/store_app_version_templete_plugin.v1.StoreAppVersionTempletePlugin( + id = 56, + build_source = '0', + build_version = '0', + category = '0', + code_repo = '0', + config_groups = [ + openapi_client.models.v1/store_app_version_templete_plugin_config_group.v1.StoreAppVersionTempletePluginConfigGroup( + id = 56, + build_version = '0', + config_name = '0', + injection = '0', + options = [ + openapi_client.models.v1/store_app_version_templete_plugin_config_group_option.v1.StoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0', ) + ], + plugin_id = '0', + service_meta_type = '0', ) + ], + create_time = '0', + desc = '0', + image = '0', + origin = '0', + origin_share_id = '0', + plugin_alias = '0', + plugin_id = '0', + plugin_image = openapi_client.models.v1/image_info.v1.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + plugin_key = '0', + plugin_name = '0', + share_image = '0', ) + ], + template_version = '0' + ) + else : + return V1StoreAppVersionTemplate( + apps = [ + openapi_client.models.v1/store_app_version_templete_app.v1.StoreAppVersionTempleteApp( + category = '0', + cmd = '0', + dep_service_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_dep_service.v1.StoreAppVersionTempleteAppDepService( + dep_service_key = '0', ) + ], + deploy_version = '0', + extend_method = '0', + extend_method_map = openapi_client.models.v1/store_app_version_templete_app_extend_method_rule.v1.StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, ), + image = '0', + language = '0', + memory = 56, + mnt_relation_list = [ + openapi_client.models.v1/store_app_version_templete_app_share_volume.v1.StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', ) + ], + port_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_port.v1.StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', ) + ], + probes = [ + openapi_client.models.v1/store_app_version_templete_app_probe.v1.StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, ) + ], + service_alias = '0', + service_cname = '0', + service_connect_info_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_env_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_id = '0', + service_image = openapi_client.models.v1/image_info.v1.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + service_key = '0', + service_name = '0', + service_region = '0', + service_related_plugin_config = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config.v1.StoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config/attr.v1.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0', ) + ], + service_share_uuid = '0', + service_source = '0', + service_type = '0', + service_volume_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_volume.v1.StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', ) + ], + share_image = '0', + share_type = '0', + tenant_id = '0', + version = '0', ) + ], + group_key = '0', + group_name = '0', + group_version = '0', + template_version = '0', + ) + + def testV1StoreAppVersionTemplate(self): + """Test V1StoreAppVersionTemplate""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_store_app_version_templete.py b/test/test_v1_store_app_version_templete.py new file mode 100644 index 0000000..86b7265 --- /dev/null +++ b/test/test_v1_store_app_version_templete.py @@ -0,0 +1,329 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete import V1StoreAppVersionTemplete # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTemplete(unittest.TestCase): + """V1StoreAppVersionTemplete unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTemplete + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete.V1StoreAppVersionTemplete() # noqa: E501 + if include_optional : + return V1StoreAppVersionTemplete( + apps = [ + openapi_client.models.v1/store_app_version_templete_app.v1.StoreAppVersionTempleteApp( + category = '0', + cmd = '0', + dep_service_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_dep_service.v1.StoreAppVersionTempleteAppDepService( + dep_service_key = '0', ) + ], + deploy_version = '0', + extend_method = '0', + extend_method_map = openapi_client.models.v1/store_app_version_templete_app_extend_method_rule.v1.StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, ), + image = '0', + language = '0', + memory = 56, + mnt_relation_list = [ + openapi_client.models.v1/store_app_version_templete_app_share_volume.v1.StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', ) + ], + port_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_port.v1.StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', ) + ], + probes = [ + openapi_client.models.v1/store_app_version_templete_app_probe.v1.StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, ) + ], + service_alias = '0', + service_cname = '0', + service_connect_info_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_env_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_id = '0', + service_image = openapi_client.models.v1/image_info.v1.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + service_key = '0', + service_name = '0', + service_region = '0', + service_related_plugin_config = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config.v1.StoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config/attr.v1.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0', ) + ], + service_share_uuid = '0', + service_source = '0', + service_type = '0', + service_volume_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_volume.v1.StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', ) + ], + share_image = '0', + share_type = '0', + tenant_id = '0', + version = '0', ) + ], + group_key = '0', + group_name = '0', + group_version = '0', + plugins = [ + openapi_client.models.v1/store_app_version_templete_plugin.v1.StoreAppVersionTempletePlugin( + id = 56, + build_source = '0', + build_version = '0', + category = '0', + code_repo = '0', + config_groups = [ + openapi_client.models.v1/store_app_version_templete_plugin_config_group.v1.StoreAppVersionTempletePluginConfigGroup( + id = 56, + build_version = '0', + config_name = '0', + injection = '0', + options = [ + openapi_client.models.v1/store_app_version_templete_plugin_config_group_option.v1.StoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0', ) + ], + plugin_id = '0', + service_meta_type = '0', ) + ], + create_time = '0', + desc = '0', + image = '0', + origin = '0', + origin_share_id = '0', + plugin_alias = '0', + plugin_id = '0', + plugin_image = openapi_client.models.v1/image_info.v1.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + plugin_key = '0', + plugin_name = '0', + share_image = '0', ) + ], + template_version = '0' + ) + else : + return V1StoreAppVersionTemplete( + apps = [ + openapi_client.models.v1/store_app_version_templete_app.v1.StoreAppVersionTempleteApp( + category = '0', + cmd = '0', + dep_service_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_dep_service.v1.StoreAppVersionTempleteAppDepService( + dep_service_key = '0', ) + ], + deploy_version = '0', + extend_method = '0', + extend_method_map = openapi_client.models.v1/store_app_version_templete_app_extend_method_rule.v1.StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, ), + image = '0', + language = '0', + memory = 56, + mnt_relation_list = [ + openapi_client.models.v1/store_app_version_templete_app_share_volume.v1.StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', ) + ], + port_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_port.v1.StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', ) + ], + probes = [ + openapi_client.models.v1/store_app_version_templete_app_probe.v1.StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, ) + ], + service_alias = '0', + service_cname = '0', + service_connect_info_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_env_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_id = '0', + service_image = openapi_client.models.v1/image_info.v1.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + service_key = '0', + service_name = '0', + service_region = '0', + service_related_plugin_config = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config.v1.StoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config/attr.v1.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0', ) + ], + service_share_uuid = '0', + service_source = '0', + service_type = '0', + service_volume_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_volume.v1.StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', ) + ], + share_image = '0', + share_type = '0', + tenant_id = '0', + version = '0', ) + ], + group_key = '0', + group_name = '0', + group_version = '0', + template_version = '0', + ) + + def testV1StoreAppVersionTemplete(self): + """Test V1StoreAppVersionTemplete""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_store_app_version_templete_app.py b/test/test_v1_store_app_version_templete_app.py new file mode 100644 index 0000000..2001722 --- /dev/null +++ b/test/test_v1_store_app_version_templete_app.py @@ -0,0 +1,252 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_app import V1StoreAppVersionTempleteApp # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempleteApp(unittest.TestCase): + """V1StoreAppVersionTempleteApp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempleteApp + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_app.V1StoreAppVersionTempleteApp() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempleteApp( + category = '0', + cmd = '0', + dep_service_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_dep_service.v1.StoreAppVersionTempleteAppDepService( + dep_service_key = '0', ) + ], + deploy_version = '0', + extend_method = '0', + extend_method_map = openapi_client.models.v1/store_app_version_templete_app_extend_method_rule.v1.StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, ), + image = '0', + language = '0', + memory = 56, + mnt_relation_list = [ + openapi_client.models.v1/store_app_version_templete_app_share_volume.v1.StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', ) + ], + port_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_port.v1.StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', ) + ], + probes = [ + openapi_client.models.v1/store_app_version_templete_app_probe.v1.StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, ) + ], + service_alias = '0', + service_cname = '0', + service_connect_info_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_env_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_id = '0', + service_image = openapi_client.models.v1/image_info.v1.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + service_key = '0', + service_name = '0', + service_region = '0', + service_related_plugin_config = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config.v1.StoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config/attr.v1.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0', ) + ], + service_share_uuid = '0', + service_source = '0', + service_type = '0', + service_volume_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_volume.v1.StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', ) + ], + share_image = '0', + share_type = '0', + tenant_id = '0', + version = '0' + ) + else : + return V1StoreAppVersionTempleteApp( + category = '0', + cmd = '0', + dep_service_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_dep_service.v1.StoreAppVersionTempleteAppDepService( + dep_service_key = '0', ) + ], + deploy_version = '0', + extend_method = '0', + extend_method_map = openapi_client.models.v1/store_app_version_templete_app_extend_method_rule.v1.StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, ), + image = '0', + language = '0', + memory = 56, + mnt_relation_list = [ + openapi_client.models.v1/store_app_version_templete_app_share_volume.v1.StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', ) + ], + port_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_port.v1.StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', ) + ], + probes = [ + openapi_client.models.v1/store_app_version_templete_app_probe.v1.StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, ) + ], + service_alias = '0', + service_cname = '0', + service_connect_info_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_env_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_env.v1.StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', ) + ], + service_id = '0', + service_image = openapi_client.models.v1/image_info.v1.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + service_key = '0', + service_name = '0', + service_region = '0', + service_source = '0', + service_type = '0', + service_volume_map_list = [ + openapi_client.models.v1/store_app_version_templete_app_volume.v1.StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', ) + ], + share_image = '0', + tenant_id = '0', + version = '0', + ) + + def testV1StoreAppVersionTempleteApp(self): + """Test V1StoreAppVersionTempleteApp""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_store_app_version_templete_app_dep_service.py b/test/test_v1_store_app_version_templete_app_dep_service.py new file mode 100644 index 0000000..32b641f --- /dev/null +++ b/test/test_v1_store_app_version_templete_app_dep_service.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_app_dep_service import V1StoreAppVersionTempleteAppDepService # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempleteAppDepService(unittest.TestCase): + """V1StoreAppVersionTempleteAppDepService unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempleteAppDepService + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_app_dep_service.V1StoreAppVersionTempleteAppDepService() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempleteAppDepService( + dep_service_key = '0' + ) + else : + return V1StoreAppVersionTempleteAppDepService( + dep_service_key = '0', + ) + + def testV1StoreAppVersionTempleteAppDepService(self): + """Test V1StoreAppVersionTempleteAppDepService""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_store_app_version_templete_app_env.py b/test/test_v1_store_app_version_templete_app_env.py new file mode 100644 index 0000000..625a42d --- /dev/null +++ b/test/test_v1_store_app_version_templete_app_env.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_app_env import V1StoreAppVersionTempleteAppEnv # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempleteAppEnv(unittest.TestCase): + """V1StoreAppVersionTempleteAppEnv unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempleteAppEnv + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_app_env.V1StoreAppVersionTempleteAppEnv() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0' + ) + else : + return V1StoreAppVersionTempleteAppEnv( + attr_name = '0', + attr_value = '0', + is_change = True, + name = '0', + ) + + def testV1StoreAppVersionTempleteAppEnv(self): + """Test V1StoreAppVersionTempleteAppEnv""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_store_app_version_templete_app_extend_method_rule.py b/test/test_v1_store_app_version_templete_app_extend_method_rule.py new file mode 100644 index 0000000..e8d251e --- /dev/null +++ b/test/test_v1_store_app_version_templete_app_extend_method_rule.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_app_extend_method_rule import V1StoreAppVersionTempleteAppExtendMethodRule # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempleteAppExtendMethodRule(unittest.TestCase): + """V1StoreAppVersionTempleteAppExtendMethodRule unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempleteAppExtendMethodRule + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_app_extend_method_rule.V1StoreAppVersionTempleteAppExtendMethodRule() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56 + ) + else : + return V1StoreAppVersionTempleteAppExtendMethodRule( + is_restart = 56, + max_memory = 56, + max_node = 56, + min_memory = 56, + min_node = 56, + step_memory = 56, + step_node = 56, + ) + + def testV1StoreAppVersionTempleteAppExtendMethodRule(self): + """Test V1StoreAppVersionTempleteAppExtendMethodRule""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_store_app_version_templete_app_plugin_config.py b/test/test_v1_store_app_version_templete_app_plugin_config.py new file mode 100644 index 0000000..94e481d --- /dev/null +++ b/test/test_v1_store_app_version_templete_app_plugin_config.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_app_plugin_config import V1StoreAppVersionTempleteAppPluginConfig # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempleteAppPluginConfig(unittest.TestCase): + """V1StoreAppVersionTempleteAppPluginConfig unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempleteAppPluginConfig + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_app_plugin_config.V1StoreAppVersionTempleteAppPluginConfig() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config/attr.v1.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0' + ) + else : + return V1StoreAppVersionTempleteAppPluginConfig( + id = 56, + attr = [ + openapi_client.models.v1/store_app_version_templete_app_plugin_config/attr.v1.StoreAppVersionTempleteAppPluginConfig.attr() + ], + build_version = '0', + create_time = '0', + plugin_id = '0', + plugin_key = '0', + plugin_status = True, + service_id = '0', + service_meta_type = '0', + ) + + def testV1StoreAppVersionTempleteAppPluginConfig(self): + """Test V1StoreAppVersionTempleteAppPluginConfig""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_store_app_version_templete_app_port.py b/test/test_v1_store_app_version_templete_app_port.py new file mode 100644 index 0000000..d909b01 --- /dev/null +++ b/test/test_v1_store_app_version_templete_app_port.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_app_port import V1StoreAppVersionTempleteAppPort # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempleteAppPort(unittest.TestCase): + """V1StoreAppVersionTempleteAppPort unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempleteAppPort + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_app_port.V1StoreAppVersionTempleteAppPort() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0' + ) + else : + return V1StoreAppVersionTempleteAppPort( + container_port = 56, + is_inner_service = True, + is_outer_service = True, + port_alias = '0', + protocol = '0', + tenant_id = '0', + ) + + def testV1StoreAppVersionTempleteAppPort(self): + """Test V1StoreAppVersionTempleteAppPort""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_store_app_version_templete_app_probe.py b/test/test_v1_store_app_version_templete_app_probe.py new file mode 100644 index 0000000..69f4aba --- /dev/null +++ b/test/test_v1_store_app_version_templete_app_probe.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_app_probe import V1StoreAppVersionTempleteAppProbe # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempleteAppProbe(unittest.TestCase): + """V1StoreAppVersionTempleteAppProbe unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempleteAppProbe + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_app_probe.V1StoreAppVersionTempleteAppProbe() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56 + ) + else : + return V1StoreAppVersionTempleteAppProbe( + id = 56, + cmd = '0', + failure_threshold = 56, + http_header = '0', + initial_delay_second = 56, + is_used = True, + mode = '0', + path = '0', + period_second = 56, + port = 56, + probe_id = '0', + scheme = '0', + service_id = '0', + success_threshold = 56, + timeout_second = 56, + ) + + def testV1StoreAppVersionTempleteAppProbe(self): + """Test V1StoreAppVersionTempleteAppProbe""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_store_app_version_templete_app_share_volume.py b/test/test_v1_store_app_version_templete_app_share_volume.py new file mode 100644 index 0000000..e0a6cab --- /dev/null +++ b/test/test_v1_store_app_version_templete_app_share_volume.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_app_share_volume import V1StoreAppVersionTempleteAppShareVolume # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempleteAppShareVolume(unittest.TestCase): + """V1StoreAppVersionTempleteAppShareVolume unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempleteAppShareVolume + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_app_share_volume.V1StoreAppVersionTempleteAppShareVolume() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0' + ) + else : + return V1StoreAppVersionTempleteAppShareVolume( + mnt_dir = '0', + mnt_name = '0', + service_share_uuid = '0', + ) + + def testV1StoreAppVersionTempleteAppShareVolume(self): + """Test V1StoreAppVersionTempleteAppShareVolume""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_store_app_version_templete_app_volume.py b/test/test_v1_store_app_version_templete_app_volume.py new file mode 100644 index 0000000..8506dd0 --- /dev/null +++ b/test/test_v1_store_app_version_templete_app_volume.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_app_volume import V1StoreAppVersionTempleteAppVolume # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempleteAppVolume(unittest.TestCase): + """V1StoreAppVersionTempleteAppVolume unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempleteAppVolume + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_app_volume.V1StoreAppVersionTempleteAppVolume() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0' + ) + else : + return V1StoreAppVersionTempleteAppVolume( + access_mode = '0', + file_content = '0', + volume_capacity = 56, + volume_name = '0', + volume_path = '0', + volume_type = '0', + ) + + def testV1StoreAppVersionTempleteAppVolume(self): + """Test V1StoreAppVersionTempleteAppVolume""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_store_app_version_templete_plugin.py b/test/test_v1_store_app_version_templete_plugin.py new file mode 100644 index 0000000..5330999 --- /dev/null +++ b/test/test_v1_store_app_version_templete_plugin.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_plugin import V1StoreAppVersionTempletePlugin # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempletePlugin(unittest.TestCase): + """V1StoreAppVersionTempletePlugin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempletePlugin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_plugin.V1StoreAppVersionTempletePlugin() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempletePlugin( + id = 56, + build_source = '0', + build_version = '0', + category = '0', + code_repo = '0', + config_groups = [ + openapi_client.models.v1/store_app_version_templete_plugin_config_group.v1.StoreAppVersionTempletePluginConfigGroup( + id = 56, + build_version = '0', + config_name = '0', + injection = '0', + options = [ + openapi_client.models.v1/store_app_version_templete_plugin_config_group_option.v1.StoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0', ) + ], + plugin_id = '0', + service_meta_type = '0', ) + ], + create_time = '0', + desc = '0', + image = '0', + origin = '0', + origin_share_id = '0', + plugin_alias = '0', + plugin_id = '0', + plugin_image = openapi_client.models.v1/image_info.v1.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + plugin_key = '0', + plugin_name = '0', + share_image = '0' + ) + else : + return V1StoreAppVersionTempletePlugin( + id = 56, + build_source = '0', + build_version = '0', + category = '0', + code_repo = '0', + create_time = '0', + desc = '0', + image = '0', + origin = '0', + origin_share_id = '0', + plugin_alias = '0', + plugin_id = '0', + plugin_image = openapi_client.models.v1/image_info.v1.ImageInfo( + hub_password = '0', + hub_url = '0', + hub_user = '0', + is_trust = True, + namespace = '0', ), + plugin_key = '0', + plugin_name = '0', + share_image = '0', + ) + + def testV1StoreAppVersionTempletePlugin(self): + """Test V1StoreAppVersionTempletePlugin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_store_app_version_templete_plugin_config_group.py b/test/test_v1_store_app_version_templete_plugin_config_group.py new file mode 100644 index 0000000..b300de5 --- /dev/null +++ b/test/test_v1_store_app_version_templete_plugin_config_group.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_plugin_config_group import V1StoreAppVersionTempletePluginConfigGroup # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempletePluginConfigGroup(unittest.TestCase): + """V1StoreAppVersionTempletePluginConfigGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempletePluginConfigGroup + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_plugin_config_group.V1StoreAppVersionTempletePluginConfigGroup() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempletePluginConfigGroup( + id = 56, + build_version = '0', + config_name = '0', + injection = '0', + options = [ + openapi_client.models.v1/store_app_version_templete_plugin_config_group_option.v1.StoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0', ) + ], + plugin_id = '0', + service_meta_type = '0' + ) + else : + return V1StoreAppVersionTempletePluginConfigGroup( + id = 56, + build_version = '0', + config_name = '0', + injection = '0', + plugin_id = '0', + service_meta_type = '0', + ) + + def testV1StoreAppVersionTempletePluginConfigGroup(self): + """Test V1StoreAppVersionTempletePluginConfigGroup""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_store_app_version_templete_plugin_config_group_option.py b/test/test_v1_store_app_version_templete_plugin_config_group_option.py new file mode 100644 index 0000000..21cd16b --- /dev/null +++ b/test/test_v1_store_app_version_templete_plugin_config_group_option.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: huangrh@goodrain.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1_store_app_version_templete_plugin_config_group_option import V1StoreAppVersionTempletePluginConfigGroupOption # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1StoreAppVersionTempletePluginConfigGroupOption(unittest.TestCase): + """V1StoreAppVersionTempletePluginConfigGroupOption unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1StoreAppVersionTempletePluginConfigGroupOption + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1_store_app_version_templete_plugin_config_group_option.V1StoreAppVersionTempletePluginConfigGroupOption() # noqa: E501 + if include_optional : + return V1StoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0' + ) + else : + return V1StoreAppVersionTempletePluginConfigGroupOption( + id = 56, + attr_alt_value = '0', + attr_default_value = '0', + attr_info = '0', + attr_name = '0', + attr_type = '0', + build_version = '0', + is_change = True, + plugin_id = '0', + protocol = '0', + service_meta_type = '0', + ) + + def testV1StoreAppVersionTempletePluginConfigGroupOption(self): + """Test V1StoreAppVersionTempletePluginConfigGroupOption""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_user_app_list_response.py b/test/test_v1_user_app_list_response.py index 44f2c6c..322694a 100644 --- a/test/test_v1_user_app_list_response.py +++ b/test/test_v1_user_app_list_response.py @@ -55,28 +55,8 @@ class TestV1UserAppListResponse(unittest.TestCase): market_url = '0', name = '0', publish_type = '0', - publish_user = '0', - show_count = 56, start_count = 56, - status = '0', - tags = [ - '0' - ], - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - versions = [ - openapi_client.models.v1/app_version_base.v1.AppVersionBase( - app_key_id = '0', - app_version = '0', - app_version_alias = '0', - create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', - desc = '0', - enable = True, - is_plugin = True, - rainbond_version = '0', - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - update_version = 56, ) - ], ) + update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) ], page = 56, page_size = 56, @@ -102,28 +82,8 @@ class TestV1UserAppListResponse(unittest.TestCase): market_url = '0', name = '0', publish_type = '0', - publish_user = '0', - show_count = 56, start_count = 56, - status = '0', - tags = [ - '0' - ], - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - versions = [ - openapi_client.models.v1/app_version_base.v1.AppVersionBase( - app_key_id = '0', - app_version = '0', - app_version_alias = '0', - create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - delivery_mode = '0', - desc = '0', - enable = True, - is_plugin = True, - rainbond_version = '0', - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - update_version = 56, ) - ], ) + update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) ], page = 56, page_size = 56, diff --git a/test/test_v1alpha1_app_config_group.py b/test/test_v1alpha1_app_config_group.py index 2e22082..50779cb 100644 --- a/test/test_v1alpha1_app_config_group.py +++ b/test/test_v1alpha1_app_config_group.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_component.py b/test/test_v1alpha1_component.py index 56b4d77..84f9f24 100644 --- a/test/test_v1alpha1_component.py +++ b/test/test_v1alpha1_component.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -39,15 +38,7 @@ class TestV1alpha1Component(unittest.TestCase): return V1alpha1Component( category = '0', cmd = '0', - component_graphs = [ - openapi_client.models.v1alpha1/component_graph.v1alpha1.ComponentGraph( - component_id = '0', - graph_id = '0', - promql = '0', - sequence = 56, - title = '0', ) - ], - component_monitors = [ + component_monitor = [ openapi_client.models.v1alpha1/component_monitor.v1alpha1.ComponentMonitor( interval = '0', name = '0', @@ -61,13 +52,8 @@ class TestV1alpha1Component(unittest.TestCase): dep_service_key = '0', ) ], deploy_version = '0', - endpoints = openapi_client.models.v1alpha1/endpoints.v1alpha1.Endpoints( - endpoints_info = '0', - endpoints_type = '0', - service_cname = '0', ), extend_method = '0', extend_method_map = openapi_client.models.v1alpha1/component_extend_method_rule.v1alpha1.ComponentExtendMethodRule( - init_memory = 56, is_restart = 56, max_memory = 56, max_node = 56, @@ -76,9 +62,6 @@ class TestV1alpha1Component(unittest.TestCase): step_memory = 56, step_node = 56, ), image = '0', - labels = { - 'key' : '0' - }, language = '0', memory = 56, mnt_relation_list = [ @@ -120,7 +103,6 @@ class TestV1alpha1Component(unittest.TestCase): openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], @@ -128,7 +110,6 @@ class TestV1alpha1Component(unittest.TestCase): openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], @@ -163,8 +144,7 @@ class TestV1alpha1Component(unittest.TestCase): openapi_client.models.v1alpha1/component_volume.v1alpha1.ComponentVolume( access_mode = '0', file_content = '0', - mode = 56, - share_policy = '0', + sharing_policy = '0', volume_capacity = 56, volume_name = '0', volume_path = '0', @@ -178,15 +158,7 @@ class TestV1alpha1Component(unittest.TestCase): return V1alpha1Component( category = '0', cmd = '0', - component_graphs = [ - openapi_client.models.v1alpha1/component_graph.v1alpha1.ComponentGraph( - component_id = '0', - graph_id = '0', - promql = '0', - sequence = 56, - title = '0', ) - ], - component_monitors = [ + component_monitor = [ openapi_client.models.v1alpha1/component_monitor.v1alpha1.ComponentMonitor( interval = '0', name = '0', @@ -202,7 +174,6 @@ class TestV1alpha1Component(unittest.TestCase): deploy_version = '0', extend_method = '0', extend_method_map = openapi_client.models.v1alpha1/component_extend_method_rule.v1alpha1.ComponentExtendMethodRule( - init_memory = 56, is_restart = 56, max_memory = 56, max_node = 56, @@ -252,7 +223,6 @@ class TestV1alpha1Component(unittest.TestCase): openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], @@ -260,7 +230,6 @@ class TestV1alpha1Component(unittest.TestCase): openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], @@ -279,8 +248,7 @@ class TestV1alpha1Component(unittest.TestCase): openapi_client.models.v1alpha1/component_volume.v1alpha1.ComponentVolume( access_mode = '0', file_content = '0', - mode = 56, - share_policy = '0', + sharing_policy = '0', volume_capacity = 56, volume_name = '0', volume_path = '0', diff --git a/test/test_v1alpha1_component_dep.py b/test/test_v1alpha1_component_dep.py index c21f010..c6deb3a 100644 --- a/test/test_v1alpha1_component_dep.py +++ b/test/test_v1alpha1_component_dep.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_component_env.py b/test/test_v1alpha1_component_env.py index 6442ecb..263824c 100644 --- a/test/test_v1alpha1_component_env.py +++ b/test/test_v1alpha1_component_env.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -39,7 +38,6 @@ class TestV1alpha1ComponentEnv(unittest.TestCase): return V1alpha1ComponentEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0' ) @@ -47,7 +45,6 @@ class TestV1alpha1ComponentEnv(unittest.TestCase): return V1alpha1ComponentEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) diff --git a/test/test_v1alpha1_component_extend_method_rule.py b/test/test_v1alpha1_component_extend_method_rule.py index 3e3a72f..0948337 100644 --- a/test/test_v1alpha1_component_extend_method_rule.py +++ b/test/test_v1alpha1_component_extend_method_rule.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -37,7 +36,6 @@ class TestV1alpha1ComponentExtendMethodRule(unittest.TestCase): # model = openapi_client.models.v1alpha1_component_extend_method_rule.V1alpha1ComponentExtendMethodRule() # noqa: E501 if include_optional : return V1alpha1ComponentExtendMethodRule( - init_memory = 56, is_restart = 56, max_memory = 56, max_node = 56, @@ -48,7 +46,6 @@ class TestV1alpha1ComponentExtendMethodRule(unittest.TestCase): ) else : return V1alpha1ComponentExtendMethodRule( - init_memory = 56, is_restart = 56, max_memory = 56, max_node = 56, diff --git a/test/test_v1alpha1_component_graph.py b/test/test_v1alpha1_component_graph.py index 1db1381..a2963ed 100644 --- a/test/test_v1alpha1_component_graph.py +++ b/test/test_v1alpha1_component_graph.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_component_k8s_attribute.py b/test/test_v1alpha1_component_k8s_attribute.py new file mode 100644 index 0000000..e37b6ff --- /dev/null +++ b/test/test_v1alpha1_component_k8s_attribute.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1alpha1_component_k8s_attribute import V1alpha1ComponentK8sAttribute # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1alpha1ComponentK8sAttribute(unittest.TestCase): + """V1alpha1ComponentK8sAttribute unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1alpha1ComponentK8sAttribute + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1alpha1_component_k8s_attribute.V1alpha1ComponentK8sAttribute() # noqa: E501 + if include_optional : + return V1alpha1ComponentK8sAttribute( + attribute_value = '0', + component_id = '0', + name = '0', + save_type = '0' + ) + else : + return V1alpha1ComponentK8sAttribute( + attribute_value = '0', + component_id = '0', + name = '0', + save_type = '0', + ) + + def testV1alpha1ComponentK8sAttribute(self): + """Test V1alpha1ComponentK8sAttribute""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_component_monitor.py b/test/test_v1alpha1_component_monitor.py index c064e73..3286697 100644 --- a/test/test_v1alpha1_component_monitor.py +++ b/test/test_v1alpha1_component_monitor.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_component_plugin_config.py b/test/test_v1alpha1_component_plugin_config.py index bac3bf0..0726739 100644 --- a/test/test_v1alpha1_component_plugin_config.py +++ b/test/test_v1alpha1_component_plugin_config.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_component_port.py b/test/test_v1alpha1_component_port.py index f6e7fd5..2b56dc9 100644 --- a/test/test_v1alpha1_component_port.py +++ b/test/test_v1alpha1_component_port.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_component_probe.py b/test/test_v1alpha1_component_probe.py index 67b7eb1..89995e3 100644 --- a/test/test_v1alpha1_component_probe.py +++ b/test/test_v1alpha1_component_probe.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_component_share_volume.py b/test/test_v1alpha1_component_share_volume.py index 9da860a..261e1a3 100644 --- a/test/test_v1alpha1_component_share_volume.py +++ b/test/test_v1alpha1_component_share_volume.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_component_volume.py b/test/test_v1alpha1_component_volume.py index 885c038..1e5c425 100644 --- a/test/test_v1alpha1_component_volume.py +++ b/test/test_v1alpha1_component_volume.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -39,8 +38,7 @@ class TestV1alpha1ComponentVolume(unittest.TestCase): return V1alpha1ComponentVolume( access_mode = '0', file_content = '0', - mode = 56, - share_policy = '0', + sharing_policy = '0', volume_capacity = 56, volume_name = '0', volume_path = '0', @@ -48,7 +46,10 @@ class TestV1alpha1ComponentVolume(unittest.TestCase): ) else : return V1alpha1ComponentVolume( + access_mode = '0', file_content = '0', + sharing_policy = '0', + volume_capacity = 56, volume_name = '0', volume_path = '0', volume_type = '0', diff --git a/test/test_v1alpha1_endpoints.py b/test/test_v1alpha1_endpoints.py index 53a0ba6..09e73fb 100644 --- a/test/test_v1alpha1_endpoints.py +++ b/test/test_v1alpha1_endpoints.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_image_info.py b/test/test_v1alpha1_image_info.py index 32f4739..38df547 100644 --- a/test/test_v1alpha1_image_info.py +++ b/test/test_v1alpha1_image_info.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_ingress_http_route.py b/test/test_v1alpha1_ingress_http_route.py index 470f544..faf9728 100644 --- a/test/test_v1alpha1_ingress_http_route.py +++ b/test/test_v1alpha1_ingress_http_route.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_ingress_sream_route.py b/test/test_v1alpha1_ingress_sream_route.py index 562408c..c243c19 100644 --- a/test/test_v1alpha1_ingress_sream_route.py +++ b/test/test_v1alpha1_ingress_sream_route.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_k8s_resource.py b/test/test_v1alpha1_k8s_resource.py new file mode 100644 index 0000000..f8ed066 --- /dev/null +++ b/test/test_v1alpha1_k8s_resource.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + app-server + + Resource for managing app-server # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client +from openapi_client.models.v1alpha1_k8s_resource import V1alpha1K8sResource # noqa: E501 +from openapi_client.rest import ApiException + +class TestV1alpha1K8sResource(unittest.TestCase): + """V1alpha1K8sResource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test V1alpha1K8sResource + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client.models.v1alpha1_k8s_resource.V1alpha1K8sResource() # noqa: E501 + if include_optional : + return V1alpha1K8sResource( + content = '0', + kind = '0', + name = '0' + ) + else : + return V1alpha1K8sResource( + content = '0', + kind = '0', + name = '0', + ) + + def testV1alpha1K8sResource(self): + """Test V1alpha1K8sResource""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1alpha1_plugin.py b/test/test_v1alpha1_plugin.py index b5e1a8a..4ca9ba0 100644 --- a/test/test_v1alpha1_plugin.py +++ b/test/test_v1alpha1_plugin.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_plugin_config_group.py b/test/test_v1alpha1_plugin_config_group.py index 0f99260..fb2d4e4 100644 --- a/test/test_v1alpha1_plugin_config_group.py +++ b/test/test_v1alpha1_plugin_config_group.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_plugin_config_group_option.py b/test/test_v1alpha1_plugin_config_group_option.py index ff28387..723ebb3 100644 --- a/test/test_v1alpha1_plugin_config_group_option.py +++ b/test/test_v1alpha1_plugin_config_group_option.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_v1alpha1_rainbond_application_config.py b/test/test_v1alpha1_rainbond_application_config.py index 245dc4e..cdd804d 100644 --- a/test/test_v1alpha1_rainbond_application_config.py +++ b/test/test_v1alpha1_rainbond_application_config.py @@ -6,7 +6,6 @@ Resource for managing app-server # noqa: E501 The version of the OpenAPI document: 1.0.0 - Contact: huangrh@goodrain.com Generated by: https://openapi-generator.tech """ @@ -37,9 +36,6 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): # model = openapi_client.models.v1alpha1_rainbond_application_config.V1alpha1RainbondApplicationConfig() # noqa: E501 if include_optional : return V1alpha1RainbondApplicationConfig( - annotations = { - 'key' : '0' - }, app_config_groups = [ openapi_client.models.v1alpha1/app_config_group.v1alpha1.AppConfigGroup( component_ids = [ @@ -55,15 +51,7 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): openapi_client.models.v1alpha1/component.v1alpha1.Component( category = '0', cmd = '0', - component_graphs = [ - openapi_client.models.v1alpha1/component_graph.v1alpha1.ComponentGraph( - component_id = '0', - graph_id = '0', - promql = '0', - sequence = 56, - title = '0', ) - ], - component_monitors = [ + component_monitor = [ openapi_client.models.v1alpha1/component_monitor.v1alpha1.ComponentMonitor( interval = '0', name = '0', @@ -77,13 +65,8 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): dep_service_key = '0', ) ], deploy_version = '0', - endpoints = openapi_client.models.v1alpha1/endpoints.v1alpha1.Endpoints( - endpoints_info = '0', - endpoints_type = '0', - service_cname = '0', ), extend_method = '0', extend_method_map = openapi_client.models.v1alpha1/component_extend_method_rule.v1alpha1.ComponentExtendMethodRule( - init_memory = 56, is_restart = 56, max_memory = 56, max_node = 56, @@ -92,9 +75,6 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): step_memory = 56, step_node = 56, ), image = '0', - labels = { - 'key' : '0' - }, language = '0', memory = 56, mnt_relation_list = [ @@ -136,7 +116,6 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], @@ -144,7 +123,6 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], @@ -179,8 +157,7 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): openapi_client.models.v1alpha1/component_volume.v1alpha1.ComponentVolume( access_mode = '0', file_content = '0', - mode = 56, - share_policy = '0', + sharing_policy = '0', volume_capacity = 56, volume_name = '0', volume_path = '0', @@ -193,39 +170,6 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): group_key = '0', group_name = '0', group_version = '0', - ingress_http_routes = [ - openapi_client.models.v1alpha1/ingress_http_route.v1alpha1.IngressHTTPRoute( - component_key = '0', - connection_timeout = 56, - cookies = { - 'key' : '0' - }, - default_domain = True, - headers = { - 'key' : '0' - }, - load_balancing = '0', - location = '0', - port = 56, - proxy_buffer = True, - proxy_buffer_numbers = 56, - proxy_buffer_size = 56, - proxy_header = { - 'key' : '0' - }, - request_body_size_limit = 56, - request_timeout = 56, - response_timeout = 56, - ssl = True, - websocket = True, ) - ], - ingress_stream_routes = [ - openapi_client.models.v1alpha1/ingress_sream_route.v1alpha1.IngressSreamRoute( - component_key = '0', - connection_timeout = 56, - port = 56, - protocol = '0', ) - ], plugins = [ openapi_client.models.v1alpha1/plugin.v1alpha1.Plugin( id = 56, @@ -292,15 +236,7 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): openapi_client.models.v1alpha1/component.v1alpha1.Component( category = '0', cmd = '0', - component_graphs = [ - openapi_client.models.v1alpha1/component_graph.v1alpha1.ComponentGraph( - component_id = '0', - graph_id = '0', - promql = '0', - sequence = 56, - title = '0', ) - ], - component_monitors = [ + component_monitor = [ openapi_client.models.v1alpha1/component_monitor.v1alpha1.ComponentMonitor( interval = '0', name = '0', @@ -314,13 +250,8 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): dep_service_key = '0', ) ], deploy_version = '0', - endpoints = openapi_client.models.v1alpha1/endpoints.v1alpha1.Endpoints( - endpoints_info = '0', - endpoints_type = '0', - service_cname = '0', ), extend_method = '0', extend_method_map = openapi_client.models.v1alpha1/component_extend_method_rule.v1alpha1.ComponentExtendMethodRule( - init_memory = 56, is_restart = 56, max_memory = 56, max_node = 56, @@ -329,9 +260,6 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): step_memory = 56, step_node = 56, ), image = '0', - labels = { - 'key' : '0' - }, language = '0', memory = 56, mnt_relation_list = [ @@ -373,7 +301,6 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], @@ -381,7 +308,6 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): openapi_client.models.v1alpha1/component_env.v1alpha1.ComponentEnv( attr_name = '0', attr_value = '0', - container_port = 56, is_change = True, name = '0', ) ], @@ -416,8 +342,7 @@ class TestV1alpha1RainbondApplicationConfig(unittest.TestCase): openapi_client.models.v1alpha1/component_volume.v1alpha1.ComponentVolume( access_mode = '0', file_content = '0', - mode = 56, - share_policy = '0', + sharing_policy = '0', volume_capacity = 56, volume_name = '0', volume_path = '0', -- Gitee