From 39f438b555fc03d042e58a24ffce514d33fd620f Mon Sep 17 00:00:00 2001 From: Huaweicloud-SDK Date: Sat, 30 Jan 2021 18:45:44 +0800 Subject: [PATCH] release 3.0.4-beta source code for cpp --- CHANGELOG.md | 19 +++++ CHANGELOG_CN.md | 18 +++++ ecs/include/huaweicloud/ecs/v2/EcsClient.h | 26 +++--- ...=> UpdateServerAutoTerminateTimeRequest.h} | 24 +++--- ...pdateServerAutoTerminateTimeRequestBody.h} | 14 ++-- ...> UpdateServerAutoTerminateTimeResponse.h} | 14 ++-- ecs/src/v2/EcsClient.cpp | 16 ++-- .../UpdateAutoTerminateTimeServerResponse.cpp | 46 ----------- ... UpdateServerAutoTerminateTimeRequest.cpp} | 30 +++---- ...ateServerAutoTerminateTimeRequestBody.cpp} | 20 ++--- .../UpdateServerAutoTerminateTimeResponse.cpp | 46 +++++++++++ .../evs/v2/model/CreateVolumeRequestBody.h | 12 +++ .../evs/v2/model/CreateVolumeSchedulerHints.h | 65 +++++++++++++++ .../huaweicloud/evs/v2/model/QuotaDetail.h | 7 +- .../evs/v2/model/QuotaDetailBackupGigabytes.h | 7 +- .../evs/v2/model/QuotaDetailBackups.h | 7 +- .../evs/v2/model/QuotaDetailGigabytes.h | 7 +- .../evs/v2/model/QuotaDetailGigabytesGPSSD.h | 7 +- .../evs/v2/model/QuotaDetailGigabytesSAS.h | 7 +- .../evs/v2/model/QuotaDetailGigabytesSATA.h | 7 +- .../evs/v2/model/QuotaDetailGigabytesSSD.h | 7 +- .../v2/model/QuotaDetailPerVolumeGigabytes.h | 7 +- .../evs/v2/model/QuotaDetailSnapshots.h | 7 +- .../evs/v2/model/QuotaDetailSnapshotsGPSSD.h | 7 +- .../evs/v2/model/QuotaDetailSnapshotsSAS.h | 7 +- .../evs/v2/model/QuotaDetailSnapshotsSATA.h | 7 +- .../evs/v2/model/QuotaDetailSnapshotsSSD.h | 7 +- .../evs/v2/model/QuotaDetailVolumes.h | 7 +- .../evs/v2/model/QuotaDetailVolumesGPSSD.h | 7 +- .../evs/v2/model/QuotaDetailVolumesSAS.h | 7 +- .../evs/v2/model/QuotaDetailVolumesSATA.h | 7 +- .../evs/v2/model/QuotaDetailVolumesSSD.h | 7 +- evs/src/v2/model/CreateVolumeRequestBody.cpp | 34 ++++++++ .../v2/model/CreateVolumeSchedulerHints.cpp | 81 +++++++++++++++++++ evs/src/v2/model/QuotaDetail.cpp | 8 +- .../v2/model/QuotaDetailBackupGigabytes.cpp | 8 +- evs/src/v2/model/QuotaDetailBackups.cpp | 8 +- evs/src/v2/model/QuotaDetailGigabytes.cpp | 8 +- .../v2/model/QuotaDetailGigabytesGPSSD.cpp | 8 +- evs/src/v2/model/QuotaDetailGigabytesSAS.cpp | 8 +- evs/src/v2/model/QuotaDetailGigabytesSATA.cpp | 8 +- evs/src/v2/model/QuotaDetailGigabytesSSD.cpp | 8 +- .../model/QuotaDetailPerVolumeGigabytes.cpp | 8 +- evs/src/v2/model/QuotaDetailSnapshots.cpp | 8 +- .../v2/model/QuotaDetailSnapshotsGPSSD.cpp | 8 +- evs/src/v2/model/QuotaDetailSnapshotsSAS.cpp | 8 +- evs/src/v2/model/QuotaDetailSnapshotsSATA.cpp | 8 +- evs/src/v2/model/QuotaDetailSnapshotsSSD.cpp | 8 +- evs/src/v2/model/QuotaDetailVolumes.cpp | 8 +- evs/src/v2/model/QuotaDetailVolumesGPSSD.cpp | 8 +- evs/src/v2/model/QuotaDetailVolumesSAS.cpp | 8 +- evs/src/v2/model/QuotaDetailVolumesSATA.cpp | 8 +- evs/src/v2/model/QuotaDetailVolumesSSD.cpp | 8 +- 53 files changed, 480 insertions(+), 270 deletions(-) rename ecs/include/huaweicloud/ecs/v2/model/{UpdateAutoTerminateTimeServerRequest.h => UpdateServerAutoTerminateTimeRequest.h} (59%) rename ecs/include/huaweicloud/ecs/v2/model/{UpdateAutoTerminateTimeServerRequestBody.h => UpdateServerAutoTerminateTimeRequestBody.h} (69%) rename ecs/include/huaweicloud/ecs/v2/model/{UpdateAutoTerminateTimeServerResponse.h => UpdateServerAutoTerminateTimeResponse.h} (63%) delete mode 100644 ecs/src/v2/model/UpdateAutoTerminateTimeServerResponse.cpp rename ecs/src/v2/model/{UpdateAutoTerminateTimeServerRequest.cpp => UpdateServerAutoTerminateTimeRequest.cpp} (59%) rename ecs/src/v2/model/{UpdateAutoTerminateTimeServerRequestBody.cpp => UpdateServerAutoTerminateTimeRequestBody.cpp} (62%) create mode 100644 ecs/src/v2/model/UpdateServerAutoTerminateTimeResponse.cpp create mode 100644 evs/include/huaweicloud/evs/v2/model/CreateVolumeSchedulerHints.h create mode 100644 evs/src/v2/model/CreateVolumeSchedulerHints.cpp diff --git a/CHANGELOG.md b/CHANGELOG.md index e6bca677b..4f4ade5fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,22 @@ +# 3.0.4-beta 2021-01-30 +## HuaweiCloud SDK ECS +- ### Features + - None +- ### Bug Fix + - None +- ### Change + - Change interface name from `UpdateAutoTerminateTimeServer` to `UpdateServerAutoTerminateTime`. + +## HuaweiCloud SDK EVS +- ### Features + - None +- ### Bug Fix + - None +- ### Change + - Interface `CinderCreateVolume` is supported to specify the id of dedicated storage pool using property `OS-SCH-HNT:scheduler_hints`. + - Modify property type of `allocated` of class `QuotaDetails` from `String` to `Integer`. + + # 3.0.3-beta 2021-01-25 ## HuaweiCloud SDK Core - ### Features diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 564424e8d..257ec6f97 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,21 @@ +# 3.0.4-beta 2021-01-30 +## HuaweiCloud SDK ECS +- ### 新增特性 + - 无 +- ### 解决问题 + - 无 +- ### 特性变更 + - 接口名称调整: UpdateAutoTerminateTimeServer → UpdateServerAutoTerminateTime + +## HuaweiCloud SDK EVS +- ### 新增特性 + - 无 +- ### 解决问题 + - 无 +- ### 特性变更 + - 创建云硬盘接口支持指定专属存储池ID + - 查询配额相关接口属性 `allocated` 类型调整: string → int + # 3.0.3-beta 2021-01-25 ## HuaweiCloud SDK Core - ### 新增特性 diff --git a/ecs/include/huaweicloud/ecs/v2/EcsClient.h b/ecs/include/huaweicloud/ecs/v2/EcsClient.h index 14b750f8e..9f7842212 100644 --- a/ecs/include/huaweicloud/ecs/v2/EcsClient.h +++ b/ecs/include/huaweicloud/ecs/v2/EcsClient.h @@ -118,9 +118,9 @@ #include #include #include -#include -#include -#include +#include +#include +#include #include #include #include @@ -646,26 +646,26 @@ class HUAWEICLOUD_ECS_V2_EXPORT EcsClient : public Client ShowServerTagsRequest &request ); /// - /// 修改云服务器云主机销毁时间 + /// 修改云服务器 /// /// - /// 修改按需服务器,设置定时销毁时间。如果设置的销毁时间为空,表示取消销毁时间。 该接口支持企业项目细粒度权限的校验,具体细粒度请参见 ecs:cloudServers:put。 + /// 修改云服务器信息,目前支持修改云服务器名称及描述和hostname。 /// /// 云服务器ID。 - /// This is a auto create Body Object - std::shared_ptr updateAutoTerminateTimeServer( - UpdateAutoTerminateTimeServerRequest &request + /// This is a auto create Body Object + std::shared_ptr updateServer( + UpdateServerRequest &request ); /// - /// 修改云服务器 + /// 修改云服务器销毁时间 /// /// - /// 修改云服务器信息,目前支持修改云服务器名称及描述和hostname。 + /// 修改按需服务器,设置定时销毁时间。如果设置的销毁时间为空,表示取消销毁时间。 该接口支持企业项目细粒度权限的校验,具体细粒度请参见 ecs:cloudServers:put。 /// /// 云服务器ID。 - /// This is a auto create Body Object - std::shared_ptr updateServer( - UpdateServerRequest &request + /// This is a auto create Body Object + std::shared_ptr updateServerAutoTerminateTime( + UpdateServerAutoTerminateTimeRequest &request ); /// /// 更新云服务器元数据 diff --git a/ecs/include/huaweicloud/ecs/v2/model/UpdateAutoTerminateTimeServerRequest.h b/ecs/include/huaweicloud/ecs/v2/model/UpdateServerAutoTerminateTimeRequest.h similarity index 59% rename from ecs/include/huaweicloud/ecs/v2/model/UpdateAutoTerminateTimeServerRequest.h rename to ecs/include/huaweicloud/ecs/v2/model/UpdateServerAutoTerminateTimeRequest.h index b1729545a..21e49ca45 100644 --- a/ecs/include/huaweicloud/ecs/v2/model/UpdateAutoTerminateTimeServerRequest.h +++ b/ecs/include/huaweicloud/ecs/v2/model/UpdateServerAutoTerminateTimeRequest.h @@ -1,14 +1,14 @@ -#ifndef HUAWEICLOUD_SDK_ECS_V2_MODEL_UpdateAutoTerminateTimeServerRequest_H_ -#define HUAWEICLOUD_SDK_ECS_V2_MODEL_UpdateAutoTerminateTimeServerRequest_H_ +#ifndef HUAWEICLOUD_SDK_ECS_V2_MODEL_UpdateServerAutoTerminateTimeRequest_H_ +#define HUAWEICLOUD_SDK_ECS_V2_MODEL_UpdateServerAutoTerminateTimeRequest_H_ #include #include #include -#include #include +#include namespace HuaweiCloud { namespace Sdk { @@ -22,12 +22,12 @@ using namespace HuaweiCloud::Sdk::Core::Http; /// /// Request Object /// -class HUAWEICLOUD_ECS_V2_EXPORT UpdateAutoTerminateTimeServerRequest +class HUAWEICLOUD_ECS_V2_EXPORT UpdateServerAutoTerminateTimeRequest : public ModelBase { public: - UpdateAutoTerminateTimeServerRequest(); - virtual ~UpdateAutoTerminateTimeServerRequest(); + UpdateServerAutoTerminateTimeRequest(); + virtual ~UpdateServerAutoTerminateTimeRequest(); ///////////////////////////////////////////// /// ModelBase overrides @@ -38,7 +38,7 @@ class HUAWEICLOUD_ECS_V2_EXPORT UpdateAutoTerminateTimeServerRequest bool fromJson(const web::json::value& json) override; ///////////////////////////////////////////// - /// UpdateAutoTerminateTimeServerRequest members + /// UpdateServerAutoTerminateTimeRequest members /// /// @@ -53,22 +53,22 @@ class HUAWEICLOUD_ECS_V2_EXPORT UpdateAutoTerminateTimeServerRequest /// /// - UpdateAutoTerminateTimeServerRequestBody getBody() const; + UpdateServerAutoTerminateTimeRequestBody getBody() const; bool bodyIsSet() const; void unsetbody(); - void setBody(const UpdateAutoTerminateTimeServerRequestBody& value); + void setBody(const UpdateServerAutoTerminateTimeRequestBody& value); protected: std::string serverId_; bool serverIdIsSet_; - UpdateAutoTerminateTimeServerRequestBody body_; + UpdateServerAutoTerminateTimeRequestBody body_; bool bodyIsSet_; #ifdef RTTR_FLAG RTTR_ENABLE() public: - UpdateAutoTerminateTimeServerRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + UpdateServerAutoTerminateTimeRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { return *ptr; } #endif @@ -81,4 +81,4 @@ class HUAWEICLOUD_ECS_V2_EXPORT UpdateAutoTerminateTimeServerRequest } } -#endif // HUAWEICLOUD_SDK_ECS_V2_MODEL_UpdateAutoTerminateTimeServerRequest_H_ +#endif // HUAWEICLOUD_SDK_ECS_V2_MODEL_UpdateServerAutoTerminateTimeRequest_H_ diff --git a/ecs/include/huaweicloud/ecs/v2/model/UpdateAutoTerminateTimeServerRequestBody.h b/ecs/include/huaweicloud/ecs/v2/model/UpdateServerAutoTerminateTimeRequestBody.h similarity index 69% rename from ecs/include/huaweicloud/ecs/v2/model/UpdateAutoTerminateTimeServerRequestBody.h rename to ecs/include/huaweicloud/ecs/v2/model/UpdateServerAutoTerminateTimeRequestBody.h index f7f5e5ed8..3077f5b19 100644 --- a/ecs/include/huaweicloud/ecs/v2/model/UpdateAutoTerminateTimeServerRequestBody.h +++ b/ecs/include/huaweicloud/ecs/v2/model/UpdateServerAutoTerminateTimeRequestBody.h @@ -1,6 +1,6 @@ -#ifndef HUAWEICLOUD_SDK_ECS_V2_MODEL_UpdateAutoTerminateTimeServerRequestBody_H_ -#define HUAWEICLOUD_SDK_ECS_V2_MODEL_UpdateAutoTerminateTimeServerRequestBody_H_ +#ifndef HUAWEICLOUD_SDK_ECS_V2_MODEL_UpdateServerAutoTerminateTimeRequestBody_H_ +#define HUAWEICLOUD_SDK_ECS_V2_MODEL_UpdateServerAutoTerminateTimeRequestBody_H_ #include @@ -21,12 +21,12 @@ using namespace HuaweiCloud::Sdk::Core::Http; /// /// This is a auto create Body Object /// -class HUAWEICLOUD_ECS_V2_EXPORT UpdateAutoTerminateTimeServerRequestBody +class HUAWEICLOUD_ECS_V2_EXPORT UpdateServerAutoTerminateTimeRequestBody : public ModelBase { public: - UpdateAutoTerminateTimeServerRequestBody(); - virtual ~UpdateAutoTerminateTimeServerRequestBody(); + UpdateServerAutoTerminateTimeRequestBody(); + virtual ~UpdateServerAutoTerminateTimeRequestBody(); ///////////////////////////////////////////// /// ModelBase overrides @@ -37,7 +37,7 @@ class HUAWEICLOUD_ECS_V2_EXPORT UpdateAutoTerminateTimeServerRequestBody bool fromJson(const web::json::value& json) override; ///////////////////////////////////////////// - /// UpdateAutoTerminateTimeServerRequestBody members + /// UpdateServerAutoTerminateTimeRequestBody members /// /// 销毁时间 @@ -62,4 +62,4 @@ class HUAWEICLOUD_ECS_V2_EXPORT UpdateAutoTerminateTimeServerRequestBody } } -#endif // HUAWEICLOUD_SDK_ECS_V2_MODEL_UpdateAutoTerminateTimeServerRequestBody_H_ +#endif // HUAWEICLOUD_SDK_ECS_V2_MODEL_UpdateServerAutoTerminateTimeRequestBody_H_ diff --git a/ecs/include/huaweicloud/ecs/v2/model/UpdateAutoTerminateTimeServerResponse.h b/ecs/include/huaweicloud/ecs/v2/model/UpdateServerAutoTerminateTimeResponse.h similarity index 63% rename from ecs/include/huaweicloud/ecs/v2/model/UpdateAutoTerminateTimeServerResponse.h rename to ecs/include/huaweicloud/ecs/v2/model/UpdateServerAutoTerminateTimeResponse.h index ac88ab0ba..932928f57 100644 --- a/ecs/include/huaweicloud/ecs/v2/model/UpdateAutoTerminateTimeServerResponse.h +++ b/ecs/include/huaweicloud/ecs/v2/model/UpdateServerAutoTerminateTimeResponse.h @@ -1,6 +1,6 @@ -#ifndef HUAWEICLOUD_SDK_ECS_V2_MODEL_UpdateAutoTerminateTimeServerResponse_H_ -#define HUAWEICLOUD_SDK_ECS_V2_MODEL_UpdateAutoTerminateTimeServerResponse_H_ +#ifndef HUAWEICLOUD_SDK_ECS_V2_MODEL_UpdateServerAutoTerminateTimeResponse_H_ +#define HUAWEICLOUD_SDK_ECS_V2_MODEL_UpdateServerAutoTerminateTimeResponse_H_ #include @@ -20,12 +20,12 @@ using namespace HuaweiCloud::Sdk::Core::Http; /// /// Response Object /// -class HUAWEICLOUD_ECS_V2_EXPORT UpdateAutoTerminateTimeServerResponse +class HUAWEICLOUD_ECS_V2_EXPORT UpdateServerAutoTerminateTimeResponse : public ModelBase, public HttpResponse { public: - UpdateAutoTerminateTimeServerResponse(); - virtual ~UpdateAutoTerminateTimeServerResponse(); + UpdateServerAutoTerminateTimeResponse(); + virtual ~UpdateServerAutoTerminateTimeResponse(); ///////////////////////////////////////////// /// ModelBase overrides @@ -36,7 +36,7 @@ class HUAWEICLOUD_ECS_V2_EXPORT UpdateAutoTerminateTimeServerResponse bool fromJson(const web::json::value& json) override; ///////////////////////////////////////////// - /// UpdateAutoTerminateTimeServerResponse members + /// UpdateServerAutoTerminateTimeResponse members protected: @@ -53,4 +53,4 @@ class HUAWEICLOUD_ECS_V2_EXPORT UpdateAutoTerminateTimeServerResponse } } -#endif // HUAWEICLOUD_SDK_ECS_V2_MODEL_UpdateAutoTerminateTimeServerResponse_H_ +#endif // HUAWEICLOUD_SDK_ECS_V2_MODEL_UpdateServerAutoTerminateTimeResponse_H_ diff --git a/ecs/src/v2/EcsClient.cpp b/ecs/src/v2/EcsClient.cpp index 0aeeb517d..367f88208 100644 --- a/ecs/src/v2/EcsClient.cpp +++ b/ecs/src/v2/EcsClient.cpp @@ -1795,9 +1795,9 @@ std::shared_ptr EcsClient::showServerTags(ShowServerTags return localVarResult; } -std::shared_ptr EcsClient::updateAutoTerminateTimeServer(UpdateAutoTerminateTimeServerRequest &request) +std::shared_ptr EcsClient::updateServer(UpdateServerRequest &request) { - std::string localVarPath = "/v1/{project_id}/cloudservers/{server_id}/actions/update-auto-terminate-time"; + std::string localVarPath = "/v1/{project_id}/cloudservers/{server_id}"; std::map localVarQueryParams; std::map localVarHeaderParams; @@ -1820,9 +1820,9 @@ std::shared_ptr EcsClient::updateAutoTerm localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); } - std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, localVarHeaderParams, localVarHttpBody); + std::unique_ptr res = callApi("PUT", localVarPath, localVarPathParams, localVarQueryParams, localVarHeaderParams, localVarHttpBody); - std::shared_ptr localVarResult = std::make_shared(); + std::shared_ptr localVarResult = std::make_shared(); if (!res->getHttpBody().empty()) { utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); @@ -1835,9 +1835,9 @@ std::shared_ptr EcsClient::updateAutoTerm return localVarResult; } -std::shared_ptr EcsClient::updateServer(UpdateServerRequest &request) +std::shared_ptr EcsClient::updateServerAutoTerminateTime(UpdateServerAutoTerminateTimeRequest &request) { - std::string localVarPath = "/v1/{project_id}/cloudservers/{server_id}"; + std::string localVarPath = "/v1/{project_id}/cloudservers/{server_id}/actions/update-auto-terminate-time"; std::map localVarQueryParams; std::map localVarHeaderParams; @@ -1860,9 +1860,9 @@ std::shared_ptr EcsClient::updateServer(UpdateServerReques localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); } - std::unique_ptr res = callApi("PUT", localVarPath, localVarPathParams, localVarQueryParams, localVarHeaderParams, localVarHttpBody); + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, localVarHeaderParams, localVarHttpBody); - std::shared_ptr localVarResult = std::make_shared(); + std::shared_ptr localVarResult = std::make_shared(); if (!res->getHttpBody().empty()) { utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); diff --git a/ecs/src/v2/model/UpdateAutoTerminateTimeServerResponse.cpp b/ecs/src/v2/model/UpdateAutoTerminateTimeServerResponse.cpp deleted file mode 100644 index 04cd044c1..000000000 --- a/ecs/src/v2/model/UpdateAutoTerminateTimeServerResponse.cpp +++ /dev/null @@ -1,46 +0,0 @@ - - -#include "huaweicloud/ecs/v2/model/UpdateAutoTerminateTimeServerResponse.h" - -namespace HuaweiCloud { -namespace Sdk { -namespace Ecs { -namespace V2 { -namespace Model { - - - - -UpdateAutoTerminateTimeServerResponse::UpdateAutoTerminateTimeServerResponse() -{ -} - -UpdateAutoTerminateTimeServerResponse::~UpdateAutoTerminateTimeServerResponse() = default; - -void UpdateAutoTerminateTimeServerResponse::validate() -{ -} - -web::json::value UpdateAutoTerminateTimeServerResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - - - return val; -} - -bool UpdateAutoTerminateTimeServerResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - - return ok; -} - - -} -} -} -} -} - - diff --git a/ecs/src/v2/model/UpdateAutoTerminateTimeServerRequest.cpp b/ecs/src/v2/model/UpdateServerAutoTerminateTimeRequest.cpp similarity index 59% rename from ecs/src/v2/model/UpdateAutoTerminateTimeServerRequest.cpp rename to ecs/src/v2/model/UpdateServerAutoTerminateTimeRequest.cpp index a0f85720b..a0f110cdb 100644 --- a/ecs/src/v2/model/UpdateAutoTerminateTimeServerRequest.cpp +++ b/ecs/src/v2/model/UpdateServerAutoTerminateTimeRequest.cpp @@ -1,6 +1,6 @@ -#include "huaweicloud/ecs/v2/model/UpdateAutoTerminateTimeServerRequest.h" +#include "huaweicloud/ecs/v2/model/UpdateServerAutoTerminateTimeRequest.h" namespace HuaweiCloud { namespace Sdk { @@ -11,20 +11,20 @@ namespace Model { -UpdateAutoTerminateTimeServerRequest::UpdateAutoTerminateTimeServerRequest() +UpdateServerAutoTerminateTimeRequest::UpdateServerAutoTerminateTimeRequest() { serverId_ = ""; serverIdIsSet_ = false; bodyIsSet_ = false; } -UpdateAutoTerminateTimeServerRequest::~UpdateAutoTerminateTimeServerRequest() = default; +UpdateServerAutoTerminateTimeRequest::~UpdateServerAutoTerminateTimeRequest() = default; -void UpdateAutoTerminateTimeServerRequest::validate() +void UpdateServerAutoTerminateTimeRequest::validate() { } -web::json::value UpdateAutoTerminateTimeServerRequest::toJson() const +web::json::value UpdateServerAutoTerminateTimeRequest::toJson() const { web::json::value val = web::json::value::object(); @@ -38,7 +38,7 @@ web::json::value UpdateAutoTerminateTimeServerRequest::toJson() const return val; } -bool UpdateAutoTerminateTimeServerRequest::fromJson(const web::json::value& val) +bool UpdateServerAutoTerminateTimeRequest::fromJson(const web::json::value& val) { bool ok = true; @@ -55,7 +55,7 @@ bool UpdateAutoTerminateTimeServerRequest::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); if(!fieldValue.is_null()) { - UpdateAutoTerminateTimeServerRequestBody refVal; + UpdateServerAutoTerminateTimeRequestBody refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setBody(refVal); } @@ -64,44 +64,44 @@ bool UpdateAutoTerminateTimeServerRequest::fromJson(const web::json::value& val) } -std::string UpdateAutoTerminateTimeServerRequest::getServerId() const +std::string UpdateServerAutoTerminateTimeRequest::getServerId() const { return serverId_; } -void UpdateAutoTerminateTimeServerRequest::setServerId(const std::string& value) +void UpdateServerAutoTerminateTimeRequest::setServerId(const std::string& value) { serverId_ = value; serverIdIsSet_ = true; } -bool UpdateAutoTerminateTimeServerRequest::serverIdIsSet() const +bool UpdateServerAutoTerminateTimeRequest::serverIdIsSet() const { return serverIdIsSet_; } -void UpdateAutoTerminateTimeServerRequest::unsetserverId() +void UpdateServerAutoTerminateTimeRequest::unsetserverId() { serverIdIsSet_ = false; } -UpdateAutoTerminateTimeServerRequestBody UpdateAutoTerminateTimeServerRequest::getBody() const +UpdateServerAutoTerminateTimeRequestBody UpdateServerAutoTerminateTimeRequest::getBody() const { return body_; } -void UpdateAutoTerminateTimeServerRequest::setBody(const UpdateAutoTerminateTimeServerRequestBody& value) +void UpdateServerAutoTerminateTimeRequest::setBody(const UpdateServerAutoTerminateTimeRequestBody& value) { body_ = value; bodyIsSet_ = true; } -bool UpdateAutoTerminateTimeServerRequest::bodyIsSet() const +bool UpdateServerAutoTerminateTimeRequest::bodyIsSet() const { return bodyIsSet_; } -void UpdateAutoTerminateTimeServerRequest::unsetbody() +void UpdateServerAutoTerminateTimeRequest::unsetbody() { bodyIsSet_ = false; } diff --git a/ecs/src/v2/model/UpdateAutoTerminateTimeServerRequestBody.cpp b/ecs/src/v2/model/UpdateServerAutoTerminateTimeRequestBody.cpp similarity index 62% rename from ecs/src/v2/model/UpdateAutoTerminateTimeServerRequestBody.cpp rename to ecs/src/v2/model/UpdateServerAutoTerminateTimeRequestBody.cpp index 17a408242..6b8192284 100644 --- a/ecs/src/v2/model/UpdateAutoTerminateTimeServerRequestBody.cpp +++ b/ecs/src/v2/model/UpdateServerAutoTerminateTimeRequestBody.cpp @@ -1,6 +1,6 @@ -#include "huaweicloud/ecs/v2/model/UpdateAutoTerminateTimeServerRequestBody.h" +#include "huaweicloud/ecs/v2/model/UpdateServerAutoTerminateTimeRequestBody.h" namespace HuaweiCloud { namespace Sdk { @@ -11,19 +11,19 @@ namespace Model { -UpdateAutoTerminateTimeServerRequestBody::UpdateAutoTerminateTimeServerRequestBody() +UpdateServerAutoTerminateTimeRequestBody::UpdateServerAutoTerminateTimeRequestBody() { autoTerminateTime_ = ""; autoTerminateTimeIsSet_ = false; } -UpdateAutoTerminateTimeServerRequestBody::~UpdateAutoTerminateTimeServerRequestBody() = default; +UpdateServerAutoTerminateTimeRequestBody::~UpdateServerAutoTerminateTimeRequestBody() = default; -void UpdateAutoTerminateTimeServerRequestBody::validate() +void UpdateServerAutoTerminateTimeRequestBody::validate() { } -web::json::value UpdateAutoTerminateTimeServerRequestBody::toJson() const +web::json::value UpdateServerAutoTerminateTimeRequestBody::toJson() const { web::json::value val = web::json::value::object(); @@ -34,7 +34,7 @@ web::json::value UpdateAutoTerminateTimeServerRequestBody::toJson() const return val; } -bool UpdateAutoTerminateTimeServerRequestBody::fromJson(const web::json::value& val) +bool UpdateServerAutoTerminateTimeRequestBody::fromJson(const web::json::value& val) { bool ok = true; @@ -51,23 +51,23 @@ bool UpdateAutoTerminateTimeServerRequestBody::fromJson(const web::json::value& } -std::string UpdateAutoTerminateTimeServerRequestBody::getAutoTerminateTime() const +std::string UpdateServerAutoTerminateTimeRequestBody::getAutoTerminateTime() const { return autoTerminateTime_; } -void UpdateAutoTerminateTimeServerRequestBody::setAutoTerminateTime(const std::string& value) +void UpdateServerAutoTerminateTimeRequestBody::setAutoTerminateTime(const std::string& value) { autoTerminateTime_ = value; autoTerminateTimeIsSet_ = true; } -bool UpdateAutoTerminateTimeServerRequestBody::autoTerminateTimeIsSet() const +bool UpdateServerAutoTerminateTimeRequestBody::autoTerminateTimeIsSet() const { return autoTerminateTimeIsSet_; } -void UpdateAutoTerminateTimeServerRequestBody::unsetautoTerminateTime() +void UpdateServerAutoTerminateTimeRequestBody::unsetautoTerminateTime() { autoTerminateTimeIsSet_ = false; } diff --git a/ecs/src/v2/model/UpdateServerAutoTerminateTimeResponse.cpp b/ecs/src/v2/model/UpdateServerAutoTerminateTimeResponse.cpp new file mode 100644 index 000000000..212509266 --- /dev/null +++ b/ecs/src/v2/model/UpdateServerAutoTerminateTimeResponse.cpp @@ -0,0 +1,46 @@ + + +#include "huaweicloud/ecs/v2/model/UpdateServerAutoTerminateTimeResponse.h" + +namespace HuaweiCloud { +namespace Sdk { +namespace Ecs { +namespace V2 { +namespace Model { + + + + +UpdateServerAutoTerminateTimeResponse::UpdateServerAutoTerminateTimeResponse() +{ +} + +UpdateServerAutoTerminateTimeResponse::~UpdateServerAutoTerminateTimeResponse() = default; + +void UpdateServerAutoTerminateTimeResponse::validate() +{ +} + +web::json::value UpdateServerAutoTerminateTimeResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + + return val; +} + +bool UpdateServerAutoTerminateTimeResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + return ok; +} + + +} +} +} +} +} + + diff --git a/evs/include/huaweicloud/evs/v2/model/CreateVolumeRequestBody.h b/evs/include/huaweicloud/evs/v2/model/CreateVolumeRequestBody.h index 05d47b792..bc1d6a43e 100644 --- a/evs/include/huaweicloud/evs/v2/model/CreateVolumeRequestBody.h +++ b/evs/include/huaweicloud/evs/v2/model/CreateVolumeRequestBody.h @@ -10,6 +10,7 @@ #include #include #include +#include namespace HuaweiCloud { namespace Sdk { @@ -68,6 +69,15 @@ class HUAWEICLOUD_EVS_V2_EXPORT CreateVolumeRequestBody void unsetserverId(); void setServerId(const std::string& value); + /// + /// + /// + + CreateVolumeSchedulerHints getOSSCHHNTschedulerHints() const; + bool oSSCHHNTschedulerHintsIsSet() const; + void unsetoSSCHHNTschedulerHints(); + void setOSSCHHNTschedulerHints(const CreateVolumeSchedulerHints& value); + protected: BssParamForCreateVolume bssParam_; @@ -76,6 +86,8 @@ class HUAWEICLOUD_EVS_V2_EXPORT CreateVolumeRequestBody bool volumeIsSet_; std::string serverId_; bool serverIdIsSet_; + CreateVolumeSchedulerHints oSSCHHNTschedulerHints_; + bool oSSCHHNTschedulerHintsIsSet_; }; diff --git a/evs/include/huaweicloud/evs/v2/model/CreateVolumeSchedulerHints.h b/evs/include/huaweicloud/evs/v2/model/CreateVolumeSchedulerHints.h new file mode 100644 index 000000000..e245a8caf --- /dev/null +++ b/evs/include/huaweicloud/evs/v2/model/CreateVolumeSchedulerHints.h @@ -0,0 +1,65 @@ + +#ifndef HUAWEICLOUD_SDK_EVS_V2_MODEL_CreateVolumeSchedulerHints_H_ +#define HUAWEICLOUD_SDK_EVS_V2_MODEL_CreateVolumeSchedulerHints_H_ + +#include + +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Evs { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; + +/// +/// 创建云硬盘的调度参数。 +/// +class HUAWEICLOUD_EVS_V2_EXPORT CreateVolumeSchedulerHints + : public ModelBase +{ +public: + CreateVolumeSchedulerHints(); + virtual ~CreateVolumeSchedulerHints(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + ///////////////////////////////////////////// + /// CreateVolumeSchedulerHints members + + /// + /// 指定专属存储池ID,表示将云硬盘创建在该ID对应的存储池中。 + /// + + std::string getDedicatedStorageId() const; + bool dedicatedStorageIdIsSet() const; + void unsetdedicatedStorageId(); + void setDedicatedStorageId(const std::string& value); + + +protected: + std::string dedicatedStorageId_; + bool dedicatedStorageIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_EVS_V2_MODEL_CreateVolumeSchedulerHints_H_ diff --git a/evs/include/huaweicloud/evs/v2/model/QuotaDetail.h b/evs/include/huaweicloud/evs/v2/model/QuotaDetail.h index 306e0a628..5d55ff88c 100644 --- a/evs/include/huaweicloud/evs/v2/model/QuotaDetail.h +++ b/evs/include/huaweicloud/evs/v2/model/QuotaDetail.h @@ -7,7 +7,6 @@ #include #include -#include namespace HuaweiCloud { namespace Sdk { @@ -70,10 +69,10 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetail /// 预留属性。 /// - std::string getAllocated() const; + int32_t getAllocated() const; bool allocatedIsSet() const; void unsetallocated(); - void setAllocated(const std::string& value); + void setAllocated(int32_t value); protected: @@ -83,7 +82,7 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetail bool limitIsSet_; int32_t reserved_; bool reservedIsSet_; - std::string allocated_; + int32_t allocated_; bool allocatedIsSet_; }; diff --git a/evs/include/huaweicloud/evs/v2/model/QuotaDetailBackupGigabytes.h b/evs/include/huaweicloud/evs/v2/model/QuotaDetailBackupGigabytes.h index f7db4e3fb..8690e1a5c 100644 --- a/evs/include/huaweicloud/evs/v2/model/QuotaDetailBackupGigabytes.h +++ b/evs/include/huaweicloud/evs/v2/model/QuotaDetailBackupGigabytes.h @@ -7,7 +7,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -71,10 +70,10 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailBackupGigabytes /// 预留属性。 /// - std::string getAllocated() const; + int32_t getAllocated() const; bool allocatedIsSet() const; void unsetallocated(); - void setAllocated(const std::string& value); + void setAllocated(int32_t value); protected: @@ -84,7 +83,7 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailBackupGigabytes bool limitIsSet_; int32_t reserved_; bool reservedIsSet_; - std::string allocated_; + int32_t allocated_; bool allocatedIsSet_; }; diff --git a/evs/include/huaweicloud/evs/v2/model/QuotaDetailBackups.h b/evs/include/huaweicloud/evs/v2/model/QuotaDetailBackups.h index 16cdbe132..98e2920f4 100644 --- a/evs/include/huaweicloud/evs/v2/model/QuotaDetailBackups.h +++ b/evs/include/huaweicloud/evs/v2/model/QuotaDetailBackups.h @@ -7,7 +7,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -71,10 +70,10 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailBackups /// 预留属性。 /// - std::string getAllocated() const; + int32_t getAllocated() const; bool allocatedIsSet() const; void unsetallocated(); - void setAllocated(const std::string& value); + void setAllocated(int32_t value); protected: @@ -84,7 +83,7 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailBackups bool limitIsSet_; int32_t reserved_; bool reservedIsSet_; - std::string allocated_; + int32_t allocated_; bool allocatedIsSet_; }; diff --git a/evs/include/huaweicloud/evs/v2/model/QuotaDetailGigabytes.h b/evs/include/huaweicloud/evs/v2/model/QuotaDetailGigabytes.h index 0773303ee..7311b6b63 100644 --- a/evs/include/huaweicloud/evs/v2/model/QuotaDetailGigabytes.h +++ b/evs/include/huaweicloud/evs/v2/model/QuotaDetailGigabytes.h @@ -7,7 +7,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -71,10 +70,10 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailGigabytes /// 预留属性。 /// - std::string getAllocated() const; + int32_t getAllocated() const; bool allocatedIsSet() const; void unsetallocated(); - void setAllocated(const std::string& value); + void setAllocated(int32_t value); protected: @@ -84,7 +83,7 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailGigabytes bool limitIsSet_; int32_t reserved_; bool reservedIsSet_; - std::string allocated_; + int32_t allocated_; bool allocatedIsSet_; }; diff --git a/evs/include/huaweicloud/evs/v2/model/QuotaDetailGigabytesGPSSD.h b/evs/include/huaweicloud/evs/v2/model/QuotaDetailGigabytesGPSSD.h index a8a37b30c..bd7695729 100644 --- a/evs/include/huaweicloud/evs/v2/model/QuotaDetailGigabytesGPSSD.h +++ b/evs/include/huaweicloud/evs/v2/model/QuotaDetailGigabytesGPSSD.h @@ -7,7 +7,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -71,10 +70,10 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailGigabytesGPSSD /// 预留属性。 /// - std::string getAllocated() const; + int32_t getAllocated() const; bool allocatedIsSet() const; void unsetallocated(); - void setAllocated(const std::string& value); + void setAllocated(int32_t value); protected: @@ -84,7 +83,7 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailGigabytesGPSSD bool limitIsSet_; int32_t reserved_; bool reservedIsSet_; - std::string allocated_; + int32_t allocated_; bool allocatedIsSet_; }; diff --git a/evs/include/huaweicloud/evs/v2/model/QuotaDetailGigabytesSAS.h b/evs/include/huaweicloud/evs/v2/model/QuotaDetailGigabytesSAS.h index 2e41ec79a..8c51463b8 100644 --- a/evs/include/huaweicloud/evs/v2/model/QuotaDetailGigabytesSAS.h +++ b/evs/include/huaweicloud/evs/v2/model/QuotaDetailGigabytesSAS.h @@ -7,7 +7,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -71,10 +70,10 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailGigabytesSAS /// 预留属性。 /// - std::string getAllocated() const; + int32_t getAllocated() const; bool allocatedIsSet() const; void unsetallocated(); - void setAllocated(const std::string& value); + void setAllocated(int32_t value); protected: @@ -84,7 +83,7 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailGigabytesSAS bool limitIsSet_; int32_t reserved_; bool reservedIsSet_; - std::string allocated_; + int32_t allocated_; bool allocatedIsSet_; }; diff --git a/evs/include/huaweicloud/evs/v2/model/QuotaDetailGigabytesSATA.h b/evs/include/huaweicloud/evs/v2/model/QuotaDetailGigabytesSATA.h index ac257e62b..7a97b4c7d 100644 --- a/evs/include/huaweicloud/evs/v2/model/QuotaDetailGigabytesSATA.h +++ b/evs/include/huaweicloud/evs/v2/model/QuotaDetailGigabytesSATA.h @@ -7,7 +7,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -71,10 +70,10 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailGigabytesSATA /// 预留属性。 /// - std::string getAllocated() const; + int32_t getAllocated() const; bool allocatedIsSet() const; void unsetallocated(); - void setAllocated(const std::string& value); + void setAllocated(int32_t value); protected: @@ -84,7 +83,7 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailGigabytesSATA bool limitIsSet_; int32_t reserved_; bool reservedIsSet_; - std::string allocated_; + int32_t allocated_; bool allocatedIsSet_; }; diff --git a/evs/include/huaweicloud/evs/v2/model/QuotaDetailGigabytesSSD.h b/evs/include/huaweicloud/evs/v2/model/QuotaDetailGigabytesSSD.h index eaddacdec..616065428 100644 --- a/evs/include/huaweicloud/evs/v2/model/QuotaDetailGigabytesSSD.h +++ b/evs/include/huaweicloud/evs/v2/model/QuotaDetailGigabytesSSD.h @@ -7,7 +7,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -71,10 +70,10 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailGigabytesSSD /// 预留属性。 /// - std::string getAllocated() const; + int32_t getAllocated() const; bool allocatedIsSet() const; void unsetallocated(); - void setAllocated(const std::string& value); + void setAllocated(int32_t value); protected: @@ -84,7 +83,7 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailGigabytesSSD bool limitIsSet_; int32_t reserved_; bool reservedIsSet_; - std::string allocated_; + int32_t allocated_; bool allocatedIsSet_; }; diff --git a/evs/include/huaweicloud/evs/v2/model/QuotaDetailPerVolumeGigabytes.h b/evs/include/huaweicloud/evs/v2/model/QuotaDetailPerVolumeGigabytes.h index 5d989b1d9..c2463ee66 100644 --- a/evs/include/huaweicloud/evs/v2/model/QuotaDetailPerVolumeGigabytes.h +++ b/evs/include/huaweicloud/evs/v2/model/QuotaDetailPerVolumeGigabytes.h @@ -7,7 +7,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -71,10 +70,10 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailPerVolumeGigabytes /// 预留属性。 /// - std::string getAllocated() const; + int32_t getAllocated() const; bool allocatedIsSet() const; void unsetallocated(); - void setAllocated(const std::string& value); + void setAllocated(int32_t value); protected: @@ -84,7 +83,7 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailPerVolumeGigabytes bool limitIsSet_; int32_t reserved_; bool reservedIsSet_; - std::string allocated_; + int32_t allocated_; bool allocatedIsSet_; }; diff --git a/evs/include/huaweicloud/evs/v2/model/QuotaDetailSnapshots.h b/evs/include/huaweicloud/evs/v2/model/QuotaDetailSnapshots.h index 2a8a0cfae..0e0e39e98 100644 --- a/evs/include/huaweicloud/evs/v2/model/QuotaDetailSnapshots.h +++ b/evs/include/huaweicloud/evs/v2/model/QuotaDetailSnapshots.h @@ -7,7 +7,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -71,10 +70,10 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailSnapshots /// 预留属性。 /// - std::string getAllocated() const; + int32_t getAllocated() const; bool allocatedIsSet() const; void unsetallocated(); - void setAllocated(const std::string& value); + void setAllocated(int32_t value); protected: @@ -84,7 +83,7 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailSnapshots bool limitIsSet_; int32_t reserved_; bool reservedIsSet_; - std::string allocated_; + int32_t allocated_; bool allocatedIsSet_; }; diff --git a/evs/include/huaweicloud/evs/v2/model/QuotaDetailSnapshotsGPSSD.h b/evs/include/huaweicloud/evs/v2/model/QuotaDetailSnapshotsGPSSD.h index 11c2274df..d9b06d367 100644 --- a/evs/include/huaweicloud/evs/v2/model/QuotaDetailSnapshotsGPSSD.h +++ b/evs/include/huaweicloud/evs/v2/model/QuotaDetailSnapshotsGPSSD.h @@ -7,7 +7,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -71,10 +70,10 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailSnapshotsGPSSD /// 预留属性。 /// - std::string getAllocated() const; + int32_t getAllocated() const; bool allocatedIsSet() const; void unsetallocated(); - void setAllocated(const std::string& value); + void setAllocated(int32_t value); protected: @@ -84,7 +83,7 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailSnapshotsGPSSD bool limitIsSet_; int32_t reserved_; bool reservedIsSet_; - std::string allocated_; + int32_t allocated_; bool allocatedIsSet_; }; diff --git a/evs/include/huaweicloud/evs/v2/model/QuotaDetailSnapshotsSAS.h b/evs/include/huaweicloud/evs/v2/model/QuotaDetailSnapshotsSAS.h index b81c99fff..a7e6f45d6 100644 --- a/evs/include/huaweicloud/evs/v2/model/QuotaDetailSnapshotsSAS.h +++ b/evs/include/huaweicloud/evs/v2/model/QuotaDetailSnapshotsSAS.h @@ -7,7 +7,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -71,10 +70,10 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailSnapshotsSAS /// 预留属性。 /// - std::string getAllocated() const; + int32_t getAllocated() const; bool allocatedIsSet() const; void unsetallocated(); - void setAllocated(const std::string& value); + void setAllocated(int32_t value); protected: @@ -84,7 +83,7 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailSnapshotsSAS bool limitIsSet_; int32_t reserved_; bool reservedIsSet_; - std::string allocated_; + int32_t allocated_; bool allocatedIsSet_; }; diff --git a/evs/include/huaweicloud/evs/v2/model/QuotaDetailSnapshotsSATA.h b/evs/include/huaweicloud/evs/v2/model/QuotaDetailSnapshotsSATA.h index b80848ddf..55592f17b 100644 --- a/evs/include/huaweicloud/evs/v2/model/QuotaDetailSnapshotsSATA.h +++ b/evs/include/huaweicloud/evs/v2/model/QuotaDetailSnapshotsSATA.h @@ -7,7 +7,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -71,10 +70,10 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailSnapshotsSATA /// 预留属性。 /// - std::string getAllocated() const; + int32_t getAllocated() const; bool allocatedIsSet() const; void unsetallocated(); - void setAllocated(const std::string& value); + void setAllocated(int32_t value); protected: @@ -84,7 +83,7 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailSnapshotsSATA bool limitIsSet_; int32_t reserved_; bool reservedIsSet_; - std::string allocated_; + int32_t allocated_; bool allocatedIsSet_; }; diff --git a/evs/include/huaweicloud/evs/v2/model/QuotaDetailSnapshotsSSD.h b/evs/include/huaweicloud/evs/v2/model/QuotaDetailSnapshotsSSD.h index 74af35264..f7611259f 100644 --- a/evs/include/huaweicloud/evs/v2/model/QuotaDetailSnapshotsSSD.h +++ b/evs/include/huaweicloud/evs/v2/model/QuotaDetailSnapshotsSSD.h @@ -7,7 +7,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -71,10 +70,10 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailSnapshotsSSD /// 预留属性。 /// - std::string getAllocated() const; + int32_t getAllocated() const; bool allocatedIsSet() const; void unsetallocated(); - void setAllocated(const std::string& value); + void setAllocated(int32_t value); protected: @@ -84,7 +83,7 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailSnapshotsSSD bool limitIsSet_; int32_t reserved_; bool reservedIsSet_; - std::string allocated_; + int32_t allocated_; bool allocatedIsSet_; }; diff --git a/evs/include/huaweicloud/evs/v2/model/QuotaDetailVolumes.h b/evs/include/huaweicloud/evs/v2/model/QuotaDetailVolumes.h index f1e735252..ba09d08e7 100644 --- a/evs/include/huaweicloud/evs/v2/model/QuotaDetailVolumes.h +++ b/evs/include/huaweicloud/evs/v2/model/QuotaDetailVolumes.h @@ -7,7 +7,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -71,10 +70,10 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailVolumes /// 预留属性。 /// - std::string getAllocated() const; + int32_t getAllocated() const; bool allocatedIsSet() const; void unsetallocated(); - void setAllocated(const std::string& value); + void setAllocated(int32_t value); protected: @@ -84,7 +83,7 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailVolumes bool limitIsSet_; int32_t reserved_; bool reservedIsSet_; - std::string allocated_; + int32_t allocated_; bool allocatedIsSet_; }; diff --git a/evs/include/huaweicloud/evs/v2/model/QuotaDetailVolumesGPSSD.h b/evs/include/huaweicloud/evs/v2/model/QuotaDetailVolumesGPSSD.h index ca38610a4..8f4621a5e 100644 --- a/evs/include/huaweicloud/evs/v2/model/QuotaDetailVolumesGPSSD.h +++ b/evs/include/huaweicloud/evs/v2/model/QuotaDetailVolumesGPSSD.h @@ -7,7 +7,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -71,10 +70,10 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailVolumesGPSSD /// 预留属性。 /// - std::string getAllocated() const; + int32_t getAllocated() const; bool allocatedIsSet() const; void unsetallocated(); - void setAllocated(const std::string& value); + void setAllocated(int32_t value); protected: @@ -84,7 +83,7 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailVolumesGPSSD bool limitIsSet_; int32_t reserved_; bool reservedIsSet_; - std::string allocated_; + int32_t allocated_; bool allocatedIsSet_; }; diff --git a/evs/include/huaweicloud/evs/v2/model/QuotaDetailVolumesSAS.h b/evs/include/huaweicloud/evs/v2/model/QuotaDetailVolumesSAS.h index 5ca43be52..c7011ee6a 100644 --- a/evs/include/huaweicloud/evs/v2/model/QuotaDetailVolumesSAS.h +++ b/evs/include/huaweicloud/evs/v2/model/QuotaDetailVolumesSAS.h @@ -7,7 +7,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -71,10 +70,10 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailVolumesSAS /// 预留属性。 /// - std::string getAllocated() const; + int32_t getAllocated() const; bool allocatedIsSet() const; void unsetallocated(); - void setAllocated(const std::string& value); + void setAllocated(int32_t value); protected: @@ -84,7 +83,7 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailVolumesSAS bool limitIsSet_; int32_t reserved_; bool reservedIsSet_; - std::string allocated_; + int32_t allocated_; bool allocatedIsSet_; }; diff --git a/evs/include/huaweicloud/evs/v2/model/QuotaDetailVolumesSATA.h b/evs/include/huaweicloud/evs/v2/model/QuotaDetailVolumesSATA.h index 9bdad2055..cc3b74223 100644 --- a/evs/include/huaweicloud/evs/v2/model/QuotaDetailVolumesSATA.h +++ b/evs/include/huaweicloud/evs/v2/model/QuotaDetailVolumesSATA.h @@ -7,7 +7,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -71,10 +70,10 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailVolumesSATA /// 预留属性。 /// - std::string getAllocated() const; + int32_t getAllocated() const; bool allocatedIsSet() const; void unsetallocated(); - void setAllocated(const std::string& value); + void setAllocated(int32_t value); protected: @@ -84,7 +83,7 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailVolumesSATA bool limitIsSet_; int32_t reserved_; bool reservedIsSet_; - std::string allocated_; + int32_t allocated_; bool allocatedIsSet_; }; diff --git a/evs/include/huaweicloud/evs/v2/model/QuotaDetailVolumesSSD.h b/evs/include/huaweicloud/evs/v2/model/QuotaDetailVolumesSSD.h index 4ebfda5df..1908acba5 100644 --- a/evs/include/huaweicloud/evs/v2/model/QuotaDetailVolumesSSD.h +++ b/evs/include/huaweicloud/evs/v2/model/QuotaDetailVolumesSSD.h @@ -7,7 +7,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -71,10 +70,10 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailVolumesSSD /// 预留属性。 /// - std::string getAllocated() const; + int32_t getAllocated() const; bool allocatedIsSet() const; void unsetallocated(); - void setAllocated(const std::string& value); + void setAllocated(int32_t value); protected: @@ -84,7 +83,7 @@ class HUAWEICLOUD_EVS_V2_EXPORT QuotaDetailVolumesSSD bool limitIsSet_; int32_t reserved_; bool reservedIsSet_; - std::string allocated_; + int32_t allocated_; bool allocatedIsSet_; }; diff --git a/evs/src/v2/model/CreateVolumeRequestBody.cpp b/evs/src/v2/model/CreateVolumeRequestBody.cpp index f9f590de4..fbdc1c171 100644 --- a/evs/src/v2/model/CreateVolumeRequestBody.cpp +++ b/evs/src/v2/model/CreateVolumeRequestBody.cpp @@ -17,6 +17,7 @@ CreateVolumeRequestBody::CreateVolumeRequestBody() volumeIsSet_ = false; serverId_ = ""; serverIdIsSet_ = false; + oSSCHHNTschedulerHintsIsSet_ = false; } CreateVolumeRequestBody::~CreateVolumeRequestBody() = default; @@ -38,6 +39,9 @@ web::json::value CreateVolumeRequestBody::toJson() const if(serverIdIsSet_) { val[utility::conversions::to_string_t("server_id")] = ModelBase::toJson(serverId_); } + if(oSSCHHNTschedulerHintsIsSet_) { + val[utility::conversions::to_string_t("OS-SCH-HNT:scheduler_hints")] = ModelBase::toJson(oSSCHHNTschedulerHints_); + } return val; } @@ -73,6 +77,15 @@ bool CreateVolumeRequestBody::fromJson(const web::json::value& val) setServerId(refVal); } } + if(val.has_field(utility::conversions::to_string_t("OS-SCH-HNT:scheduler_hints"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("OS-SCH-HNT:scheduler_hints")); + if(!fieldValue.is_null()) + { + CreateVolumeSchedulerHints refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOSSCHHNTschedulerHints(refVal); + } + } return ok; } @@ -140,6 +153,27 @@ void CreateVolumeRequestBody::unsetserverId() serverIdIsSet_ = false; } +CreateVolumeSchedulerHints CreateVolumeRequestBody::getOSSCHHNTschedulerHints() const +{ + return oSSCHHNTschedulerHints_; +} + +void CreateVolumeRequestBody::setOSSCHHNTschedulerHints(const CreateVolumeSchedulerHints& value) +{ + oSSCHHNTschedulerHints_ = value; + oSSCHHNTschedulerHintsIsSet_ = true; +} + +bool CreateVolumeRequestBody::oSSCHHNTschedulerHintsIsSet() const +{ + return oSSCHHNTschedulerHintsIsSet_; +} + +void CreateVolumeRequestBody::unsetoSSCHHNTschedulerHints() +{ + oSSCHHNTschedulerHintsIsSet_ = false; +} + } } } diff --git a/evs/src/v2/model/CreateVolumeSchedulerHints.cpp b/evs/src/v2/model/CreateVolumeSchedulerHints.cpp new file mode 100644 index 000000000..f556e92ba --- /dev/null +++ b/evs/src/v2/model/CreateVolumeSchedulerHints.cpp @@ -0,0 +1,81 @@ + + +#include "huaweicloud/evs/v2/model/CreateVolumeSchedulerHints.h" + +namespace HuaweiCloud { +namespace Sdk { +namespace Evs { +namespace V2 { +namespace Model { + + + + +CreateVolumeSchedulerHints::CreateVolumeSchedulerHints() +{ + dedicatedStorageId_ = ""; + dedicatedStorageIdIsSet_ = false; +} + +CreateVolumeSchedulerHints::~CreateVolumeSchedulerHints() = default; + +void CreateVolumeSchedulerHints::validate() +{ +} + +web::json::value CreateVolumeSchedulerHints::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(dedicatedStorageIdIsSet_) { + val[utility::conversions::to_string_t("dedicated_storage_id")] = ModelBase::toJson(dedicatedStorageId_); + } + + return val; +} + +bool CreateVolumeSchedulerHints::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("dedicated_storage_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dedicated_storage_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDedicatedStorageId(refVal); + } + } + return ok; +} + + +std::string CreateVolumeSchedulerHints::getDedicatedStorageId() const +{ + return dedicatedStorageId_; +} + +void CreateVolumeSchedulerHints::setDedicatedStorageId(const std::string& value) +{ + dedicatedStorageId_ = value; + dedicatedStorageIdIsSet_ = true; +} + +bool CreateVolumeSchedulerHints::dedicatedStorageIdIsSet() const +{ + return dedicatedStorageIdIsSet_; +} + +void CreateVolumeSchedulerHints::unsetdedicatedStorageId() +{ + dedicatedStorageIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/evs/src/v2/model/QuotaDetail.cpp b/evs/src/v2/model/QuotaDetail.cpp index 539f510f5..9b438728a 100644 --- a/evs/src/v2/model/QuotaDetail.cpp +++ b/evs/src/v2/model/QuotaDetail.cpp @@ -19,7 +19,7 @@ QuotaDetail::QuotaDetail() limitIsSet_ = false; reserved_ = 0; reservedIsSet_ = false; - allocated_ = ""; + allocated_ = 0; allocatedIsSet_ = false; } @@ -84,7 +84,7 @@ bool QuotaDetail::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("allocated")); if(!fieldValue.is_null()) { - std::string refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setAllocated(refVal); } @@ -156,12 +156,12 @@ void QuotaDetail::unsetreserved() reservedIsSet_ = false; } -std::string QuotaDetail::getAllocated() const +int32_t QuotaDetail::getAllocated() const { return allocated_; } -void QuotaDetail::setAllocated(const std::string& value) +void QuotaDetail::setAllocated(int32_t value) { allocated_ = value; allocatedIsSet_ = true; diff --git a/evs/src/v2/model/QuotaDetailBackupGigabytes.cpp b/evs/src/v2/model/QuotaDetailBackupGigabytes.cpp index 19ec6fdf8..80601aecf 100644 --- a/evs/src/v2/model/QuotaDetailBackupGigabytes.cpp +++ b/evs/src/v2/model/QuotaDetailBackupGigabytes.cpp @@ -19,7 +19,7 @@ QuotaDetailBackupGigabytes::QuotaDetailBackupGigabytes() limitIsSet_ = false; reserved_ = 0; reservedIsSet_ = false; - allocated_ = ""; + allocated_ = 0; allocatedIsSet_ = false; } @@ -84,7 +84,7 @@ bool QuotaDetailBackupGigabytes::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("allocated")); if(!fieldValue.is_null()) { - std::string refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setAllocated(refVal); } @@ -156,12 +156,12 @@ void QuotaDetailBackupGigabytes::unsetreserved() reservedIsSet_ = false; } -std::string QuotaDetailBackupGigabytes::getAllocated() const +int32_t QuotaDetailBackupGigabytes::getAllocated() const { return allocated_; } -void QuotaDetailBackupGigabytes::setAllocated(const std::string& value) +void QuotaDetailBackupGigabytes::setAllocated(int32_t value) { allocated_ = value; allocatedIsSet_ = true; diff --git a/evs/src/v2/model/QuotaDetailBackups.cpp b/evs/src/v2/model/QuotaDetailBackups.cpp index 0b4363b66..c65c63615 100644 --- a/evs/src/v2/model/QuotaDetailBackups.cpp +++ b/evs/src/v2/model/QuotaDetailBackups.cpp @@ -19,7 +19,7 @@ QuotaDetailBackups::QuotaDetailBackups() limitIsSet_ = false; reserved_ = 0; reservedIsSet_ = false; - allocated_ = ""; + allocated_ = 0; allocatedIsSet_ = false; } @@ -84,7 +84,7 @@ bool QuotaDetailBackups::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("allocated")); if(!fieldValue.is_null()) { - std::string refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setAllocated(refVal); } @@ -156,12 +156,12 @@ void QuotaDetailBackups::unsetreserved() reservedIsSet_ = false; } -std::string QuotaDetailBackups::getAllocated() const +int32_t QuotaDetailBackups::getAllocated() const { return allocated_; } -void QuotaDetailBackups::setAllocated(const std::string& value) +void QuotaDetailBackups::setAllocated(int32_t value) { allocated_ = value; allocatedIsSet_ = true; diff --git a/evs/src/v2/model/QuotaDetailGigabytes.cpp b/evs/src/v2/model/QuotaDetailGigabytes.cpp index 72897a89f..87008b2f2 100644 --- a/evs/src/v2/model/QuotaDetailGigabytes.cpp +++ b/evs/src/v2/model/QuotaDetailGigabytes.cpp @@ -19,7 +19,7 @@ QuotaDetailGigabytes::QuotaDetailGigabytes() limitIsSet_ = false; reserved_ = 0; reservedIsSet_ = false; - allocated_ = ""; + allocated_ = 0; allocatedIsSet_ = false; } @@ -84,7 +84,7 @@ bool QuotaDetailGigabytes::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("allocated")); if(!fieldValue.is_null()) { - std::string refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setAllocated(refVal); } @@ -156,12 +156,12 @@ void QuotaDetailGigabytes::unsetreserved() reservedIsSet_ = false; } -std::string QuotaDetailGigabytes::getAllocated() const +int32_t QuotaDetailGigabytes::getAllocated() const { return allocated_; } -void QuotaDetailGigabytes::setAllocated(const std::string& value) +void QuotaDetailGigabytes::setAllocated(int32_t value) { allocated_ = value; allocatedIsSet_ = true; diff --git a/evs/src/v2/model/QuotaDetailGigabytesGPSSD.cpp b/evs/src/v2/model/QuotaDetailGigabytesGPSSD.cpp index d6965f854..051e84dd4 100644 --- a/evs/src/v2/model/QuotaDetailGigabytesGPSSD.cpp +++ b/evs/src/v2/model/QuotaDetailGigabytesGPSSD.cpp @@ -19,7 +19,7 @@ QuotaDetailGigabytesGPSSD::QuotaDetailGigabytesGPSSD() limitIsSet_ = false; reserved_ = 0; reservedIsSet_ = false; - allocated_ = ""; + allocated_ = 0; allocatedIsSet_ = false; } @@ -84,7 +84,7 @@ bool QuotaDetailGigabytesGPSSD::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("allocated")); if(!fieldValue.is_null()) { - std::string refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setAllocated(refVal); } @@ -156,12 +156,12 @@ void QuotaDetailGigabytesGPSSD::unsetreserved() reservedIsSet_ = false; } -std::string QuotaDetailGigabytesGPSSD::getAllocated() const +int32_t QuotaDetailGigabytesGPSSD::getAllocated() const { return allocated_; } -void QuotaDetailGigabytesGPSSD::setAllocated(const std::string& value) +void QuotaDetailGigabytesGPSSD::setAllocated(int32_t value) { allocated_ = value; allocatedIsSet_ = true; diff --git a/evs/src/v2/model/QuotaDetailGigabytesSAS.cpp b/evs/src/v2/model/QuotaDetailGigabytesSAS.cpp index 62be6c3e0..6ef196d9a 100644 --- a/evs/src/v2/model/QuotaDetailGigabytesSAS.cpp +++ b/evs/src/v2/model/QuotaDetailGigabytesSAS.cpp @@ -19,7 +19,7 @@ QuotaDetailGigabytesSAS::QuotaDetailGigabytesSAS() limitIsSet_ = false; reserved_ = 0; reservedIsSet_ = false; - allocated_ = ""; + allocated_ = 0; allocatedIsSet_ = false; } @@ -84,7 +84,7 @@ bool QuotaDetailGigabytesSAS::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("allocated")); if(!fieldValue.is_null()) { - std::string refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setAllocated(refVal); } @@ -156,12 +156,12 @@ void QuotaDetailGigabytesSAS::unsetreserved() reservedIsSet_ = false; } -std::string QuotaDetailGigabytesSAS::getAllocated() const +int32_t QuotaDetailGigabytesSAS::getAllocated() const { return allocated_; } -void QuotaDetailGigabytesSAS::setAllocated(const std::string& value) +void QuotaDetailGigabytesSAS::setAllocated(int32_t value) { allocated_ = value; allocatedIsSet_ = true; diff --git a/evs/src/v2/model/QuotaDetailGigabytesSATA.cpp b/evs/src/v2/model/QuotaDetailGigabytesSATA.cpp index 63eba06a2..ad63ea5ec 100644 --- a/evs/src/v2/model/QuotaDetailGigabytesSATA.cpp +++ b/evs/src/v2/model/QuotaDetailGigabytesSATA.cpp @@ -19,7 +19,7 @@ QuotaDetailGigabytesSATA::QuotaDetailGigabytesSATA() limitIsSet_ = false; reserved_ = 0; reservedIsSet_ = false; - allocated_ = ""; + allocated_ = 0; allocatedIsSet_ = false; } @@ -84,7 +84,7 @@ bool QuotaDetailGigabytesSATA::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("allocated")); if(!fieldValue.is_null()) { - std::string refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setAllocated(refVal); } @@ -156,12 +156,12 @@ void QuotaDetailGigabytesSATA::unsetreserved() reservedIsSet_ = false; } -std::string QuotaDetailGigabytesSATA::getAllocated() const +int32_t QuotaDetailGigabytesSATA::getAllocated() const { return allocated_; } -void QuotaDetailGigabytesSATA::setAllocated(const std::string& value) +void QuotaDetailGigabytesSATA::setAllocated(int32_t value) { allocated_ = value; allocatedIsSet_ = true; diff --git a/evs/src/v2/model/QuotaDetailGigabytesSSD.cpp b/evs/src/v2/model/QuotaDetailGigabytesSSD.cpp index f429b4632..9d60f4fcb 100644 --- a/evs/src/v2/model/QuotaDetailGigabytesSSD.cpp +++ b/evs/src/v2/model/QuotaDetailGigabytesSSD.cpp @@ -19,7 +19,7 @@ QuotaDetailGigabytesSSD::QuotaDetailGigabytesSSD() limitIsSet_ = false; reserved_ = 0; reservedIsSet_ = false; - allocated_ = ""; + allocated_ = 0; allocatedIsSet_ = false; } @@ -84,7 +84,7 @@ bool QuotaDetailGigabytesSSD::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("allocated")); if(!fieldValue.is_null()) { - std::string refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setAllocated(refVal); } @@ -156,12 +156,12 @@ void QuotaDetailGigabytesSSD::unsetreserved() reservedIsSet_ = false; } -std::string QuotaDetailGigabytesSSD::getAllocated() const +int32_t QuotaDetailGigabytesSSD::getAllocated() const { return allocated_; } -void QuotaDetailGigabytesSSD::setAllocated(const std::string& value) +void QuotaDetailGigabytesSSD::setAllocated(int32_t value) { allocated_ = value; allocatedIsSet_ = true; diff --git a/evs/src/v2/model/QuotaDetailPerVolumeGigabytes.cpp b/evs/src/v2/model/QuotaDetailPerVolumeGigabytes.cpp index 88de91669..42d0edcfc 100644 --- a/evs/src/v2/model/QuotaDetailPerVolumeGigabytes.cpp +++ b/evs/src/v2/model/QuotaDetailPerVolumeGigabytes.cpp @@ -19,7 +19,7 @@ QuotaDetailPerVolumeGigabytes::QuotaDetailPerVolumeGigabytes() limitIsSet_ = false; reserved_ = 0; reservedIsSet_ = false; - allocated_ = ""; + allocated_ = 0; allocatedIsSet_ = false; } @@ -84,7 +84,7 @@ bool QuotaDetailPerVolumeGigabytes::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("allocated")); if(!fieldValue.is_null()) { - std::string refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setAllocated(refVal); } @@ -156,12 +156,12 @@ void QuotaDetailPerVolumeGigabytes::unsetreserved() reservedIsSet_ = false; } -std::string QuotaDetailPerVolumeGigabytes::getAllocated() const +int32_t QuotaDetailPerVolumeGigabytes::getAllocated() const { return allocated_; } -void QuotaDetailPerVolumeGigabytes::setAllocated(const std::string& value) +void QuotaDetailPerVolumeGigabytes::setAllocated(int32_t value) { allocated_ = value; allocatedIsSet_ = true; diff --git a/evs/src/v2/model/QuotaDetailSnapshots.cpp b/evs/src/v2/model/QuotaDetailSnapshots.cpp index 10f1c95c6..0b5fdd642 100644 --- a/evs/src/v2/model/QuotaDetailSnapshots.cpp +++ b/evs/src/v2/model/QuotaDetailSnapshots.cpp @@ -19,7 +19,7 @@ QuotaDetailSnapshots::QuotaDetailSnapshots() limitIsSet_ = false; reserved_ = 0; reservedIsSet_ = false; - allocated_ = ""; + allocated_ = 0; allocatedIsSet_ = false; } @@ -84,7 +84,7 @@ bool QuotaDetailSnapshots::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("allocated")); if(!fieldValue.is_null()) { - std::string refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setAllocated(refVal); } @@ -156,12 +156,12 @@ void QuotaDetailSnapshots::unsetreserved() reservedIsSet_ = false; } -std::string QuotaDetailSnapshots::getAllocated() const +int32_t QuotaDetailSnapshots::getAllocated() const { return allocated_; } -void QuotaDetailSnapshots::setAllocated(const std::string& value) +void QuotaDetailSnapshots::setAllocated(int32_t value) { allocated_ = value; allocatedIsSet_ = true; diff --git a/evs/src/v2/model/QuotaDetailSnapshotsGPSSD.cpp b/evs/src/v2/model/QuotaDetailSnapshotsGPSSD.cpp index dcdd73c5c..1056d739f 100644 --- a/evs/src/v2/model/QuotaDetailSnapshotsGPSSD.cpp +++ b/evs/src/v2/model/QuotaDetailSnapshotsGPSSD.cpp @@ -19,7 +19,7 @@ QuotaDetailSnapshotsGPSSD::QuotaDetailSnapshotsGPSSD() limitIsSet_ = false; reserved_ = 0; reservedIsSet_ = false; - allocated_ = ""; + allocated_ = 0; allocatedIsSet_ = false; } @@ -84,7 +84,7 @@ bool QuotaDetailSnapshotsGPSSD::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("allocated")); if(!fieldValue.is_null()) { - std::string refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setAllocated(refVal); } @@ -156,12 +156,12 @@ void QuotaDetailSnapshotsGPSSD::unsetreserved() reservedIsSet_ = false; } -std::string QuotaDetailSnapshotsGPSSD::getAllocated() const +int32_t QuotaDetailSnapshotsGPSSD::getAllocated() const { return allocated_; } -void QuotaDetailSnapshotsGPSSD::setAllocated(const std::string& value) +void QuotaDetailSnapshotsGPSSD::setAllocated(int32_t value) { allocated_ = value; allocatedIsSet_ = true; diff --git a/evs/src/v2/model/QuotaDetailSnapshotsSAS.cpp b/evs/src/v2/model/QuotaDetailSnapshotsSAS.cpp index 2278ad3e0..bf21b8d06 100644 --- a/evs/src/v2/model/QuotaDetailSnapshotsSAS.cpp +++ b/evs/src/v2/model/QuotaDetailSnapshotsSAS.cpp @@ -19,7 +19,7 @@ QuotaDetailSnapshotsSAS::QuotaDetailSnapshotsSAS() limitIsSet_ = false; reserved_ = 0; reservedIsSet_ = false; - allocated_ = ""; + allocated_ = 0; allocatedIsSet_ = false; } @@ -84,7 +84,7 @@ bool QuotaDetailSnapshotsSAS::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("allocated")); if(!fieldValue.is_null()) { - std::string refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setAllocated(refVal); } @@ -156,12 +156,12 @@ void QuotaDetailSnapshotsSAS::unsetreserved() reservedIsSet_ = false; } -std::string QuotaDetailSnapshotsSAS::getAllocated() const +int32_t QuotaDetailSnapshotsSAS::getAllocated() const { return allocated_; } -void QuotaDetailSnapshotsSAS::setAllocated(const std::string& value) +void QuotaDetailSnapshotsSAS::setAllocated(int32_t value) { allocated_ = value; allocatedIsSet_ = true; diff --git a/evs/src/v2/model/QuotaDetailSnapshotsSATA.cpp b/evs/src/v2/model/QuotaDetailSnapshotsSATA.cpp index 984b231b9..3036d47ee 100644 --- a/evs/src/v2/model/QuotaDetailSnapshotsSATA.cpp +++ b/evs/src/v2/model/QuotaDetailSnapshotsSATA.cpp @@ -19,7 +19,7 @@ QuotaDetailSnapshotsSATA::QuotaDetailSnapshotsSATA() limitIsSet_ = false; reserved_ = 0; reservedIsSet_ = false; - allocated_ = ""; + allocated_ = 0; allocatedIsSet_ = false; } @@ -84,7 +84,7 @@ bool QuotaDetailSnapshotsSATA::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("allocated")); if(!fieldValue.is_null()) { - std::string refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setAllocated(refVal); } @@ -156,12 +156,12 @@ void QuotaDetailSnapshotsSATA::unsetreserved() reservedIsSet_ = false; } -std::string QuotaDetailSnapshotsSATA::getAllocated() const +int32_t QuotaDetailSnapshotsSATA::getAllocated() const { return allocated_; } -void QuotaDetailSnapshotsSATA::setAllocated(const std::string& value) +void QuotaDetailSnapshotsSATA::setAllocated(int32_t value) { allocated_ = value; allocatedIsSet_ = true; diff --git a/evs/src/v2/model/QuotaDetailSnapshotsSSD.cpp b/evs/src/v2/model/QuotaDetailSnapshotsSSD.cpp index 010701836..d06a52104 100644 --- a/evs/src/v2/model/QuotaDetailSnapshotsSSD.cpp +++ b/evs/src/v2/model/QuotaDetailSnapshotsSSD.cpp @@ -19,7 +19,7 @@ QuotaDetailSnapshotsSSD::QuotaDetailSnapshotsSSD() limitIsSet_ = false; reserved_ = 0; reservedIsSet_ = false; - allocated_ = ""; + allocated_ = 0; allocatedIsSet_ = false; } @@ -84,7 +84,7 @@ bool QuotaDetailSnapshotsSSD::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("allocated")); if(!fieldValue.is_null()) { - std::string refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setAllocated(refVal); } @@ -156,12 +156,12 @@ void QuotaDetailSnapshotsSSD::unsetreserved() reservedIsSet_ = false; } -std::string QuotaDetailSnapshotsSSD::getAllocated() const +int32_t QuotaDetailSnapshotsSSD::getAllocated() const { return allocated_; } -void QuotaDetailSnapshotsSSD::setAllocated(const std::string& value) +void QuotaDetailSnapshotsSSD::setAllocated(int32_t value) { allocated_ = value; allocatedIsSet_ = true; diff --git a/evs/src/v2/model/QuotaDetailVolumes.cpp b/evs/src/v2/model/QuotaDetailVolumes.cpp index cbb053355..7663d832d 100644 --- a/evs/src/v2/model/QuotaDetailVolumes.cpp +++ b/evs/src/v2/model/QuotaDetailVolumes.cpp @@ -19,7 +19,7 @@ QuotaDetailVolumes::QuotaDetailVolumes() limitIsSet_ = false; reserved_ = 0; reservedIsSet_ = false; - allocated_ = ""; + allocated_ = 0; allocatedIsSet_ = false; } @@ -84,7 +84,7 @@ bool QuotaDetailVolumes::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("allocated")); if(!fieldValue.is_null()) { - std::string refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setAllocated(refVal); } @@ -156,12 +156,12 @@ void QuotaDetailVolumes::unsetreserved() reservedIsSet_ = false; } -std::string QuotaDetailVolumes::getAllocated() const +int32_t QuotaDetailVolumes::getAllocated() const { return allocated_; } -void QuotaDetailVolumes::setAllocated(const std::string& value) +void QuotaDetailVolumes::setAllocated(int32_t value) { allocated_ = value; allocatedIsSet_ = true; diff --git a/evs/src/v2/model/QuotaDetailVolumesGPSSD.cpp b/evs/src/v2/model/QuotaDetailVolumesGPSSD.cpp index 24b1d8734..158f78640 100644 --- a/evs/src/v2/model/QuotaDetailVolumesGPSSD.cpp +++ b/evs/src/v2/model/QuotaDetailVolumesGPSSD.cpp @@ -19,7 +19,7 @@ QuotaDetailVolumesGPSSD::QuotaDetailVolumesGPSSD() limitIsSet_ = false; reserved_ = 0; reservedIsSet_ = false; - allocated_ = ""; + allocated_ = 0; allocatedIsSet_ = false; } @@ -84,7 +84,7 @@ bool QuotaDetailVolumesGPSSD::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("allocated")); if(!fieldValue.is_null()) { - std::string refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setAllocated(refVal); } @@ -156,12 +156,12 @@ void QuotaDetailVolumesGPSSD::unsetreserved() reservedIsSet_ = false; } -std::string QuotaDetailVolumesGPSSD::getAllocated() const +int32_t QuotaDetailVolumesGPSSD::getAllocated() const { return allocated_; } -void QuotaDetailVolumesGPSSD::setAllocated(const std::string& value) +void QuotaDetailVolumesGPSSD::setAllocated(int32_t value) { allocated_ = value; allocatedIsSet_ = true; diff --git a/evs/src/v2/model/QuotaDetailVolumesSAS.cpp b/evs/src/v2/model/QuotaDetailVolumesSAS.cpp index 3a2a07dcd..ce7bdc468 100644 --- a/evs/src/v2/model/QuotaDetailVolumesSAS.cpp +++ b/evs/src/v2/model/QuotaDetailVolumesSAS.cpp @@ -19,7 +19,7 @@ QuotaDetailVolumesSAS::QuotaDetailVolumesSAS() limitIsSet_ = false; reserved_ = 0; reservedIsSet_ = false; - allocated_ = ""; + allocated_ = 0; allocatedIsSet_ = false; } @@ -84,7 +84,7 @@ bool QuotaDetailVolumesSAS::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("allocated")); if(!fieldValue.is_null()) { - std::string refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setAllocated(refVal); } @@ -156,12 +156,12 @@ void QuotaDetailVolumesSAS::unsetreserved() reservedIsSet_ = false; } -std::string QuotaDetailVolumesSAS::getAllocated() const +int32_t QuotaDetailVolumesSAS::getAllocated() const { return allocated_; } -void QuotaDetailVolumesSAS::setAllocated(const std::string& value) +void QuotaDetailVolumesSAS::setAllocated(int32_t value) { allocated_ = value; allocatedIsSet_ = true; diff --git a/evs/src/v2/model/QuotaDetailVolumesSATA.cpp b/evs/src/v2/model/QuotaDetailVolumesSATA.cpp index f7a501be3..69eba9f54 100644 --- a/evs/src/v2/model/QuotaDetailVolumesSATA.cpp +++ b/evs/src/v2/model/QuotaDetailVolumesSATA.cpp @@ -19,7 +19,7 @@ QuotaDetailVolumesSATA::QuotaDetailVolumesSATA() limitIsSet_ = false; reserved_ = 0; reservedIsSet_ = false; - allocated_ = ""; + allocated_ = 0; allocatedIsSet_ = false; } @@ -84,7 +84,7 @@ bool QuotaDetailVolumesSATA::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("allocated")); if(!fieldValue.is_null()) { - std::string refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setAllocated(refVal); } @@ -156,12 +156,12 @@ void QuotaDetailVolumesSATA::unsetreserved() reservedIsSet_ = false; } -std::string QuotaDetailVolumesSATA::getAllocated() const +int32_t QuotaDetailVolumesSATA::getAllocated() const { return allocated_; } -void QuotaDetailVolumesSATA::setAllocated(const std::string& value) +void QuotaDetailVolumesSATA::setAllocated(int32_t value) { allocated_ = value; allocatedIsSet_ = true; diff --git a/evs/src/v2/model/QuotaDetailVolumesSSD.cpp b/evs/src/v2/model/QuotaDetailVolumesSSD.cpp index 313e2ff42..7114639d2 100644 --- a/evs/src/v2/model/QuotaDetailVolumesSSD.cpp +++ b/evs/src/v2/model/QuotaDetailVolumesSSD.cpp @@ -19,7 +19,7 @@ QuotaDetailVolumesSSD::QuotaDetailVolumesSSD() limitIsSet_ = false; reserved_ = 0; reservedIsSet_ = false; - allocated_ = ""; + allocated_ = 0; allocatedIsSet_ = false; } @@ -84,7 +84,7 @@ bool QuotaDetailVolumesSSD::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("allocated")); if(!fieldValue.is_null()) { - std::string refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setAllocated(refVal); } @@ -156,12 +156,12 @@ void QuotaDetailVolumesSSD::unsetreserved() reservedIsSet_ = false; } -std::string QuotaDetailVolumesSSD::getAllocated() const +int32_t QuotaDetailVolumesSSD::getAllocated() const { return allocated_; } -void QuotaDetailVolumesSSD::setAllocated(const std::string& value) +void QuotaDetailVolumesSSD::setAllocated(int32_t value) { allocated_ = value; allocatedIsSet_ = true;